compiling keybiner under ubuntu with CB 1762 gets this error
I dont see anything in build options about threads.
-------------- 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
thanks
pecan
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?
------------- 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
woops, it looks to me like I can't use a .cbp on ubuntu. Look at all
that MSW stuff.
thanks
pecan
thanks Yiannis
But it seems to want some manager stuff that isn't there.
Compile log attached.
Oh, that :)
We removed the sdk/Managers folder a couple of days ago but it seems I haven't updated the project file :oops:
Just remove them from the project file (sdk/Managers/*)...
I removed all sdk/Managers/* from the unix.cbp but still get
the err.
-------------- Build: AutoRevision in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: ConsoleRunner in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: tinyXML in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: AngelScript in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: scintilla in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: wxFlatNotebook in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: wxPropertyGrid in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: sdk in Code::Blocks - Unix ---------------
Running target pre-build steps
tools/autorevision/auto_revision +wx +int +t . sdk/autorevision.h
Linking dynamic library: devel/libcodeblocks.so
g++: .objs/sdk/Managers/StdAfx.o: No such file or directory
Process terminated with status 1 (0 minutes, 27 seconds)
0 errors, 0 warnings
Please find attached the .cbp file
thanks,
pecan
[attachment deleted by admin]
Ok, finally managed to compile codeblocks with codeblocks.
Then did the ./update
Then run the ./run.sh
Now, how do I run the run.sh with GDB.
#!/ bin/sh <--space after ./ and before "bin" to appease apache error
APP_DIR=/home/pecan/devel/trunk/src/output
export LD_LIBRARY_PATH=$APP_DIR:$LD_LIBRARY_PATH
$APP_DIR/codeblocks $@
I tried "gdb $APP_DIR/codeblocks $@ "
then "$APP_DIR/gdb codeblocks $@ "
The first runs, but says there are (no debugging symbols found)" about 100 times.
The second wont run at all.
Any suggestions? I need to run under gdb to catch plugin initiation errs.
thanks
pecan
Ok, finally managed to compile codeblocks with codeblocks.
Then did the ./update
Then run the ./run.sh
Now, how do I run the run.sh with GDB.
#!/ bin/sh <--space after ./ and before "bin" to appease apache error
APP_DIR=/home/pecan/devel/trunk/src/output
export LD_LIBRARY_PATH=$APP_DIR:$LD_LIBRARY_PATH
$APP_DIR/codeblocks $@
I tried "gdb $APP_DIR/codeblocks $@ "
then "$APP_DIR/gdb codeblocks $@ "
The first runs, but says there are (no debugging symbols found)" about 100 times.
The second wont run at all.
Any suggestions? I need to run under gdb to catch plugin initiation errs.
thanks
pecan
Copy the devel/run.sh to devel/dbg.sh and edit it as you did above:
$APP_DIR/codeblocks $@
// change it to
gdb $APP_DIR/codeblocks $@
Then just run devel/dbg.sh :)