New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

RE: make, xcode and the such


Post Reply New Thread Subscribe

 
Thread Tools
tonk

 
Member Since: Jan 25, 2012
Posts: 14
tonk is on a distinguished road

tonk is offline
Hello everyone, its my first post -> decided to join, since google reidrects me here most of the time anyway

I just got a macbook pro 2011 couple months ago -> i'm sailing from windows/ubuntu world. Although, I really love Mac OS X and my new laptop, but xCode feels really awkward (to say the least)...looks really nice though.

So, i have several issues i can't wrap my head around.

1. I want to run commands like "make". The forums and google revealed a general response -> install xcode. Well, I have (4.2.1), but when i run "make" or "make all", this is the output:
-bash: make: command not found

2. I created a command line C++ project with xcode, did my stuff, the next day when I open a myApp.xcodeproj , a window pops out with "No Editor"...where did the nice IDE I used a day ago went to? Like the directory navigator, debug area and all the other nice features?

That is all i have for now, sorry if its nooby question...but i am n00b with mac

Thank you in advance
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,827
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Welcome!

First off, you don't have to use Xcode by any means. Like Linux and Windows, the choice is yours. Find an editor that suits your needs and enjoy.

As for your questions:
1. The development tools includes everything you need to develop applications since this is what Xcode is using to build your applications. Assuming Xcode was installed properly, make should be in your path. Let's do a quick check:
Code:
whereis make
It should be located in /usr/bin/
2. I'm going to have to leave this one to the Xcode users here. The C languages scare me so I avoid Xcode.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
tonk

 
Member Since: Jan 25, 2012
Posts: 14
tonk is on a distinguished road

tonk is offline
Hey,

Thing is, if you google things like "how to install gcc on mac" or "how to get make command to work" or any of the similar questions, the respond is the same -> get an xcode. So, naturally I thought that the xcode comes with all these things. But i can't find them is binaries folder or anywhere else and they're not installed with xcode installation. Oh well :S Thanks for reply
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,091
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
That "binaries" folder won't be found because it's hidden. You need to explicitly look for it in the 'Go/Go to folder' menu item.
Xcode should be on your install disk.
Try this in Terminal: echo $PATH
What does this return?

Craig Domingue - resident redneck.
“Never argue with an idiot. He will only bring you down to his level and beat you with experience.”, George Carlin
QUOTE Thanks
tonk

 
Member Since: Jan 25, 2012
Posts: 14
tonk is on a distinguished road

tonk is offline
i'm sorry, what's a go/go folder?

yes, i have installed xcode already, although still none of the commands i want, don't work (says command not found for example when i ran "make" on makefile).

this is what the echo $PATH returns:

/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

I don't believe i altered the path, so that should be original.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,091
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
What I meant is in Finder use the Go menu, select Go to Folder and type '/bin' without the quotes. This will show you the hidden folder. There are several.
That is not the original $PATH. OS X does not come set up with an opt directory by default.
Here is mine, which is just after a system reinstall: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
make should be in /usr/bin. If it's not there something's wrong.
The only thing I know of which installs /opt is MacPorts. Do you have that installed?

Craig Domingue - resident redneck.
“Never argue with an idiot. He will only bring you down to his level and beat you with experience.”, George Carlin
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,827
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
If you have MacPorts installed and working, you have the proper build tools since MP depends on them.

make is located in /usr/bin (it's actually a symlink to /usr/bin/gnumake) so if it's not there, check to see if gnumake exists. If it doesn't, try reinstalling Xcode.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
tonk

 
Member Since: Jan 25, 2012
Posts: 14
tonk is on a distinguished road

tonk is offline
2cradom & 2vansmith:

Yes, forgot about macports -> i installed it almost as soon as got my mac,
but didn't use it much. I browsed the bin folder, yes, i don't have make there (just mv and mkdir commands on "m").

However, I browsed around and found a whole bunch of executables, including make and gnumake, in Developer/usr/bin

So, it should work if i'll add this folder to my PATH? With something like, export PATH=$PATH:/Developer/usr/bin ?
QUOTE Thanks
tonk

 
Member Since: Jan 25, 2012
Posts: 14
tonk is on a distinguished road

tonk is offline
awesome, i decided to try to add the folder to PATH, now i have make commands + some other really nice ones

thank you guys very much for your help
QUOTE Thanks

Post Reply New Thread Subscribe


« Interface builder fonts | Learning java on the mac, need help with error »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 02:36 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?