Opened 11 years ago
Closed 11 years ago
#23 closed defect (invalid)
Problems compiling when set makeshell= sh.exe
Reported by: | Tellie | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Version-3.09 |
Component: | Base | Version: | 3.08 |
Keywords: | Cc: | elbert.pol@…, dryeo |
Description
Hi
I have also set the set CDPATH=.;..;..\..; in my cmd file,
as Andy told me to do.
also i have set makeshell= sh.exe
When i compile a program i all-ways see:
"c:\usr\share\qt4\mkspecs\os2-g++"\runmapsym.cmd "c:\usr\share\qt4\mkspecs\os2-g++"\wmapsym.cmd opentail.map opentail.sym
c:\usr\share\qt4\mkspecs\os2-g++runmapsym.cmd: not found
make.exe: * [opentail.exe] Error 127
also when i run make clean i get:
[n:\qt_src\opentail]make clean
del moc_mainwindow.cpp moc_tailwidget.cpp moc_highlighteditor.cpp moc_traylauncher.cpp moc_settingsdialog.cpp
whighlight.cpp moc_filelist.cpp moc_QRecentFilesMenu.cpp moc_smtp.cpp moc_fileinfoframe.cpp >nul 2>&1
del: not found
make.exe: [compiler_moc_header_clean] Error 127 (ignored)
del qrc_Icons.cpp qrc_TextFiles.cpp qrc_translations.cpp >nul 2>&1
del: not found
make.exe: [compiler_rcc_clean] Error 127 (ignored)
del ui_mainwindow.h ui_highlighteditor.h ui_settingsdialog.h ui_newhighlight.h ui_fileinfoframe.h >nul 2>&1
del: not found
make.exe: [compiler_uic_clean] Error 127 (ignored)
and sometimes i also see a :
SYS0003: The system cannot find the path specified.
If i do same building but then i have Set makeshell=cmd.exe Then it's building fine ..
No error about the :
c:\usr\share\qt4\mkspecs\os2-g++runmapsym.cmd: not found or the DEL not found or a sys003 error.
Change History (3)
comment:1 by , 11 years ago
Cc: | added |
---|
comment:2 by , 11 years ago
@Tellie you can't build Qt apps with SH as makeshell. The cmd's used by Qt are all done in the meaning a non nix shell is used.
comment:3 by , 11 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
This seems to be no 4os2 problem but a wrong setting for compiling qt apps. So I close this ticket.
Elbert, if cmd.exe behaves different please reopen.
These problems are expected when the desired MAKESHELL is incorrect. Your first example fails as sh treats \ as continue on the next line character which is a non-printing character and naturally disappears.
Your second example fails as del is a builtin command for cmd.exe and similar so of course it won't be found.
This is the reason for the OS/2 port having %MAKESHELL% and the Makefile SHELL variable and I think this bug is invalid though I'm not up to speed on 4os2 so perhaps it's supposed to work