Menu

#406 codeblocks-16.01.release build fails on Mac OSX 10.11.6

Undefined
invalid
None
Bug_Report
2022-07-07
2016-09-29
No

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

1 Attachments

Related

Tickets: #406

Discussion

  • Franko F

    Franko F - 2016-11-15

    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

     
  • Roger Mc Murtrie

    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
    • Franko F

      Franko F - 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:

      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:
      which I'll have to look into.

      However, the original wx-config problem is fixed locally so not a
      code-blocks bug.
      So this bug report can be closed.


      Status: open
      Milestone: Undefined
      Created: Thu Sep 29, 2016 10:38 PM UTC by Roger Mc Murtrie
      Last Updated: Tue Nov 15, 2016 01:06 PM UTC
      Owner: nobody
      Attachments:

      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
        http://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

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/codeblocks/tickets/406/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #406

  • Roger Mc Murtrie

    Thanks Franko.
    I tried your rec 10921 which worked after I installed tinyxml.

     

    Last edit: Roger Mc Murtrie 2016-11-16
    • Franko F

      Franko F - 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:

      Thanks Franko.
      I tried your rec 10921 but it failed with:
      Dyld Error Message:
      Library not loaded: /usr/local/opt/tinyxml/lib/libtinyxml.dylib
      Referenced from: /Applications_2/CodeBlocks Franko.app/Contents/MacOS/
      CodeBlocks
      Reason: image not found

      I'll try and install tinyxml to fix this.

      Status: open
      Milestone: Undefined
      Created: Thu Sep 29, 2016 10:38 PM UTC by Roger Mc Murtrie
      Last Updated: Wed Nov 16, 2016 08:17 AM UTC
      Owner: nobody
      Attachments:

      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
        http://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

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/codeblocks/tickets/406/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #406

    • Franko F

      Franko F - 2016-11-16

      Get .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:

      Thanks Franko.
      I tried your rec 10921 but it failed with:
      Dyld Error Message:
      Library not loaded: /usr/local/opt/tinyxml/lib/libtinyxml.dylib
      Referenced from: /Applications_2/CodeBlocks Franko.app/Contents/MacOS/
      CodeBlocks
      Reason: image not found

      I'll try and install tinyxml to fix this.

      Status: open
      Milestone: Undefined
      Created: Thu Sep 29, 2016 10:38 PM UTC by Roger Mc Murtrie
      Last Updated: Wed Nov 16, 2016 08:17 AM UTC
      Owner: nobody
      Attachments:

      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
        http://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

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/codeblocks/tickets/406/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #406

      • Roger Mc Murtrie

        I downloaded your latest .zip which worked fine.
        Thanks,
        Roger

         
  • Andrew Cottrell

    Andrew Cottrell - 2022-07-06

    This can be closed as the last post above indicates it was resolved in 2016.

     
  • Martin Halle

    Martin Halle - 2022-07-07
    • status: open --> invalid
    • assigned_to: Morten MacFly
     

Log in to post a comment.

MongoDB Logo MongoDB