23-04-2008, 22:51 | #1 |
ex SAS
Join Date: Jun 2006
Location: JO01ou
Posts: 10,062
|
Compiling something in OS X using CHUD?
Bit of a techy question this one - I have a .c file that I need to compile in OS X using CHUD.
I've downloaded and installed the xcode dev pack which includes CHUD but I have no idea whatsoever what to do next! Anyone done anything like this and can offer suggestions?
__________________
|
23-04-2008, 23:09 | #2 |
I'm going for a scuttle...
Join Date: Jul 2006
Posts: 2,021
|
./configure (I would imagine there should be a configure script?)
make make install ? |
23-04-2008, 23:27 | #3 |
ex SAS
Join Date: Jun 2006
Location: JO01ou
Posts: 10,062
|
Without specifics that's not going to help really, there's one huge development pack with lots of libraries and stuff and the CHUD bit sits elsewhere
__________________
|
23-04-2008, 23:51 | #4 |
I'm going for a scuttle...
Join Date: Jul 2006
Posts: 2,021
|
Well, your .c file will be in a directory with a configure script I am guessing?
./configure runs that script (./ in linux basically means "run this file") if it has run permissions (chmod +x configure) make is literally just that command, it makes the .c file into an executable make install sets up whatever you have just compiled and installs it into the relevant place as specified by the configure script. If this is some C that you have picked up from somewhere rather than having it as a package then you might run into troubles I suppose. |
24-04-2008, 06:27 | #5 |
ex SAS
Join Date: Jun 2006
Location: JO01ou
Posts: 10,062
|
Nope, it's just a single .c file
__________________
|
24-04-2008, 07:14 | #6 |
Rocket Fuel
Join Date: Jul 2006
Posts: 7,826
|
I've never used CHUD (or even heard of it), but if I had a single .c file on a Linux box I'd use gcc (or cc if gcc were not available). Something like "gcc filename.c -o outfile" would compile the code and call the resulting file 'outputfile'
|