
-----------------------------------
Justin_
Sun Jan 22, 2006 11:23 pm

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.

-----------------------------------
rizzix
Sun Jan 22, 2006 11:35 pm


-----------------------------------
it's pretty much standardized really


cd to_dir
./configure --various-options
make
sudo make install

-----------------------------------
Justin_
Sun Jan 22, 2006 11:56 pm


-----------------------------------
How would you know what the "various options" are?

-----------------------------------
Hikaru79
Mon Jan 23, 2006 7:29 am


-----------------------------------
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.

-----------------------------------
rizzix
Mon Jan 23, 2006 10:06 am


-----------------------------------
How would you know what the "various options" are?

usually you just need to type: ./configure --help
