LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 10: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, 04:01 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I don't see Makefile (no extension). Have you run configure?
cheers,
jdk
 
Old 03-02-2009, 05: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, 05:55 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 06: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, 06:08 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 07:00 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 07:21 AM.
 
Old 03-02-2009, 07:03 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

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, 10: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



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 06:26 AM
automake, makefile, makefile.in and makefile.am Fond_of_Opensource Linux - Newbie 1 09-12-2006 08:35 PM
what is the meaning of Makefile,Makefile.am,Makefile.in cynthia_thomas Linux - General 3 12-08-2005 05:00 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:55 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