Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

Build errors while trying to debug OSCAR in Qt on Windows 10 [resolved, see Post #19]
#1
Build errors while trying to debug OSCAR in Qt on Windows 10 [resolved, see Post #19]
Hi all, I'm trying to run OSCAR in debug mode from Qt on Windows 10. I have followed the instructions as best I could in both Contributing.md and Build-win.md, but I am still getting build errors, so I thought it best to supply the full compile output below:

13:20:28: Running steps for project OSCAR_QT...
13:20:28: Configuration unchanged, skipping qmake step.
13:20:29: Starting: "C:\Program-files\Qt\Tools\mingw730_64\bin\mingw32-make.exe" -j8
cd oscar/ && ( test -e Makefile || C:/Program-files/Qt/5.12.8/mingw73_64/bin/qmake.exe -o Makefile C:/Users/geoff/Documents/GitHub/OSCAR-code/oscar/oscar.pro -spec win32-g++ CONFIG+=debug CONFIG+=qml_debug ) && C:/Program-files/Qt/Tools/mingw730_64/bin/mingw32-make -f Makefile
fatal: no tag exactly matches '0b754b3a447283fcb1277d0f5cb7aa5ad3b34cac'
Update_gtinfo.bat: GIT_BRANCH=scarmen-bugfixes, GIT_REVISION=0b754b3a, GIT_TAG=
The filename, directory name, or volume label syntax is incorrect.
Project MESSAGE: Platform is C:/Program-files/Qt/5.12.8/mingw73_64/mkspecs/win32-g++
Project MESSAGE: Building with regular OpenGL gGraphView
Project MESSAGE: Updating gitinfo.h for Windows build
Project ERROR: Failed to run: 'C:\Program-files\Qt\5.12.8\mingw73_64\bin\lrelease.exe' -removeidentical C:/Users/geoff/Documents/GitHub/OSCAR-code/oscar/../Translations/Afrikaans.af.ts -qm C:/Users/geoff/Documents/GitHub/OSCAR-code/oscar/translations/Afrikaans.af.qm
mingw32-make: *** [Makefile:43: sub-oscar-make_first-ordered] Error 3
13:20:30: The process "C:\Program-files\Qt\Tools\mingw730_64\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project OSCAR_QT (kit: Desktop Qt 5.12.8 MinGW 64-bit)
When executing step "Make"
13:20:30: Elapsed time: 00:02.
Post Reply Post Reply
#2
RE: Build errors while trying to debug OSCAR in Qt on Windows 10.
The "fatal: no tag ..." is normal, but normally occurs after the Project MESSAGE lines.

Are you building from within QT Creator or from the command line?  From a batch or script file of your own?  I always build and run debug versions from within QT Creator.  The buildall.bat file in oscar-code/building/windows should build a release version from the command line (though I have not tested it recently).

I suspect the problem is either that you did not install all required QT components or there is something wrong with the way you are attempting to build OSCAR.

The "The filename, directory name, or volume label syntax is incorrect." is highly unusual and represents an error.  Often that can be caused by missing or double quotes, sometimes forward vs back slashes (though I use Windows back-slashes everywhere and it builds ok).

Does this file exist? -- C:\Program-files\Qt\5.12.8\mingw73_32\bin\lrelease.exe

What is the name of your C: volume?

Please post the contents of oscar-code\oscar\git_info.h
Useful links
Download OSCAR (current version is 1.5.1)
Best way to organize charts
How to attach charts to your post

Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#3
RE: Build errors while trying to debug OSCAR in Qt on Windows 10.
I have updated BUILD-WIN.md and buildall.bat in the oscar-code/building/windows directory.  I compared the instructions there with how I have QT set up and found two items missing.  Also, I updated the documentation to refer to QT 5.12.8 instead of 5.12.5.

The changes have been merged and are in the repository.
Useful links
Download OSCAR (current version is 1.5.1)
Best way to organize charts
How to attach charts to your post

Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#4
RE: Build errors while trying to debug OSCAR in Qt on Windows 10.
(04-20-2020, 10:40 PM)GuyScharf Wrote: The "fatal: no tag ..." is normal, but normally occurs after the Project MESSAGE lines.

Are you building from within QT Creator or from the command line? 

QT Creator.

(04-20-2020, 10:40 PM)GuyScharf Wrote: From a batch or script file of your own? 

No, just the vanilla GUI.

(04-20-2020, 10:40 PM)GuyScharf Wrote: I always build and run debug versions from within QT Creator.  The buildall.bat file in oscar-code/building/windows should build a release version from the command line (though I have not tested it recently).

I suspect the problem is either that you did not install all required QT components or there is something wrong with the way you are attempting to build OSCAR.

The "The filename, directory name, or volume label syntax is incorrect." is highly unusual and represents an error.  Often that can be caused by missing or double quotes, sometimes forward vs back slashes (though I use Windows back-slashes everywhere and it builds ok).

Does this file exist? -- C:\Program-files\Qt\5.12.8\mingw73_32\bin\lrelease.exe

Yes, it does.

(04-20-2020, 10:40 PM)GuyScharf Wrote: What is the name of your C: volume?

Windows (that is, when I look at it in the file Explorer, the text beside the drive icon is Windows (CSmile). 

(04-20-2020, 10:40 PM)GuyScharf Wrote: Please post the contents of oscar-code\oscar\git_info.h

// This is an auto generated file 
#define GIT_BRANCH "scarmen-bugfixes" 
#define GIT_REVISION "0b754b3a"
Post Reply Post Reply
#5
RE: Build errors while trying to debug OSCAR in Qt on Windows 10.
(04-20-2020, 10:53 PM)GuyScharf Wrote: I have updated BUILD-WIN.md and buildall.bat in the oscar-code/building/windows directory.  I compared the instructions there with how I have QT set up and found two items missing.  Also, I updated the documentation to refer to QT 5.12.8 instead of 5.12.5.

The changes have been merged and are in the repository.

Thanks Guy, I've looked at the additions you made to BUILD-WIN.md, and I already have those other components installed in Qt. I note that since buildall.bat does not get executed when building from Qt Creator, it does not affect the build outcome.
Post Reply Post Reply
#6
RE: Build errors while trying to debug OSCAR in Qt on Windows 10.
(04-21-2020, 12:12 AM)Scarmen Wrote: I note that since buildall.bat does not get executed when building from Qt Creator, it does not affect the build outcome.

That is correct.  buildall.bat is a batch file to build the Windows version from the command line, without using QT Creator.  I haven't tested it recently, so it may need some updates.  I'll try to do that soon.
Useful links
Download OSCAR (current version is 1.5.1)
Best way to organize charts
How to attach charts to your post

Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#7
RE: Build errors while trying to debug OSCAR in Qt on Windows 10.
Here is the compile output from a build of the debug version.  I selected the Win64 project and set the build type to Debug.  Then I built the project.

I have removed many extra lines, showing compilation of each module etc., to make the sequence of events clearer.  Hope this will be some help in figuring out what is going on.

I'm done for the night!


Attached Files
.txt   compile.txt (Size: 23.23 KB / Downloads: 9)
Useful links
Download OSCAR (current version is 1.5.1)
Best way to organize charts
How to attach charts to your post

Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#8
RE: Build errors while trying to debug OSCAR in Qt on Windows 10.
P.S., I have confirmed that buildall.bat builds both 32-bit and 64-bit release versions of OSCAR and installers correctly. So I won't be making any changes to it.
Useful links
Download OSCAR (current version is 1.5.1)
Best way to organize charts
How to attach charts to your post

Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#9
RE: Build errors while trying to debug OSCAR in Qt on Windows 10.
(04-21-2020, 01:07 AM)GuyScharf Wrote: Here is the compile output from a build of the debug version.

Thanks Guy, I've been using that file to make my own setup on Windows as close as I can to yours. From what I can see, however, the problem from my compile output is that the build script, for whatever reason, is using the wrong syntax when it is trying to run lrelease.exe. Instead of putting the file path for lrelease.exe in double quotes, it is using single quotes. When I try to do this in the command prompt, I get the same error as is indicated in my compile output: The filename, directory name, or volume label syntax is incorrect. On the other hand, when I use the same command as is listed in my compile output except that I put the executable path in double quotes, I get successful output: 

Quote:Updating 'C:/Users/geoff/OneDrive/Documents/Git/OSCAR-code/oscar/translations/Afrikaans.af.qm'...
Removing translations equal to source text in 'C:/Users/geoff/OneDrive/Documents/Git/OSCAR-code/oscar/translations/Afrikaans.af.qm'...
    Generated 1421 translation(s) (1420 finished and 1 unfinished)
    Ignored 49 untranslated source text(s)

Any idea why it would be trying to run the command lrelease.exe using single quotes for the file path instead of double quotes?
Post Reply Post Reply
#10
RE: Build errors while trying to debug OSCAR in Qt on Windows 10.
The lrelease command is run by qmake when processing the oscar/oscar.pro file. See lines 157-158 of oscar.pro. This code is from the QT cookbook for handling language translations (see https://wiki.qt.io/Automating_generation_of_qm_files for example). You are seeing an error message, not what qmake is actually doing in the system() command, so I doubt that the single quotes you are seeing in the message is an issue, especially since oscar.pro seems to be working for everyone else and on other platforms.

I'll ask a developer more familiar with QT and qmake to take a look at this thread.
Useful links
Download OSCAR (current version is 1.5.1)
Best way to organize charts
How to attach charts to your post

Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Angry Unable to fully open OSCAR on Windows PC martinmclellan504 4 289 10-21-2024, 10:30 AM
Last Post: martinmclellan504
  A couple of hints for building OSCAR on Windows chrisxkeith 1 171 10-15-2024, 11:37 AM
Last Post: Crimson Nape
  F12 not workding on Windows 10 GeorgeGus 3 372 06-27-2024, 05:46 PM
Last Post: Narcil
  OSCAR Windows Portable No-Install CraigKevin 18 3,665 05-26-2024, 03:19 PM
Last Post: hmcb2b
  OSCAR can't find data on SD card [solved, see post #24] brucewtb 22 3,831 05-17-2024, 08:53 PM
Last Post: mokeefe734
  OSCAR Install Problems on Win 11 Pro [SOLVED, post #36] chzuck 35 2,807 05-08-2024, 11:14 AM
Last Post: chzuck
  multiple windows ? zaienk 4 626 01-17-2024, 07:15 AM
Last Post: zaienk


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.