LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2008, 04:09 AM   #1
Zack Alamy
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
Unhappy Guidance required for starting to program in Linux


Hello,

I am a fairly confident programer in C/C++ but I have been programing in proprietary simualtion software environments (like OMNeT++, OPNET).

I am now supposed to make code changes in some Linux applications (like Mobile IPv6 for Linux) but i am finding trouble getting used to the Linux OS system. I may mention that i have been usign Linux, but just as a user but I do not have expertise or knowledge of Linux OS and/or how to interact with it.

I am therefore looking for guidance regarding the first steps that I must take so that i can start making code changes and compile them and check my results.

to be more specific, I am supposed to be workin on certain *.cc and *.h files of a certain source code which are located in a folder /user/linux/mipl-2.0.2/src. Ofcourse I have an idea as to what changes to make and where to make but i am lost when it comes to compiling and viewing the results...what important libraries to look for, how to set up the project in Eclipse, so that i can move easily through teh code......

I am sure all of the experts on this forum would have gone through the same problem and so i am hoping, wishing and lookign forward to generous comments, guidance and help to get me started to take the first baby steps towards programing in linux environment.

Looking forward

Zack Alamy
 
Old 11-28-2008, 04:53 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Hmm never used Eclipse. I use emacs, GNU "autotools" and then makefiles...

I don't know the package you are working on, but usually, if you download a major Linux application source package, it is already "autotooled" (if I can call it that) and you then use the autotools to generate the makefile. You then call the makefile to compile the application.

E. g. something like this:

1. You download the source package for an application.
2. You untargz / untarbzip2 it to a directory.
3. In that directory, you do

./configure
make

to build the application. ./configure "calls" the autotools script 'configure.sh" that creates the makefile for you. "make" runs the make binary on the "Makefile" that the ./configure step produced, which calls the cc / cxx to compile the package.

4. You run the application executable - depending on the package, it might go to different locations - /bin of the source directory, or simply directly in the source directory, it depends.

E. g. to develop on that package, your sequence will then continue:

4. Edit the source file you want to edit, save it.
5. Run make to compile the "new" binary
6. Run the binary that is the product of your edited code

Hope this helps. Post again if you need more detailed info.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
guidance required for configuring virtual host yogesh619 Linux - General 1 10-09-2008 10:49 PM
Need guidance on creating minimal boot CD to load a few program and run a script angotia Linux - General 2 07-10-2008 03:59 AM
Need Guidance what the name of this application? (a System Info program on the Desk) Felpipe Ubuntu 2 01-19-2008 02:56 PM
wxGTK, GTK (need guidance starting out) servnov Programming 1 09-07-2004 07:49 PM
Decided to try Debian some guidance required ninadb Debian 2 08-20-2004 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration