Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling in Windows - Latest SVN
07-25-2011, 02:29 AM
Post: #1
Compiling in Windows - Latest SVN
Dear All!

I am new to Vdrift and had some problems to compile the latest Version on Windows.
So is there anyone, from which I can get the compiled Windows Vdrift Files from the latest version?

Would be great?!

Or do you have a real dummy guide for compiling? I checked already the Wiki, but did not help without knowledge.

Greetings,
Wolfgang
Find all posts by this user
Quote this message in a reply
07-26-2011, 03:59 AM
Post: #2
 
Hi!

now I try to compoile Vdrift with codeblocks or with the bat file with windows.

with the bat file I get...
Code:
C:\Vdrift\Source\git\tools\win\bin>build_vdrift.bat

--VDrift Windows compilation script--

Make sure you're running this from your VDrift folder, like so:
tools\win\bin\build_vdrift.bat

include\definitions.h not found. Generating include\definitions.h
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.


scons: *** No SConstruct file found.
File "C:\Python26\Lib\site-packages\scons-2.1.0.alpha.20101125\SCons\Script\Main
.py", line 900, in _main

Copying files:
Datei vdrift.exe nicht gefunden.
0 Datei(en) kopiert
Datei *.dll nicht gefunden.
0 Datei(en) kopiert

Make sure you check get the VDrift data!  See:
http://wiki.vdrift.net/Getting_the_development_version#Checking_out_the_data

C:\Vdrift\Source\git\tools\win\bin>echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\MinGW32\bin;C:\Python​
26;C:\Python26\Scripts

C:\Vdrift\Source\git\tools\win\bin>


And with Codeblocks I get...

Code:
Running project pre-build steps
cmd /c "if not exist ..\..\include\definitions.h. (echo #ifndef _DEFINITIONS_H> ..\..\include\definitions.h && echo #define _DEFINITIONS_H>> ..\..\include\definitions.h && echo #define SETTINGS_DIR ".vdrift">> ..\..\include\definitions.h && echo #define DATA_DIR "./data">> ..\..\include\definitions.h && echo #define VERSION "2011-07-26">> ..\..\include\definitions.h && echo #define REVISION "latest">> ..\..\include\definitions.h && echo #endif>> ..\..\include\definitions.h)"

-------------- Build: Debug in vdrift ---------------

Compiling: ..\..\src\aabb.cpp
Compiling: ..\..\src\aabb_space_partitioning.cpp
Compiling: ..\..\src\ai.cpp
In file included from ..\..\include/carengine.h:4:0,
                 from ..\..\include/cardynamics.h:4,
                 from ..\..\include/car.h:4,
                 from C:\Vdrift\Source\git\src\ai.cpp:2:
..\..\include/driveshaft.h:4:33: fatal error: LinearMath/btScalar.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minutes, 6 seconds)
1 errors, 0 warnings


I tried to search for btScalar.h but I was not able to found this file?!
Please Help!!!


Greetings,
Wolfgang
Find all posts by this user
Quote this message in a reply
07-26-2011, 04:27 AM
Post: #3
 
OK. Found the problem.

I had to download Bullet and copy the Bullet SRC folder to the vdrift/scr/include directory.

Now compiling with codeblocks is working until....

Code:
Compiling: ..\..\src\window.cpp
Linking console executable: ..\..\vdriftd.exe
c:/mingw32/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lbulletd
collect2: ld returned 1 exit status
Process terminated with status 1 (6 minutes, 43 seconds)
1 errors, 4 warnings
Find all posts by this user
Quote this message in a reply
07-26-2011, 06:17 AM
Post: #4
 
Yeah, the wiki needs to be updated. See vdrift\tools\win\readme.txt for instructions.

Quote:c:/mingw32/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lbulletd
Open vdrift.workspace and build. It makes sure that bullet is compiled first. I'll upload a recent build to sourceforge.
Find all posts by this user
Quote this message in a reply
07-26-2011, 06:44 AM
Post: #5
 
Dear NaN!

Thanks for your help.
Now compiling is working.
But I get 25 warnings.

Can you give me the link of your uploaded recently compiled windows version?
Would be fine.

Thanks a lot.

Greetings,
Wolfgang
Find all posts by this user
Quote this message in a reply
07-26-2011, 07:10 AM
Post: #6
 
The warnings are OK. We are compiling with -Wall.

New build:
In order to view links, you must have to reply to this thread.
Find all posts by this user
Quote this message in a reply
08-15-2012, 07:01 AM
Post: #7
 
Updated few minutes ago, latest src from git and vdrift-win folder; tried to do:
premake4 codeblocks
got:
Error: invalid option 'force_feedback'

Is that normal?
Find all posts by this user
Quote this message in a reply
08-15-2012, 08:13 AM
Post: #8
 
Yes, have been too lazy to add an extra check. Just delete the old vdrift.cfg.

Alternatively, if you are using tortoisegit you can run "Clean up", disable "Remove untracked directories" to keep data and vdrift-win, rerun premake.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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