Wow that was a lot of work…
Building the newest Urho from Git wasn’t that difficult, but building my project with that… Wow!
Had to change my CMake file because the path to this CMake common file has changed and had to change every include path (the old one were weird but worked somehow). Also had to set more paths manually in CMake-GUI.
I also had to add a line to the top of Urho3D/Container/LinkedList.h:
#pragma once
#define URHO3D_API // <- added (yeah dirty fix)
namespace Urho3D
{
/// Singly-linked list node base class.
struct URHO3D_API LinkedListNode
{
/// Construct.
LinkedListNode() :
next_(0)
{
}
/// Pointer to next node.
LinkedListNode* next_;
};
...
Seems like URHO3D_API wasn’t defined and I got several errors because of that:
In file included from S:/dev/git_urho3d/Build/include/Urho3D/Core/../Core/Object.h:25:0,
from S:/dev/git_urho3d/Build/include/Urho3D/Core/CoreEvents.h:25,
from S:\dev\git_sh_urho3d\Source\main.cpp:20:
S:/dev/git_urho3d/Build/include/Urho3D/Core/../Core/../Container/LinkedList.h:28:19: error: variable 'Urho3D::URHO3D_API Urho3D::LinkedListNode' has initializer but incomplete type
struct URHO3D_API LinkedListNode
^
S:/dev/git_urho3d/Build/include/Urho3D/Core/../Core/../Container/LinkedList.h:31:22: error: expected '}' before ':' token
LinkedListNode() :
^
S:/dev/git_urho3d/Build/include/Urho3D/Core/../Core/../Container/LinkedList.h:31:22: error: expected ',' or ';' before ':' token
S:/dev/git_urho3d/Build/include/Urho3D/Core/../Core/../Container/LinkedList.h:37:5: error: 'LinkedListNode' does not name a type
LinkedListNode* next_;
^
S:/dev/git_urho3d/Build/include/Urho3D/Core/../Core/../Container/LinkedList.h:170:1: error: expected declaration before '}' token
}
^
(I’m using Urho as a static lib so I think it’s defined to empty anyway, if it’s defined)
But now my project is building and running again.
The terrain issues are all gone!
No more forgotten or half updates!