kanotix.com

General Support - Compiling 101

Ursa - 20.07.2006, 01:59 Uhr
Titel: Compiling 101
I've been following the howto here, to try to compile this: here but when I follow this part:

"If an application should build on many different systems, it needs to be properly configured to adapt to the particular features of any supported system. To solve this problem, there is a tool named autoconf which a software author can use for this purpose. With autoconf the author/ developer creates a file named configure that is then included in the source package and should be executed by the installer (configure is simply a shell script)."

the terminal says configure: command not found. I think I'm missing somthing really obvious... what is it?

Sorry if this is vauge, it's the best my wee brain can do.

And what do you use to deal with ".run" and ".package" files?
jackiebrown - 20.07.2006, 03:15 Uhr
Titel: RE: Compiling 101
it is usually ./configure
Ursa - 20.07.2006, 03:22 Uhr
Titel:
Should'a mentioned that, tried ./configure already

BTW I'm running a H
D install.

What I'm asking is, is there anything I need to install to get this to work? Is the configure file supposed to come with the source?
SaberBlaze - 20.07.2006, 07:05 Uhr
Titel:
When you say it doesn't work do you mean nothing happens or does it exit with errors? I've found that to compile a lot of the programs out there you need a crapload of dev files installed.
devil - 20.07.2006, 07:10 Uhr
Titel:
ursa,
configure needs to be in the source. there is usually an install or readme file, that tells you how to get the app gioing. its not always configure/make/make install.

greetz
devil
Ursa - 20.07.2006, 07:50 Uhr
Titel:
The name was accurate then? Sehr glücklich

Thanks much, I'm completely new at this whole thing
slam - 20.07.2006, 08:51 Uhr
Titel:
@devil: In Debian we always use
Code:
./configure
make
checkinstall


@ursa: This is a nice game, but probably not best package for a first lession in self compiling. It has a lot of dependencies you need to install before (please always read the included documentation before starting to configure, this package comes with extensive documentation for installing on Linux). Better start with a more easy target and try to find a ready made Debian package. Probalby you can get someone here interested in preparing it Winken.

Greetings,
Chris
mzilikazi - 20.07.2006, 13:48 Uhr
Titel:
Please read the COMPILE.html located in the warzone-2.0.3 directory. You'll see all of the required dependencies. First run
Code:
./autogen.sh
./configure


If you're missing a dependency you'll get an error like so:
Code:
checking for presence of SDL_net... Could not find SDL_net
configure: error: SDL_net is not installed


Now you can search for the required dependency like so:
Code:
apt-cache search sdl|grep net
libsdl-net1.2 - network library for Simple DirectMedia Layer
libsdl-net1.2-dev - Development files for SDL network library

Perfect. Now you know what to install.
Code:
apt-get install libsdl-net1.2 libsdl-net1.2-dev

Then try ./configure again.

I had to install these packages on my system. Yours may very well be different.
Code:
libphysfs-1.0-0 libphysfs-dev
libsdl-net1.2 libsdl-net1.2-dev
libopenal-dev

Keep installing the dependencies as required until ./configure is successful. You will see this:
Code:
Warzone will compile with the following components:

 OpenGL acceleration:   yes
 OpenAL sound system:   yes
 MP3 music support:     yes
 OGG music support:     yes


Now it's time for make.
Code:
make

Then if make finishes properly use checkinstall (as root) to create your own .deb.
Code:
# checkinstall

Checkinstall will build and install the warzone deb for you.

I can confirm that the game does build and launch. I did not have the time to actually play it. Good luck. Smilie

Post any problems you have here and we'll get them sorted.
SaberBlaze - 21.07.2006, 01:51 Uhr
Titel:
There is a much easier way to install required dependencies for ./configure.

Do apt-get update
Then apt-get install auto-apt

When you would normally do a ./configure, instead do a

Code:
auto-apt run ./configure


It will try to install all the required dependencies, (I think it asks for confirmation first).

After that is the usual make, then checkinstall.
mzilikazi - 22.07.2006, 03:47 Uhr
Titel:
SaberBlaze hat folgendes geschrieben::

When you would normally do a ./configure, instead do a

Code:
auto-apt run ./configure



Nice! Smilie
You learn something new everyday.
jackiebrown - 22.07.2006, 05:16 Uhr
Titel:
That is nice. That one goes into my scrapbook
piper - 22.07.2006, 05:52 Uhr
Titel:
Same here Winken thanks
SaberBlaze - 22.07.2006, 09:28 Uhr
Titel:
Just a word of caution: this program sometimes tries to install packages that you don't really need, for example it kept asking me to install a fortran compiler or something. If you know you don't need it, then don't install it. Another way to never worry about having the files is to install devel meta packages such as kde-devel.
SaberBlaze - 23.07.2006, 22:58 Uhr
Titel:
Here is another app that is still experimental software:

GNU Source Installer

Zitat:
It provides configuration, compilation, installation, upgrade, tracking and removal of packages built from source code. The functionality is reachable using a command line, scriptable front end or a GTK graphical interface.


Here is a picture of it:


Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007