Compiling wxCTB for serial link with wxWidget

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
GuillaumeMENANT
In need of some credit
In need of some credit
Posts: 3
Joined: Tue Nov 13, 2007 10:42 am

Compiling wxCTB for serial link with wxWidget

Post by GuillaumeMENANT »

I'm trying to compile the wxCTB 0.9 under Windows XP with mingw32 :

I got these messages when I tried to compile under :

Code: Select all

F:\WorkSpace Eclipse\wxctb-0.9\build>mingw32-make -B -f makefile.gcc
if not exist release mkdir release
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
mingw32-make: [release] Error 2 (ignored)
g++ -c -o release\wxctb_lib_expect.o -DNDEBUG  -mthreads -O0 -I..\include -IC:\MinGW\include -IC:\MinGW\lib\gcc\mingw32\3.4.5\include  -MTrelease\wxct
b_lib_expect.o -MFrelease\wxctb_lib_expect.o.d -MD ../src/expect.cpp
g++ -c -o release\wxctb_lib_fifo.o -DNDEBUG  -mthreads -O0 -I..\include -IC:\MinGW\include -IC:\MinGW\lib\gcc\mingw32\3.4.5\include  -MTrelease\wxctb_
lib_fifo.o -MFrelease\wxctb_lib_fifo.o.d -MD ../src/fifo.cpp
g++ -c -o release\wxctb_lib_getopt.o -DNDEBUG  -mthreads -O0 -I..\include -IC:\MinGW\include -IC:\MinGW\lib\gcc\mingw32\3.4.5\include  -MTrelease\wxct
b_lib_getopt.o -MFrelease\wxctb_lib_getopt.o.d -MD ../src/getopt.cpp
g++ -c -o release\wxctb_lib_iobase.o -DNDEBUG  -mthreads -O0 -I..\include -IC:\MinGW\include -IC:\MinGW\lib\gcc\mingw32\3.4.5\include  -MTrelease\wxct
b_lib_iobase.o -MFrelease\wxctb_lib_iobase.o.d -MD ../src/iobase.cpp
g++ -c -o release\wxctb_lib_match.o -DNDEBUG  -mthreads -O0 -I..\include -IC:\MinGW\include -IC:\MinGW\lib\gcc\mingw32\3.4.5\include  -MTrelease\wxctb
_lib_match.o -MFrelease\wxctb_lib_match.o.d -MD ../src/match.cpp
g++ -c -o release\wxctb_lib_serport.o -DNDEBUG  -mthreads -O0 -I..\include -IC:\MinGW\include -IC:\MinGW\lib\gcc\mingw32\3.4.5\include  -MTrelease\wxc
tb_lib_serport.o -MFrelease\wxctb_lib_serport.o.d -MD ../src/win32/serport.cpp
g++ -c -o release\wxctb_lib_timer.o -DNDEBUG  -mthreads -O0 -I..\include -IC:\MinGW\include -IC:\MinGW\lib\gcc\mingw32\3.4.5\include  -MTrelease\wxctb
_lib_timer.o -MFrelease\wxctb_lib_timer.o.d -MD ../src/win32/timer.cpp
if exist ..\lib\libwxctb-0.9.a del ..\lib\libwxctb-0.9.a
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
mingw32-make: *** [..\lib\libwxctb-0.9.a] Error 2
What does it means ? What can I do ? Thanks a lot.
lukas0815
In need of some credit
In need of some credit
Posts: 6
Joined: Thu Sep 03, 2009 10:00 am

Post by lukas0815 »

Sorry for opening a very old post...

But I have troubles with the same problem, and ist costs some hours to solve. So I will write the answer:

I have get an equal error with the command:

Code: Select all

make -f makefile.gcc
produces:

Code: Select all

 if exist ..\lib\libwxctb-0.13.a del ..\lib\libwxctb-0.13.a
/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [..\lib\libwxctb-0.13.a] Error 258
After a while I found out to get more informations out of make with the option "-d" for debug. Now I get:

Code: Select all

make -d -f makefile.gcc
produces:

Code: Select all

if exist ..\lib\libwxctb-0.13.a del ..\lib\libwxctb-0.13.a
CreateProcess(C:\Programme\Atmel\WinAVR-20090313\utils\bin\sh.exe,C:/Programme/A
tmel/WinAVR-20090313/utils/bin/sh.exe -c "if exist ..\lib\libwxctb-0.13.a del ..
\lib\libwxctb-0.13.a",...)
Putting child 0x009e2c48 (..\lib\libwxctb-0.13.a) PID 10369920 on the chain.
Live child 0x009e2c48 (..\lib\libwxctb-0.13.a) PID 10369920
Main thread handle = 0x000007a4
/bin/sh: -c: line 2: syntax error: unexpected end of file
Reaping losing child 0x009e2c48 PID 10369920
make: *** [..\lib\libwxctb-0.13.a] Error 258
Removing child 0x009e2c48 PID 10369920 from chain.
Now I know: in my %PATH% environment is another make and also a sh.exe. I could remove it from PATH, but I decided to change the name of the directory temporarily (WinAVR-20090313 --> WinAVR-20090313_). Now I found out, that the make also comes from the wrong pat. But mingw32-make is the make delivered with wxDev-c++ and now the command

Code: Select all

mingw32-make -f makefile.gcc
works and create the wished libraries.

BTW: I would like to see a updated wxctb devpack with the current version 0.13 https://iftools.com/opensource/download.en.php and the pdf doxygen documentation (https://iftools.com/download/ctb/0.13/libwxctb-0.13.pdf) instead of the old 0.8 version. So the problem with building my own library would be obsolete.
Post Reply