LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 12-18-2008, 08:06 AM   #1
sg08
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Rep: Reputation: 0
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. ;-)
 
Old 12-18-2008, 11:46 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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.
....
 
Old 12-18-2008, 03:48 PM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,610

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
apt-get source package

Can be used as non-root, downloads to your current directory.
 
Old 12-19-2008, 12:31 PM   #4
sg08
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
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).
 
Old 12-19-2008, 12:50 PM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 50
I never managed to run kphone with sip, to conifgure it with ekiga, ... gizmo accounts ...
it is too complicated
 
Old 12-20-2008, 03:14 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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.
 
Old 12-21-2008, 08:28 AM   #7
sg08
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 04-29-2010, 03:40 PM   #8
eng_suha
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
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
 
Old 04-29-2010, 10:44 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,506

Rep: Reputation: 233Reputation: 233Reputation: 233
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.
 
Old 04-30-2010, 06:22 AM   #10
eng_suha
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
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
 
Old 05-01-2010, 03:33 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 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
 
Old 05-06-2010, 02:21 PM   #12
eng_suha
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
Thanks alot it works successfully
 
  


Reply

Tags
apt-get, code, source


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
install source code using apt cyb0rg777 Debian 2 06-09-2007 10:29 AM
apt-get source code? ieatsplaydoh Linux - Software 3 04-14-2007 11:51 AM
SuSE 10.1 will not install any application source code. Where is it? tiger9999tiger Suse/Novell 2 07-02-2006 02:33 PM
apt-get & source code- peaceful coexistence? aquaboot Ubuntu 3 06-21-2006 06:55 PM
Install application from source code UltraSoul Linux - Software 2 07-29-2005 01:23 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration