Hi.
I am currently trying to build C::B on Mac but..... it fails :-\
As I saw that frankofrank has made a build with wx-3.1.0, I tried with a recently updated git clone of wx-3.1.1
I've made a dynamic build of wxWidgets, and made a copy of wx-config in /usr/local/bin so it callable from any terminal window.
Then I have:
- created a copy of the C::B svn repo
- called bootstrap
- created a "buildtest" sub folder and "cd" into it
- made a call to ../configure --with-platform=macosx
The configure script stopped while checking for zlib :
../configure: line 17846: syntax error near unexpected token `zlib,'
../configure: line 17846: `PKG_CHECK_MODULES(zlib, zlib, HAVE_ZLIB=yes, HAVE_ZLIB=no)'
I've tried to "brew install zlib" but after installing, brew said that osx already have this package:
This formula is keg-only, which means it was not symlinked into /usr/local.
macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/zlib/lib
CPPFLAGS: -I/usr/local/opt/zlib/include
PKG_CONFIG_PATH: /usr/local/opt/zlib/lib/pkgconfig
And the configure script always fails.
Any idea ?
I also saw that the wxWidgets build process hasn't found it, and used the built-in version.
Regards
Xav'
Hi
Have you solved this issue?
I got the same problem when build the cb in MacOSX 10.12.
Yes I did (but I don't know how :-\ )
I've just cleaned my own build sub dir, re-ran bootstrap and configure :
cd buildtest
../bootstrap
../configure --with-platform=macosx
The configure process gave me the following result :
*************************************************
* Code::Blocks source tree has been configured. *
*************************************************
You can now build Code::Blocks by issuing 'make'.
When the build is complete, become root and install
it by issuing 'make install'.
CFLAGS: -O2 -ffast-math -fPIC -std=c90
CXXFLAGS: -O2 -ffast-math -Winvalid-pch -fPIC -fexceptions
CPPFLAGS: -DCB_AUTOCONF -DCB_PRECOMP -DPIC -I$(top_srcdir)/src/include/tinyxml -DTIXML_USE_STL=YES
LDFLAGS:
CXX: g++ -std=c++11
CC: gcc
I've launched the make process, but I had an error :
../../../src/sdk/configmanager.cpp:1515:98: error: no member named 'GetInstallPrefix' in 'wxStandardPaths'
ConfigManager::plugin_path_global = ((const wxStandardPaths&)wxStandardPaths::Get()).GetInstallPrefi...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
../../../src/sdk/configmanager.cpp:1520:102: error: no member named 'GetInstallPrefix' in 'wxStandardPaths'
ConfigManager::plugin_path_global = ((const wxStandardPaths&)wxStandardPaths::Get()).GetInstallP...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
2 errors generated.
If I comment these 2 lines (they are non-osx related), the build process seems to be ok.
Edit: I tried again with wx-3.0.3 (the previous steps were with wx-3.1.1) and I was able to uncomment these lines.
The next step will be to create a bundle but I didn't tried this yet.
Regards
Xav'