Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 23-04-2008, 22:51   #1
Feek
ex SAS
 
Feek's Avatar
 
Join Date: Jun 2006
Location: JO01ou
Posts: 10,062
Default 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?
__________________
Feek is offline   Reply With Quote
Old 23-04-2008, 23:09   #2
Dr. Z
I'm going for a scuttle...
 
Dr. Z's Avatar
 
Join Date: Jul 2006
Posts: 2,021
Default

./configure (I would imagine there should be a configure script?)
make
make install

?
__________________
Dr. Z is offline   Reply With Quote
Old 23-04-2008, 23:27   #3
Feek
ex SAS
 
Feek's Avatar
 
Join Date: Jun 2006
Location: JO01ou
Posts: 10,062
Default

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
__________________
Feek is offline   Reply With Quote
Old 23-04-2008, 23:51   #4
Dr. Z
I'm going for a scuttle...
 
Dr. Z's Avatar
 
Join Date: Jul 2006
Posts: 2,021
Default

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.
__________________
Dr. Z is offline   Reply With Quote
Old 24-04-2008, 06:27   #5
Feek
ex SAS
 
Feek's Avatar
 
Join Date: Jun 2006
Location: JO01ou
Posts: 10,062
Default

Nope, it's just a single .c file
__________________
Feek is offline   Reply With Quote
Old 24-04-2008, 07:14   #6
Burble
Rocket Fuel
 
Burble's Avatar
 
Join Date: Jul 2006
Posts: 7,826
Default

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'
Burble is offline   Reply With Quote
Reply


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
Forum Jump


All times are GMT +1. The time now is 06:00.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.