Discussion about CodeLite development process and patches
frank_frl
CodeLite Expert
Posts: 176 Joined: Sun Aug 17, 2008 2:45 pm
Contact:
Post
by frank_frl » Mon Nov 14, 2011 10:44 pm
Hi Eran,
I Can't build 5270
Compiler: MinGW 4.6.1
There is a strange bash command in the log!
Code: Select all
----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -j 4 -f "LiteEditor_wsp.mk""
----------Building project:[ PCH - Release ]----------
mingw32-make[1]: Entering directory `e:/WxWindows/CodeLite/PCH'
g++ -c precompiled_header_release.h -O2 -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IE:\wxWidgets-2.9.2\lib\gcc_dll\mswu -IE:\wxWidgets-2.9.2\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -I -I. -I.
mingw32-make[1]: Leaving directory `e:/WxWindows/CodeLite/PCH'
mingw32-make[1]: Entering directory `e:/WxWindows/CodeLite/PCH'
/usr/bin/sh: /c/Program Files (x86)/CodeLite/makedir: Invalid argument
mingw32-make[1]: *** [Release/.d] Error 126
mingw32-make[1]: *** Waiting for unfinished jobs....
<built-in>:0:0: fatal error: opening dependency file ./Release/dummy.o.d: No such file or directory
compilation terminated.
mingw32-make[1]: *** [Release/dummy.o.d] Error 1
mingw32-make[1]: Leaving directory `e:/WxWindows/CodeLite/PCH'
mingw32-make.exe: *** [All] Error 2
----------Build Ended----------
0 errors, 0 warnings
Regards
Frank
eranif
CodeLite Plugin
Posts: 6375 Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:
Post
by eranif » Mon Nov 14, 2011 10:51 pm
Looks like you have a cywgin/msys in the path or something like that
Eran
frank_frl
CodeLite Expert
Posts: 176 Joined: Sun Aug 17, 2008 2:45 pm
Contact:
Post
by frank_frl » Mon Nov 14, 2011 11:40 pm
eranif wrote: Looks like you have a cywgin/msys in the path or something like that
Eran
I checked my path, nothing like that.
Code: Select all
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;E:\MinGW32\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\SlikSvn\bin\;E:\WxWindows\Obsidium\
I had MYSYS installed some time ago, but it's deinstalled.
Frank
frank_frl
CodeLite Expert
Posts: 176 Joined: Sun Aug 17, 2008 2:45 pm
Contact:
Post
by frank_frl » Tue Nov 15, 2011 10:58 pm
Hi Eran,
after a rebooted the bash call was gone, but now I have an other problem. It seems that wxWidgets is not found although the path in the build output is correct.
Code: Select all
----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -j 4 -f "LiteEditor_wsp.mk""
----------Building project:[ PCH - Release ]----------
mingw32-make[1]: Entering directory `e:/WxWindows/CodeLite/PCH'
g++ -c precompiled_header_release.h -O2 -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IE:\wxWidgets-2.9.2\lib\gcc_dll\mswu -IE:\wxWidgets-2.9.2\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -IE:/WxWindows/projects_gnu/MyLibsX/include -I. -I.
mingw32-make[1]: Leaving directory `e:/WxWindows/CodeLite/PCH'
mingw32-make[1]: Entering directory `e:/WxWindows/CodeLite/PCH'
g++ -c "E:/WxWindows/CodeLite/PCH/dummy.cpp" -O2 -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IE:\wxWidgets-2.9.2\lib\gcc_dll\mswu -IE:\wxWidgets-2.9.2\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -o ./Release/dummy.o -IE:/WxWindows/projects_gnu/MyLibsX/include -I. -I.
g++ -shared -fPIC -o ./Release/libPCH.a @"E:\WxWindows\CodeLite\PCH\PCH.txt" -LE:/WxWindows/projects_gnu/MyLibsX/lib -L. -O2 -mthreads -LE:\wxWidgets-2.9.2\lib\gcc_dll -lwxmsw29u -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
e:/mingw32/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw29u
e:/mingw32/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lwxtiff
e:/mingw32/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lwxjpeg
e:/mingw32/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lwxpng
e:/mingw32/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lwxzlib
e:/mingw32/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lwxregexu
e:/mingw32/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lwxexpat
e:/mingw32/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lwxregexu
collect2: ld returned 1 exit status
mingw32-make[1]: *** [Release/libPCH.a] Error 1
mingw32-make.exe: *** [All] Error 2
mingw32-make[1]: Leaving directory `e:/WxWindows/CodeLite/PCH'
----------Build Ended----------
0 errors, 0 warnings
when I switch 'Pass object list to the linker via file' off it builds until it needs wxWidgets.
Code: Select all
----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -j 4 -f "LiteEditor_wsp.mk""
----------Building project:[ PCH - Release ]----------
mingw32-make[1]: Entering directory `e:/WxWindows/CodeLite/PCH'
g++ -c precompiled_header_release.h -O2 -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IE:\wxWidgets-2.9.2\lib\gcc_dll\mswu -IE:\wxWidgets-2.9.2\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -IE:/WxWindows/projects_gnu/MyLibsX/include -I. -I.
mingw32-make[1]: Leaving directory `e:/WxWindows/CodeLite/PCH'
mingw32-make[1]: Entering directory `e:/WxWindows/CodeLite/PCH'
g++ -c "E:/WxWindows/CodeLite/PCH/dummy.cpp" -O2 -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IE:\wxWidgets-2.9.2\lib\gcc_dll\mswu -IE:\wxWidgets-2.9.2\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -o ./Release/dummy.o -IE:/WxWindows/projects_gnu/MyLibsX/include -I. -I.
g++ -shared -fPIC -o ./Release/libPCH.a ./Release/dummy.o -LE:/WxWindows/projects_gnu/MyLibsX/lib -L. -O2 -mthreads -LE:\wxWidgets-2.9.2\lib\gcc_dll -lwxmsw29u -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
mingw32-make[1]: Leaving directory `e:/WxWindows/CodeLite/PCH'
----------Building project:[ sqlite3 - Common ]----------
mingw32-make[1]: Entering directory `e:/WxWindows/CodeLite/sqlite3'
gcc -c "E:/WxWindows/CodeLite/sqlite3/sqlite3.c" -O2 -o ./Release_static/sqlite3.o -I. -I.
ar rcus ../lib/gcc_lib/libsqlite3.a ./Release_static/sqlite3.o
mingw32-make[1]: Leaving directory `e:/WxWindows/CodeLite/sqlite3'
----------Building project:[ wxscintilla - WinReleaseUnicode ]----------
mingw32-make[1]: Entering directory `e:/WxWindows/CodeLite/sdk/wxscintilla'
g++ -c "E:/WxWindows/CodeLite/sdk/wxscintilla/src/scintilla/lexers/LexAbaqus.cxx" -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IE:\wxWidgets-2.9.2\lib\gcc_dll\mswu -IE:\wxWidgets-2.9.2\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -O2 -D__WX__ -DSCI_LEXER -DLINK_LEXERS -DWXUSINGDLL -DWXMAKINGDLL_SCI -o WinReleaseUnicode/lexers_LexAbaqus.o -IE:/WxWindows/projects_gnu/MyLibsX/include -I. -Isrc/scintilla/include -Isrc/scintilla/lexlib -Iinclude -Isrc/scintilla/src
E:/WxWindows/CodeLite/sdk/wxscintilla/src/ScintillaWX.h:203:20: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/ScintillaWX.h:203:20: error: missing binary operator before token "("
include/wx/wxscintilla.h:3432:20: error: missing binary operator before token "("
include/wx/wxscintilla.h:3630:21: error: missing binary operator before token "("
include/wx/wxscintilla.h:3432:20: error: missing binary operator before token "("
include/wx/wxscintilla.h:3723:21: error: missing binary operator before token "("
include/wx/wxscintilla.h:3630:21: error: missing binary operator before token "("
include/wx/wxscintilla.h:3723:21: error: missing binary operator before token "("
include/wx/wxscintilla.h:3432:20: error: missing binary operator before token "("
include/wx/wxscintilla.h:3630:21: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/PlatWX.cpp:562:21: error: missing binary operator before token "("
include/wx/wxscintilla.h:3723:21: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/PlatWX.cpp:617:21: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/PlatWX.cpp:628:21: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/ScintillaWX.cpp:249:20: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/ScintillaWX.cpp:677:42: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/ScintillaWX.cpp:702:20: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/ScintillaWX.cpp:712:21: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/ScintillaWX.cpp:726:21: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/ScintillaWX.cpp:752:21: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/ScintillaWX.cpp:1154:21: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/ScintillaWX.cpp:1162:21: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/wxscintilla.cpp:163:43: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/wxscintilla.cpp:185:20: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/wxscintilla.cpp:524:20: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/wxscintilla.cpp:941:20: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/wxscintilla.cpp:3063:20: error: missing binary operator before token "("
E:/WxWindows/CodeLite/sdk/wxscintilla/src/wxscintilla.cpp:3280:21: error: missing binary operator before token "("
mingw32-make[1]: *** [WinReleaseUnicode/src_PlatWX.o.d] Error 1
mingw32-make[1]: *** Waiting for unfinished jobs....
mingw32-make[1]: *** [WinReleaseUnicode/src_ScintillaWX.o.d] Error 1
mingw32-make[1]: *** [WinReleaseUnicode/src_wxscintilla.o.d] Error 1
mingw32-make[1]: Leaving directory `e:/WxWindows/CodeLite/sdk/wxscintilla'
mingw32-make.exe: *** [All] Error 2
----------Build Ended----------
28 errors, 0 warnings, total time: 00:00:15 seconds
Any suggestions?
BTW: I tried it now with rev. 5275
Frank
eranif
CodeLite Plugin
Posts: 6375 Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:
Post
by eranif » Tue Nov 15, 2011 11:21 pm
The only thing that comes to my head is that you are using another g++ that belongs to Cygwin or MSYS and does not accept backslashes
To check which g++ / mingw32-make codelite "sees" do this:
Open any file in codelite, next right click on the file's tab title and select 'Open Shell at File Path...'
You should have a CMD.EXE opened, type:
Eran
frank_frl
CodeLite Expert
Posts: 176 Joined: Sun Aug 17, 2008 2:45 pm
Contact:
Post
by frank_frl » Wed Nov 16, 2011 2:48 am
Hi Eran,
I found the problem
I have WinAVR installed what seems to confuse the build system( I used CL in the last weeks only for AVR programming, best IDE ever BTW
).
Even when MinGW32 is the first in the path it's not working, I have to remove WinAVR from the path or rename the WinAVR folder.
Finally could build CL again
Thanks and regards
Frank
frank_frl
CodeLite Expert
Posts: 176 Joined: Sun Aug 17, 2008 2:45 pm
Contact:
Post
by frank_frl » Thu Nov 17, 2011 1:30 pm
eranif wrote: The only thing that comes to my head is that you are using another g++ that belongs to Cygwin or MSYS and does not accept backslashes
To check which g++ / mingw32-make codelite "sees" do this:
Open any file in codelite, next right click on the file's tab title and select 'Open Shell at File Path...'
You should have a CMD.EXE opened, type:
Eran
Hi Eran,
I tried this, and what is strange is the fact, that which.exe is not seeing any g++ as soon as the WinAVR folder is in the path.
This is the ouput from which. Before the second call I just renamed WinAVR to WinAVRold.
Code: Select all
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
E:\WxWindows\projects_gnu\AudioMultiMeter>which g++
which: no g++ in (E:\MinGW32\bin;e:\WinAVR\bin;e:\WinAVR\utils\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system3
2;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\SlikSvn\
bin\;E:\WxWindows\Obsidium\;C:\Program Files (x86)\CodeLite;)
E:\WxWindows\projects_gnu\AudioMultiMeter>
Code: Select all
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
E:\WxWindows\projects_gnu\AudioMultiMeter>which g++
E:/MinGW32/bin/g++.EXE
E:\WxWindows\projects_gnu\AudioMultiMeter>
Frank