I have full GTK operation under BSD. Wasn't too much harder than slackware from source.
This isn't a FINK install, but a sourcecode install.
Hints for others who follow and don't like FINK. Most of this is applicable to LINUX or BSD.
Linux users might want to do a ldconfig to insure that any new libraries which are installed are
in fact found. BSD users don't need to bother. Hopefully, this will give you ideas of what
might be wrong in your install even if this isn't your exact system.
Make sure to uninstall conflicting libraries, and only install the libraries you have to.
#Under Panther OSX (BSD unix), the following formula works pretty well.
# Install the X11 library from your system disk -- restore apps icon.
# It first installs the installer, so you need to get past that.
# Then install the developer tools package, and the X11 package.
# You have to find the tools installer on your hard drive once the packages are installed and
# start them. (Applications/installers/...).
# when compiling the later packages under OS X: there will be lots of warnings like:
# libtool: link: warning: `/usr/lib//libintl.la' seems to be moved
# and
# gcc: unrecognized options `-pthreads'
# ignore them, they don't hurt anything. I'm still trying to find out why the libtool one
# happens.
#I used the following packages, and installed them in the order given.
#I needed to install into the /usr directory, not /usr local. Use your own discretion.
#I have a lot of memory, so I use -j6 on the make for a little more speed.
#Get the packages, e.g. start with pkgconfig-0.15.0, unpack it, enter the directory,
#Obviously, become root, and quit being root at the appropriate places. I didn't include those.
#and then the commands that follow show how I installed each package.
#pkgconfig-0.15.0
./configure --prefix=/usr
make clean #if dirty do.
make -j6
make install
mv /usr/X11/lib/pkgconfig/* /usr/lib/pkgconfig # I like all .pc files in one place.
#I don't need to change the path variable that way. You may not wish to do that.
#gettext-0.14
./configure --disable-csharp --prefix=/usr
make clean
make -j6
make install
# gettext makes the libintl file, which is circularly dependant on the libiconv file
# already present on the system. If you don't remake iconv you will get warnings,
# but they can be ignored. I ignored the warnings.
#glib-2.6.4
./configure --prefix=/usr
make clean
make -j6
make install
#libpng-1.2.8
#tricky! Mac OSX already has zlib, so don't install it, unless you don't have it.
cp scripts/makefile.darwin makefile # or your system if it isn't a mac.
vi makefile # or use your favorite text editor.
# make the following changes to prefix, ZLIBLIB, ZLIBINC in the make file.
Code:
# where "make install" puts libpng.a, libpng12.dylib, png.h and pngconf.h
prefix=/usr
# Where the zlib library and include files are located
ZLIBLIB=/usr/lib
ZLIBINC=/usr/include
#ZLIBLIB=../zlib
#ZLIBINC=../zlib
#do a :wq and then.
make -j6
make install
#jpeg-6b
ln -s `which glibtool` ./libtool # Make sure the gnu libtool is used, not mac!
./configure --prefix=/usr --enable-shared
make clean
make -j6
make test
make install # if passes test, obviously!
make install-lib # it does not automatically install the library.
#tiff-v3.6.1
./configure --prefix=/usr
make clean
make
make install
#freetype-2.1.9
./configure # not much in the way of options, it installs where it wants to.
make clean
make -j6
make install
#expat-1.95.7
# expat is installed on OS X, but no .pc file, so reinstall was easier.
rm /usr/X11/lib/libexpat* # (perhaps you would like to move it instead...)
rm /usr/X11/include/expat.h # (to some backup whatever... )
make clean
make -j6
make install
#xft2.1.7 #a similar is installed in OS X, but outdated. Reinstall is a must.
# lots of deps are requred for this so I decided to fake the dep's .pc file for less work overall.
# rather than reinstall xrender, and render, and ...
rm /usr/X11/libs/libXft* #get rid of old Xft -- it is NO GOOD.
mv /usr/X11/include/X11/Xft . # this might not be the correct file, I didn't write it down.
rm -rf Xft
rm /usr/lib/pkgconfig/xft.pc
vi /usr/lib/pkgconfig/xrender.pc # or use your favorite word processor, text only!
Code:
prefix=/usr/X11
exec_prefix=/bin
libdir=${prefix}/lib
includedir=${prefix}/include
Name: Xrender
Description: X Render Library
Version: 1.2
Requires:
Cflags: -I${includedir}
Libs: -L${libdir} -lXrender -lX11
# save the file, [esc] followed by :wq [enter] from vi
./configure --prefix=/usr/X11
make clean
make -j6
make install
mv /usr/X11/lib/pkgconfig/xft.pc /usr/lib/pkgconfig/ # all .pc files in one place for me.
#pango-1.8.1
#This is a *&*&!@@@! if not right.
# Make clean seems very important if you need to redo anything that went before!
./configure --prefix=/usr
make -j6
#After ./configure the last line should say:
#configuration:
# backends: FreeType X Xft
# FreeType and Xft must *both* be there.
# else go back and figure out what went wrong.
#atk-1.9.0
./configure --prefix=/usr # debated this, should it be in X11 w/ gtk?
make clean
make -j6
make install
#gtk+2.6.7
./configure --prefix=/usr/X11
make clean
make -j6 # Go get coffee or whatever.
make -j6 cheks # lots more coffee. Take a walk.
make install
mv /usr/X11/lib/pkgconfig/* /usr/lib/pkgconfig/ # all in one place again.
cd tests
./testgtk # that should be it. all installed and a handy test will come
So NOW if I blow my system up, I can always come back here and do it nearly the right way the first time, and so can you.