Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Compiling source code

Compiling source code
Thread Tools
Senior User
Join Date: Jul 2006
Status: Offline
Reply With Quote
Aug 3, 2006, 04:48 PM
 
I installed the XCode in Mac, but I cannot figure out how to compile c++ source code. I have a folder with source code on my desktop, and I tried opening the terminal, using the gcc command to open the makefile. All I got was an error message: "Makefile bad magic number (not a mach-O file) collect2: id returned 1 exit status". What does that mean? How do I compile something when I already have a folder full or source ready for compiling?
I am a complete ignoramus about compiling, so I need step-by-step instructions.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Aug 3, 2006, 04:53 PM
 
You don't use GCC to run a makefile, you use make. The general routine goes like this:
Code:
./configure make make install
There should be a readme with instructions for your exact case.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Senior User
Join Date: Jul 2006
Status: Offline
Reply With Quote
Aug 4, 2006, 03:53 AM
 
Originally Posted by Chuckit
You don't use GCC to run a makefile, you use make. The general routine goes like this:
Code:
./configure make make install
There should be a readme with instructions for your exact case.
I tried using make. All I got was errors. The instructions that came in the folder were for Linux, not Mac. Not too much help. The source code was supposed to be universal??? I guess I'll have to get along without the program.
     
Mac Elite
Join Date: Jan 2003
Location: 127.0.0.1
Status: Offline
Reply With Quote
Aug 4, 2006, 04:33 AM
 
Have you tried obtaining the program in question from either Fink or Darwin Ports?
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Aug 4, 2006, 07:54 AM
 
Originally Posted by Curiosity
I tried using make. All I got was errors. The instructions that came in the folder were for Linux, not Mac. Not too much help. The source code was supposed to be universal??? I guess I'll have to get along without the program.

What was the app? What were the instructions?

No configure script in the folder?
     
Senior User
Join Date: Jul 2006
Status: Offline
Reply With Quote
Aug 6, 2006, 01:39 AM
 
Originally Posted by besson3c
What was the app? What were the instructions?

No configure script in the folder?
The program was Proximodo. The instructions were for GTK (I think that is correct). The whole set of source code files was in a zip folder.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Aug 6, 2006, 10:47 AM
 
Originally Posted by Curiosity
The program was Proximodo. The instructions were for GTK (I think that is correct). The whole set of source code files was in a zip folder.

I just downloaded the source code and took a look at it. Judging by the howto.txt in the doc folder, it looks like this will compile and run fine, and most of its dependencies are available through Darwinports (although the wxgtk port will need to be updated to 2.6).

If you really want this to work, let me know and I'll help you with it, but it will take some work.
     
Senior User
Join Date: Jul 2006
Status: Offline
Reply With Quote
Aug 7, 2006, 01:49 AM
 
Originally Posted by besson3c
If you really want this to work, let me know and I'll help you with it, but it will take some work.
Thanks, but if it is going to take so much work, I shall skip it for now. It is still in alpha right now, anyway. I am using another local proxying app, plus Adblock with Firefox to block ads and popups. They seem to be working, for the most part.
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 03:40 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2