Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lilmeh

macrumors newbie
Original poster
May 19, 2008
5
0
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

macrumors 604
Oct 2, 2006
6,812
1,100
The Land of Hope and Glory
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

macrumors newbie
Original poster
May 19, 2008
5
0
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

macrumors 604
Oct 2, 2006
6,812
1,100
The Land of Hope and Glory
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

macrumors newbie
Original poster
May 19, 2008
5
0
nope does it make a difference that I'm using Leopard and built fink from source?
 

lilmeh

macrumors newbie
Original poster
May 19, 2008
5
0
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

macrumors 604
Oct 2, 2006
6,812
1,100
The Land of Hope and Glory
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.