Difference between revisions of "Install-amule-freebsd"
(=install ports we need if u dont allready have (see ''pkg_info'')=) |
|||
Line 16: | Line 16: | ||
− | ''security/cryptopp | + | ''security/cryptopp'' |
− | x11-toolkits/wxgtk-common | + | ''x11-toolkits/wxgtk-common'' |
− | '' | + | |
u know how to install ports as a bsd user, so i dont have to tell u i hope. | u know how to install ports as a bsd user, so i dont have to tell u i hope. | ||
its just too easy u know. | its just too easy u know. | ||
− | and i suggest u have gettext installed, else maybe u have to do some small changes to the configure line (see ./configure --help) | + | and i suggest u have ''gettext'' installed, else maybe u have to do some small changes to the configure line (see ''./configure --help'') |
− | + | ||
== set any optimization CFLAGS/CXXFLAGS == | == set any optimization CFLAGS/CXXFLAGS == |
Revision as of 23:21, 7 May 2004
maybe this page outdates soon, until then it may help u
Contents
install amule 2.0.0rc3 on freebsd
why would u ask... we have /usr/ports/net/amule
well, this is the stable version 1.2.6
we wanna stay current or help testing / debugging, why else would u read this?
install ports we need if u dont allready have (see pkg_info)
security/cryptopp x11-toolkits/wxgtk-common
u know how to install ports as a bsd user, so i dont have to tell u i hope. its just too easy u know.
and i suggest u have gettext installed, else maybe u have to do some small changes to the configure line (see ./configure --help)
set any optimization CFLAGS/CXXFLAGS
i only tested with "-O2 -pipe -march=athlon"
-O3 or any other flags may not work for u, i completely dont know.
if u want a debug version, not a user version, dont use any -O, instead turn on "-Wall -g3"... but as with the -O3 i didnt test and so i dont know if it will work.
configure
the ./configure does not work 100% auto, we must help it
i used the following line of configure, and i hope it may help u:
edit the <your home> tag of course, or install it elsewhere...
./configure --prefix=/home/<your home>/amule --with-wx-config=/usr/X11R6/bin/wxgtk2-2.4-config --with-wxbase-config=/usr/X11R6/bin/wxgtk2-2.4-config
this is one single line, not 3 lines or whatever wiki/html/ur browser wraps this line into...
well if u have other versions installed u need to change the line a bit, im driving a very current version right now, FreeBSD 5.2-CURRENT 03-May-2004
u will see configure doenst find gdlib-config, even if u unstalled gdlib, dont care, its just not there, but ist no "must have". skip it.
skip the other warnings as well, esp. the end of configure:
[...]
Which libraries should aMule use?
wxWidgets 2.4.2 GTK Not detected
WARNING!! Your wxWidgets copy has been linked against GTK2 and this will make aMule
be instable, use so much cpu and ram. You have been advised, don't report bugs so.
its just alright!
patch
as there is no official freebsd support in amule yet?! we will patch it to work... well there is openbsd support and this support will work for us too :-)
edit src/amule.cpp
and insert
#define __OPENBSD__
at the top of this file. i plced it right before the first #include line...
what a workaround u may scream. hey we dont fiddle too much around with the code, just hack it to work and get ready to share ;-)
make
make will fail, due to the bsd make is not compatible with gnu make and amule does not care yet, anyways...
install gnu make if u dont already have its placed: /usr/ports/devel/gmake/
then all u have to do is:
gmake
now it should compile
then u do, of course:
gmake install
use it
just start it with /home/<your home>/amule/bin/amule or whereever u installed it to...
have phun
Eugene