to get debugging on embedded systems to work (*) I just fetched CodeLite from github and tried to compile according to http://codelite.org/Developers/Windows#toc1. Compiling fails quite early with the following output:
Code: Select all
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 8 -e -f Makefile"
----------Building project:[ PCH - Debug ]----------
mingw32-make[1]: Entering directory 'd:/Projekte.git/Intern/codelite_test/PCH'
g++ -c precompiled_header_dbg.h -g -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.0.0/lib/gcc_dll/mswud -IC:/wxWidgets-3.0.0/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -I. -I.
mingw32-make[1]: Leaving directory 'd:/Projekte.git/Intern/codelite_test/PCH'
mingw32-make[1]: Entering directory 'd:/Projekte.git/Intern/codelite_test/PCH'
g++ -include precompiled_header_dbg.h -c "D:/Projekte.git/Intern/codelite_test/PCH/dummy.cpp" -g -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.0.0/lib/gcc_dll/mswud -IC:/wxWidgets-3.0.0/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/dummy.o -I. -I.
ar rcus ./Debug/libPCH.a @"PCH.txt"
mingw32-make[1]: Leaving directory 'd:/Projekte.git/Intern/codelite_test/PCH'
----------Building project:[ sqlite3 - Common ]----------
mingw32-make[1]: Entering directory 'd:/Projekte.git/Intern/codelite_test/sqlite3'
gcc -c "D:/Projekte.git/Intern/codelite_test/sqlite3/sqlite3.c" -O2 -o ./Release_static/sqlite3.o -I. -I.
ar rcus ../lib/gcc_lib/libsqlite3.a @"sqlite3.txt"
mingw32-make[1]: Leaving directory 'd:/Projekte.git/Intern/codelite_test/sqlite3'
----------Building project:[ wxsqlite3 - WinDebugUnicode ]----------
mingw32-make[1]: Entering directory 'd:/Projekte.git/Intern/codelite_test/sdk/wxsqlite3'
mingw32-make[1]: '../../PCH/precompiled_header_dbg.h.gch' is up to date.
mingw32-make[1]: Leaving directory 'd:/Projekte.git/Intern/codelite_test/sdk/wxsqlite3'
mingw32-make[1]: Entering directory 'd:/Projekte.git/Intern/codelite_test/sdk/wxsqlite3'
g++ -include ../../PCH/precompiled_header_dbg.h -c "D:/Projekte.git/Intern/codelite_test/sdk/wxsqlite3/src/wxsqlite3.cpp" -g -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-3.0.0/lib/gcc_dll/mswud -IC:/wxWidgets-3.0.0/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -Winvalid-pch -D__WX__ -DWXUSINGDLL -DWXMAKINGDLL_WXSQLITE3 -o ./WinDebugUnicode/src_wxsqlite3.o -I. -I. -I./include -I./sqlite3/include
g++ -shared -fPIC -o ../../lib/gcc_lib/libwxsqlite3ud.dll @"wxsqlite3.txt" -L. -L../../lib/gcc_lib/ -lsqlite3 -mthreads -LC:/wxWidgets-3.0.0/lib/gcc_dll -lwxmsw30ud_xrc -lwxmsw30ud_aui -lwxmsw30ud_html -lwxmsw30ud_adv -lwxmsw30ud_core -lwxbase30ud_xml -lwxbase30ud_net -lwxmsw30ud_richtext -lwxbase30ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
mingw32-make[1]: Leaving directory 'd:/Projekte.git/Intern/codelite_test/sdk/wxsqlite3'
mingw32-make[1]: Entering directory 'd:/Projekte.git/Intern/codelite_test/sdk/wxsqlite3'
Executing Post Build commands ...
copy ..\..\lib\gcc_lib\libwxsqlite3ud.dll ..\..\Runtime
process_begin: CreateProcess(NULL, copy ..\..\lib\gcc_lib\libwxsqlite3ud.dll ..\..\Runtime, ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make[1]: *** [PostBuild] Error 2
wxsqlite3.mk:88: recipe for target 'PostBuild' failed
mingw32-make[1]: Leaving directory 'd:/Projekte.git/Intern/codelite_test/sdk/wxsqlite3'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
0 errors, 0 warnings, total time: 00:00:38 seconds
CodeLite 5.4 binary (out of the box with no special global settings)
wxWidgets 3.0 (installed to the default path)
MingW 4.8.1 (installed to the default path)
When mingw32-make tries to start a "copy" with CreateProcess it's clear to me why this fails as there is no executable "copy" command around under Windows 7/64 (**). But with which package would the missing "copy" be delivered?
Regards,
Torsten
(*) There was a binary only CM3 debugger DLL around in these forums a longer time ago, but it does not seem to work any more with the current CodeLite 5.4. As I could not find any sources/patches released by the author I planned to do something on my own to get the debugger working with "bare metal" projects on ARM (using the J-Link as JTAG/SWD interface).
(**) I did a fixup to use xcopy instead which seems to work if I also adapt several IntermediateDir settings. But now The build fails because of the "MakeDirCommand := makedir" entries in the .mk files. Where does this come from? As with "copy" "makedir" doesn't exist on my system...