Hi, I'm using Fedora 14 x86_64, and I want to built codeblocks based on wxWidgets-2.9.1.
So, at first I remove Fedora official "wxGTK-devel-2.8.11-3", "wxBase-2.8.11.3", and other 2.8.11 wx packages.
I download official wxWidgets-2.9.1, and just rename it to "wxGTK-2.9.1" and repackaged to tar.bz2 file.
the attached "wxGTK.spec.7z" is the file for building wxGTK-2.9.1.
After it finished, I installed "wxGTK-devel-2.9.1" and "wxBase-devel-2.9.1", then I start to build the codeblocks.
The attached "codeblocks(svn6912).7z" is the necessary file for building.
BTW, the "codeblocks-InputMethodFix.patch" is for fixing the keyboard backspace problem when open Chinese input program to type Chinese characters in the codeblocks, for example when make comments on the code.
This patch fixed this backspace issue. But no use on switching status, I mean switch English <-> Chinese.
Normally, when you open Chinese input program to input Chinese characters and want to input English words, you just need to press 'SHIFT' key, then you can freely input English. If you press 'SHIFT' key again, you will can input Chinese again.
This patch still can not work for switching.
So, if someone can kindly to help to strengthen it, will be great!
After I installed wxGTK-2.9.1, I start to build codeblocks, but I got these failed errors:
--------------------------------
....
....
make[3]: Leaving directory `/home/David/rpmbuild/BUILD/codeblocks/src/sdk/wxscintilla'
Making all in wxpropgrid
make[3]: Entering directory `/home/David/rpmbuild/BUILD/codeblocks/src/sdk/wxpropgrid'
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-static-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -I../../../src/sdk/wxpropgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_USE_WXMODULE=0 -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -c -o advprops.lo `test -f './src/advprops.cpp' || echo './'`./src/advprops.cpp
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-static-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -I../../../src/sdk/wxpropgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_USE_WXMODULE=0 -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -c -o editors.lo `test -f './src/editors.cpp' || echo './'`./src/editors.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-static-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -I../../../src/sdk/wxpropgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_USE_WXMODULE=0 -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -c ./src/editors.cpp -fPIC -DPIC -o .libs/editors.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-static-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -I../../../src/sdk/wxpropgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_USE_WXMODULE=0 -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -c ./src/advprops.cpp -fPIC -DPIC -o .libs/advprops.o
In file included from ./src/editors.cpp:61:0:
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:134:0: warning: "wxPGVariant_EmptyString" redefined
/usr/include/wx-2.9/wx/propgrid/propgrid.h:113:0: note: this is the location of the previous definition
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:135:0: warning: "wxPGVariant_Zero" redefined
/usr/include/wx-2.9/wx/propgrid/propgrid.h:114:0: note: this is the location of the previous definition
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:136:0: warning: "wxPGVariant_MinusOne" redefined
/usr/include/wx-2.9/wx/propgrid/propgrid.h:115:0: note: this is the location of the previous definition
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:137:0: warning: "wxPGVariant_True" redefined
/usr/include/wx-2.9/wx/propgrid/propgrid.h:116:0: note: this is the location of the previous definition
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:138:0: warning: "wxPGVariant_False" redefined
/usr/include/wx-2.9/wx/propgrid/propgrid.h:117:0: note: this is the location of the previous definition
In file included from ./src/editors.cpp:61:0:
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:18:22: error: aggregate 'WXDLLIMPEXP_PG wxArrayEditorDialog' has incomplete type and cannot be defined
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:32:22: error: variable 'WXDLLIMPEXP_PG wxPGGlobalVarsClass' has initializer but incomplete type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:32:22: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:34:1: error: expected primary-expression before 'public'
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:34:1: error: expected '}' before 'public'
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:34:1: error: expected ',' or ';' before 'public'
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:37:27: error: expected constructor, destructor, or type conversion before ';' token
In file included from ./src/editors.cpp:61:0:
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:61:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:62:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:63:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:64:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:65:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:66:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:67:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:69:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:72:5: error: 'wxPGVariantDataClassInfo' does not name a type
In file included from ./src/editors.cpp:61:0:
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:102:36: error: non-member function 'int HasExtraStyle(int)' cannot have cv-qualifier
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:107:1: error: expected declaration before '}' token
make[3]: *** [editors.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ./src/advprops.cpp:56:0:
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:134:0: warning: "wxPGVariant_EmptyString" redefined
/usr/include/wx-2.9/wx/propgrid/propgrid.h:113:0: note: this is the location of the previous definition
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:135:0: warning: "wxPGVariant_Zero" redefined
/usr/include/wx-2.9/wx/propgrid/propgrid.h:114:0: note: this is the location of the previous definition
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:136:0: warning: "wxPGVariant_MinusOne" redefined
/usr/include/wx-2.9/wx/propgrid/propgrid.h:115:0: note: this is the location of the previous definition
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:137:0: warning: "wxPGVariant_True" redefined
/usr/include/wx-2.9/wx/propgrid/propgrid.h:116:0: note: this is the location of the previous definition
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:138:0: warning: "wxPGVariant_False" redefined
/usr/include/wx-2.9/wx/propgrid/propgrid.h:117:0: note: this is the location of the previous definition
In file included from ./src/advprops.cpp:56:0:
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:18:22: error: aggregate 'WXDLLIMPEXP_PG wxArrayEditorDialog' has incomplete type and cannot be defined
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:32:22: error: variable 'WXDLLIMPEXP_PG wxPGGlobalVarsClass' has initializer but incomplete type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:32:22: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:34:1: error: expected primary-expression before 'public'
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:34:1: error: expected '}' before 'public'
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:34:1: error: expected ',' or ';' before 'public'
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:37:27: error: expected constructor, destructor, or type conversion before ';' token
In file included from ./src/advprops.cpp:56:0:
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:61:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:62:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:63:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:64:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:65:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:66:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:67:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:69:5: error: 'wxPGVariantDataClassInfo' does not name a type
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:72:5: error: 'wxPGVariantDataClassInfo' does not name a type
In file included from ./src/advprops.cpp:56:0:
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:102:36: error: non-member function 'int HasExtraStyle(int)' cannot have cv-qualifier
../../../src/sdk/wxpropgrid/include/wx/propgrid/propdev.h:107:1: error: expected declaration before '}' token
make[3]: *** [advprops.lo] Error 1
make[3]: Leaving directory `/home/David/rpmbuild/BUILD/codeblocks/src/sdk/wxpropgrid'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/David/rpmbuild/BUILD/codeblocks/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/David/rpmbuild/BUILD/codeblocks/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.g2mIQx (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.g2mIQx (%build)
--------------------------------
what's happened?
I noticed that codeblocks supported for build with wx > 2.8.10 from svn 6907.
http://svn.berlios.de/wsvn/codeblocks/trunk/?op=revision&rev=6907&peg=6907could anyone kindly help me?
Best regards.
David.