Computer Science Canada

Tutorial Request.

Author:  Justin_ [ Sun Jan 22, 2006 11:23 pm ]
Post subject:  Tutorial Request.

Hi, I'm new to linux and I think the ability to compile sources would be a good skill to have. Can anyone write a tutorial on the strategies they use to compile sources? I find I download a source of something and it has over 15 header files and a few .cpp files and I have no idea how to compile it. And could this tutorial be written specifically for GCC in terms of how to do all the linking and so forth? I couldn't thank you enough if you decided to write a tutorial on this. Thanks.

Author:  rizzix [ Sun Jan 22, 2006 11:35 pm ]
Post subject: 

it's pretty much standardized really


code:
cd to_dir
./configure --various-options
make
sudo make install

Author:  Justin_ [ Sun Jan 22, 2006 11:56 pm ]
Post subject: 

How would you know what the "various options" are?

Author:  Hikaru79 [ Mon Jan 23, 2006 7:29 am ]
Post subject: 

Justin_ wrote:
How would you know what the "various options" are?


They'd have to be mentioned in the INSTALL or README file, since each program will have different compile-time options. However, most of the time you don't need any of those fancy options, the defaults are just fine.

Author:  rizzix [ Mon Jan 23, 2006 10:06 am ]
Post subject: 

Justin_ wrote:
How would you know what the "various options" are?


usually you just need to type:
code:
./configure --help


: