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

debug

macrumors newbie
Original poster
Nov 18, 2009
4
0
Hello there-

I've been fiddling around learning c++ in my spare time and writing plugins for nuke (the comp package) however writing the code in textmate and then switching to the terminal and running make is becoming tiresome so i've been trying to translate the makefile into the xcode build settings, ive got it compiling and linking however when i go to use the plug-in it causes a crash in the software any ideas what i could be doing wrong? here are screenshots of my build settings from xcode and a screenshot of the makefile

it might help to know that the dylib that xcode creates is 88k and the dylib that the makefile creates is 64k.

thanks
 

Attachments

  • Picture 1.png
    Picture 1.png
    73.6 KB · Views: 285
  • Picture 2.png
    Picture 2.png
    150.2 KB · Views: 267
  • Picture 3.png
    Picture 3.png
    149 KB · Views: 144
  • Picture 4.png
    Picture 4.png
    156.3 KB · Views: 129
  • Picture 5.png
    Picture 5.png
    158.7 KB · Views: 159
Just create an Xcode project that uses 'make' to build your program using the existing makefile.

In the list of Xcode templates for a New Project, click Other, then choose External Build System.

Open the target and you'll see the Custom Build Command is /usr/bin/make.

Now move your makefile and source into place.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.