- This topic has 4 replies, 2 voices, and was last updated 7 years, 6 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] Error while building SOFA on Windows 7, QGLViewer/Qt conflict
Hi,
I’m trying to build Sofa (up-to-date master branch) on windows 7.
I have install VS 2015, new cmake 3.X, boost, etc..
When building I get this error:
Error LNK1112 module machine type 'X86' conflicts with target machine type 'x64' QGLViewer C:\projects\sofa-build\extlibs\QGLViewer\QtOpenGL4.lib(QtOpenGL4.dll) 1
I’m not sure how to interpret this error. I’m trying to buidl the extlib QGLViewer on 64b based on QtOpenGL libs build on x86?
I’m using a built version of qt 4.8.5
I tryed to build sofa on x86 but then I get >1800 errors…
Any idea?
Thanks
Erik
Hi Erik,
Did you try to clean the build dir between your x86 and x64 builds ?
yes even from a totaly empty directory.
I get problems generating the moc:
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open source file: 'C:\projects\sofa-build\extlibs\QGLViewer\moc_camera.cxx': No such file or directory QGLViewer C:\projects\sofa-build\extlibs\QGLViewer\c1xx 1
hi,
ok problem solved. Just in case here are my logs:
I checked using dumpbin *.lib /headers
my Qt was indeed compiled for x86.
And to turn the Sofa build in x86 you need to erase the full dir and change the cmake generator. This solved most of the compilation errors.
Then last point was to compile boost in x86, by default only x64 libs are provided for download.
To compile you need to run:
> bootstrap.bat
> b2 toolset=msvc-14.0 --build-type=complete --abbreviate-paths architecture=x86 address-model=32 install -j4
yes, nice to hear!
Good job Erik, and thank you for always sharing it with us.
H
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.