View Full Version : Glibmm, Gtk, and Xcode
lilmeh
May 19, 2008, 12:33 PM
hi guys,
I'm tryin to build within xcode (by just pressing the build button) and although I have fink installed, I can't get it to compile with glibmm as well ("bugs" detected whereever glib is mentioned/linked within code).
I'm new to Xcode although not new to C++, help would be greatly appreciated.
Cromulent
May 19, 2008, 01:14 PM
hi guys,
I'm tryin to build within xcode (by just pressing the build button) and although I have fink installed, I can't get it to compile with glibmm as well ("bugs" detected whereever glib is mentioned/linked within code).
I'm new to Xcode although not new to C++, help would be greatly appreciated.
You need to setup the paths for libraries and includes in your .profile file in your home directory. If you installed them with Fink then the paths you need to add are /sw/local/lib and /sw/local/include iirc.
Also make sure to include the libraries in your project as well.
lilmeh
May 20, 2008, 06:31 AM
this is my .profile now:
test -r /sw/bin/init.sh && . /sw/bin/init.sh
/sw/local/lib
/sw/local/include iirc
but it still doesn't work?
I suck. :(
Cromulent
May 20, 2008, 01:12 PM
It should look something like this:
export PATH="$PATH:/usr/local/hla:/usr/local/bin:/usr/local/sbin:/sw/local/bin$"
export LD_LIBRARY_PATH="/usr/local/lib:/sw/local/lib"
export LIBRARY_PATH="/usr/local/lib:/sw/local/lib"
export C_INCLUDE_PATH="/usr/local/include:/sw/local/include"
export EDITOR="/usr/bin/nano"
export hlalib="/usr/local/hla/hlalib/hlalib.a"
export hlainc="/usr/local/hla/include"
export hlatemp="/tmp"
bold lines are the ones you are interested in. Change them accordingly.
lilmeh
May 21, 2008, 05:55 AM
nope does it make a difference that I'm using Leopard and built fink from source?
Cromulent
May 21, 2008, 07:10 AM
nope does it make a difference that I'm using Leopard and built fink from source?
Did you include the libraries in your Xcode project? What does your .profile file look like now? Make sure the paths are indeed correct, I don't have Fink on my system and had to do it from memory.
lilmeh
May 21, 2008, 12:15 PM
Did you include the libraries in your Xcode project?
you mean the #include headers right? if yes, then yes, I have them but Xcode says "glibmm.hh not found" etc.
What does your .profile file look like now?
test -r /sw/bin/init.sh && . /sw/bin/init.sh
export PATH="$PATH:/usr/local/hla:/usr/local/bin:/usr/local/sbin:/sw/local/bin$"
export LD_LIBRARY_PATH="/usr/local/lib:/sw/local/lib"
export LIBRARY_PATH="/usr/local/lib:/sw/local/lib"
export C_INCLUDE_PATH="/usr/local/include:/sw/local/include"
Cromulent
May 21, 2008, 12:20 PM
you mean the #include headers right? if yes, then yes, I have them but Xcode says "glibmm.hh not found" etc.
No I meant the libraries. Did you include the libraries in your project by going to the Edit Project Settings menu item (or similar)?
Also as I said before make sure the paths in .profile are correct.
lilmeh
May 22, 2008, 09:38 AM
No I meant the libraries. Did you include the libraries in your project by going to the Edit Project Settings menu item (or similar)?
no sorry, I'm new to xcode so don't know how :(
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.