LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-29-2009, 01:03 PM   #1
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
How to compile and install programs so that they are known as installed by APT?


I want to compile WINE with my optimization switches, which i found to significantly improve performance of some 3D apps (GTA SA for instance). How could i install compiled package, so that it would be known by APT as installed (so i could remove it later using apt-get remove)?
 
Old 03-30-2009, 06:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you'll never know if it was installed using apt, as apt isn't the package management system, just a wrapping tool. you need to build a deb... http://www.quietearth.us/articles/20...ge-from-source
 
Old 03-31-2009, 02:40 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by 10110111 View Post
I want to compile WINE with my optimization switches, which i found to significantly improve performance of some 3D apps (GTA SA for instance).
Could you please list those optimization switches here? I just compiled Wine in Slackware using the slack-build script from slackbuilds.org. I only use Wine for games, so I would be interested in any optimizations or suggestions you could provide.
Quote:
Originally Posted by 10110111 View Post
How could i install compiled package, so that it would be known by APT as installed (so i could remove it later using apt-get remove)?
Install checkinstall. Then instead of using "sudo make install" you can use "sudo checkinstall". This will install the package as a .deb package that you can remove with dpkg, apt-get, or synaptic. See this:
https://help.ubuntu.com/community/CheckInstall

Last edited by tommcd; 03-31-2009 at 02:43 AM.
 
Old 04-02-2009, 08:20 AM   #4
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
Quote:
Could you please list those optimization switches here?
Code:
export CFLAGS='-O3 -fomit-frame-pointer -march=prescott -mfpmath=sse,387 -momit-leaf-frame-pointer -ffast-math -finline-functions -finline-functions-called-once'
export CXXFLAGS=$CFLAGS
(Maybe -O3 already implies some of other options, but this does work )
As you can see, i used them on my P4 Prescott. If your '-march' target does not imply -msse* and -mmmx while your CPU supports any of these extensions, be sure to add these switches too.
And, i'm not very sure if it's really only switches that improved performance, maybe latest wine (1.1.18 for now) version also was improved since i compiled previous version, though this version is the first one, where i used optimization switches.
There were some other tweaks including configuring wine with winecfg and editing registry. You can find them on the net (including LQ, of course ).
A good signal of performance improvement is that, when i used non-optimized version of wine, in GTASA i couldn't get off the rails on the train because of low frame rate and, as a result, infrequent train acceleration, now i am able to do this
Quote:
Install checkinstall. Then instead of using "sudo make install" you can use "sudo checkinstall".
Thanks, i'll try that.

Last edited by 10110111; 04-02-2009 at 08:21 AM.
 
  


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
Where do apps get installed to when doing a sudo apt-get install ? anjanesh Ubuntu 5 06-18-2008 04:16 PM
Is there knoppix-like distro, that we can: apt-get update; apt-get install programs ? frenchn00b Linux - Distributions 7 04-28-2008 02:06 PM
I've installed the GCC packages but C programs still won't compile! Cold Coffee Linux - Newbie 10 07-14-2006 03:31 AM
apt is confused, trying to install packages that are already installed tomj88 Debian 10 09-11-2005 06:33 PM
what compile programs to install? provkitir Debian 7 12-29-2004 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:51 AM.

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