User forums > Help

Can't succeed to compile CB SVN against wxWidgets 2.8 under OSX 10.6.8 (solved)

<< < (3/4) > >>

eranon:

--- Quote from: afb on December 04, 2012, 11:26:48 pm ---I don't think the information on the wiki is that outdated, it's what I did for the CodeBlocks.app myself...
But one might emphasis how to do it with llvm-gcc-4.2 and 10.6.sdk in addition to gcc-4.0 and 10.4u.sdk.

--- End quote ---

In fact, in my mind, it's unbelievable it doesn't exist a standalone tool to create a bundle in some clicks ; producing a script which could be ran as automatic post-build step has done by Xcode. Since I look into Mac OS X (ie. some days), I'm impressed by the Apple attempts to keep control and do things appear more complex than it is in reality, while, concretely, a ".app" file is just an archive with its inner tree and this objective to limit external references to stock system libs (oops, "framework") 8)

@Martin : about SDK to use, you have these options (I, myself, indicated the 10.5 being under 10.6), but maybe you will receive more replies opening a new specific thread :


--- Code: ---- Compiler : -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
- Linker : -syslibroot,/Developer/SDKs/MacOSX10.5.sdk
--- End code ---

Martin K.:

--- Quote from: eanon on December 05, 2012, 11:00:29 am ---
@Martin : about SDK to use, you have these options (I, myself, indicated the 10.5 being under 10.6), but maybe you will receive more replies opening a new specific thread :


--- Code: ---- Compiler : -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
- Linker : -syslibroot,/Developer/SDKs/MacOSX10.5.sdk
--- End code ---

--- End quote ---

where does i have to set this options? i have tried it on the configure commandline and it doesn't work.
Unfortunately the 12.11 doesn't run on OS-X 10.8.2, it crashes after opening a source file. If i could compile Code::Blocks, than i whould have a look on it.

Martin

eranon:

--- Quote from: Martin K. on December 06, 2012, 11:47:27 am ---where does i have to set this options? i have tried it on the configure commandline and it doesn't work.

--- End quote ---

Hmmm, in my case, I didn't need to use them to compile Codeblocks against wxWidgets 2.8 dylib, but for my own project, against wxWidgets 2.9 static, I do this to stay compatible with OSX 10.5 :

wxWidgets is configured with options including those (doing the ./configure, make, sudo make install from command line) :

--- Code: -----with-macosx-version-min=10.5 --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk
--- End code ---

Then, my project (linked with the wxWidgets above) includes the options as I told you in my previous post :

--- Code: ---- C::B Compiler options : -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
- C::B Linker options : -syslibroot,/Developer/SDKs/MacOSX10.5.sdk
--- End code ---

Also, of course, take care to have the right SDK in right path. For example, in my case, being under OSX 10.6 with Xcode 4.2, the OSX SDK 10.5 was not delivered automatically : I've had to copy it by myself beside the SDK 10.6.

--
EDIT : also, having compiled C::B from SVN source, I have to say that this SVN 8643 sounds very stable until now on my machine. Only 3 contrib plugins which didn't compile and a Lib Finder which doesn't work (does nothing).

Martin K.:
I'am a little bit deeper on this.

The difference is something in the configure script. config.log of codeblocks configure notes:
configure:2226: checking build system type
configure:2244: result: x86_64-apple-darwin12.2.0

while config.log of wxwidgets configure notes:

configure:1725: checking build system type
configure:1743: result: i686-apple-darwin12.2.0

i gave the same flags to both. And here i'm totally lost, i know nothing about autoconf

Martin

stahta01:

--- Quote from: Martin K. on December 10, 2012, 10:01:02 pm ---I'am a little bit deeper on this.

The difference is something in the configure script. config.log of codeblocks configure notes:
configure:2226: checking build system type
configure:2244: result: x86_64-apple-darwin12.2.0

while config.log of wxwidgets configure notes:

configure:1725: checking build system type
configure:1743: result: i686-apple-darwin12.2.0

i gave the same flags to both. And here i'm totally lost, i know nothing about autoconf

Martin

--- End quote ---

From http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#FYI:_32-bit_or_64-bit


--- Code: ---mkdir x86-build
cd x86-build
../configure --host=i686-apple-darwin8 --target=i686-apple-darwin8 --with-contrib-plugins=all
cd ..

--- End code ---

What did you use for target? I would try "i686-apple-darwin12.2.0" for target and maybe for host.
Not sure what the host should be.

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version