Jump to content
  • Advertisement
Sign in to follow this  
DrEvil

Art of Linux Programming?

This topic is 4955 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So I've spent a majority of the day today in linux trying to figure out how to compile some existing programs that I have developed in windows already. I've been programming in windows for several years now, and have been wanting to learn enough about linux to make linux builds of some of my programs such as q3 & HL mod dlls, and some other utilities. Linux development is new to me. From what I gather, most software is built using makefiles, is this correct? Does anyone know of easy ways to generate makefiles for a project? Most of my projects use external dependencies and link to outside libraries, which I don't know how to do with linux. Is there an easy to follow guide for generating the files needed to compile a project in linux? Including defining additional include directories, additional lib directories, the libs to link with, and so on? So far I'm very un-impressed with how un-user friendly linux is in the development realm but I'm hoping to work through this learning period. So does anyone have any good resources on c++ developing in linux? Cross compilation? Makefile generation? Any good c++ ide's? Thanks J

Share this post


Link to post
Share on other sites
Advertisement
Have you tried KDevelop? It comes with most linux distros that include KDE.

As far as I can tell that is about as good as the IDE gets in Linux. I haven't used many of them though.

Share this post


Link to post
Share on other sites
I did play with Kdevelop for a little bit. I added a folder to the additional includes and it still wouldn't find the hpp that was in that folder. Probably something I'm doing wrong but it was an old version of Kdevelop, which happened to be the newest available for the version of KDE that Debian has apparently.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Does anyone know of easy ways to generate makefiles for a project? Most of my projects use external dependencies and link to outside libraries, which I don't know how to do with linux.

Is there an easy to follow guide for generating the files needed to compile a project in linux? Including defining additional include directories, additional lib directories, the libs to link with, and so on?

man gcc,man ld

Share this post


Link to post
Share on other sites
Quote:
Original post by andrewk3652
Eclipse is good (free).
Yeah, get the CDT plugin for Eclipse it's great. Handles make files and stuff like that really easyily, easy to set up SDL and works great for Java aswell. : )

Also, because Eclipse is the same under windows as Linux you can use it for both platforms without any problems.

Share this post


Link to post
Share on other sites
Perhaps, you could try Kylix. It's a linux version of Delphi and C Builder. In spite of these I think that coding by use of some editor and gcc is more fun.

Share this post


Link to post
Share on other sites
Quote:
Original post by j0seph
Perhaps, you could try Kylix. It's a linux version of Delphi and C Builder. In spite of these I think that coding by use of some editor and gcc is more fun.


On small projects, maybe.

On larger projects, it's fun like beating yourself on the head with a brick.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Most makefiles are built with autoconf, automake and libtool (GNU Software).But maybe something like SCons better fits your needs.

IDE: Emacs + "cedet" packages, I think you should avoid KDevelop, Anjuta etc. They may be ok if you start from scratch a project with them, but not if you already have the project and try to build it in Linux.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!