Video: Building on Windows

Discussion and help for Compilation problems and platform portability.

Moderator: coordinators

Re: Video: Building on Windows

Postby vimax » Sun Jul 10, 2011 3:30 pm

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?
User avatar
vimax
 
Posts: 192
Joined: Wed Jul 02, 2008 9:39 pm

Re: Video: Building on Windows

Postby vimax » Mon Jul 11, 2011 5:10 am

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?
User avatar
vimax
 
Posts: 192
Joined: Wed Jul 02, 2008 9:39 pm

Re: Video: Building on Windows

Postby Dobz » Wed Jul 13, 2011 9:24 pm

I fixed the clEnqueueNativeKernel error by replacing windows\include\CL\cl.hpp with one downloaded from here. :)
User avatar
Dobz
 
Posts: 45
Joined: Sun Aug 01, 2010 3:16 am

Re: Video: Building on Windows

Postby vimax » Thu Jul 14, 2011 2:56 am

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.
User avatar
vimax
 
Posts: 192
Joined: Wed Jul 02, 2008 9:39 pm

Re: Video: Building on Windows

Postby bat3a » Thu Jul 14, 2011 9:44 am

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

Postby weltbesiedler » Sun Oct 23, 2011 4:07 am

My Console:

Code: Select all
C:\>cd C:\Users\****\Luxrender-Windows-Build

C:\Users\****\Luxrender-Windows-Build>hg clone http://bitbucket.org/luxre
nder/lux
Der Befehl "hg" ist entweder falsch geschrieben oder
konnte 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?
User avatar
weltbesiedler
 
Posts: 152
Joined: Sun Feb 13, 2011 1:21 pm

Re: Video: Building on Windows

Postby Lord Crc » Sun Oct 23, 2011 4:12 am

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.
User avatar
Lord Crc
Developer
 
Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Re: Video: Building on Windows

Postby weltbesiedler » Sun Oct 23, 2011 4:31 am

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.
User avatar
weltbesiedler
 
Posts: 152
Joined: Sun Feb 13, 2011 1:21 pm

Re: Video: Building on Windows

Postby Lord Crc » Sun Oct 23, 2011 5:26 am

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.
User avatar
Lord Crc
Developer
 
Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Re: Video: Building on Windows

Postby weltbesiedler » Sun Oct 23, 2011 5:47 am

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 :!: :)
User avatar
weltbesiedler
 
Posts: 152
Joined: Sun Feb 13, 2011 1:21 pm

PreviousNext

Return to Compilation & Portability

Who is online

Users browsing this forum: No registered users and 1 guest