Author Topic: Two issues with C::B 13.12 SVN with wxWidgets 3.1 on OSX 10.10  (Read 8701 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Two issues with C::B 13.12 SVN with wxWidgets 3.1 on OSX 10.10
« Reply #15 on: June 08, 2015, 07:26:46 am »
I made several fixes for the C::B sources, but the fortran-plugin is not maintained by us and so the fixes are not there.
If you provide them to me, I can apply the fixes.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline juanfal

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Two issues with C::B 13.12 SVN with wxWidgets 3.1 on OSX 10.10
« Reply #16 on: June 25, 2015, 10:36:41 am »
Hi, calling for help, SOS!

trying to make C::B work with Spanish keyboard. I think some other keyboards fail too.  It is impossible to do anything when the opening-curly-brace does not work, you can imagine.

Thanks Anders F Björklund, I have known there could be some patches for src/sdk/wxscintilla/src/ScintillaWX.cpp
Code
-
-    if (key)
-        return rv;
-    else
-        return 1;
etc, etc.

It seems somehow brew could install it, and even before that, I could put the .patch files in the Cellar directories.

No luck with anything.

Nor brew can install code blocks
Code
$ brew install codeblocks
Error: No available formula for codeblocks
Searching formulae...
Searching taps...
Caskroom/cask/codeblocks
nor I can compile it from sources
Code
Making all in autorevision
/bin/sh ../../../libtool  --tag=CXX   --mode=link g++ -DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF  -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions  -Wl,--no-undefined -o auto_revision auto_revision-autorevision.o ../../base/tinyxml/libtinyxml.la
libtool: link: g++ -DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -Wl,--no-undefined -o auto_revision auto_revision-autorevision.o -Wl,-bind_at_load  ../../base/tinyxml/.libs/libtinyxml.a
ld: unknown option: --no-undefined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [auto_revision] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

…nothing

How could I compile, Yosemite 10.10.3, just to start to find a fix for the { problem?

Thanks


Online stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: Two issues with C::B 13.12 SVN with wxWidgets 3.1 on OSX 10.10
« Reply #17 on: June 25, 2015, 01:44:32 pm »
Did you try the steps in this thread for homebrew http://forums.codeblocks.org/index.php/topic,20366.0.html

Tim S.


Hi, calling for help, SOS!

trying to make C::B work with Spanish keyboard. I think some other keyboards fail too.  It is impossible to do anything when the opening-curly-brace does not work, you can imagine.

Thanks Anders F Björklund, I have known there could be some patches for src/sdk/wxscintilla/src/ScintillaWX.cpp
Code
-
-    if (key)
-        return rv;
-    else
-        return 1;
etc, etc.

It seems somehow brew could install it, and even before that, I could put the .patch files in the Cellar directories.

No luck with anything.

Nor brew can install code blocks
Code
$ brew install codeblocks
Error: No available formula for codeblocks
Searching formulae...
Searching taps...
Caskroom/cask/codeblocks
…nothing

How could I compile, Yosemite 10.10.3, just to start to find a fix for the { problem?

Thanks
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 afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Two issues with C::B 13.12 SVN with wxWidgets 3.1 on OSX 10.10
« Reply #18 on: June 28, 2015, 12:29:15 pm »
I haven't submitted the formula yet, since homebrew wants release versions (and not only --HEAD)
And the "last release" (13.12) doesn't work with wxWidgets 3, so think it'll have to wait until next release.

Stable versions

Formulae in the core repository must have a stable version tagged by the upstream project. Tarballs are preferred to git checkouts, and tarballs should include the version in the filename whenever possible.

For the actual error, I think the fix was as simple as:
Code
 inreplace "configure", "-Wl,--no-undefined", "-Wl,-undefined,error"

This fix and the fix for *.so (vs *.dylib) should be prepared to be fixed properly/upstream, for OS X.
Currently this is left as an exercise for the reader, Code::Blocks needs real OS X developer to volunteer.

But if you want to apply some additional patches, you can probably just throw them in at the end:
https://github.com/afb/homebrew/blob/codeblocks-osx/Library/Formula/codeblocks.rb