luxrays compilation problems

Discussion and help for Compilation problems and platform portability.

Moderator: coordinators

luxrays compilation problems

Postby Napseis » Sat Mar 06, 2010 1:28 pm

hi,

I wanted to build luxrays, since smalluxgpu is now included in it.
I did it in ubuntu, since it looks easier than in windows, but i get:

[ 3%] Generating src/kernels/qbvh_kernel.cpp
/bin/sh: cannot create src/kernels/qbvh_kernel.cpp: Directory nonexistent
make[2]: *** [src/kernels/qbvh_kernel.cpp] Erreur 2
make[1]: *** [CMakeFiles/luxrays.dir/all] Erreur 2
make: *** [all] Erreur 2


Do you have any idea on what can be causing this error?
The cmake command didn't returned any error (I modified the Cmakelist to fit my diretories)

thanks
Napseis
 
Posts: 31
Joined: Mon Mar 01, 2010 6:00 am

Re: luxrays compilation problems

Postby Dade » Sat Mar 06, 2010 2:52 pm

Napseis wrote:hi,

I wanted to build luxrays, since smalluxgpu is now included in it.
I did it in ubuntu, since it looks easier than in windows, but i get:

[ 3%] Generating src/kernels/qbvh_kernel.cpp
/bin/sh: cannot create src/kernels/qbvh_kernel.cpp: Directory nonexistent
make[2]: *** [src/kernels/qbvh_kernel.cpp] Erreur 2
make[1]: *** [CMakeFiles/luxrays.dir/all] Erreur 2
make: *** [all] Erreur 2


Do you have any idea on what can be causing this error?
The cmake command didn't returned any error (I modified the Cmakelist to fit my diretories)

thanks


qbvh_kernel.cpp (and bvh_accel.cpp) is generated by the qbvh_kernel.cl (and bvh_accel.cl) file. The .cpp files however are included in the repository so you should not need to generate them (it is required only if you edit the .cl files). Have you done a "make clean" ? I suggest you to:

1) check if the src/kernels/qbvh_accel.cpp file exists;
2) if it doesn't exist, you should able to extract the file with just a "hg update";
3) recompile;

The generation of the file on-the-fly should work under Linux but may be there is something wrong. Anyway you should be able to skip that step by extracting the file from the repository :idea:
User avatar
Dade
Developer
 
Posts: 4794
Joined: Sat Apr 19, 2008 6:04 pm
Location: Italy

Re: luxrays compilation problems

Postby Napseis » Sat Mar 06, 2010 3:07 pm

hi, thanks for the answer. I'm under windows for the evening, but I already checked if the src/kernels/qbvh_accel.cpp file existed.
What I've done was, basically, use hg to get the sources, then modified the Cmakelists, use the "cmake luxrays" command, and the make.

I'll come back with the results of a make clean, and I'll redo the steps.
Thanks again.
Napseis
 
Posts: 31
Joined: Mon Mar 01, 2010 6:00 am

Re: luxrays compilation problems

Postby tomb » Sat Mar 06, 2010 3:26 pm

Try this variant:

cd luxrays
cmake .

Perhaps cmake gets confused by the fact you're invoking it from outside the luxrays dir - I've seen this happen in other cmake projects

T
User avatar
tomb
Developer
 
Posts: 1918
Joined: Thu Oct 11, 2007 4:23 pm
Location: Oslo, Norway

Re: luxrays compilation problems

Postby Napseis » Sun Mar 07, 2010 3:03 am

it works, thanks a lot !
I don't really understand why though..
Napseis
 
Posts: 31
Joined: Mon Mar 01, 2010 6:00 am

Re: luxrays compilation problems

Postby tomb » Sun Mar 07, 2010 5:21 am

Just for future reference in case anyone else gets the same problem - was it Dade's or my suggestions that solved your problems?
User avatar
tomb
Developer
 
Posts: 1918
Joined: Thu Oct 11, 2007 4:23 pm
Location: Oslo, Norway

Re: luxrays compilation problems

Postby Napseis » Sun Mar 07, 2010 5:28 am

it was yours, although I already had done what Dade suggested, so maybe it helped.
Napseis
 
Posts: 31
Joined: Mon Mar 01, 2010 6:00 am


Return to Compilation & Portability

Who is online

Users browsing this forum: No registered users and 1 guest

cron