Forums

Full Version: Help.Compile on Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have windows 7 x64,I've open VDrift.cbp with code blocks,then I've try to compile.And I receive this error:"linux" does not support the current platform. Skipping...
What can I do to compile on Windows?
Use tools/win/vdrift.cbp
With that it give me errors.Build log:
Code:
-------------- Build: Debug in win32 ---------------

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 "2010-12-17">> ..\..\include\definitions.h && echo #define REVISION "latest">> ..\..\include\definitions.h && echo #endif>> ..\..\include\definitions.h)"
Compiling: ..\..\src\ai.cpp
In file included from ../../include/mathvector.h:4,
                 from ../../include/drawable.h:5,
                 from ../../include/drawable_container.h:4,
                 from ../../include/scenenode.h:4,
                 from ../../include/ai.h:6,
                 from D:\Jocuri\vdrift\src\ai.cpp:1:
../../include/joeserialize.h:25: warning: `class joeserialize::Serializer' has virtual functions but non-virtual destructor
../../include/joeserialize.h:445: warning: `class joeserialize::SerializerOutput' has virtual functions but non-virtual destructor
../../include/joeserialize.h:451: warning: `class joeserialize::SerializerInput' has virtual functions but non-virtual destructor
../../include/joeserialize.h:696: warning: `class joeserialize::TextOutputSerializer' has virtual functions but non-virtual destructor
../../include/joeserialize.h:782: warning: `class joeserialize::TextInputSerializer' has virtual functions but non-virtual destructor
../../include/joeserialize.h:1060: warning: `class joeserialize::BinaryOutputSerializer' has virtual functions but non-virtual destructor
../../include/joeserialize.h:1141: warning: `class joeserialize::BinaryInputSerializer' has virtual functions but non-virtual destructor
../../include/joeserialize.h:1231: warning: `class joeserialize::ReflectionSerializer' has virtual functions but non-virtual destructor
In file included from ../../include/drawable_container.h:4,
                 from ../../include/scenenode.h:4,
                 from ../../include/ai.h:6,
                 from D:\Jocuri\vdrift\src\ai.cpp:1:
../../include/drawable.h:7:22: tr1/memory: No such file or directory
In file included from ../../include/drawable_container.h:4,
                 from ../../include/scenenode.h:4,
                 from ../../include/ai.h:6,
                 from D:\Jocuri\vdrift\src\ai.cpp:1:
../../include/drawable.h:23: error: `std::tr1' has not been declared
../../include/drawable.h:23: error: `shared_ptr' has not been declared
../../include/drawable.h:23: error: expected `,' or `...' before '<' token
../../include/drawable.h:26: error: `std::tr1' has not been declared
../../include/drawable.h:26: error: `shared_ptr' has not been declared
../../include/drawable.h:26: error: expected `,' or `...' before '<' token
../../include/drawable.h:26: error: ISO C++ forbids declaration of `parameter' with no type
../../include/drawable.h:29: error: `std::tr1' has not been declared
../../include/drawable.h:29: error: `shared_ptr' has not been declared
../../include/drawable.h:29: error: expected `,' or `...' before '<' token
../../include/drawable.h:29: error: ISO C++ forbids declaration of `parameter' with no type
../../include/drawable.h:103: error: `std::tr1' has not been declared
../../include/drawable.h:103: error: ISO C++ forbids declaration of `shared_ptr' with no type
../../include/drawable.h:103: error: expected `;' before '<' token
../../include/drawable.h:104: error: `std::tr1' has not been declared
../../include/drawable.h:104: error: ISO C++ forbids declaration of `shared_ptr' with no type
../../include/drawable.h:104: error: expected `;' before '<' token
../../include/drawable.h:105: error: `std::tr1' has not been declared
../../include/drawable.h:105: error: ISO C++ forbids declaration of `shared_ptr' with no type
../../include/drawable.h:105: error: expected `;' before '<' token
../../include/drawable.h: In member function `const TEXTURE* DRAWABLE::GetDiffuseMap() const':
../../include/drawable.h:22: error: `diffuse_map' was not declared in this scope
../../include/drawable.h:22: warning: unused variable 'diffuse_map'
../../include/drawable.h: In member function `void DRAWABLE::SetDiffuseMap(int)':
../../include/drawable.h:23: error: `diffuse_map' was not declared in this scope
../../include/drawable.h:23: error: `value' was not declared in this scope
../../include/drawable.h:23: warning: unused variable 'diffuse_map'
../../include/drawable.h:23: warning: unused variable 'value'
../../include/drawable.h: In member function `const TEXTURE* DRAWABLE::GetMiscMap1() const':
../../include/drawable.h:25: error: `misc_map1' was not declared in this scope
../../include/drawable.h:25: warning: unused variable 'misc_map1'
../../include/drawable.h: In member function `void DRAWABLE::SetMiscMap1(int)':
../../include/drawable.h:26: error: `misc_map1' was not declared in this scope
../../include/drawable.h:26: error: `value' was not declared in this scope
../../include/drawable.h:26: warning: unused variable 'misc_map1'
../../include/drawable.h:26: warning: unused variable 'value'
../../include/drawable.h: In member function `const TEXTURE* DRAWABLE::GetMiscMap2() const':
../../include/drawable.h:28: error: `misc_map2' was not declared in this scope
../../include/drawable.h:28: warning: unused variable 'misc_map2'
../../include/drawable.h: In member function `void DRAWABLE::SetMiscMap2(int)':
../../include/drawable.h:29: error: `misc_map2' was not declared in this scope
../../include/drawable.h:29: error: `value' was not declared in this scope
../../include/drawable.h:29: warning: unused variable 'misc_map2'
../../include/drawable.h:29: warning: unused variable 'value'
In file included from ../../include/drawable_container.h:100,
                 from ../../include/scenenode.h:4,
                 from ../../include/ai.h:6,
                 from D:\Jocuri\vdrift\src\ai.cpp:1:
../../include/drawables.def:13:15: warning: no newline at end of file
In file included from ../../include/drawable_container.h:109,
                 from ../../include/scenenode.h:4,
                 from ../../include/ai.h:6,
                 from D:\Jocuri\vdrift\src\ai.cpp:1:
../../include/drawables.def:13:15: warning: no newline at end of file
In file included from ../../include/drawable_container.h:118,
                 from ../../include/scenenode.h:4,
                 from ../../include/ai.h:6,
                 from D:\Jocuri\vdrift\src\ai.cpp:1:
../../include/drawables.def:13:15: warning: no newline at end of file
In file included from ../../include/drawable_container.h:127,
                 from ../../include/scenenode.h:4,
                 from ../../include/ai.h:6,
                 from D:\Jocuri\vdrift\src\ai.cpp:1:
../../include/drawables.def:13:15: warning: no newline at end of file
In file included from ../../include/car.h:4,
                 from D:\Jocuri\vdrift\src\ai.cpp:2:
../../include/cardynamics.h: At global scope:
../../include/cardynamics.h:185: error: `std::tr1' has not been declared
../../include/cardynamics.h:185: error: `shared_ptr' was not declared in this scope
../../include/cardynamics.h:185: error: template argument 1 is invalid
../../include/cardynamics.h:185: error: template argument 2 is invalid
../../include/cardynamics.h:185: error: expected unqualified-id before '>' token
../../include/cardynamics.h: In member function `const CARSUSPENSION<double>& CARDYNAMICS::GetSuspension(WHEEL_POSITION) const':
../../include/cardynamics.h:120: error: `suspension' was not declared in this scope
../../include/cardynamics.h:120: warning: unused variable 'suspension'
In file included from ../../include/car.h:7,
                 from D:\Jocuri\vdrift\src\ai.cpp:2:
../../include/soundsource.h: At global scope:
../../include/soundsource.h:17: error: `std::tr1' has not been declared
../../include/soundsource.h:17: error: expected `,' or `...' before '<' token
../../include/soundsource.h:18: error: ISO C++ forbids declaration of `shared_ptr' with no type
../../include/soundsource.h:142: error: `std::tr1' has not been declared
../../include/soundsource.h:142: error: ISO C++ forbids declaration of `shared_ptr' with no type
../../include/soundsource.h:142: error: expected `;' before '<' token
../../include/soundsource.h: In member function `void SOUNDSOURCE::SetBuffer(int)':
../../include/soundsource.h:19: error: `newbuf' was not declared in this scope
../../include/soundsource.h:20: error: `buffer' was not declared in this scope
../../include/soundsource.h:20: warning: unused variable 'buffer'
../../include/soundsource.h: In member function `void SOUNDSOURCE::SeekToSample(unsigned int)':
../../include/soundsource.h:39: error: `buffer' was not declared in this scope
../../include/soundsource.h: In member function `const std::string SOUNDSOURCE::GetName() const':
../../include/soundsource.h:91: error: `buffer' was not declared in this scope
../../include/soundsource.h:91: warning: unused variable 'buffer'
../../include/soundsource.h:92: error: `buffer' was not declared in this scope
../../include/soundsource.h:92: warning: unused variable 'buffer'
../../include/soundsource.h: In member function `const SOUNDBUFFER& SOUNDSOURCE::GetSoundTrack() const':
../../include/soundsource.h:97: error: `buffer' was not declared in this scope
In file included from D:\Jocuri\vdrift\src\ai.cpp:2:
../../include/car.h: At global scope:
../../include/car.h:315: error: `std::tr1' has not been declared
../../include/car.h:315: error: `shared_ptr' was not declared in this scope
Process terminated with status 1 (0 minutes, 5 seconds)
50 errors, 25 warnings
I have revision 2986.
You need a more recent compiler, gcc > 4.0. Try http://mingw-w64.sourceforge.net/ sezero builds.
NaN, is this page up-to-date? I don't have a Windows install to test with.

http://wiki.vdrift.net/Compiling_on_Windows
Don't know about the MSYS stuff, not using it. But the other info should be OK. I could add a compiling VDrift with MSVC section if there is interest.