PDA

View Full Version : Xcode + Makefile




OneDreamCloser
Jun 16, 2008, 12:12 PM
hello everybody,

what i 'm trying to do is to run my C++ project that was developed under Linux
using Xcode. i followed the steps in PortingUnix.pdf (Apple Developer) and my code was builted successfully (i defined compilation and building to be done with a Makefile by creating a new target "built with make").

the problem is that i cannot define the executable
i select Xcode>Project>New Custom Executable ...
the dialogue box asks me to choose an executable path
but it doesn 't let me choose simply for the folder where my project is located
and i don 't know what is asking for :(

any suggestions please ?



OneDreamCloser
Jul 13, 2008, 04:00 PM
http://profile.imageshack.us/user/onedreamcloser/images/detail/#502/xcodemakefileha9.jpg

Cromulent
Jul 13, 2008, 04:25 PM
You select the executable that you have already compiled. Not the folder. If you follow the instructions you just posted it should be pretty clear.

sujithkrishnan
Jul 22, 2008, 09:42 AM
You select the executable that you have already compiled. Not the folder. If you follow the instructions you just posted it should be pretty clear.

How to make the makefile for iPhone application developed through Xcode..
I got the way of creating the build with make...

But being a newbie to mac, i am not familiar with makefile.

I found
Checking Dependencies..
pre-compiling....
Compiling...
Linking .... all in Build results

How to perform all these in makefile ?? (Hope all what showing in the build results are mandatory...)

I tried copying the same in terminal and executed...

But for some commands its showing like gcc-4.0 ......
"{standard input}:unknown:FATAL:can't create output file: /Users/administrator/iPhone/iPhoneDigby/build/iPhoneDigby.build/Debug-iphonesimulator/iPhoneDigby.build/Objects-normal/i386/main.o

Also the

<com.apple.tools.info-plist-utility> Info.plist -genpkginfo /Users/administrator/iPhone/iPhoneDigby/build/Debug-iphonesimulator/iPhoneDigby.app/PkgInfo -expandbuildsettings -o /Users/administrator/iPhone/iPhoneDigby/build/Debug-iphonesimulator/iPhoneDigby.app/Info.plist

is not executing.....

terminal saying

-bash: com.apple.tools.info-plist-utility: No such file or directory



Please help...