Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm unable to build VDrift in MSVC++ 2010 Express
10-15-2014, 05:04 PM
Post: #1
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:

In order to view links, you must have to reply to this thread.

What am I doing wrong?
Find all posts by this user
Quote this message in a reply
10-16-2014, 09:49 AM
Post: #2
RE: I'm unable to build VDrift in MSVC++ 2010 Express
(10-15-2014 05:04 PM)biziclop Wrote: In order to view links, you must have to reply to this thread.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:

In order to view links, you must have to reply to this thread.

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
Find all posts by this user
Quote this message in a reply
10-16-2014, 12:26 PM (This post was last modified: 10-16-2014 12:27 PM by CrystalH.)
Post: #3
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
In order to view links, you must have to reply to this thread.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-16-2014, 01:14 PM
Post: #4
RE: I'm unable to build VDrift in MSVC++ 2010 Express
(10-16-2014 12:26 PM)CrystalH Wrote: In order to view links, you must have to reply to this thread.Hmm I had that bad declspec align error in VS 2008 long ago.
See here, got it fixed by editing msvc file
In order to view links, you must have to reply to this thread.

I switched from std::vector to btAlignedObjectArray, should fix the issue.
Find all posts by this user
Quote this message in a reply
10-19-2014, 09:26 AM
Post: #5
RE: I'm unable to build VDrift in MSVC++ 2010 Express
@biziclop have you tried to build the latest master, are you still getting errors?
Find all posts by this user
Quote this message in a reply
05-30-2015, 08:51 AM (This post was last modified: 05-30-2015 10:12 AM by blindseeker.)
Post: #6
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.
Find all posts by this user
Quote this message in a reply
05-30-2015, 12:59 PM (This post was last modified: 05-30-2015 01:03 PM by NaN.)
Post: #7
RE: I'm unable to build VDrift in MSVC++ 2010 Express
(05-30-2015 08:51 AM)blindseeker Wrote: In order to view links, you must have to reply to this thread.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 In order to view links, you must have to reply to this thread. (although it might be slightly outdated)?

The windows builds are created using mingw64/msys and more recently msys2 ( In order to view links, you must have to reply to this thread. ) 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
Find all posts by this user
Quote this message in a reply
05-31-2015, 03:46 AM
Post: #8
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 Wink

Thanks a lot for answering that fast, also for the tip with Boost.

...or I could just tinker with Stunt Rally (In order to view links, you must have to reply to this thread. 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.
Find all posts by this user
Quote this message in a reply
05-31-2015, 08:25 AM (This post was last modified: 05-31-2015 08:31 AM by NaN.)
Post: #9
RE: I'm unable to build VDrift in MSVC++ 2010 Express
I've updated scons scripts to support msys2.

1. Install MSYS2:
In order to view links, you must have to reply to this thread.

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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)