User forums > General (but related to Code::Blocks)
Issues compiling Code::Blocks
Conan Kudo:
I'm trying to compile Code::Blocks rev5883 with wxWidgets SVN trunk rev62482 and I get the following error:
--- Code: ---Skuld:macbuild ngompa$ make
Making all in src
Making all in base
Making all in tinyxml
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in build_tools
Making all in autorevision
./auto_revision +int +wx +t ../../../.. ../../../../src/include/autorevision.h
make[3]: Nothing to be done for `all-am'.
Making all in include
make all-recursive
Making all in scripting
Making all in squirrel
make[5]: Nothing to be done for `all'.
Making all in sqstdlib
make[5]: Nothing to be done for `all'.
Making all in sqplus
make[5]: Nothing to be done for `all'.
Making all in bindings
make[5]: Nothing to be done for `all'.
Making all in include
make[5]: Nothing to be done for `all'.
make[5]: Nothing to be done for `all-am'.
Making all in tinyxml
make[4]: Nothing to be done for `all'.
Making all in wxscintilla
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in mime
make[2]: Nothing to be done for `all'.
Making all in sdk
Making all in scripting
Making all in squirrel
make[4]: Nothing to be done for `all'.
Making all in sqstdlib
make[4]: Nothing to be done for `all'.
Making all in sqplus
make[4]: Nothing to be done for `all'.
Making all in bindings
/bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I../../../../../src/sdk/scripting/bindings -I/usr/local/lib/wx/include/osx_cocoa-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -I../../../../../src/include -I../../../../../src/include/wxscintilla/include -I../../../../../src/include/scripting/include -I../../../../../src/include/scripting/bindings -I../../../../../src/include/scripting/sqplus -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -arch i386 -m32 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT sc_wxtypes.lo -MD -MP -MF .deps/sc_wxtypes.Tpo -c -o sc_wxtypes.lo ../../../../../src/sdk/scripting/bindings/sc_wxtypes.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I../../../../../src/sdk/scripting/bindings -I/usr/local/lib/wx/include/osx_cocoa-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -I../../../../../src/include -I../../../../../src/include/wxscintilla/include -I../../../../../src/include/scripting/include -I../../../../../src/include/scripting/bindings -I../../../../../src/include/scripting/sqplus -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -arch i386 -m32 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT sc_wxtypes.lo -MD -MP -MF .deps/sc_wxtypes.Tpo -c ../../../../../src/sdk/scripting/bindings/sc_wxtypes.cpp -fno-common -DPIC -o .libs/sc_wxtypes.o
../../../../../src/sdk/scripting/bindings/sc_wxtypes.cpp: In function ‘void ScriptBindings::Register_wxTypes()’:
../../../../../src/sdk/scripting/bindings/sc_wxtypes.cpp:270: error: no matching function for call to ‘SqPlus::SQClassDef<wxFileName>::func(<unresolved overloaded function type>, const char [7])’
make[4]: *** [sc_wxtypes.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
--- End code ---
My configure commands were identical to what was required on the wiki except it was using CFLAGS="-arch i386 -m32" and --with-osx_cocoa
Before, I did it without the CFLAGS and the same error occurs. I don't really know what's going on here...
stahta01:
I suggest trying wxWidgets 2.8 branch instead of wxWidgets trunk.
Code::Blocks still has a few issues for compiling with wxWidgets trunk under windows let alone Mac. 2.9.0 almost works alright. But, wxWidgets trunk changed a few more things.
Tim S.
Conan Kudo:
--- Quote from: stahta01 on October 23, 2009, 03:58:42 pm ---I suggest trying wxWidgets 2.8 branch instead of wxWidgets trunk.
Code::Blocks still has a few issues for compiling with wxWidgets trunk under windows let alone Mac. 2.9.0 almost works alright. But, wxWidgets trunk changed a few more things.
Tim S.
--- End quote ---
I'm compiling against wx trunk because a rather irritating bug exists in wxMac on wx2.8 branch. The Font dialog closes as soon as it is opened, which doesn't let me increase the font size of the editor.
stahta01:
--- Quote from: Pharaoh Atem on October 23, 2009, 06:38:24 pm ---
--- Quote from: stahta01 on October 23, 2009, 03:58:42 pm ---I suggest trying wxWidgets 2.8 branch instead of wxWidgets trunk.
Code::Blocks still has a few issues for compiling with wxWidgets trunk under windows let alone Mac. 2.9.0 almost works alright. But, wxWidgets trunk changed a few more things.
Tim S.
--- End quote ---
I'm compiling against wx trunk because a rather irritating bug exists in wxMac on wx2.8 branch. The Font dialog closes as soon as it is opened, which doesn't let me increase the font size of the editor.
--- End quote ---
You will then most likely have to solve the problems on you own.
You might check the BerliOS site for un-applied wx 2.9 patches; but, most of the ones I submitted have already been compiled.
I will take a look and try for a fast patch and see if I see the fix.
Found old patch submitted in next message.
Never had time to fix the next error; and, forget what it was.
Tim S.
stahta01:
Patch from about 2 months ago; I have not had time since then to compile against wx trunk.
Tim S.
--- Code: ---Index: src/sdk/scripting/bindings/sc_wxtypes.cpp
===================================================================
--- src/sdk/scripting/bindings/sc_wxtypes.cpp (revision 5651)
+++ src/sdk/scripting/bindings/sc_wxtypes.cpp (working copy)
@@ -229,7 +229,11 @@
typedef void(wxFileName::*WXFN_ASSIGN_FN)(const wxFileName&);
typedef void(wxFileName::*WXFN_ASSIGN_STR)(const wxString&, wxPathFormat);
typedef wxString(wxFileName::*WXFN_GETPATH)(int, wxPathFormat)const;
+ #if wxCHECK_VERSION(2, 9, 1)
+ typedef bool(wxFileName::*WXFN_SETCWD)()const;
+ #else
typedef bool(wxFileName::*WXFN_SETCWD)();
+ #endif
SqPlus::SQClassDef<wxFileName>("wxFileName").
emptyCtor().
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version