You must use waf to compile it, so in the terminal:
./waf configure --prefix=/usr
./waf build
new2dir ./waf install
I have compiled libsigc++, zlib 1.2.7, but I get these errors when trying to compile NTK:
Code: Select all
[344/368] cxxprogram: build/src/ntk-chtheme.cxx.11.o -> build/ntk-chtheme
./libntk.so: undefined reference to `cairo_region_intersect'
./libntk.so: undefined reference to `cairo_region_get_rectangle'
./libntk.so: undefined reference to `cairo_region_intersect_rectangle'
./libntk.so: undefined reference to `cairo_region_create_rectangle'
./libntk.so: undefined reference to `cairo_region_copy'
./libntk.so: undefined reference to `cairo_region_num_rectangles'
./libntk.so: undefined reference to `cairo_region_union_rectangle'
./libntk.so: undefined reference to `cairo_region_create'
./libntk.so: undefined reference to `cairo_region_destroy'
./libntk.so: undefined reference to `cairo_region_get_extents'
./libntk.so: undefined reference to `cairo_region_reference'
./libntk.so: undefined reference to `cairo_region_contains_rectangle'
collect2: ld returned 1 exit status
Build failed
-> task in 'ntk-chtheme' failed (exit status 1):
{task 138461612: cxxprogram ntk-chtheme.cxx.11.o -> ntk-chtheme}
['/usr/bin/g++', '-pthread', 'src/ntk-chtheme.cxx.11.o', '-o', '/root/Downloads/ntk-20130424/build/ntk-chtheme', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L.', '-L.', '-L/usr/X11R7/lib', '-L/usr/X11R7/lib', '-L/usr/X11R7/lib', '-lntk_images', '-lntk', '-ljpeg', '-lpng12', '-lz', '-ldl', '-lm', '-lpthread', '-lX11', '-lfontconfig', '-lXft', '-lXrender', '-lfontconfig', '-lfreetype', '-lX11', '-lcairo']
2. I am guessing the problem comes from cairo being too old, but I dont wanna update it, as it would likely break other stuff, so...
3. How do I compile cairo statically into NTK (if possible)?
Any help would be GREATLY appreciated, and when done, I will upload the Non-DAW etc apps to the Akita repo, but they should work on most pups...
The whole reason I insisted on this 'Compiling' thread was so I can get help with stuff like this... So, as I say, I would love some help here, especially on how to compile cairo statically into NTK...
Cheers.
EDIT: I see waf has 'bundled-libraries' options, to automatically include and rename the listed deps in the final package, this might be what I need - it will rename and bundle the given deps ...