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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-18-2008, 08:06 AM
|
#1
|
|
LQ Newbie
Registered: Nov 2008
Posts: 6
Rep:
|
source code for application installed thru apt-get
Hi there,
I have installed some applications thru 'apt-get' command. I found that it is much different with Windows where normally the installed program is in one folder while in Ubuntu, the program will located in many folders. I wonder whether I can get the full source code for the application I have installed thru 'apt-get'? Where to locate them?
This is because I have faced problem in using the Kphone installed thru 'apt-get' and installed thru compilation of source code from tarball. I get quite bad voice quality when I called using Kphone SI 'sudo make install' from the source tarball downloaded from sourceforge.net. However, good voice quality is obtained when I used Kphone installed thru 'sudo apt-get' command. Is that the source code different or is that because of Kphone is differs with Kphone SI?
Thank you if anyone can leave a comment for me. ;-)
|
|
|
|
12-18-2008, 11:46 AM
|
#2
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,632
|
http://packages.ubuntu.com/intrepid/kphone
Looking in the patch, you will see the differences
from the original. This patch was compiled into the
result / package, you are using.
> > [kphone_4.2-6ubuntu1.diff.gz]
With missing information about version of Ubuntu and
'kphone' : you can find other versions in the above
link.
....
|
|
|
|
12-18-2008, 03:48 PM
|
#3
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
apt-get source package
Can be used as non-root, downloads to your current directory.
|
|
|
|
12-19-2008, 12:31 PM
|
#4
|
|
LQ Newbie
Registered: Nov 2008
Posts: 6
Original Poster
Rep:
|
Thanks alot.
ya, I successfully downloaded the Kphone source code from http://packages.ubuntu.com/intrepid/kphone and also using the command apt-get source package. I found both source code are the same. However I face problem in compiling it.
In file included from main.cpp:5:
kcallwidget.h:70: error: extra qualification ‘KCallWidget::’ on member ‘setDTMFSender’
In file included from main.cpp:7:
kphoneview.h:57: error: extra qualification ‘KPhoneView::’ on member ‘DoCall’
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/ims07/Desktop/kphone/kphone'
make: *** [all] Error 2
I am using Ubuntu 8.04 Hardy Heron but the source code I obtained from the website is for Ubuntu 8.10 intrepid. Does this matter which cause the compilation error? I search through the other version of kphone under Hardy but there only provide the package installer (deb).
|
|
|
|
12-19-2008, 12:50 PM
|
#5
|
|
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546
Rep:
|
I never managed to run kphone with sip, to conifgure it with ekiga, ... gizmo accounts ...
it is too complicated 
|
|
|
|
12-20-2008, 03:14 AM
|
#6
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,632
|
Did you do this before compiling
'gunzip kphone_4.2-6ubuntu1.diff.gz' and
'patch -p0 < kphone_4.2-6ubuntu1.diff'
The patch is to be placed just outside the directory "kphone"
??
Last edited by knudfl; 12-20-2008 at 03:17 AM.
|
|
|
|
12-21-2008, 08:28 AM
|
#7
|
|
LQ Newbie
Registered: Nov 2008
Posts: 6
Original Poster
Rep:
|
ya thanks. I solved the problem already. Previously I have gunzip and patch it. but I didn't realize that it will create other patch files in a new folder where I need to patch all those patch files by myself. So now I manage to compile it successfully. Hopefully no other problem coming up.
|
|
|
|
04-29-2010, 03:40 PM
|
#8
|
|
LQ Newbie
Registered: Apr 2010
Posts: 10
Rep:
|
plz help
hello
plz i want your help to patch the kphone
when i tried to patch it i got such as this lines -->
root@suha-laptop:~/Desktop/kphone/kphone-4.2/debian/patches# patch -p0 < Makefile-nostrip.diff
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- kphone/Makefile.in.withstrip 2005-08-10 19:58:29.633160690 +0200
|+++ kphone/Makefile.in 2005-08-10 19:58:42.722158118 +0200
--------------------------
File to patch:
which file is he mean??????
thanx
|
|
|
|
04-29-2010, 10:44 PM
|
#9
|
|
Member
Registered: Feb 2003
Posts: 970
Rep:
|
If you're in the directory of the source code you are patching, you'll likely need to use -p1. If you're one up (where you extracted it) -p0. Assuming that the patch .diff has the same path value.
tar -xzvpf source.tar.gz
zcat patch.gz | patch -p0
or
tar -xjvpf source.tar.bz2
cd source
bzcat patch.bz2 | patch -p1
both do basically the same thing. assuming no failures or that the patch wasn't already applied in the sources that you have.
|
|
|
|
04-30-2010, 06:22 AM
|
#10
|
|
LQ Newbie
Registered: Apr 2010
Posts: 10
Rep:
|
thanx alot for your help
i got these lines :
------------------
root@suha-laptop:~/Desktop/kphone/kphone# patch -p1 < kphone_4.2-6ubuntu1.diff
patching file debian/patches/Makefile-nostrip.diff
patching file debian/patches/bug_342555_message_5.diff
patching file debian/patches/gcc4.1.diff
patching file debian/patches/umask.diff
patching file debian/patches/dspoutoss.cpp.diff
patching file debian/patches/udpmessagesocket.diff
patching file debian/kphone.install
patching file debian/control
patching file debian/kphone.xpm
patching file debian/dirs
patching file debian/kphone.desktop
patching file debian/compat
patching file debian/watch
patching file debian/changelog
patching file debian/kphone.menu
patching file debian/copyright
patching file debian/docs
patching file debian/rules
-------------------------------------------------
could you tell me what is the next step plz ??
thanx
|
|
|
|
05-01-2010, 03:33 AM
|
#11
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,632
|
# 10
Next step ....
cd kphone/
patch -p0 < debian/patches/bug_342555_message_5.diff
patch -p1 < debian/patches/gcc4.1.diff
patch -p1 < debian/patches/dspoutoss.cpp.diff
patch -p1 < debian/patches/Makefile-nostrip.diff
patch -p1 < debian/patches/udpmessagesocket.diff
patch -p0 < debian/patches/umask.diff
|
|
|
|
05-06-2010, 02:21 PM
|
#12
|
|
LQ Newbie
Registered: Apr 2010
Posts: 10
Rep:
|
Thanks alot it works successfully 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:24 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|