 |
 |
Compiling source code
|
 |
|
 |
|
Senior User
Join Date: Jul 2006
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
Have you tried obtaining the program in question from either Fink or Darwin Ports?
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|