make
[ 7%] Building CXX object CMakeFiles/DERGO_Server.dir/src/main.cpp.o
In file included from /home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/./include/DergoSystem.h:9:0,
from /home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/src/main.cpp:18:
/home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/Dependencies/Ogre/Components/SceneFormat/include/OgreSceneFormatBase.h:125:36: error: expected class-name before ‘,’ token
public HlmsJsonListener, public HlmsTextureExportListener
^
/home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/Dependencies/Ogre/Components/SceneFormat/include/OgreSceneFormatBase.h:125:45: error: invalid use of incomplete type ‘class Ogre::HlmsTextureExportListener’
public HlmsJsonListener, public HlmsTextureExportListener
^
In file included from /home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/./include/Network/NetworkMessage.h:4:0,
from /home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/src/main.cpp:14:
/home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/Dependencies/Ogre/OgreMain/include/OgrePrerequisites.h:215:11: note: forward declaration of ‘class Ogre::HlmsTextureExportListener’
class HlmsTextureExportListener;
^
CMakeFiles/DERGO_Server.dir/build.make:278: recipe for target 'CMakeFiles/DERGO_Server.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/DERGO_Server.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/DERGO_Server.dir/all' failed
make[1]: *** [CMakeFiles/DERGO_Server.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
See Setting up Ogre on how to build Ogre and how to setup the Dependencies.
If done correctly, this file should exist OgreRepo/Dependencies/include/rapidjson/rapidjson.h
And make sure OGRE_CONFIG_ENABLE_JSON in CMake is ticked (this option won't appear if rapidjson is not detected)
dark_sylinc wrote: ↑Thu Dec 06, 2018 12:07 am
Ogre 2.1 must be build with JSON support.
See Setting up Ogre on how to build Ogre and how to setup the Dependencies.
If done correctly, this file should exist OgreRepo/Dependencies/include/rapidjson/rapidjson.h
And make sure OGRE_CONFIG_ENABLE_JSON in CMake is ticked (this option won't appear if rapidjson is not detected)
Yup I'v build Ogre with JSON ticked but got similar error
[ 76%] Building CXX object CMakeFiles/DERGO_Server.dir/src/main.cpp.o
In file included from /home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/./include/DergoSystem.h:9:0,
from /home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/src/main.cpp:18:
/home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/Dependencies/Ogre/Components/SceneFormat/include/OgreSceneFormatBase.h:125:36: error: expected class-name before ‘,’ token
public HlmsJsonListener, public HlmsTextureExportListener
^
/home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/Dependencies/Ogre/Components/SceneFormat/include/OgreSceneFormatBase.h:125:45: error: invalid use of incomplete type ‘class Ogre::HlmsTextureExportListener’
public HlmsJsonListener, public HlmsTextureExportListener
^
In file included from /home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/./include/Network/NetworkMessage.h:4:0,
from /home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/src/main.cpp:14:
/home/slobodan/dark_sylinc-dergo-blender-3ff610d2eff4/DERGO_Server/Dependencies/Ogre/OgreMain/include/OgrePrerequisites.h:215:11: note: forward declaration of ‘class Ogre::HlmsTextureExportListener’
class HlmsTextureExportListener;
^
CMakeFiles/DERGO_Server.dir/build.make:278: recipe for target 'CMakeFiles/DERGO_Server.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/DERGO_Server.dir/src/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/DERGO_Server.dir/all' failed
make[1]: *** [CMakeFiles/DERGO_Server.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Also I got this error when run cmake-gui . on DERGO_Server
Ah right! I forgot: DERGO needs OGRE_COMPONENT_SCENE_FORMAT (I'm not sure if it's exactly named like that, I'm not at computer right now) which is not enabled by default.
dark_sylinc wrote: ↑Thu Dec 06, 2018 3:21 pm
Ah right! I forgot: DERGO needs OGRE_COMPONENT_SCENE_FORMAT (I'm not sure if it's exactly named like that, I'm not at computer right now) which is not enabled by default.
I dont have "OGRE_COMPONENT_SCENE_FORMAT" maybe its OGRE_BUILD_COMPONENT_TERRAIN ?
Edit: Nope its not I cant even compile OGRE with that enabled
dark_sylinc wrote: ↑Thu Dec 06, 2018 6:48 pm
Bloody forum didn't submit my post.
I am at computer now. The name is OGRE_BUILD_COMPONENT_SCENE_FORMAT.
If you don't have it, then Rapidjson was not detected correctly or OGRE_CONFIG_ENABLE_JSON was unchecked. See my previous post on setting Ogre up.
Yes I folowed your post on how to setup OGRE and its Dependencies And there is no OGRE_BUILD_COMPONENT_SCENE_FORMAT
On instruction page it say put dependencies i side OGRE bur structure is not include/rapidjson/rapidjson.h its
Move the folder DERGO_Server/Dependencies/Ogre/Dependencies somewhere else i.e. /home/username/ogredeps
Go to /home/username/ogredeps/build/ogredeps and copy it to DERGO_Server/Dependencies/Ogre/Dependencies
dark_sylinc wrote: ↑Thu Dec 06, 2018 7:53 pm
Mmmm...
Move the folder DERGO_Server/Dependencies/Ogre/Dependencies somewhere else i.e. /home/username/ogredeps
Go to /home/username/ogredeps/build/ogredeps and copy it to DERGO_Server/Dependencies/Ogre/Dependencies
Nope OGRE_BUILD_COMPONENT_SCENE_FORMAT wont to show up
You need to press "Configure" again (if using CMake GUI) for the changes to show up again.
In some cases CMake marks something as not found permanently and deleting the build folder and starting over is easier. Before running CMake, the file Dependencies/include/rapidjson/rapidjson.h should exist (if not, then just copy paste the rapidjson folder....)
dark_sylinc wrote: ↑Thu Dec 06, 2018 8:11 pm
You need to press "Configure" again (if using CMake GUI) for the changes to show up again.
In some cases CMake marks something as not found permanently and deleting the build folder and starting over is easier. Before running CMake, the file Dependencies/include/rapidjson/rapidjson.h should exist (if not, then just copy paste the rapidjson folder....)
dark_sylinc wrote: ↑Thu Dec 06, 2018 8:11 pm
You need to press "Configure" again (if using CMake GUI) for the changes to show up again.
In some cases CMake marks something as not found permanently and deleting the build folder and starting over is easier. Before running CMake, the file Dependencies/include/rapidjson/rapidjson.h should exist (if not, then just copy paste the rapidjson folder....)
Ogre 2.1 does not contain OGRE_BUILD_COMPONENT_SCENE_FORMAT preriod, which version of OGRE do you use dark_sylinc ?
There are two packages named identically in CLI. The ninja you have installed is a "Privilege escalation detection system for GNU/Linux" component that has nothing to do.
There are two packages named identically in CLI. The ninja you have installed is a "Privilege escalation detection system for GNU/Linux" component that has nothing to do.
I have instled blender 2.76b and it wont to recognize addon Im downloading 2.76, I placed all scripts in zip and installed from file ?
~/DERGO/Test/ogre/build/Debug$ ninja
[4/243] Building CXX object Components....dir/src/OgreSceneFormatExporter.cpp.o
FAILED: /usr/bin/c++ -DOgreSceneFormat_EXPORTS -I../../OgreMain/include -Iinclude -I../../Dependencies/include -I../../Dependencies/include/OIS -I/usr/include/Cg -I../../ -I../../OgreMain/include/Threading -I../../Components/SceneFormat/include -I../../Components/Hlms/Common/include -I../../Components/Hlms/Pbs/include -Wall -Winit-self -Wno-overloaded-virtual -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wshadow -Wno-missing-field-initializers -Wno-long-long -Wno-unused-but-set-parameter -msse -msse2 -g -DDEBUG=1 -fPIC -fPIC -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -MMD -MT Components/SceneFormat/CMakeFiles/OgreSceneFormat.dir/src/OgreSceneFormatExporter.cpp.o -MF Components/SceneFormat/CMakeFiles/OgreSceneFormat.dir/src/OgreSceneFormatExporter.cpp.o.d -o Components/SceneFormat/CMakeFiles/OgreSceneFormat.dir/src/OgreSceneFormatExporter.cpp.o -c ../../Components/SceneFormat/src/OgreSceneFormatExporter.cpp
../../Components/SceneFormat/src/OgreSceneFormatExporter.cpp: In member function ‘const char* Ogre::SceneFormatExporter::encodeFloat(float)’:
../../Components/SceneFormat/src/OgreSceneFormatExporter.cpp:144:33: error: ‘isfinite’ was not declared in this scope
if( isfinite( value ) )
^
../../Components/SceneFormat/src/OgreSceneFormatExporter.cpp:144:33: note: suggested alternative:
In file included from ../../OgreMain/include/OgreStdHeaders.h:28:0,
from ../../OgreMain/include/OgrePrerequisites.h:428,
from ../../Components/SceneFormat/include/OgreSceneFormatPrerequisites.h:31,
from ../../Components/SceneFormat/include/OgreSceneFormatBase.h:31,
from ../../Components/SceneFormat/include/OgreSceneFormatExporter.h:31,
from ../../Components/SceneFormat/src/OgreSceneFormatExporter.cpp:31:
/usr/include/c++/5/cmath:844:5: note: ‘std::isfinite’
isfinite(_Tp __f)
^
../../Components/SceneFormat/src/OgreSceneFormatExporter.cpp: In member function ‘const char* Ogre::SceneFormatExporter::encodeDouble(double)’:
../../Components/SceneFormat/src/OgreSceneFormatExporter.cpp:168:33: error: ‘isfinite’ was not declared in this scope
if( isfinite( value ) )
^
../../Components/SceneFormat/src/OgreSceneFormatExporter.cpp:168:33: note: suggested alternative:
In file included from ../../OgreMain/include/OgreStdHeaders.h:28:0,
from ../../OgreMain/include/OgrePrerequisites.h:428,
from ../../Components/SceneFormat/include/OgreSceneFormatPrerequisites.h:31,
from ../../Components/SceneFormat/include/OgreSceneFormatBase.h:31,
from ../../Components/SceneFormat/include/OgreSceneFormatExporter.h:31,
from ../../Components/SceneFormat/src/OgreSceneFormatExporter.cpp:31:
/usr/include/c++/5/cmath:844:5: note: ‘std::isfinite’
isfinite(_Tp __f)
^
[4/243] Building CXX object Components...dir/src/OgreLodWorkQueueInjector.cpp.o
ninja: build stopped: subcommand failed.
sudo apt install gcc-5 g++-5
sudo update-alternatives --config cc
sudo update-alternatives --config c++
update-alternatives will ask you which compiler to use, select the newest one.
Perform "ninja clean" so that it can rebuild again (both on ogredeps/build and ogre/build/Debug) otherwise you'll be mixing object files generated by different compilers (that can cause bugs), or just delete everything / delete the build folders and start over.
sudo apt install gcc-5 g++-5
sudo update-alternatives --config cc
sudo update-alternatives --config c++
update-alternatives will ask you which compiler to use, select the newest one.
Perform "ninja clean" so that it can rebuild again (both on ogredeps/build and ogre/build/Debug) otherwise you'll be mixing object files generated by different compilers (that can cause bugs), or just delete everything / delete the build folders and start over.
$ sudo apt-get install gcc-5 g++-5
[sudo] password for slobodan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++-5 is already the newest version (5.4.0-6ubuntu1~16.04.10).
gcc-5 is already the newest version (5.4.0-6ubuntu1~16.04.10).
The following package was automatically installed and is no longer required:
libpng16-16
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
$ sudo update-alternatives --config cc
There is only one alternative in link group cc (providing /usr/bin/cc): /usr/bin/gcc
Nothing to configure.
slobodan@G31M-ES2L:~/DERGO/Test/ogre/build/Debug$ sudo update-alternatives --config cc++
update-alternatives: error: no alternatives for cc++