10-15-2014, 05:04 PM,
|
|
biziclop
Junior Member
|
Posts: 5
Threads: 2
Joined: Sep 2014
|
|
I'm unable to build VDrift in MSVC++ 2010 Express
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-16-2014, 09:49 AM,
|
|
NaN
Posting Freak
|
Posts: 2,024
Threads: 120
Joined: Jan 2010
|
|
RE: I'm unable to build VDrift in MSVC++ 2010 Express
(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
|
|
10-16-2014, 12:26 PM,
(This post was last modified: 10-16-2014, 12:27 PM by CrystalH.)
|
|
CrystalH
Member
|
Posts: 113
Threads: 9
Joined: Feb 2010
|
|
RE: I'm unable to build VDrift in MSVC++ 2010 Express
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
|
|
05-30-2015, 08:51 AM,
(This post was last modified: 05-30-2015, 10:12 AM by blindseeker.)
|
|
blindseeker
Junior Member
|
Posts: 2
Threads: 0
Joined: May 2015
|
|
RE: I'm unable to build VDrift in MSVC++ 2010 Express
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, 12:59 PM,
(This post was last modified: 05-30-2015, 01:03 PM by NaN.)
|
|
NaN
Posting Freak
|
Posts: 2,024
Threads: 120
Joined: Jan 2010
|
|
RE: I'm unable to build VDrift in MSVC++ 2010 Express
(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.
|
|
05-31-2015, 03:46 AM,
|
|
blindseeker
Junior Member
|
Posts: 2
Threads: 0
Joined: May 2015
|
|
RE: I'm unable to build VDrift in MSVC++ 2010 Express
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.
|
|
05-31-2015, 08:25 AM,
(This post was last modified: 05-31-2015, 08:31 AM by NaN.)
|
|
NaN
Posting Freak
|
Posts: 2,024
Threads: 120
Joined: Jan 2010
|
|
RE: I'm unable to build VDrift in MSVC++ 2010 Express
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
|
|
|