Mac OSX 10.11.6
XCode 8.
g++ (GCC) 4.9.2 20141029 (prerelease)
codeblocks-16.01.release build fails when attempting to find non-existant ibwx_osx_cocoau static library (.a).
My system does have the equivalent dylibs.
e.g
g++: error: /usr/local/cellar/wxmac/3.0.2.3/lib/libwx_osx_cocoau_aui-3.0.a: No such file or directory
Problem seems to be that wx-config is requesting these non-existant libraries.
Terminal output also includes many messages of the type
*** Warning: Linking the shared library libcodeblocks.la against the
*** static library /usr/local/cellar/wxmac/3.0.2.3/lib/libwx_osx_cocoau_aui-3.0.a is not portable!
Attached is the config.log
Roger
Hi,
double check option "--with-wx-config=/usr/local/wx-config"
You can try:
$ type wx-config
My result is like this -> /usr/local/bin/wx-config
Check compiler and flags used when wx was built:
$ wx-config --cc --cxx --cxxflags
clang -mmacosx-version-min=10.11
clang++ -mmacosx-version-min=10.11
So, in my case clang++ but not g++ !
Regards,
frankofrank
Thanks Franko,
Your comments put me on the right track.
It turns out that my wx-config link was messed up and pointing to the wrong file!
I deleted that and relinked with
brew link --overwrite wxmac
I then loaded a fresh copy of codeblocks-16.01.release.
Original config and make went beserk!
I then tried ./bootstrap which may not have been necessary
then
./configure --with-contrib-plugins=all CXXFLAGS='-std=c++11'
make then ran happily for quite a long while but eventually failed with a burst of ld errors
Undefined symbols for architecture x86_64:
"non-virtual thunk to wxHtmlWindow::GetHTMLWindow()", referenced from:
vtable for MyHtmlWin in startherepage.o
Googling, "non-virtual thunk" errors seem to be a common problem with little explanation.
However, the original wx-config problem is fixed locally so not a code-blocks bug.
So this bug report can be closed.
Regards,
Roger
Last edit: Roger Mc Murtrie 2016-11-16
I'm glad I was able to help
If You want, You can try my build rev10921: goo.gl/o7zjR8
Regards
frankofrank
On Wed, Nov 16, 2016 at 9:17 AM, Roger Mc Murtrie rogermcm@users.sf.net
wrote:
Related
Tickets:
#406Thanks Franko.
I tried your rec 10921 which worked after I installed tinyxml.
Last edit: Roger Mc Murtrie 2016-11-16
I can put all my libs from /usr/local to CodeBlocks.app
On Wed, Nov 16, 2016 at 5:17 PM, Roger Mc Murtrie rogermcm@users.sf.net
wrote:
Related
Tickets:
#406Get .zip again. I put /usr/local libs inside CodeBlocks.app
On Wed, Nov 16, 2016 at 5:17 PM, Roger Mc Murtrie rogermcm@users.sf.net
wrote:
Related
Tickets:
#406I downloaded your latest .zip which worked fine.
Thanks,
Roger
This can be closed as the last post above indicates it was resolved in 2016.