mini howto: Compiling under Ubuntu Gutsy

Discussion and help for Compilation problems and platform portability.

Moderator: coordinators

mini howto: Compiling under Ubuntu Gutsy

Postby Tuxer » Mon Oct 15, 2007 12:04 pm

First: This is just really, really great news!!!

I just compiled Lux and here is what I had to do:

UPDATE4: Added libwxgtk2.8-dev (19.6.2008).
UPDATE3: Tested on clean install and added some missing deps (31.12.2007).
UPDATE2: I've added new dependencies to the list, thanks HyperCity.
UPDATE: I've added new dependencies to the list (This should work, let me know if there are problems)

Compiling Lux in Ubuntu Gutsy/Hardy:

developing tools:
Code: Select all
sudo apt-get install cvs
sudo apt-get install build-essential
sudo apt-get install cmake



Depencies as a one command:
Code: Select all
sudo apt-get install bison flex libboost-dev libfltk1.1-dev libboost-thread-dev libboost-date-time-dev libboost-program-options-dev libboost-filesystem-dev libopenexr-dev libboost-iostreams-dev libboost-regex-dev libboost-serialization-dev libboost-wave-dev libtiff4-dev libpng12-dev libwxgtk2.8-dev



And then just follow this:
http://www.luxrender2.org/index.php?opt ... &Itemid=70

EDIT: Here you can find more official version by Radiance: http://www.luxrender.net/wiki/index.php ... g_on_Linux

Hope this is useful for others.
Last edited by Tuxer on Thu Jun 19, 2008 12:49 pm, edited 13 times in total.
Tuxer
 
Posts: 42
Joined: Mon Oct 15, 2007 11:17 am

Re: mini howto: Compiling under Ubuntu Gutsy

Postby jromang » Mon Oct 15, 2007 12:17 pm

Hi Tuxer,
Glad to see building scripts are working on Ubuntu ! But again, beware....you'll get a slow unstable version with all debugging features on ;)
User avatar
jromang
Developer
 
Posts: 557
Joined: Wed Sep 19, 2007 2:41 am

Re: mini howto: Compiling under Ubuntu Gutsy

Postby Tuxer » Mon Oct 15, 2007 12:31 pm

you'll get a slow unstable version with all debugging features on

I don't mind :)

Ok, compiles fine but rendering won't work. This maybe not a right place for this but here is a backtrace of it:

(gdb) bt
#0 0x0811893f in std::vector<RenderThread*, std::allocator<RenderThread*> >::begin (this=0x68) at /usr/include/c++/4.1.3/bits/stl_vector.h:342
#1 0x081189dc in std::vector<RenderThread*, std::allocator<RenderThread*> >::size (this=0x68) at /usr/include/c++/4.1.3/bits/stl_vector.h:402
#2 0x08117ffa in Scene::SignalThreads (this=0x0, signal=1)
at /home/ari/Programs/Lux/lux/core/scene.cpp:118
#3 0x08118049 in Scene::Start (this=0x0)
at /home/ari/Programs/Lux/lux/core/scene.cpp:36
#4 0x080d4fbd in luxStart () at /home/ari/Programs/Lux/lux/core/api.cpp:605
#5 0x080d2203 in RenderStart ()
at /home/ari/Programs/Lux/lux/renderer/luxgui.cpp:340
#6 0x080d221f in start_cb ()
at /home/ari/Programs/Lux/lux/renderer/luxgui.cpp:256
#7 0xb7e3617d in Fl_Button::handle () from /usr/lib/libfltk.so.1.1
#8 0xb7e2e94a in ?? () from /usr/lib/libfltk.so.1.1
#9 0xb7e30253 in Fl::handle () from /usr/lib/libfltk.so.1.1
#10 0xb7e7d090 in fl_handle () from /usr/lib/libfltk.so.1.1
#11 0xb7e7e0b7 in ?? () from /usr/lib/libfltk.so.1.1
#12 0xb7e7e30b in fl_wait () from /usr/lib/libfltk.so.1.1
#13 0xb7e2f035 in Fl::wait () from /usr/lib/libfltk.so.1.1
#14 0xb7e2f184 in Fl::run () from /usr/lib/libfltk.so.1.1
#15 0x080d39fc in main () at /home/ari/Programs/Lux/lux/renderer/luxgui.cpp:454
Tuxer
 
Posts: 42
Joined: Mon Oct 15, 2007 11:17 am

Re: mini howto: Compiling under Ubuntu Gutsy

Postby jromang » Mon Oct 15, 2007 12:40 pm

Mhh...did you load a scene ? If you just clicked on the 'play' button...that's the normal behavior :mrgreen:
User avatar
jromang
Developer
 
Posts: 557
Joined: Wed Sep 19, 2007 2:41 am

Re: mini howto: Compiling under Ubuntu Gutsy

Postby Tuxer » Mon Oct 15, 2007 12:46 pm

Yes, I loaded the example scene from examplescenes directory. Are those valid files? I now noticed that loading them results errors:
Error: Scene description must be inside world block; "ObjectEnd" not allowed. Ignoring.
Line 126924, file /home/ari/Programs/Lux/lux/testscenes/sunsky_test/geom-sunsky_test.lux
Tuxer
 
Posts: 42
Joined: Mon Oct 15, 2007 11:17 am

Re: mini howto: Compiling under Ubuntu Gutsy

Postby jromang » Mon Oct 15, 2007 12:52 pm

Those are the test scenes Radiance used for the sunsky light implementation...don't know if they are still valid ;)
Maybe you could try this one ?
Attachments
balls.lxs.bz2
Balls simple scene
(60.24 KiB) Downloaded 88 times
User avatar
jromang
Developer
 
Posts: 557
Joined: Wed Sep 19, 2007 2:41 am

Re: mini howto: Compiling under Ubuntu Gutsy

Postby Tuxer » Mon Oct 15, 2007 1:02 pm

Maybe you could try this one ?


Thank you! That worked fine, so I guess those .lux files are not valid any more.
Tuxer
 
Posts: 42
Joined: Mon Oct 15, 2007 11:17 am

Re: mini howto: Compiling under Ubuntu Gutsy

Postby tomb » Mon Oct 15, 2007 2:07 pm

On a similar note - the present cvs tree keeps crashing on me whatever file(s) I give it as input. I'm using kubuntu 7.04
which comes with the ubuntu 1_33 BOOST libraries - the BOOST headers in cvs seems to indicate 1_34_1 so perhaps the problem is there. I'm having serious problems following the boost-code in gdb (the segfault is in there somewhere) - it's a bloody mess of vtables, STL and whatnot. I'm basically getting nowhere atm. I'll try uninstalling the 1.33 libraries and compiling the 1.34 ones by hand. Hopefully that'll sort it out.
User avatar
tomb
Developer
 
Posts: 1919
Joined: Thu Oct 11, 2007 4:23 pm
Location: Oslo, Norway

Re: mini howto: Compiling under Ubuntu Gutsy

Postby tomb » Mon Oct 15, 2007 3:27 pm

To follow-up on myself - the segfaults in boost was indeed the result of a mismatch of lux headerfiles (1.34) and kubuntu's installed boost environment (1.33.1). Removing kubuntu's version and compiling the 1.34 release by hand resolved the problem.
User avatar
tomb
Developer
 
Posts: 1919
Joined: Thu Oct 11, 2007 4:23 pm
Location: Oslo, Norway

Re: mini howto: Compiling under Ubuntu Gutsy

Postby HyperCity » Sun Dec 23, 2007 8:13 am

libboost-iostreams-dev libboost-regex-dev libboost-serialization-dev libboost-wave-dev extra boost libs on my sistem for succesfull building the regular libs should install as dependencees, thx for the tut and sory for my english
HyperCity
 
Posts: 2
Joined: Sun Dec 23, 2007 6:49 am

Next

Return to Compilation & Portability

Who is online

Users browsing this forum: No registered users and 0 guests