Open Lunatix89 opened 10 years ago
So, I've got them figured out by myself :)
The ambigous "Entity" is just a typo:
[PolyPhysicsSceneEntity.h]
class Entity; namespace Polycode {
should be: namespace Polycode { class Entity;
Replaced M_PI by PI Put the round function inside Polyglobals (and includes cmath)
In polyimport, getopt / unistd.h are missing, because they are not available in a windows environment. Found getopt.c and getopt.h here: http://www.codeproject.com/Articles/157001/Full-getopt-Port-for-Unicode-and-Multibyte-Microso
Added them to the tools dependecies and modified the cmakelists, so it uses them on windows
Then, there are some errors from the Lua Wrapper because somewhere in the windows headers, "near" and "far" are being defined. Solved this by simply undefining these two in the python generator (create_lua_library.py, line 92) wrappersHeaderOut += "#undef near\n" wrappersHeaderOut += "#undef far\n" Voila, everything is fine now!
I will make a pull request for this :)
I have a little trouble here, building the screenrewrite branch on windows (tested 7 x86 / Windows 8.1 x64 with vc2010 & vc2012). I wanted to dive deeper into the code and maybe contribute and write a game with your engine and needed some of the newer features.
I just wanted to know, with which compiler and OS polycode is build during the screenrewrite branch, because i got some strange errors here - for example, this one:
......\Core\Contents\Source\PolyEntity.cpp(387): error C3861: 'round': identifier not found I couldn't find any "round" method in the msvc math lib, so I think this may be a define or something else from another platform or some header, which isn't used in the windows version.
Simple workaround / solution: inline int round(float x) { return (floor(x + 0.5)); }
Another one I could not figure out, even if I added an additional "#include" to the source file:
.....\Core\Contents\Source\PolyMesh.cpp(531): error C2065: 'M_PI' : undeclared identifier
Here one could simple use "PI" which is defined by the polyglobals :)
And then, here come the errors which I could not figure out, maybe those are simply not yet done and aren't "real" errors, because it's simply not rewritten/done yet:
3>........\Modules\Contents\3DPhysics\Source\PolyPhysicsSceneEntity.cpp(31): error C2872: 'Entity' : ambiguous symbol 3> could be 'D:\polycode\Polycode\polycode-src\Modules\Contents\3DPhysics\Include\PolyPhysicsSceneEntity.h(34) : Entity' 3> or 'D:\polycode\Polycode\polycode-src\Core\Contents\Include\PolyEntity.h(72) : Polycode::Entity'
I have the ambigous overloads in every physics file, so maybe there is a typedef somewhere which is fucking it up...
I've posted the complete build log here: http://pastebin.com/Vb1GK1BE
Would be very nice to get some informations, as i really would like to get this thing working and would also fix the errors by myself and contribute them so you (ivan) :)