How to compile NTK?

discuss compiling applications for Puppy
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

How to compile NTK?

#1 Post by sc0ttman »

I'm trying to compile NTK, which is a fork of FLTK that uses cairo for nicer looking GUIs.. I need NTK cos I wanna compile Non-DAW, Non-Sequencer and so on (these are very lightweight music creation programs)...

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']
1. How can I skip building the NTK chtheme app (and others if needed..)?

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 ...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#2 Post by sc0ttman »

upadtes to cairo 2.10.x and it compiled.. so i then complied non-daw ( a a lightweight music DAW) ... it's in the akita repo, with all deps, if anyone wants to try it..
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#3 Post by muggins »

@Scottman,

is that cairo 2.10x, or 1.10x?

http://cairographics.org/releases/

I tried to compile version 1.10.0 and, after modifying the make file, got to this stage:

Code: Select all

[364/368] cxxprogram: build/fluid/CodeEditor.cxx.1.o build/fluid/Fl_Function_Type.cxx.1.o build/fluid/Fl_Group_Type.cxx.1.o build/fluid/Fl_Menu_Type.cxx.1.o build/fluid/Fl_Type.cxx.1.o build/fluid/Fl_Widget_Type.cxx.1.o build/fluid/Fl_Window_Type.cxx.1.o build/fluid/Fluid_Image.cxx.1.o build/fluid/about_panel.cxx.1.o build/fluid/align_widget.cxx.1.o build/fluid/alignment_panel.cxx.1.o build/fluid/code.cxx.1.o build/fluid/factory.cxx.1.o build/fluid/file.cxx.1.o build/fluid/fluid.cxx.1.o build/fluid/function_panel.cxx.1.o build/fluid/template_panel.cxx.1.o build/fluid/undo.cxx.1.o build/fluid/widget_panel.cxx.1.o -> build/fluid/ntk-fluid
./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
./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
Waf: Leaving directory `/mnt/sda1/ntk-master/build'
Build failed
 -> task in 'ntk-chtheme' failed (exit status 1): 
	{task 138869324: cxxprogram ntk-chtheme.cxx.11.o -> ntk-chtheme}
['/usr/bin/g++', '-pthread', 'src/ntk-chtheme.cxx.11.o', '-o', '/mnt/sda1/ntk-master/build/ntk-chtheme', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L.', '-L.', '-lntk_images', '-lntk', '-ljpeg', '-lpng12', '-ldl', '-lm', '-lpthread', '-lX11', '-lfontconfig', '-lXft', '-lcairo']
 -> task in 'ntk-fluid' failed (exit status 1): 
	{task 138885580: cxxprogram CodeEditor.cxx.1.o,Fl_Function_Type.cxx.1.o,Fl_Group_Type.cxx.1.o,Fl_Menu_Type.cxx.1.o,Fl_Type.cxx.1.o,Fl_Widget_Type.cxx.1.o,Fl_Window_Type.cxx.1.o,Fluid_Image.cxx.1.o,about_panel.cxx.1.o,align_widget.cxx.1.o,alignment_panel.cxx.1.o,code.cxx.1.o,factory.cxx.1.o,file.cxx.1.o,fluid.cxx.1.o,function_panel.cxx.1.o,template_panel.cxx.1.o,undo.cxx.1.o,widget_panel.cxx.1.o -> ntk-fluid}
['/usr/bin/g++', '-pthread', 'fluid/CodeEditor.cxx.1.o', 'fluid/Fl_Function_Type.cxx.1.o', 'fluid/Fl_Group_Type.cxx.1.o', 'fluid/Fl_Menu_Type.cxx.1.o', 'fluid/Fl_Type.cxx.1.o', 'fluid/Fl_Widget_Type.cxx.1.o', 'fluid/Fl_Window_Type.cxx.1.o', 'fluid/Fluid_Image.cxx.1.o', 'fluid/about_panel.cxx.1.o', 'fluid/align_widget.cxx.1.o', 'fluid/alignment_panel.cxx.1.o', 'fluid/code.cxx.1.o', 'fluid/factory.cxx.1.o', 'fluid/file.cxx.1.o', 'fluid/fluid.cxx.1.o', 'fluid/function_panel.cxx.1.o', 'fluid/template_panel.cxx.1.o', 'fluid/undo.cxx.1.o', 'fluid/widget_panel.cxx.1.o', '-o', '/mnt/sda1/ntk-master/build/fluid/ntk-fluid', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L.', '-L.', '-lntk_images', '-lntk', '-ljpeg', '-lpng12', '-ldl', '-lm', '-lpthread', '-lX11', '-lfontconfig', '-lXft', '-lcairo']
How did you get past this?[/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#4 Post by sc0ttman »

muggins wrote:@Scottman,

is that cairo 2.10x, or 1.10x?
Can't remember as such, but the akita repo has only cairo 1.10.x, so that must've been the one I used...

I think I skipped building the ntk-chtheme thing with cairo 1.10,
by hacking the source... If I remember correctly, I did get ntk-chtheme compiled with 2.10 ...

Sorry for the late answer.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply