Newton libs x64 build error.

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Newton libs x64 build error.

Postby pr0t0z » Thu Jul 05, 2012 7:51 am

Hi all,

Im currently trying to set my program (which uses NGD-2.30) to work in a x64 machine. So everythink builds fine except for this error,

Error 1 error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' C:\Work\Repository\CoopDynSim\build\dMath_d.lib(dMatrix.obj)

which i guess has something to do with NGD libs. So i go to C:\...\NewtonWin-2.30\sdk\projects_vs2008 and the project is VS2009. However, and as i am using VS2010 i upgraded it to VS2010 and tried to each module (dContainers, dJointLibrary, dMath, dScene) to x64 (both debug and release) but i'm getting a bunch of errors.

Error 19 error MSB3073: The command "xcopy "x64/dContainers/Release_mt\dContainers_d.lib" "../X32/lib_vs9_mt/*.*" /F /Y
:VCEnd" exited with code 4. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113
Error 20 error MSB3073: The command "xcopy "x64/dContainers/Release_md\dContainers_d.lib" "../X32/lib_vs9_mt/*.*" /F /Y
:VCEnd" exited with code 4. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113
Error 8 error LNK1181: cannot open input file 'C:\Work\NewtonWin-2.30\sdk\projects_vs2008\Win32\dMath\Release_mt\dMath.lib' C:\Work\NewtonWin-2.30\sdk\projects_vs2008\LINK
Error 10 error LNK1181: cannot open input file 'C:\Work\NewtonWin-2.30\sdk\projects_vs2008\Win32\dMath\Release_mt\dMath.lib' C:\Work\NewtonWin-2.30\sdk\projects_vs2008\LINK
Error 14 error LNK1181: cannot open input file 'C:\Work\NewtonWin-2.30\sdk\projects_vs2008\Win32\dMath\Release_mt\dMath.lib' C:\Work\NewtonWin-2.30\sdk\projects_vs2008\LINK
Error 18 error LNK1181: cannot open input file 'C:\Work\NewtonWin-2.30\sdk\projects_vs2008\Win32\dMath\Release_mt\dMath.lib' C:\Work\NewtonWin-2.30\sdk\projects_vs2008\LINK
Error 1 error MSB3073: The command "xcopy "x64/dMath/Release_mt\dMath_d.lib" "../X32/lib_vs9_mt/*.*" /F /Y
:VCEnd" exited with code 4. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113
Error 2 error MSB3073: The command "xcopy "x64/dMath/Release_md\dMath_d.lib" "../X32/lib_vs9_mt/*.*" /F /Y
:VCEnd" exited with code 4. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113
Error 26 error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' C:\Work\NewtonWin-2.30\sdk\thirdParty\glew\build\vc6\x64\Release\obj\glew.obj 1
Error 30 error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' C:\Work\NewtonWin-2.30\sdk\thirdParty\glew\build\vc6\x64\Debug\obj\glew.obj 1
Error 31 error MSB3073: The command "xcopy "x64/tinyxml/Release_mt\tinyxml_d.lib" "../X32/lib_vs9_mt/*.*" /F /Y
:VCEnd" exited with code 4. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113
Error 32 error MSB3073: The command "xcopy "x64/tinyxml/Release_md\tinyxml_d.lib" "../X32/lib_vs9_mt/*.*" /F /Y
:VCEnd" exited with code 4. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113

Am i doing something wrong? Is this expected to work or should i try another approach?

Thanks in advance
Carlos
pr0t0z
 
Posts: 15
Joined: Wed May 30, 2012 11:57 am

Re: Newton libs x64 build error.

Postby Julio Jerez » Thu Jul 05, 2012 9:18 am

this seems to be a recurrent problem amont some people, make sure you are using the same compiler code generation in visual studio newton uses
Multi-threaded Debug (/MTd) and this Multi-threaded (/MT)

also try using newton core 300 from svn teh prject are more upto date
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton libs x64 build error.

Postby pr0t0z » Fri Jul 06, 2012 3:23 pm

I somehow managed to do it with the help of more knowledge ppl ! Quite a tricky feat indeed!
Finally got the libs for x64 of NGD 2.30 :D
pr0t0z
 
Posts: 15
Joined: Wed May 30, 2012 11:57 am

Re: Newton libs x64 build error.

Postby Julio Jerez » Fri Jul 06, 2012 3:45 pm

why do you try switching to core 300 form svn? all of the projects build out of the box. and I will add teh VS express 2010 solution this weekend
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests