Wednesday, February 8, 2012

Luxrender compile with VS2010

This documented is a guide to make development environment for Luxrender with VS2010. Because the guide to compile Luxrender in is based on VS2008, you may want to following instructions to compile it with the latest version of Visual Studio.

Note. This guide was tested with Luxrender x64, Windows 7 x64, and VS2010.

1. Check out sources from the repository

- You need a Mercurial client for this job

- Make an empty directory for the BASE
- Clone 3 sources into your BASE

- source: destination: BASE/lux
- source: destination: BASE/windows
- source: destination: BASE/luxrays

2. Start the Visual Studio Command prompt

- You need to run x64 Win64 command prompt for x64 platform, otherwise you can run 32bit command prompt.

3. Goto BASE/windows

4. Run the appropriate build batch file

- Run getdeps.bat
- If you don't want to install OpenCL SDK, choose N3, N4 or A when you need to choose so that you don't have to download.
- Run build-vars.reg to register environmental variables
- Log out and log in for the changes to take effect

- Replace msvc-9.0 with msvc-10.0 in build-deps-*.bat
- Run build-deps-x64.bat
- It will make some errors while building FreeImage and LuxRays, since they are designed for VS2008.

5. Compile FreeImage

- Go to BASE\deps\x64\FreeImage3141\FreeImage and open FreeImage.2008.sln
- Convert the solution to VS2010
- Change run-time libraries to /MD for FreeImageLib, LibJPEG, LibMNG, LibOpenJPEG, LibPNG, LibRaw, LibTIFF, OpenEXR and ZLib
- Build Solution for Win64 Release

6. Compile Luxrender

- Go to BASE\windows

- Convert the solution to VS2010
- Build liblux for Win64 ReleaseNoOpenCL

- Build liblux

- You may want to change flex_on_path.bat and bison_on_path, since you may want to use flex and bison for Lux here.

- Add FreeImage.lib to Additional Dependencies


- Add ..\..\..\deps\x64\boost_1_43_0\stage\boost\lib to Additional library directories


- Build luxrender


1018 325i 3D 3D Printer 3M 500GB 7200RPM 747 850i A-GPS A-ha A8 ACCIDENT Actor Administrator Privilege ADOBE AdSense aGPS Airplane Algorithm Animation Ansur Antennagate API Apple AppleCare April Fool ARLuxrender Asian Assisted GPS ATT Audi Auto Bash Battleship BBC Bejeweled Bejeweled 3 Belkin Bike BITCOIN Black n Decker Blender Blog Blogspot Bluetooth BMW Bose Browser BTC Bump mapping Butter Butterface Butterfly C C++ C220 Calculator Calvin Klein CAR Cartoon Casshern CBR CBR600RR Cell CF CG Chair Chinese Chrome City Hunter CK Clie Clothe Coffee Coffee maker Color Comics Command Prompt Comment Commercial Compiler Computer Computer architecture Computer graphics Computer science Connex Content-Aware Fill Cowboy Bebop CRYPTOCURRENCY Cryptography CURL Cygwin Dabdate DB Decal Design Design thinking Development Digital Camera Digital communication Disaster Diskette Display Dog Dragon Ball Drama Drawing Driving Drying rack DSP Duck E-TRADE EA Earthquake Easter Egg eBay Economy Encryption ENGINEERING Error ESL etc ETH Ethernet expect F1 Face Fashion find Firefox Fish Flight Dynamics Floppy FON Food FREE Fun FWD G4 Game Gangsta Gangster GDAX GFX Ghost GIT Gizmo5 Golf Google Google Analytics Google Voice Gossip GPS Graphics Green Day GTI Gundam Gurren Lagann Hacking Hackintosh HANGOUTS HARRP HASP SRM HCI HDD Headset Helicopter Helio High-tech History Hobby Honda Horror HP HTS Humor Hyundai iBook iBook G4 IKEA Illustration Image processing information theory Initial D Intel Internet Intro Iomega iPad iPhone iPhone 4 iPhone theme iPod iPod Video Iron IU Jailbreak Japan Java Jawbone Jeremy Jordan Jet Jetpack K12KB KAO Ken Block Ketchup Keynote KORBIT Korea Korean Kpop KRAKEN Kumho Kuwait Language Laptop LaserJet LCD Leaf Lego Lenovo Leopard Lexus LG Library Light saber Lightning Linear algebra Linux login LTC LTE Luxrender Lyric M30 MAC MacBook Macintosh MACOS Macross Macross 2 Macross Plus Magic MapReduce MARKET Matlab Mazinger Z MDRCBB Mechanical engineering Memory MESSAGE Microsoft Microwave Miniature Mio MLT Mobile Mobile Phone Moped Motorcycle Motorola Mouse Movie MP4 Music Music video Network Nike NODE. JS Nonlinear Optimization NORWAY Novel Octave Odaiba Olleh OpenGL Opening Orthodontics Oslo OSX Outlook Parody PBRT pctools Peanut Performance Perl Phone Photoshop PHP Picture Pidgin Plane Playstation Poem Polar bear Pop Portuguese post Pragma Prank Call Printer Program PROGRAMMING Protocol PS PUMA Push Push Push II PushPush PwnageTool PYTHON QuickTime R8 RAM RAYTRACING RAZR RC Recording Report Robot Rock Rocket punch RSYNC Russel Crowe RWD Samsung Sandstorm Satellite Satellite Radio Scanner Science Score Script SD SDK Security sed Semantic Web Semiconductor SF Shell SHOW SIP Skype SK네트웍스 Slang Sleeve Soccer SOFTWARE Sonata Song Sounddock Soundgarden Space Spyshot SQL SSD ssh sshd Stanford bunny StarTrek Starwars Stethoscope Steve Jobs Sticker Stock Storage system Subaru Sun Super Deformed T-Shirt Taekwon V TALK TBD Tease Technology Teeth Telecommunication Tennis tethering Textfree TH55 The Perfect Storm Theme TI-89 TIBURON Tires Titanium Tom Mabe Tooth Tooth Explorer Torrent Toshiba Toshiba Power Saver Toy TPS Transformer Tsunami TV TV shows Ubuntu UC Ultrabase UMN Universal Century Unix Unlock USB Used Video Virtuosity Vista Visual Studio VISUALC++ VoIP VW WALLET Wallpaper Wanna Girl Wardriving Web 3.0 Wedding WiFi Wild Willy Windows Windows 7 Windows Vista Wireless WireShark WMV WOW WPS WRE54G X61 xargs XBOX XCode Yamato YF Youtube Z Gundam Zeliard Zuma 김간지 김현국 미국여자 방배추 뽀로로 위성 라디오 유희열 일본여자 조까를로스 주역 천자문 周易 天字文 德經 老子

Blog Archive