ryzom / ryzomcore

Ryzom Core is the open-source project related to the Ryzom game. This community repository is synchronized with the Ryzom Forge repository, based on the Core branch.
https://wiki.ryzom.dev
GNU Affero General Public License v3.0
333 stars 90 forks source link

When compiling RyzomCore in 64 bits visual c++ 2010 is using the x86 DirectX libraries #239

Closed ryzom-pipeline closed 9 years ago

ryzom-pipeline commented 9 years ago

Original report by setreset (Bitbucket: setreset, GitHub: setreset).


Hello,

When using Cmake to regenerate the builds for RyzomCore in 64 bits (I follow the documentation in https://ryzomcore.atlassian.net/wiki/display/RC/Build+Source+on+Windows), I got some linking issues with the DirectX libraries when building the RyzomCore with Visual C++ 2010 : Additionnal dependencies are referring to the DirectX librairies x86.

As a workaround I have replaced in my ryzom/build/CMakeCache.txt file all the occurences of "/Microsoft DirectX SDK/Lib/x86/" into "/Microsoft DirectX SDK/Lib/x64/" and regenerated the builds for the project from cMake and recomplied everything from Visual C++.

Not sure it is the best way to fix this issue...

Best regards,

ryzom-pipeline commented 9 years ago

Original comment by Jan Boon (Bitbucket: [Jan Boon](https://bitbucket.org/Jan Boon), ).


Why is TARGET_X64 not set

ryzom-pipeline commented 9 years ago

Original comment by setreset (Bitbucket: setreset, GitHub: setreset).


I finally managed to configure cMake (the missing libxml2 library was caused by a modification I formerly did within the external directory). My last patch fixed this issue.

Thanks

ryzom-pipeline commented 9 years ago

Original comment by setreset (Bitbucket: setreset, GitHub: setreset).


ryzom-pipeline commented 9 years ago

Original comment by setreset (Bitbucket: setreset, GitHub: setreset).


Since I can't push my modification, I have done a .patch file.

ryzom-pipeline commented 9 years ago

Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).


you are working with a very old sources. You have nel.cmake dated as Wed Oct 17 11:05:51 2012

changeset 3ddc89b74c23 fixed this issue

ryzom-pipeline commented 9 years ago

Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).


your source might be from old sourceforge repository. You need to do new clone from bitbucket.

Editing .hg/hgrc file and replacing repository url might work too