Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 28 Aug 2014, 05:30
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
How to compile NTK?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Wed 24 Apr 2013, 07:20    Post subject:  How to compile NTK?  

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:
[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 ...

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Wed 01 May 2013, 19:05    Post subject:  

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..
_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6682
Location: lisbon

PostPosted: Thu 02 May 2013, 20:54    Post subject:  

@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:
[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?
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Thu 30 May 2013, 13:15    Post subject:  

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.

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0634s ][ Queries: 12 (0.0045s) ][ GZIP on ]