LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2009, 11:51 AM   #1
prani
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Rep: Reputation: 0
help with Makefile


There is an example code in the source of pidgin that i wanted to compile and see
The following file are present

ballu@ballu-desktop:~$ ls Desktop/pidgin-2.5.4/libpurple/example/
defines.h Makefile.am Makefile.in nullclient.c

I wanted to compile the nullclient.c file
make isnt working.
How to compile??
 
Old 03-02-2009, 05:01 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I don't see Makefile (no extension). Have you run configure?
cheers,
jdk
 
Old 03-02-2009, 06:46 AM   #3
prani
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
it does not have the configure
i am new to linux and am not fully aware of the build process..
How do i run confifure??
 
Old 03-02-2009, 06:55 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Are you wanting to install pidgin from source? If that is the case then you will need to run configure script first. Then you can run make and make install.
What distro are you using. If you are using Ubuntu you may need to install build-essential package prior to compiling.
 
Old 03-02-2009, 07:04 AM   #5
prani
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I just wanted to make a basic IM using the libpurple libraray
the sample code is there but i dont know how to compile it..
I am using ubuntu 8.04

the contents of the directory are

ballu@ballu-desktop:~$ ls Desktop/pidgin-2.5.4/libpurple/example/
defines.h Makefile.am Makefile.in nullclient.c

the file which i want to ompile is nullclient.c
 
Old 03-02-2009, 07:08 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Its a c file so you will need to compile using gcc.
First as root run the command

apt-get install build-essential.

Once that is installed you can man for gcc and read on how to compile code using gcc.
 
Old 03-02-2009, 08:00 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
If you want the minimum build = pidgin-2.5.4/libpurple/example/

then please do these commands :

1) cd pidgin-2.5.4/
2)
Code:
./configure --disable-screensaver --disable-gtkspell --disable-gstreamer --disable-meanwhile --disable-nm --disable-nss --disable-gnutls
2a) Then you will get some 'Makefile's and be able to run 'make'.
3) cd libpurple/
4) make
4a) and get libpurple/example/.libs/nullclient
4b) 'nullclient' is an executable, and the result from running
the 'Makefile' in 'example/'
( Be aware that .libs/ is a hidden file.)
4c) It is not possible to run 'make' or 'gcc' in 'example/'
because the file 'nullclient.c' depends on 'purple.h' in
'pidgin-2.5.4/libpurple/' . ( And on 'libpurple.la' )
'purple.h' again depends on more than 40 headers
( files.h ), which will only be found using
the 'Makefile' in 'pidgin-2.5.4/libpurple/'
( Or the 'Makefile' in 'pidgin-2.5.4/' )
.....
I tested all the above last night, and it works with no errors.
.....

Last edited by knudfl; 03-02-2009 at 08:21 AM.
 
Old 03-02-2009, 08:03 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by prani View Post
it does not have the configure
i am new to linux and am not fully aware of the build process..
How do i run confifure??
Of course it has configure. You will find it here:
.../pidgin-2.5.4/
cheers,
jdk
 
Old 03-03-2009, 11:34 AM   #9
prani
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
thanks a lot knudfl ,i was finaly able to get it compiled....
 
  


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
Is it mandatory to have the name of the makefile as 'Makefile' for kernal module comp narender.d Linux - Kernel 3 05-29-2009 07:26 AM
automake, makefile, makefile.in and makefile.am Fond_of_Opensource Linux - Newbie 1 09-12-2006 09:35 PM
what is the meaning of Makefile,Makefile.am,Makefile.in cynthia_thomas Linux - General 3 12-08-2005 06:00 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 04:57 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 01:23 PM


All times are GMT -5. The time now is 05:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration