CMake not finding boost_python

Having trouble installing or compiling FreeCAD? Get help here.
Peter Klofutar
Posts: 2
Joined: Wed Feb 03, 2016 7:55 pm

Re: CMake not finding boost_python

Postby Peter Klofutar » Wed Feb 03, 2016 8:52 pm

Hi!

I had the same problem and BoostPython.7z fixed it, and now I get the following error during build process:

error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' D:\Peter\FreeCAD\Izgradnja\src\Mod\Path\libarea\boost_python-vc120-mt-gd-1_55.lib(boost_python-vc120-mt-gd-1_55.dll)

I'm using Visual Studio 12 2013 generator with FreeCADLibs_11.0_x86_VC12.

Regards,
Peter
User avatar
sgrogan
Posts: 5428
Joined: Wed Oct 22, 2014 5:02 pm

Re: CMake not finding boost_python

Postby sgrogan » Wed Feb 03, 2016 9:22 pm

Hello Peter Klofutar! Welcome to FreeCAD and the Forum :)
That .7z is an x64 version of boost-python. You need x86 version. And I need to edit my previous post.
Give me a minute and I will post a x86 version.
boost-python_x86.7z
(193.18 KiB) Downloaded 57 times
Peter Klofutar
Posts: 2
Joined: Wed Feb 03, 2016 7:55 pm

Re: CMake not finding boost_python

Postby Peter Klofutar » Thu Feb 04, 2016 1:15 pm

That worked, thanks.
rhvonlehe
Posts: 4
Joined: Tue Aug 23, 2016 1:27 pm

Re: CMake not finding boost_python

Postby rhvonlehe » Tue Aug 23, 2016 1:32 pm

I have the same problem as the OP. I downloaded the boost_python.7z file that was attached in this thread, but found that I already have them in my libpack (11.5). I looked at my error message again, and it says:

Could not find the following Boost libraries:

boost_python

No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.

So I added BOOST_LIBRARYDIR by clicking 'Add Entry' / Path and set it to my folder:
C:/Users/rhvon/Downloads/FreeCADLibs_11.1_x64_VC12/FreeCADLibs_11.1_x64_VC12/lib

but I continue to get the error when I run 'Configure' again. I'll admit, I'm a complete newbie to CMake as well as FreeCAD, so I am sure I'm missing something easy.
rhvonlehe
Posts: 4
Joined: Tue Aug 23, 2016 1:27 pm

Re: CMake not finding boost_python

Postby rhvonlehe » Wed Aug 24, 2016 2:42 am

Needed to delete the cache. Nevermind. :roll: