## Video: Building on Windows

Discussion and help for Compilation problems and platform portability.

Moderator: coordinators

### Re: Video: Building on Windows

No luck so far...

I have found this page which shows a similar case and makes me wonder if maybe a patch changed the behavior of the VS Express 2008 I'm using in a similar way.

Has anyone build luxrays with a patched up-to-date VS Express 2008?

vimax

Posts: 192
Joined: Wed Jul 02, 2008 9:39 pm

### Re: Video: Building on Windows

Well, I kinda made it work.

I rudely added the thing that VC was complaining about in cl.hpp by replacing in the line 2990 the userFptr parameter with: reinterpret_cast<void (__cdecl *)(void *)>( userFptr )
and it compiled fine but I'm sure it's not the way to do it, I think the modification should be in the call in line 2972 where the call is made, but I'm not sure how or even if I'm right about that.

I tested with luxconsole and it works fine but now I get this error while compiling luxrender.
Code: Select all
11>Compiling QT Resource File splash.11>'E:\proiecte\luxsrc\deps\x64\qt-everywhere-opensource-src-4.7.2\bin\rcc.exe' is not recognized as an internal or external command,

I guess I should compile the x64 qt too but that's gonna take forever and it's not exactly easy as VS express is not supposed to build 64 bit files.

Anyone know why the 32bit build of luxrender would look for that?

vimax

Posts: 192
Joined: Wed Jul 02, 2008 9:39 pm

### Re: Video: Building on Windows

I fixed the clEnqueueNativeKernel error by replacing windows\include\CL\cl.hpp with one downloaded from here.

Dobz

Posts: 45
Joined: Sun Aug 01, 2010 3:16 am

### Re: Video: Building on Windows

I have managed to build the luxrender package both on 32 and 64 bit and now I've moved to trying to compile smallluxgpu (actually luxrays first) with cmake on windows but it looks for the dependencies in all the wrong places. (not the paths generated by get-deps.bat)

Maybe someone could make a small guide to the luxrays/cmake combo? I thought the steps from linux would work but apparently they do not.

vimax

Posts: 192
Joined: Wed Jul 02, 2008 9:39 pm

### Re: Video: Building on Windows

the cmake system are in a refactor condition right now see HERE
bat3a

Posts: 50
Joined: Fri Jul 09, 2010 8:21 am

### Re: Video: Building on Windows

My Console:

Code: Select all
C:\>cd C:\Users\****\Luxrender-Windows-BuildC:\Users\****\Luxrender-Windows-Build>hg clone http://bitbucket.org/luxrender/luxDer Befehl "hg" ist entweder falsch geschrieben oderkonnte nicht gefunden werden.( the command is wrong written or could not be found )C:\Users\****\Luxrender-Windows-Build>

But i installed TortoiseHG, where is the problem? Why it dont works?

weltbesiedler

Posts: 152
Joined: Sun Feb 13, 2011 1:21 pm

### Re: Video: Building on Windows

weltbesiedler wrote:But i installed TortoiseHG, where is the problem? Why it dont works?

Apparently there seems to be some issues with using hg from the command line with TortoiseHG, see for example https://bitbucket.org/tortoisehg/thg/is ... so-that-hg

Try the suggested solution from there, put the root folder of TortoiseHG in the %PATH% environment variable.
May contain traces of nuts.

Lord Crc

Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

### Re: Video: Building on Windows

Where is the root folder and how i can put it in the %PATH% variable?
Is it useful to compile LuxRender yourself or suffice the weekly test builds? I think this is going to be to hard for me, because it do not exist a german guidance.

weltbesiedler

Posts: 152
Joined: Sun Feb 13, 2011 1:21 pm

### Re: Video: Building on Windows

Unfortunately it's not entirely straight forward at the moment to build lux. I'm working on making it very easy, but I don't have much spare time these days.

Hopefully I'll be able to release weeklies on a bit more regular schedule right now. I'll put out a new one later tonight.
May contain traces of nuts.

Lord Crc

Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

### Re: Video: Building on Windows

Okay then I will continue to use the Weekly Builds and you've always done a good job. Some more internal materials and better GPU using and I'll be even happier than I already am

weltbesiedler

Posts: 152
Joined: Sun Feb 13, 2011 1:21 pm

PreviousNext