Results 1 to 9 of 9
  1. #1
    RE: make, xcode and the such

    Member Since
    Jan 25, 2012
    Posts
    14
    RE: make, xcode and the such
    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

  2. #2
    RE: make, xcode and the such
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,398
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

  3. #3
    RE: make, xcode and the such

    Member Since
    Jan 25, 2012
    Posts
    14
    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

  4. #4
    RE: make, xcode and the such
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,081
    Specs:
    13in macbook - 10.10.4
    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
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  5. #5
    RE: make, xcode and the such

    Member Since
    Jan 25, 2012
    Posts
    14
    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.

  6. #6
    RE: make, xcode and the such
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,081
    Specs:
    13in macbook - 10.10.4
    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
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  7. #7
    RE: make, xcode and the such
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,398
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

  8. #8
    RE: make, xcode and the such

    Member Since
    Jan 25, 2012
    Posts
    14
    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 ?

  9. #9
    RE: make, xcode and the such

    Member Since
    Jan 25, 2012
    Posts
    14
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Make/Xcode problems
    By JamesF0790 in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 10-05-2014, 03:26 PM
  2. Replies: 4
    Last Post: 07-09-2012, 05:39 PM
  3. Xcode stopped letting me run Xcode app on iPad
    By ildsarria in forum iOS Development
    Replies: 1
    Last Post: 11-09-2011, 03:15 PM
  4. Xcode -> make new file -> can't access file!
    By jwillis0720 in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 05-23-2011, 10:45 PM
  5. XCode with external make/Makefile
    By mad-matts in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 01-22-2011, 06:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •