Make sure that Visual Studie 2010 use libboost_*-vc100-mt-s-1_47.lib instead of Visual Studie 2008 libs (fatal error)
Description
Event Timeline
I forgot to add "()" after else, and endif, I can't make upload a new diff file because I get a error when I try to upload it.
Patch as comment:
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 42159)
+++ CMakeLists.txt (working copy)
@@ -857,7 +857,13 @@
if(WITH_BOOST)
set(BOOST ${LIBDIR}/boost)
set(BOOST_INCLUDE_DIR ${BOOST}/include)
- set(BOOST_POSTFIX "vc90-mt-s-1_47.lib")
+ if(MSVC90)
+ set(BOOST_POSTFIX "vc90-mt-s-1_47.lib")
+ elseif(MSVC10)
+ set(BOOST_POSTFIX "vc100-mt-s-1_47.lib")
+ else()
+ set(BOOST_POSTFIX "vc90-mt-s-1_47.lib")
+ endif()
set(BOOST_DEBUG_POSTFIX "vc90-mt-sgd-1_47.lib")
set(BOOST_LIBRARIES
optimized libboost_date_time-${BOOST_POSTFIX} libboost_filesystem-${BOOST_POSTFIX}
Hi Lasse. I applied your patch but compilation failed again. (with MSVC10 64 bit)
Here is the error:
error LNK1181: cannot open input file 'libboost_filesystem-.lib'
Hi Murat, that sounds strange, Could you send me a copy of your cmake file from line 857 to 875
Your cmake file got messed up, could you try to download it from svn again, and use the following code as patch(I can't upload a new file since I get a missing parameter error):
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 42176)
+++ CMakeLists.txt (working copy)
@@ -857,7 +857,13 @@
if(WITH_BOOST)
set(BOOST ${LIBDIR}/boost)
set(BOOST_INCLUDE_DIR ${BOOST}/include)
- set(BOOST_POSTFIX "vc90-mt-s-1_47.lib")
+ if(MSVC90)
+ set(BOOST_POSTFIX "vc90-mt-s-1_47.lib")
+ elseif(MSVC10)
+ set(BOOST_POSTFIX "vc100-mt-s-1_47.lib")
+ else()
+ set(BOOST_POSTFIX "vc90-mt-s-1_47.lib")
+ endif()
set(BOOST_DEBUG_POSTFIX "vc90-mt-sgd-1_47.lib")
set(BOOST_LIBRARIES
optimized libboost_date_time-${BOOST_POSTFIX} libboost_filesystem-${BOOST_POSTFIX}
I compiled it successfully this time, but when I choose Cycles Render, and Rendered from Viewport Shading, blender crashes immediately. Have any idea?
Thanks.
I also have that problem. I suspect that it's the openimageio lib that create that program, but I havn't found a solution yet.
Look at this post Lasse.
acilio.mendes is offering a solution. I tried it too but gave an error again. :(
Sorry, forgot the link. Here it is:
http://blenderartists.org/forum/showthread.php?236703-Building-Blender-Cycles-in-Win64-MS-Visual-2010