Missing files and other errors...

Missing files and other errors...

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Phoenixx86
Posts: 1
Joined: 14 Mar 2009, 01:41

Missing files and other errors...

Post by Phoenixx86 »

Downloaded the source from this link: http://spring.clan-sy.com/dl/spring_0.78.2.1_src.tar.gz

I'm using Visual C++ 2008 Express.

Got about 2 dozen "no such file" errors like this:
1>c1xx : fatal error C1083: Cannot open source file: '..\..\lib\luabind\src\wrapper_base.cpp': No such file or directory
No luabind folder, had to find LuaBind and download from their site.

Also got these 2 "no such file" errors:
1>c1xx : fatal error C1083: Cannot open source file: '..\..\System\Script\LuaFunctions.cpp': No such file or directory

1>c1xx : fatal error C1083: Cannot open source file: '..\..\System\Script\LuaBinder.cpp': No such file or directory
No script folder. Where do I get these 2 files?

And why aren't the LuaBind and System\Script folders & files included?

Other errors:
1>..\..\System\Net\UDPConnection.cpp(172) : error C2065: 'uint8_t' : undeclared identifier
1>..\..\System\Net\UDPConnection.cpp(172) : error C2133: 'buf' : unknown size
1>..\..\System\Net\UDPConnection.cpp(172) : error C2512: 'std::vector' : no appropriate default constructor available
1>..\..\System\Net\UDPConnection.cpp(175) : error C2663: 'std::vector<_Ty,_Alloc>::resize' : 2 overloads have no legal conversion for 'this' pointer
1>..\..\System\Net\UDPConnection.cpp(177) : error C2663: 'std::vector<_Ty,_Alloc>::begin' : 2 overloads have no legal conversion for 'this' pointer
1>..\..\System\Net\UDPConnection.cpp(183) : error C2893: Failed to specialize function template 'std::back_insert_iterator<_Container> std::back_inserter(_Container &)'
1> With the following template arguments:
1> 'std::vector'
1>..\..\System\Net\UDPConnection.cpp(186) : error C2662: 'std::vector<_Ty,_Alloc>::size' : cannot convert 'this' pointer from 'std::vector' to 'const std::vector<_Ty,_Alloc> &'
1> Reason: cannot convert from 'std::vector' to 'const std::vector<_Ty,_Alloc>'
1> Conversion requires a second user-defined-conversion operator or constructor
1>..\..\System\Net\UDPConnection.cpp(188) : error C2678: binary '[' : no operator found which takes a left-hand operand of type 'std::vector' (or there is no acceptable conversion)
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(758): could be 'vector<_Ty,_Alloc>::_Alloc::const_reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type) const'
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(773): or 'vector<_Ty,_Alloc>::_Alloc::reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type)'
1> while trying to match the argument list '(std::vector, unsigned int)'
1>..\..\System\Net\UDPConnection.cpp(202) : error C2662: 'std::vector<_Ty,_Alloc>::size' : cannot convert 'this' pointer from 'std::vector' to 'const std::vector<_Ty,_Alloc> &'
1> Reason: cannot convert from 'std::vector' to 'const std::vector<_Ty,_Alloc>'
1> Conversion requires a second user-defined-conversion operator or constructor
1>..\..\System\Net\UDPConnection.cpp(207) : error C2678: binary '[' : no operator found which takes a left-hand operand of type 'std::vector' (or there is no acceptable conversion)
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(758): could be 'vector<_Ty,_Alloc>::_Alloc::const_reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type) const'
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(773): or 'vector<_Ty,_Alloc>::_Alloc::reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type)'
1> while trying to match the argument list '(std::vector, unsigned int)'
1>..\..\System\Net\UDPConnection.cpp(211) : error C2678: binary '[' : no operator found which takes a left-hand operand of type 'std::vector' (or there is no acceptable conversion)
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(758): could be 'vector<_Ty,_Alloc>::_Alloc::const_reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type) const'
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(773): or 'vector<_Ty,_Alloc>::_Alloc::reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type)'
1> while trying to match the argument list '(std::vector, unsigned int)'
1>..\..\System\Net\UDPConnection.cpp(217) : error C2678: binary '[' : no operator found which takes a left-hand operand of type 'std::vector' (or there is no acceptable conversion)
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(758): could be 'vector<_Ty,_Alloc>::_Alloc::const_reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type) const'
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(773): or 'vector<_Ty,_Alloc>::_Alloc::reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type)'
1> while trying to match the argument list '(std::vector, unsigned int)'
1>..\..\System\Net\UDPConnection.cpp(217) : error C2662: 'std::vector<_Ty,_Alloc>::size' : cannot convert 'this' pointer from 'std::vector' to 'const std::vector<_Ty,_Alloc> &'
1> Reason: cannot convert from 'std::vector' to 'const std::vector<_Ty,_Alloc>'
1> Conversion requires a second user-defined-conversion operator or constructor
1>..\..\System\Net\UDPConnection.cpp(226) : error C2662: 'std::vector<_Ty,_Alloc>::size' : cannot convert 'this' pointer from 'std::vector' to 'const std::vector<_Ty,_Alloc> &'
1> Reason: cannot convert from 'std::vector' to 'const std::vector<_Ty,_Alloc>'
1> Conversion requires a second user-defined-conversion operator or constructor
1>..\..\System\Net\UDPConnection.cpp(229) : error C2678: binary '[' : no operator found which takes a left-hand operand of type 'std::vector' (or there is no acceptable conversion)
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(758): could be 'vector<_Ty,_Alloc>::_Alloc::const_reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type) const'
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(773): or 'vector<_Ty,_Alloc>::_Alloc::reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type)'
1> while trying to match the argument list '(std::vector, unsigned int)'
1>..\..\System\Net\UDPConnection.cpp(235) : error C2678: binary '[' : no operator found which takes a left-hand operand of type 'std::vector' (or there is no acceptable conversion)
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(758): could be 'vector<_Ty,_Alloc>::_Alloc::const_reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type) const'
1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\vector(773): or 'vector<_Ty,_Alloc>::_Alloc::reference std::vector<_Ty,_Alloc>::operator [](vector<_Ty,_Alloc>::_Alloc::size_type)'
1> while trying to match the argument list '(std::vector, unsigned int)'
1>..\..\System\Net\UDPConnection.cpp(235) : error C2662: 'std::vector<_Ty,_Alloc>::size' : cannot convert 'this' pointer from 'std::vector' to 'const std::vector<_Ty,_Alloc> &'
1> Reason: cannot convert from 'std::vector' to 'const std::vector<_Ty,_Alloc>'
1> Conversion requires a second user-defined-conversion operator or constructor
How are these fixed?

There are also a bunch of warnings, do warnings need to be fixed, or can I ignore them?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Missing files and other errors...

Post by Tobi »

Probably project files are outdated, no one uses Visual Studio currently to develop I think.

Best bet is to remove all the files for which the source file is missing from the project, then hope you can get it compiled, and then fix all the linker errors by adding files missing in the project.

Or use cmake to generate a Visual Studio project file, no clue how well that works tho and if it will point to the right dependencies etc.

You can ignore (most) warnings if you just want to compile. When writing new code don't introduce new warnings tho.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Missing files and other errors...

Post by zerver »

I'm using MSVC from time to time mostly because of the debugger which is lightyears ahead of gdb, but also the compiler which imo generates several useful warnings.

I'm not going to help you compile 78.2.1 because it is old already, but you could try downloading from github. If it does not work you may need an updated vclibs package - the one available for download is not properly updated. I can help you with that...
peous
Posts: 16
Joined: 11 Jul 2006, 00:21

Re: Missing files and other errors...

Post by peous »

Hi zerver & tobi.
I try to build on Windows too (I checkouted with git)
About dependencies, I downloaded the last ogg vorbis version, made some changes with glext.h, and now I'm stock on the same boost-error.

What is the version used in the current code branch ? I could take some time to rebuild vc8 dependencies but I have to know which version to use...
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Missing files and other errors...

Post by imbaczek »

boost requires 1.35+, you can use precompiled versions of 1.38 from http://www.boostpro.com/products/free. also, any pack of VC libraries should probably be made for VS2008, since there's a free version of that for download.
Post Reply

Return to “Engine”