![]() |
I'm unable to build VDrift in MSVC++ 2010 Express - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4) +--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9) +--- Thread: I'm unable to build VDrift in MSVC++ 2010 Express (/showthread.php?tid=1842) |
I'm unable to build VDrift in MSVC++ 2010 Express - biziclop - 10-15-2014 I'm probably doing something incredibly stupid but I checked the source code and dependencies (for Win) out of Git, ran the project creation script, opened the project in MSVC without a problem but when I try to build it, I get loads of compilation errors: http://pastebin.com/mbSe2hDh What am I doing wrong? RE: I'm unable to build VDrift in MSVC++ 2010 Express - NaN - 10-16-2014 (10-15-2014, 05:04 PM)biziclop Wrote: I'm probably doing something incredibly stupid but I checked the source code and dependencies (for Win) out of Git, ran the project creation script, opened the project in MSVC without a problem but when I try to build it, I get loads of compilation errors: You are doing nothing wrong. We simply have got no one using MSVC. I've pushed some fixes for the errors you are seeing. MSVC stl containers don't like memory aligned objects. This one needs a bit more work, will push a fix soon RE: I'm unable to build VDrift in MSVC++ 2010 Express - CrystalH - 10-16-2014 Hmm I had that bad declspec align error in VS 2008 long ago. See here, got it fixed by editing msvc file https://code.google.com/p/vdrift-ogre/issues/detail?id=135 RE: I'm unable to build VDrift in MSVC++ 2010 Express - NaN - 10-16-2014 (10-16-2014, 12:26 PM)CrystalH Wrote: Hmm I had that bad declspec align error in VS 2008 long ago. I switched from std::vector to btAlignedObjectArray, should fix the issue. RE: I'm unable to build VDrift in MSVC++ 2010 Express - NaN - 10-19-2014 @biziclop have you tried to build the latest master, are you still getting errors? RE: I'm unable to build VDrift in MSVC++ 2010 Express - blindseeker - 05-30-2015 Hi, As I was hugely impressed by the clean implementation, I wanted to give VDrift a try (mostly to implement my own little physics hacks later on). However, my build on MSVC++ 2010 Ultimate (running on WinXP 32bit virtual machine) fails, because of a link error: "1>LINK : fatal error LNK1181: cannot open input file 'iconv2.lib'" I already installed the full Boost libs/includes (including precompiled for VS10), and set the respective Library and Include paths. What am I doing wrong? I searched the net for this lib, but to no avail. RE: I'm unable to build VDrift in MSVC++ 2010 Express - NaN - 05-30-2015 (05-30-2015, 08:51 AM)blindseeker Wrote: Hi, MSVC and WinXP are pretty much unsupported, no one around running them. I assume you've pulled https://github.com/VDrift/vdrift-win (although it might be slightly outdated)? The windows builds are created using mingw64/msys and more recently msys2 ( http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/ ) which includes a package manager to pull the dependencies, which is quite nice. I've been planning to update the docs, just haven't got to it yet, busy with other stuff. EDIT: Boost is not a dependency btw. ![]() RE: I'm unable to build VDrift in MSVC++ 2010 Express - blindseeker - 05-31-2015 All right, then it's about time to set up a new Win7 VM and get going with mysys2 ![]() Thanks a lot for answering that fast, also for the tip with Boost. ...or I could just tinker with Stunt Rally (http://stuntrally.tuxfamily.org/), which is by far not so nicely written code-wise, as it basically bakes VDrift and Ogre together. But at least I can still compile it in my current WinXP VM. And again: Hugely impressive work with VDrift, way cleaner implementation than TORCS and Speed Dreams. RE: I'm unable to build VDrift in MSVC++ 2010 Express - NaN - 05-31-2015 I've updated scons scripts to support msys2. 1. Install MSYS2: http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/ 2. Install build tools: pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-pkgconf scons 3. Install dependencies: pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_image mingw-w64-x86_64-bullet mingw-w64-x86_64-curl mingw-w64-x86_64-libvorbis 4. Fire up mingw64 shell and build vdrift: scons 4.1 for a release build use: scons release=1 5. To run vdrift outside of mingw64 shell copy following libs from C:\msys64\mingw64\bin into vdrift directory: libBulletCollision.dll libBulletDynamics.dll libLinearMath.dll libcurl-4.dll libeay32.dll libffi-6.dll libgcc_s_seh-1.dll libgmp-10.dll libgnutls-28.dll libhogweed-2-5.dll libiconv-2.dll libidn-11.dll libintl-8.dll libjbig-0.dll libjpeg-8.dll liblzma-5.dll libnettle-4-7.dll libogg-0.dll libp11-kit-0.dll libpng16-16.dll librtmp-1.dll librtmp.dll libssh2-1.dll libstdc++-6.dll libtasn1-6.dll libtiff-5.dll libvorbis-0.dll libvorbisfile-3.dll libwebp-5.dll libwinpthread-1.dll SDL2.dll SDL2_image.dll ssleay32.dll zlib1.dll |