User forums > Using Code::Blocks
ubuntu keybinder wont compile
Pecan:
compiling keybiner under ubuntu with CB 1762 gets this error
I dont see anything in build options about threads.
--- Code: ----------------- Build: default in C::B KeyBinder ---------------
Compiling: cbkeybinder.cpp
cc1plus: error: invalid option ‘threads’
Process terminated with status 1 (0 minutes, 3 seconds)
0 errors, 0 warnings
--- End code ---
thanks
pecan
Game_Ender:
Trying compiling with the compiler in the "show full command line" mode, that might not be the exact wording. That way you can see exactly what options are being passed to compiler. Then we can help you diagnose a little better. Have you checked in the compiler options, the main ones from the "plugins" menu and all the switches?
Pecan:
--- Quote from: Game_Ender on January 16, 2006, 06:40:24 am ---Trying compiling with the compiler in the "show full command line" mode, that might not be the exact wording. That way you can see exactly what options are being passed to compiler. Then we can help you diagnose a little better. Have you checked in the compiler options, the main ones from the "plugins" menu and all the switches?
--- End quote ---
--- Code: ---------------- Build: default in C::B KeyBinder ---------------
g++ -Wall -g -Winvalid-pch -pipe -mthreads -fmessage-length=0
-fexceptions -include "sdk.h" -DBUILDING_PLUGIN -DCB_PRECOMP
-DWX_PRECOMP -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG
-DTIXML_USE_STL -DwxUSE_UNICODE -I/home/pecan/devel/trunk/src/sdk
-I/home/pecan/devel/trunk/src/sdk/wxscintilla/include
-I/usr/include/wx-2.6/include -I/usr/include/wx-2.6/lib/gcc_dll/mswu
-I/usr/include/wx-2.6/contrib/include -I/usr/include -c cbkeybinder.cpp
-o .objs/cbkeybinder.o
cc1plus: error: invalid option ‘threads’
Process terminated with status 1 (0 minutes, 3 seconds)
0 errors, 0 warnings
--- End code ---
woops, it looks to me like I can't use a .cbp on ubuntu. Look at all
that MSW stuff.
thanks
pecan
takeshimiya:
--- Quote from: Pecan on January 16, 2006, 08:07:32 am ---woops, it looks to me like I can't use a .cbp on ubuntu. Look at all
that MSW stuff.
--- End quote ---
Sadly, you will have to create a cbp with wx-config and all that stuff.
It's a real pity that the projects files can't be multi-platform (when using any library other than STL).
However I've been thinking, and it seems there isn't any easy solution for that. The main problem is the configure (and the detection of library/include paths) stuff.
Something like pkg-config could help though.
Here's a big list of build/configure cross-platform tools that can help for some ideas: http://www.a-a-p.org/tools_install.html
But for now the only solution is to create different cbp for different platforms and compilers. Not so difficult for small projects though.
Pecan:
--- Quote from: Takeshi Miya on January 16, 2006, 08:32:22 am ---...it seems there isn't any easy solution for that.
But for now the only solution is to create different cbp for different platforms and compilers. Not so difficult for small projects though.
--- End quote ---
Thanks. I've spent a week and a half going down this linux road,
and it now appears that if I continue down this road, I'll never get
any productive work done.
I'm way pass my level of incompetence. I feel defeated and sad.
I'll see if I can fix things in windows, then just "run" them on
ubuntu. Maybe that'll work.
Thanks, everyone for all your patience and help.
pecan
Navigation
[0] Message Index
[#] Next page
Go to full version