User forums > Using Code::Blocks

Problem with fortran project plugin

<< < (3/3)

MortenMacFly:

--- Quote from: Martin K. on October 29, 2012, 10:28:16 am ---Are there any descriptions of how to build it?

--- End quote ---
I think the easiest way is to install an existing nightly build of C::B for the Mac and then use C::B to compile C::B. Note that this may require to install GCC (via XCode) and wxWidgets before. Maybe even to compile wxWidgets for the Mac, if thee is no dev-package...

The hard part is the packaging - I know Mac does strange things there I didn't not understand so it becomes an ".app" package or alike (you should know better). :-\

MortenMacFly:

--- Quote from: MortenMacFly on October 29, 2012, 11:25:32 am ---I think the easiest way is to install an existing nightly build of C::B for the Mac and then use C::B to compile C::B. [...]

--- End quote ---

I am forwarding you here an internal note al lot of these issues are already addressed, however, the first and last part maybe of help:

--- Quote from: MortenMacFly ---Hi all,
I got a Mac for rent and I am collecting my "experiences" with Apple. So far I personally know that I'll definitely not inve$t in a Mac (it's worse than both: Windows and Linux). I'll summarise some of the issues I experienced for reference here:

Pre-requisite:

* You need the right Xcode version for your platform. On mine, for example with Mac OS 10.6.2 I needed exactly Xcode version 3.2.2. All other did not work.
* When installing Xcode, make sure you also enable the "unix" stuff, otherwise the compiler will not be found by configure, autotools etc. and setting up C::B will be a pain.
* It's worth adding these compiler switches permanently to the global compiler options: -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6
* Compilation of wxWidgets I have done in a sub-folder of the wxWidgets sources (wxMac) named "mac_build"
* Compilation commands see below
* As C::B I installed the latest nightly
* I am trying to compile the debugger branch...
Bugs / issues:

* wxPopupWindow is not available on the Mac. I replaced all occurrences with wxWindow as a hack
* wxRE_ADVANCED is not available on the Mac. I replaced all occurrences with wxRE_EXTENDED as a hack
* The linker switch -z defs is not available on the Mac. I removed it from the Unix project file
* The toolbar images have different sizes on the Mac which looks extremely ugly.
* C::B always crashes for me on exit, also if CC is disabled
* Buttons to select a folder mostly don't show the "..." (the dots) which  looks ugly.
* The project's build options don't show targets -> major annoyance, as you have to go through the project options, select the target and then build options to be actually able to change them.
* Codesnippets app does not compile as it links against X11 not present on the Mac -> disabled
* The update shell script does not work ("illegal option -- u"), exchanged cp -fu with cp -u
* copy and strip commands (and therefore a lot of post-build steps) do not work as they search for a *.so file mask, should be *.dylib
* A lot of the plugins have the extension *.so hard-coded in the Unix project file which is simply wrong. All plugins have to use the auto prefix and extension option!
* The "find"/"replace" dialog is mis-sized and looks extremely ugly.
* FileManager: DirectoryMonitor does not compile, disabled that plugin for the moment.
* Linker error "ld: symbol(s) not found" is not recognised as error and the build seems to have succeeded although it does not.
* wxsanimationctrl does not compile in wxSmithLib. Strange it works at all, as the interface used is simply wrong. The docs state the third param should be a const wxAnimation& anim and used is a wxString.
* wxRE_CENTER_CARET not present on the Mac
* References to /bin/bash in update scripts do not work (bash not available)
* All compiled apps I try to run are in the background and C::B seems frozen. Moreover I cannot activate the apps in the background and have to kill them using C::B's stop ("X") button.
*
* ...more to come...
Compilation of wxWidgets:

--- Code: ---cd mac_build
../configure --with-contrib-plugins=all --enable-shared --enable-monolithic --enable-unicode --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6 --with-mac --with-opengl --with-png=builtin --with-jpeg=builtin --with-tiff=builtin --with-expat=builtin
make
sudo make install

--- End code ---

--- End quote ---

Jenna:
And don't forget our wiki:
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X
http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler#Mac_OS_X

Might be outdated (I'm not sure abut that), but probably also helpful.

Martin K.:
This seems to be a little more complicated. wxwidgets doesn't compile on mountain lion, the "nighty" rev7966 crashes all the time and so on...
I will try it again when i have a little bit more time. Maybe at the next weekend.

Martin

Navigation

[0] Message Index

[*] Previous page

Go to full version