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

SkyStreak

macrumors newbie
Original poster
Jun 13, 2007
4
0
Using XCode.

I have compiled a framework ( in this case GLUT ) as "Development". I then include this framework in an application and run the application in the debugger. However the debugger will not let me 'step in' to a function in the GLUT framework. How can I do this?

Also - is there a way to see what the actual compile commands that XCode is using? The output window just lists the errors/warnings. Not the actual commands that generated them.
 

Krevnik

macrumors 601
Sep 8, 2003
4,101
1,312
Using XCode.

I have compiled a framework ( in this case GLUT ) as "Development". I then include this framework in an application and run the application in the debugger. However the debugger will not let me 'step in' to a function in the GLUT framework. How can I do this?

Also - is there a way to see what the actual compile commands that XCode is using? The output window just lists the errors/warnings. Not the actual commands that generated them.

Can you confirm that the version of GLUT you compiled is the one being used by the application? If I remember correctly, OS X comes with a GLUT framework which you can't debug.
 

SkyStreak

macrumors newbie
Original poster
Jun 13, 2007
4
0
Which version of glut

I added the glut framework by browsing to the framework that I had compiled and adding that. However it is hard to 'confirm' since I can't seem to see the actual compile commands. Thus my secondary question - since I had the same thought as you.
 

pilotError

macrumors 68020
Apr 12, 2006
2,237
4
Long Island
You can do a otool -L to get the list of libraries the executable is linked with (same as the ldd command on linux).

At least you'll know if you linked against the right thing.
 

SkyStreak

macrumors newbie
Original poster
Jun 13, 2007
4
0
It's linking against the system....

Thx.

I add the GLUT framework by browseing to the GLUT framework I had built - but it's still grabbing the system version of GLUT. Looks like I'll have to set the framework search path to get it to work.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.