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 Fri 31 Oct 2014, 02:24
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 Posts_count  
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
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: 2386
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: 6689
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: 2386
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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