Forums

Full Version: I'm unable to build VDrift in MSVC++ 2010 Express
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
(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:

http://pastebin.com/mbSe2hDh

What am I doing wrong?

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
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/is...ail?id=135
(10-16-2014, 12:26 PM)CrystalH Wrote: [ -> ]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/is...ail?id=135

I switched from std::vector to btAlignedObjectArray, should fix the issue.
@biziclop have you tried to build the latest master, are you still getting errors?
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.
(05-30-2015, 08:51 AM)blindseeker Wrote: [ -> ]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.

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/MSYS...tallation/ ) 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. Wink
All right, then it's about time to set up a new Win7 VM and get going with mysys2 Wink

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.
I've updated scons scripts to support msys2.

1. Install MSYS2:
http://sourceforge.net/p/msys2/wiki/MSYS...tallation/

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