Author Topic: Issues compiling Code::Blocks  (Read 13646 times)

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
Issues compiling Code::Blocks
« on: October 23, 2009, 07:42:19 am »
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


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...
« Last Edit: October 25, 2009, 04:35:08 am by Pharaoh Atem »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Issues compiling Code::Blocks on Mac
« Reply #1 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.


C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
Re: Issues compiling Code::Blocks on Mac
« Reply #2 on: October 23, 2009, 06:38:24 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.




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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Issues compiling Code::Blocks on Mac
« Reply #3 on: October 23, 2009, 07:11:36 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.




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.

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.

« Last Edit: October 23, 2009, 07:16:54 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Issues compiling Code::Blocks on Mac
« Reply #4 on: October 23, 2009, 07:13:56 pm »
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().
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
Re: Issues compiling Code::Blocks on Mac
« Reply #5 on: October 23, 2009, 07:30:30 pm »
That fixed that error!

However, here is the next one:

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'.
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/include/scripting/sqplus/sqplus.h: In static member function ‘static SQInteger SqPlus::DirectCallInstanceMemberFunction<Callee, Func>::Dispatch(SQVM*) [with Callee = wxFileName, Func = wxString (*)(const wxString&)]’:
../../../../../src/include/scripting/sqplus/sqplus.h:1313:   instantiated from ‘void SqPlus::sq_pushdirectinstanceclosure(SQVM*, const Callee&, Func, SQUnsignedInteger) [with Callee = wxFileName, Func = wxString (*)(const wxString&)]’
../../../../../src/include/scripting/sqplus/sqplus.h:1397:   instantiated from ‘void SqPlus::RegisterInstance(SQVM*, HSQOBJECT, Callee&, Func, const SQChar*) [with Callee = wxFileName, Func = wxString (*)(const wxString&)]’
../../../../../src/include/scripting/sqplus/sqplus.h:1751:   instantiated from ‘SqPlus::SQClassDef<TClassType>& SqPlus::SQClassDef<TClassType>::func(Func, const SQChar*) [with Func = wxString (*)(const wxString&), TClassType = wxFileName]’
../../../../../src/sdk/scripting/bindings/sc_wxtypes.cpp:248:   instantiated from here
../../../../../src/include/scripting/sqplus/sqplus.h:1244: error: no matching function for call to ‘Call(wxFileName&, wxString (*&)(const wxString&), SQVM*&, int)’
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
Skuld:macbuild ngompa$

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Issues compiling Code::Blocks on Mac
« Reply #6 on: October 24, 2009, 06:41:55 am »
I need the line at sc_wxtypes.cpp:248 to look at the cause.
Tim S.

Code
../../../../../src/sdk/scripting/bindings/sc_wxtypes.cpp:248:   instantiated from here
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
Re: Issues compiling Code::Blocks on Mac
« Reply #7 on: October 24, 2009, 07:09:02 am »
I need the line at sc_wxtypes.cpp:248 to look at the cause.
Tim S.

Code
../../../../../src/sdk/scripting/bindings/sc_wxtypes.cpp:248:   instantiated from here

Here is the line:
Code
                func(&wxFileName::GetCwd, "GetCwd").

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Issues compiling Code::Blocks on Mac
« Reply #8 on: October 24, 2009, 06:21:05 pm »
On my source code that line is commented out.

Tim S.

Code
//                func(&wxFileName::GetCwd, "GetCwd").
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
Re: Issues compiling Code::Blocks on Mac
« Reply #9 on: October 24, 2009, 07:16:24 pm »
On my source code that line is commented out.

Tim S.

Code
//                func(&wxFileName::GetCwd, "GetCwd").

That worked, and it continued until it encountered this 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'.
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
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in wxscintilla
make[3]: Nothing to be done for `all'.
Making all in resources
Making all in lexers
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src/include -I../../../src/sdk -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/tinyxml -I../../../src/include/scripting/include -I../../../src/include/scripting/sqplus -I../../../src/include/mozilla_chardet  -Ulinux -Uunix  -O2 -ffast-math -DCB_AUTOCONF -arch i386 -m32 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT configmanager.lo -MD -MP -MF .deps/configmanager.Tpo -c -o configmanager.lo ../../../src/sdk/configmanager.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src/include -I../../../src/sdk -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/tinyxml -I../../../src/include/scripting/include -I../../../src/include/scripting/sqplus -I../../../src/include/mozilla_chardet -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -arch i386 -m32 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT configmanager.lo -MD -MP -MF .deps/configmanager.Tpo -c ../../../src/sdk/configmanager.cpp  -fno-common -DPIC -o .libs/configmanager.o
../../../src/sdk/configmanager.cpp:39:44: error: wx/mac/corefoundation/cfstring.h: No such file or directory
../../../src/sdk/configmanager.cpp: In function ‘wxString<unnamed>::DetermineResourcesPath()’:
../../../src/sdk/configmanager.cpp:130: error: ‘wxMacCFStringHolder’ was not declared in this scope
make[3]: *** [configmanager.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Skuld:macbuild ngompa$

I rebuilt wx with carbon instead, and I still see the same error. I looked at the wx source tree, and I noticed three things:

1) wx/mac/ doesn't exist; it is wx/osx/ now.
2) there is no /corefoundation subdirectory
3) cfstring.h exists in wx/osx/core directory

Here is the directory tree of includes...

Code
Skuld:wx ngompa$ ls ./osx
accel.h [core] font.h msgdlg.h spinbutt.h
app.h cursor.h fontdlg.h nonownedwnd.h spinctrl.h
bitmap.h dataform.h frame.h notebook.h srchctrl.h
bmpbuttn.h dataobj.h gauge.h palette.h statbmp.h
brush.h dataobj2.h glcanvas.h pen.h statbox.h
button.h dataview.h helpxxxx.h pnghand.h statline.h
[carbon] dc.h icon.h pngread.h stattext.h
checkbox.h dcclient.h imaglist.h popupwin.h statusbr.h
checklst.h dcmemory.h joystick.h printdlg.h taskbarosx.h
chkconf.h dcprint.h listbox.h printmac.h textctrl.h
choice.h dcscreen.h listctrl.h private.h tglbtn.h
clipbrd.h dialog.h mdi.h radiobox.h toolbar.h
[cocoa] dirdlg.h menu.h radiobut.h tooltip.h
colordlg.h dnd.h menuitem.h region.h toplevel.h
colour.h evtloop.h metafile.h scrolbar.h treectrl.h
combobox.h evtloopsrc.h mimetype.h slider.h uma.h
control.h filedlg.h minifram.h sound.h window.h
Skuld:wx ngompa$ ls ./osx/core
cfdataref.h cfstring.h hid.h private stdpaths.h
cfref.h colour.h joystick.h private.h
Skuld:wx ngompa$ ls ./osx/carbon
chkconf.h [private] region.h uma.h
evtloop.h private.h statbmp.h
Skuld:wx ngompa$ ls ./osx/carbon/private
mactext.h overlay.h print.h
Skuld:wx ngompa$ ls ./osx/cocoa
chkconf.h dataview.h evtloop.h private.h

« Last Edit: October 24, 2009, 07:50:06 pm by Pharaoh Atem »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Issues compiling Code::Blocks on Mac
« Reply #10 on: October 25, 2009, 02:35:17 am »
I am a Windows person who knows a little Linux; the Mac issues with wxWidgets changes are way past the area where I can help.

Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
Re: Issues compiling Code::Blocks
« Reply #11 on: October 25, 2009, 04:37:18 am »
I am a Windows person who knows a little Linux; the Mac issues with wxWidgets changes are way past the area where I can help.

Tim S.



Okay. Then perhaps you can help with this?

I'm also building it on Windows, and I already applied the patches from earlier.

I'm attaching the errorlog. This is with the same revisions of wx and C::B.



[attachment deleted by admin]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Issues compiling Code::Blocks
« Reply #12 on: October 25, 2009, 07:32:39 am »
I am a Windows person who knows a little Linux; the Mac issues with wxWidgets changes are way past the area where I can help.

Tim S.



Okay. Then perhaps you can help with this?

I'm also building it on Windows, and I already applied the patches from earlier.

I'm attaching the errorlog. This is with the same revisions of wx and C::B.



Your problem is either the wrong build options for wxWidgets or the wrong search directory inside Code::Blocks.

USE_STC=0 (and wxUSE_STC set to 0 inside setup.h) should used in building wxWidgets.

Tim S.


C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
Re: Issues compiling Code::Blocks
« Reply #13 on: October 25, 2009, 04:43:07 pm »
I am a Windows person who knows a little Linux; the Mac issues with wxWidgets changes are way past the area where I can help.

Tim S.



Okay. Then perhaps you can help with this?

I'm also building it on Windows, and I already applied the patches from earlier.

I'm attaching the errorlog. This is with the same revisions of wx and C::B.



Your problem is either the wrong build options for wxWidgets or the wrong search directory inside Code::Blocks.

USE_STC=0 (and wxUSE_STC set to 0 inside setup.h) should used in building wxWidgets.

Tim S.




wxWidgets cannot build when USE_STC=0, but with wxUSE_STC set to 0 in setup.h, the same errors still happen...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Issues compiling Code::Blocks
« Reply #14 on: October 25, 2009, 09:20:23 pm »
wxWidgets cannot build when USE_STC=0, but with wxUSE_STC set to 0 in setup.h, the same errors still happen...

Builds for me every time I do them both.
Edit: started Wiki Page
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.9.0_to_develop_Code::Blocks_(MSW)

Edit: Inside which file are you changing wxUSE_STC?

Edit: My directions assumed you were an expert at building wxWidgets.
The easiest way for beginners to do it is
1. Delete the stuff under lib\gcc_dll
    a. do a clean
    b. delete all the rest
2. Edit include\wx\msw\setup.h (If it does not exist copy setup0.h to setup.h)
    Change wxUSE_STC to zero
3. Do a normal build
    
Code
    mingw32-make -f makefile.gcc USE_STC=0 USE_PROPGRID=1 USE_OPENGL=0 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 CPPFLAGS="-Wmissing-include-dirs"
    

I change step 2 to this when I do it because I build wxWidgets so many different ways is it easier to never change setup.h under include\wx\msw
NOTE: You should never need to change include\wx\msw\setup0.h

Correction the file setup0.h should not be edited; been too long since I did it the old way.

After deleting/Cleaning
2a. recreate the folders under lib\gcc_dll to hold the modified setup.h
2b. use SED.exe to change the values I need changed and save it in the correct folder under lib\gcc_dll


Tim S.
« Last Edit: October 27, 2009, 05:37:50 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Issues compiling Code::Blocks
« Reply #15 on: October 27, 2009, 05:21:11 pm »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Issues compiling Code::Blocks
« Reply #16 on: October 27, 2009, 05:39:03 pm »
The wiki page was not there when I just click the link in your post.
So, the correct url address is:

http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.9.0_to_develop_Code::Blocks_(MSW)

Corrected link I hope.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org