Issue Codeblocks+ Ogre1.8.1

Problems building or running the engine, queries about how to use features etc.
Post Reply
Pamellino
Gnoblar
Posts: 12
Joined: Thu Oct 02, 2014 7:38 pm
Location: Belgium

Issue Codeblocks+ Ogre1.8.1

Post by Pamellino »

Hi everyone,

I suppose that someone already had this case but I searched and I found nothing that can help me (I will become mad haha :lol: ) :

I have followed the tutorial http://www.ogre3d.org/tikiwiki/tiki-ind ... CodeBlocks
and finally I got issues :

Code: Select all

Ogre::OverlaySystem*        mOverlaySystem;

C:\C++ Projects\OgreProject\BaseApplication.h|111|error: 'OverlaySystem' in namespace 'Ogre' does not name a type|
C:\C++ projects\OgreProject\BaseApplication.h|114|error: 'InputContext' in namespace 'OgreBites' does not name a type|
I suppose that it's a link issue but I don't know how to solve it

My computer/setup configuration is :
- Windows 8.1
- Code::blocks 13.12
- Ogre SDK 1_8_1
- Ogre Wiki Tutorial Framework 1.9 - (Windows line endings)
OR Ogre Wiki Tutorial Framework 1.10 - (Windows line endings) (samething with both)
- Mingw last update (installed with mingw-get-setup.exe and linked correctly on the compiler)

Really thanks in advance for your help.
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Issue Codeblocks+ Ogre1.8.1

Post by spacegaier »

You are mixing different versions. If you want to use the Ogre Wiki Tutorial Framework for Ogre 1.9, then you also need to use Ogre 1.9 and not 1.8!

The errors you are seeing are related to the different versions, since some things changed between them.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Pamellino
Gnoblar
Posts: 12
Joined: Thu Oct 02, 2014 7:38 pm
Location: Belgium

Re: Issue Codeblocks+ Ogre1.8.1

Post by Pamellino »

Thanks a lot for your fast reply.
Indeed It would suppose that I have to switch from Code::Blocks to Visual C++ (last release for CB is 1.8.1).
Or maybe change the Tutorial Framework by a compatible one ? Could you please tell me where I can find a compatible version
? (only 1.9, 1.10, tiny and lowlevel are availlable in the wiki page ( http://www.ogre3d.org/tikiwiki/tiki-ind ... +Framework ))
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Issue Codeblocks+ Ogre1.8.1

Post by spacegaier »

I am not aware of any tutorial framework version for Ogre 1.8. Do you need to use Ogre 1.8 or can you use a newer version (which is always recommended)?

Also, the Ogre versions are not specifically bound to any particular IDE. Only the SDK downloads we provide are tied to an IDE, but you can easily compile Ogre3D from the actual source code yourself to suit any development environment.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Pamellino
Gnoblar
Posts: 12
Joined: Thu Oct 02, 2014 7:38 pm
Location: Belgium

Re: Issue Codeblocks+ Ogre1.8.1

Post by Pamellino »

The version 1.9 is ok for me and that is an "added value"for me to use it in Code::Blocks (that's my main IDE).

I checked for the source code on the link displayed on website : https://bitbucket.org/sinbad/ogre/src/
I suppose that it need more than include sources in the project + call "Ogre.h" in .CPP pages, no ?

should I follow this tutorial with CMake building ? http://www.ogre3d.org/tikiwiki/Building+Ogre

Sorry for these questions but I'm beginner on this topic
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Issue Codeblocks+ Ogre1.8.1

Post by spacegaier »

There are always two options:
1. Use one of the pre-built SDKs from the download page. In that case, you only need to include the necessary Ogre header files and link the existing lib files.
2. Compile Ogre yourself from the latest source code. In that case, follow the guide you linked. By building i yourself, you can be sure that it matches and works with your IDE/compiler and you have the latest fixes as well (the current SDKs are a bit old and need to be replaced).
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Pamellino
Gnoblar
Posts: 12
Joined: Thu Oct 02, 2014 7:38 pm
Location: Belgium

Re: Issue Codeblocks+ Ogre1.8.1

Post by Pamellino »

Thanks a lot ! I think it's near to be resolved. :D

I cloned the source with Tortoise and build Ogre SDK (+ MinGW dependencies), it finished. (after having some issues with missing dll as libintl-8.dll and libgmp-10.dll)

Code: Select all

Configuring OGRE 1.10.0unstable
Search path: C:/Ogre3d/Dependencies;C:/ogre/Dependencies;C:/Ogre3d/../Dependencies;C:/ogre/../Dependencies
Looking for ZLIB...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Found ZLIB: optimized;C:/ogre/Dependencies/lib/Release/libzlib.a;debug;C:/ogre/Dependencies/lib/Debug/libzlib_d.a
Looking for ZZip...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Found ZZip: optimized;C:/ogre/Dependencies/lib/Release/libzziplib.a;debug;C:/ogre/Dependencies/lib/Debug/libzziplib_d.a
Looking for FreeImage...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Found FreeImage: optimized;C:/ogre/Dependencies/lib/Release/libFreeImage.a;debug;C:/ogre/Dependencies/lib/Debug/libFreeImage_d.a
Looking for FREETYPE...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
CMAKE_PREFIX_PATH: C:/Ogre3d/Dependencies;C:/ogre/Dependencies;C:/Ogre3d/../Dependencies;C:/ogre/../Dependencies
CMAKE_PREFIX_PATH: C:/Ogre3d/Dependencies;C:/ogre/Dependencies;C:/Ogre3d/../Dependencies;C:/ogre/../Dependencies
Found FREETYPE: optimized;C:/ogre/Dependencies/lib/Release/libfreetype.a;debug;C:/ogre/Dependencies/lib/Debug/libfreetype_D.a
Looking for DirectX9...
Could not locate DirectX9
Looking for DirectX11...
Could not locate DirectX11
Looking for Cg...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Found Cg: optimized;C:/ogre/Dependencies/lib/Release/libcg.a;debug;C:/ogre/Dependencies/lib/Debug/libcg.a
Looking for POCO...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate POCO
Looking for TBB...
Could not locate TBB
Looking for GLSL_Optimizer...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate GLSL_Optimizer
Looking for HLSL2GLSL...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate HLSL2GLSL
Looking for OIS...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Found OIS: optimized;C:/ogre/Dependencies/lib/Release/libOIS.a;debug;C:/ogre/Dependencies/lib/Debug/libOIS_d.a
Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
Looking for Softimage...
Could not locate Softimage
Could NOT find TinyXML (missing:  TINYXML_INCLUDE_DIR TINYXML_LIBRARIES) 
Looking for CppUnit...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate CppUnit

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ zlib
+ zziplib
+ freeimage
+ freetype
+ OpenGL
+ OpenGL 3+
+ OpenGL ES 1.x
+ OpenGL ES 2.x
+ OpenGL ES 3.x
+ cg
+ OIS
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ DirectX9: Support for the DirectX render system <http://msdn.microsoft.com/en-us/directx/>
+ DirectX11: Support for the DirectX11 render system <http://msdn.microsoft.com/en-us/directx/>
+ boost: Boost (general) <http://boost.org>
+ boost-thread: Used for threading support <http://boost.org>
+ boost-date_time: Used for threading support <http://boost.org>
+ POCO: POCO framework <http://pocoproject.org/>
+ tbb: Threading Building Blocks <http://www.threadingbuildingblocks.org/>
+ GLSL Optimizer: GLSL Optimizer <http://github.com/aras-p/glsl-optimizer/>
+ HLSL2GLSL: HLSL2GLSL <http://hlsl2glslfork.googlecode.com/>
+ Doxygen: Tool for building API documentation <http://doxygen.org>
+ Softimage: Softimage SDK needed for building XSIExporter <FALSE>
+ TinyXML: TinyXML needed for building OgreXMLConverter <FALSE>
+ CppUnit: Library for performing unit tests <http://cppunit.sourceforge.net>
-----------------------------------------------------------------------------


----------------------------------------------------------------------------
  FEATURE SUMMARY
----------------------------------------------------------------------------

Building components:
  + Paging
  + MeshLodGenerator
  + Terrain
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
  + Volume
  + Overlay
Building plugins:
  + BSP scene manager
  + Cg program manager
  + Octree scene manager
  + Portal connected zone scene manager
  + Particle FX
Building rendersystems:
  + OpenGL
Building executables:
  + Samples
  + Tools
Building core features:
  + Mesh Lod
  + DDS image codec
  + FreeImage codec
  + ZIP archives

Build type:                      dynamic
Threading support:               none
Use double precision:            disabled
Assert mode:                     standard
Allocator type:                  nedmalloc (pooling)
STL containers use allocator:    enabled
Strings use allocator:           disabled
Memory tracker (debug):          disabled
Memory tracker (release):        disabled
Use Boost:                       disabled

----------------------------------------------------------------------------

Configuring done
Generating done
But here I compile with the file project Ogre.CBP and after a while I got this error

Code: Select all

C:\ogre\OgreMain\src\OgreZip.cpp|38|fatal error: zzip/plugin.h: No such file or directory|

Code: Select all

#include "OgreLogManager.h"
#include "OgreException.h"

#include <zzip/zzip.h>
#include <zzip/plugin.h>   // <== issue here 
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Issue Codeblocks+ Ogre1.8.1

Post by spacegaier »

I assume this error appears when you try to compile Ogre itself, correct?

This missing file is part of the Ogre dependencies. Can you verify that it exists on your system in the dependencies you downloaded?
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Pamellino
Gnoblar
Posts: 12
Joined: Thu Oct 02, 2014 7:38 pm
Location: Belgium

Re: Issue Codeblocks+ Ogre1.8.1

Post by Pamellino »

Yes Indeed it's when I try to compile ogre by openning the code::blocks project file created after "configure" and "generate".
and there -are any "plugin.h", only these files :
_config.h
conf.h
types.h
zzip.h

I had followed the tutorial at http://www.ogre3d.org/tikiwiki/tiki-ind ... ites#MinGW
and downloaded this dependencies file :
MinGW users can grab the precompiled MinGW Dependencies(https://sourceforge.net/projects/ogre/f ... p/download)
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Issue Codeblocks+ Ogre1.8.1

Post by spacegaier »

Okay, those a very old dependencies for Ogre 1.7 (I will edit the wiki article to reflect that).

The easiest way usually is to grab the official Ogre dependency source and compile them yourself. Then you are sure that everything is there and works: https://bitbucket.org/cabalistic/ogredeps
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Pamellino
Gnoblar
Posts: 12
Joined: Thu Oct 02, 2014 7:38 pm
Location: Belgium

Re: Issue Codeblocks+ Ogre1.8.1

Post by Pamellino »

I got this error message during the "configure" of dependency files

Code: Select all

Looking for DirectX...
Could not locate DirectX
CMake Error at cmake/FindPkgMacros.cmake:117 (message):
  Required library DirectX not found! Install the library (including dev
  packages) and try again.  If the library is already installed, set the
  missing variables manually in cmake.
Call Stack (most recent call first):
  cmake/FindDirectX.cmake:72 (findpkg_finish)
  CMakeLists.txt:12 (find_package)


Configuring incomplete, errors occurred!
See also "C:/ogre/Dependencies/CMakeFiles/CMakeOutput.log".
But I had already installed DirectX SDK (last version) => http://msdn.microsoft.com/en-us/windows ... 62891.aspx .
Perhaps should I have to make a change into a "CMakeLists" file (like directory) ?
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Issue Codeblocks+ Ogre1.8.1

Post by spacegaier »

I assume you are still using Ogre 1.8.1, correct? I am asking because that issue (detection of the new Win 8 SDKs) has AFAIK been fixed in the v1-9 branch but not in the older ones.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Pamellino
Gnoblar
Posts: 12
Joined: Thu Oct 02, 2014 7:38 pm
Location: Belgium

Re: Issue Codeblocks+ Ogre1.8.1

Post by Pamellino »

Unfortunatly not, I'm on the last source version provided by https://bitbucket.org/sinbad/ogre/src/
(on build: "Configuring OGRE 1.10.0unstable")
with the dependency files you provided me
when I try to build the whole directory ("c:/ogre/"), i got this (more details than "c:/ogre/dependency" alone) :

Code: Select all

The C compiler identification is GNU 4.8.1
The CXX compiler identification is GNU 4.8.1
Check for working C compiler: c:/MinGW/bin/gcc.exe
Check for working C compiler: c:/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: c:/MinGW/bin/g++.exe
Check for working CXX compiler: c:/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Configuring OGRE 1.10.0unstable
Check size of void*
Check size of void* - done
Performing Test OGRE_GCC_HAS_SSE
Performing Test OGRE_GCC_HAS_SSE - Success
Check if the system is big endian
Searching 16 bit integer
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of unsigned short
Check size of unsigned short - done
Using unsigned short
Check if the system is big endian - little endian
Search path: C:/OGRE3DSDK/Dependencies;C:/ogre/Dependencies;C:/OGRE3DSDK/../Dependencies;C:/ogre/../Dependencies
Looking for ZLIB...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate ZLIB
Looking for FreeImage...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate FreeImage
Looking for FREETYPE...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
CMAKE_PREFIX_PATH: C:/OGRE3DSDK/Dependencies;C:/ogre/Dependencies;C:/OGRE3DSDK/../Dependencies;C:/ogre/../Dependencies
CMAKE_PREFIX_PATH: C:/OGRE3DSDK/Dependencies;C:/ogre/Dependencies;C:/OGRE3DSDK/../Dependencies;C:/ogre/../Dependencies
Could not locate FREETYPE
Found OpenGL: opengl32  
Looking for DirectX9...
DirectX9_PREFIX_PATH changed.
Could not locate DirectX9
Looking for DirectX11...
DirectX11_PREFIX_PATH changed.
Could not locate DirectX11
Looking for Cg...
Cg_PREFIX_PATH changed.
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate Cg
Looking for POCO...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate POCO
Looking for TBB...
Could not locate TBB
Looking for GLSL_Optimizer...
GLSL_Optimizer_PREFIX_PATH changed.
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate GLSL_Optimizer
Looking for HLSL2GLSL...
HLSL2GLSL_PREFIX_PATH changed.
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate HLSL2GLSL
Looking for OIS...
OIS_PREFIX_PATH changed.
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate OIS
Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
Looking for Softimage...
Softimage_PREFIX_PATH changed.
Could not locate Softimage
Could NOT find TinyXML (missing:  TINYXML_INCLUDE_DIR TINYXML_LIBRARIES) 
Looking for CppUnit...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate CppUnit
Looking for DirectX...
DirectX_PREFIX_PATH changed.
Check size of void*
Check size of void* - done
Could not locate DirectX
CMake Error at Dependencies/cmake/FindPkgMacros.cmake:117 (message):
  Required library DirectX not found! Install the library (including dev
  packages) and try again.  If the library is already installed, set the
  missing variables manually in cmake.
Call Stack (most recent call first):
  Dependencies/cmake/FindDirectX.cmake:72 (findpkg_finish)
  Dependencies/CMakeLists.txt:12 (find_package)


Configuring incomplete, errors occurred!
See also "C:/OGRE3DSDK/CMakeFiles/CMakeOutput.log".
See also "C:/OGRE3DSDK/CMakeFiles/CMakeError.log".

EDIT :

I had done an update of dependency folder with the https://bitbucket.org/cabalistic/ogredeps and the issue with DirectX is resolved
Maybe some improvements are in progress and that's why it had been resolved.

but there are still issues with OIS_d.dll and OIS.dll on building with CMake

Code: Select all

send_errorC:/ogre/Dependencies/src/bin/debug/OIS_d.dll did not exist, can't install!
send_errorC:/ogre/Dependencies/src/bin/release/OIS.dll did not exist, can't install!
----------------------------------------------------------------------------

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FREETYPE_FT2BUILD_INCLUDE_DIR (ADVANCED)
   used as include directory in directory C:/ogre/OgreMain
   used as include directory in directory C:/ogre/RenderSystems/GL
   used as include directory in directory C:/ogre/PlugIns/OctreeSceneManager
   used as include directory in directory C:/ogre/PlugIns/BSPSceneManager
   used as include directory in directory C:/ogre/PlugIns/ParticleFX
   used as include directory in directory C:/ogre/PlugIns/PCZSceneManager
   used as include directory in directory C:/ogre/PlugIns/OctreeZone
   used as include directory in directory C:/ogre/Components/Paging
   used as include directory in directory C:/ogre/Components/MeshLodGenerator
   used as include directory in directory C:/ogre/Components/Terrain
   used as include directory in directory C:/ogre/Components/RTShaderSystem
   used as include directory in directory C:/ogre/Components/Volume
   used as include directory in directory C:/ogre/Tools/XMLConverter
   used as include directory in directory C:/ogre/Tools/MeshUpgrader

Configuring incomplete, errors occurred!
See also "C:/OGRE3DSDK/CMakeFiles/CMakeOutput.log".
See also "C:/OGRE3DSDK/CMakeFiles/CMakeError.log".
(FYI the whole log below)

Code: Select all

Configuring OGRE 1.10.0unstable
Search path: C:/OGRE3DSDK/Dependencies;C:/ogre/Dependencies;C:/OGRE3DSDK/../Dependencies;C:/ogre/../Dependencies
Looking for ZLIB...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate ZLIB
Looking for FreeImage...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate FreeImage
Looking for FREETYPE...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
CMAKE_PREFIX_PATH: C:/OGRE3DSDK/Dependencies;C:/ogre/Dependencies;C:/OGRE3DSDK/../Dependencies;C:/ogre/../Dependencies
CMAKE_PREFIX_PATH: C:/OGRE3DSDK/Dependencies;C:/ogre/Dependencies;C:/OGRE3DSDK/../Dependencies;C:/ogre/../Dependencies
Could not locate FREETYPE
Looking for DirectX9...
Could not locate DirectX9
Looking for DirectX11...
Could not locate DirectX11
Looking for Cg...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate Cg
Looking for POCO...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate POCO
Looking for TBB...
Could not locate TBB
Looking for GLSL_Optimizer...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate GLSL_Optimizer
Looking for HLSL2GLSL...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate HLSL2GLSL
Looking for OIS...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate OIS
Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
Looking for Softimage...
Could not locate Softimage
Could NOT find TinyXML (missing:  TINYXML_INCLUDE_DIR TINYXML_LIBRARIES) 
Looking for CppUnit...
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Could not locate CppUnit
Looking for DirectX...
Found DirectX: C:/Windows/System32/d3d9.dll
DX lib dir: C:/Windows/System32
DX lib dir: C:/Windows/System32
Check size of void*
Check size of void* - done

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ OpenGL
+ OpenGL 3+
+ OpenGL ES 1.x
+ OpenGL ES 2.x
+ OpenGL ES 3.x
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ zlib: Simple data compression library <http://www.zlib.net>
+ freeimage: Support for commonly used graphics image formats <http://freeimage.sourceforge.net>
+ freetype: Portable font engine <http://www.freetype.org>
+ DirectX9: Support for the DirectX render system <http://msdn.microsoft.com/en-us/directx/>
+ DirectX11: Support for the DirectX11 render system <http://msdn.microsoft.com/en-us/directx/>
+ cg: C for graphics shader language <http://developer.nvidia.com/object/cg_toolkit.html>
+ boost: Boost (general) <http://boost.org>
+ boost-thread: Used for threading support <http://boost.org>
+ boost-date_time: Used for threading support <http://boost.org>
+ POCO: POCO framework <http://pocoproject.org/>
+ tbb: Threading Building Blocks <http://www.threadingbuildingblocks.org/>
+ GLSL Optimizer: GLSL Optimizer <http://github.com/aras-p/glsl-optimizer/>
+ HLSL2GLSL: HLSL2GLSL <http://hlsl2glslfork.googlecode.com/>
+ OIS: Input library needed for the samples <http://sourceforge.net/projects/wgois>
+ Doxygen: Tool for building API documentation <http://doxygen.org>
+ Softimage: Softimage SDK needed for building XSIExporter <FALSE>
+ TinyXML: TinyXML needed for building OgreXMLConverter <FALSE>
+ CppUnit: Library for performing unit tests <http://cppunit.sourceforge.net>
-----------------------------------------------------------------------------

send_errorC:/ogre/Dependencies/src/bin/debug/OIS_d.dll did not exist, can't install!
send_errorC:/ogre/Dependencies/src/bin/release/OIS.dll did not exist, can't install!

----------------------------------------------------------------------------
  FEATURE SUMMARY
----------------------------------------------------------------------------

Building components:
  + Paging
  + MeshLodGenerator
  + Terrain
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
  + Volume
Building plugins:
  + BSP scene manager
  + Octree scene manager
  + Portal connected zone scene manager
  + Particle FX
Building rendersystems:
  + OpenGL
Building executables:
  + Tools
Building core features:
  + Mesh Lod
  + DDS image codec

Build type:                      dynamic
Threading support:               none
Use double precision:            disabled
Assert mode:                     standard
Allocator type:                  nedmalloc (pooling)
STL containers use allocator:    enabled
Strings use allocator:           disabled
Memory tracker (debug):          disabled
Memory tracker (release):        disabled
Use Boost:                       disabled

----------------------------------------------------------------------------

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FREETYPE_FT2BUILD_INCLUDE_DIR (ADVANCED)
   used as include directory in directory C:/ogre/OgreMain
   used as include directory in directory C:/ogre/RenderSystems/GL
   used as include directory in directory C:/ogre/PlugIns/OctreeSceneManager
   used as include directory in directory C:/ogre/PlugIns/BSPSceneManager
   used as include directory in directory C:/ogre/PlugIns/ParticleFX
   used as include directory in directory C:/ogre/PlugIns/PCZSceneManager
   used as include directory in directory C:/ogre/PlugIns/OctreeZone
   used as include directory in directory C:/ogre/Components/Paging
   used as include directory in directory C:/ogre/Components/MeshLodGenerator
   used as include directory in directory C:/ogre/Components/Terrain
   used as include directory in directory C:/ogre/Components/RTShaderSystem
   used as include directory in directory C:/ogre/Components/Volume
   used as include directory in directory C:/ogre/Tools/XMLConverter
   used as include directory in directory C:/ogre/Tools/MeshUpgrader

Configuring incomplete, errors occurred!
See also "C:/OGRE3DSDK/CMakeFiles/CMakeOutput.log".
See also "C:/OGRE3DSDK/CMakeFiles/CMakeError.log".
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Issue Codeblocks+ Ogre1.8.1

Post by spacegaier »

If you mean the following two lines, you can ignore them if you build Ogre plus its dependencies together:
send_errorC:/ogre/Dependencies/src/bin/debug/OIS_d.dll did not exist, can't install!
send_errorC:/ogre/Dependencies/src/bin/release/OIS.dll did not exist, can't install!
Your main problems seems to be FREETYPE_FT2BUILD_INCLUDE_DIR which normally should be found automatically if you use the official Ogre dependencies. Did you delete the CMake cache after the update and rerun CMake a few times. It usually is not able to resolve everything which one configuration run.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Pamellino
Gnoblar
Posts: 12
Joined: Thu Oct 02, 2014 7:38 pm
Location: Belgium

Re: Issue Codeblocks+ Ogre1.8.1

Post by Pamellino »

Here I re-tried after updated code and dependencies and the CMake build worked (configure and generate). Only these minor issues :

Code: Select all

send_errorC:/ogre/Dependencies/src/bin/debug/OIS_d.dll did not exist, can't install!
send_errorC:/ogre/Dependencies/src/bin/release/OIS.dll did not exist, can't install!
send_errorC:/ogre/Dependencies/src/bin/release/cg.dll did not exist, can't install! 
But when I "build and run" the project code::blocks, there are these issues :

Code: Select all

#ifndef _WIN32_INPUTSYSTEM_PREREQS_H
#define _WIN32_INPUTSYSTEM_PREREQS_H

#include <cstddef>
#define WIN32_LEAN_AND_MEAN
#define DIRECTINPUT_VERSION 0x0800
#include <windows.h>
#include <dinput.h> // <-- issue here 

Code: Select all

C:\ogre\Dependencies\src\ois\includes\win32\Win32Prereqs.h|30|fatal error: dinput.h: No such file or directory|
Dependencies\src\ois\CMakeFiles\OIS.dir\build.make|126|recipe for target 'Dependencies/src/ois/CMakeFiles/OIS.dir/src/OISInputManager.cpp.obj' failed|
CMakeFiles\Makefile2|270|recipe for target 'Dependencies/src/ois/CMakeFiles/OIS.dir/all' failed|
C:\Ogre3d\Makefile|136|recipe for target 'all' failed|
||=== Build failed: 4 error(s), 3511 warning(s) (6 minute(s), 6 second(s)) ===|

I found something weird :
The file used "C:\ogre\Dependencies\src\ois\includes\win32\Win32Prereqs.h" is in my ogre source folder :

C:\ogre\ => sources folder
C:\Ogre3d\ => after build folder


Does the build folder and source folder should be the same folder ?

Thank you in advance for your help :)
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Issue Codeblocks+ Ogre1.8.1

Post by spacegaier »

Pamellino wrote:Does the build folder and source folder should be the same folder ?
They can but don't have to. I always keep them separate. The file path points to the source because that is of course what is getting compiled from within your build directory. That looks okay.

Can you check if you can find the dinput.h on your machine. For me it was part of the Win 8.0 SDK (/Windows Kits/8.0/Include/um/dinput.h).

Also you completely delete (not only refresh!) the CMake cache after updating the Ogre dependencies? If not those new CMake file changes will not properly come into play.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Pamellino
Gnoblar
Posts: 12
Joined: Thu Oct 02, 2014 7:38 pm
Location: Belgium

Re: Issue Codeblocks+ Ogre1.8.1

Post by Pamellino »

I have removed the source code + build code + dependency code + clear cache in CMake
I cloned sources back from repository ( tortoiseHg => clone of code + dependencies).
I created the folder Dependencies into root source code and copied the dependency source into.

I run CMake and it gave me this error message :

Code: Select all

 CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FREETYPE_FT2BUILD_INCLUDE_DIR (ADVANCED)
   used as include directory in directory C:/ogre/OgreMain
   used as include directory in directory C:/ogre/RenderSystems/GL
   used as include directory in directory C:/ogre/PlugIns/OctreeSceneManager
   used as include directory in directory C:/ogre/PlugIns/BSPSceneManager
   used as include directory in directory C:/ogre/PlugIns/ParticleFX
   used as include directory in directory C:/ogre/PlugIns/PCZSceneManager
   used as include directory in directory C:/ogre/PlugIns/OctreeZone
   used as include directory in directory C:/ogre/Components/Paging
   used as include directory in directory C:/ogre/Components/MeshLodGenerator
   used as include directory in directory C:/ogre/Components/Terrain
   used as include directory in directory C:/ogre/Components/RTShaderSystem
   used as include directory in directory C:/ogre/Components/Volume
   used as include directory in directory C:/ogre/Tools/XMLConverter
   used as include directory in directory C:/ogre/Tools/MeshUpgrader

Configuring incomplete, errors occurred!
See also "C:/Ogre3d/CMakeFiles/CMakeOutput.log".
See also "C:/Ogre3d/CMakeFiles/CMakeError.log".
I have follown this tutorial : http://www.ogre3d.org/tikiwiki/tiki-ind ... tart+Guide
=> start with build only dependencies alone
The configure and generate are done correctly in CMake but I got the same issue than before on compile with Code::blocks:
#include <dinput.h>
Can you check if you can find the dinput.h on your machine. For me it was part of the Win 8.0 SDK (/Windows Kits/8.0/Include/um/dinput.h).
I've looked at this file and I found it in:
C:\Program Files (x86)\Windows Kits\8.1\Include\um
(not in /Windows Kits/8.0/Include/um/ )

Edit

I suppose that's not because of "8.1" folder. The directory are both in the "FindDirectX.cmake" file

Code: Select all

  # Windows 8 SDK has custom layout
  set(DirectX_INC_SEARCH_PATH 
    "C:/Program Files (x86)/Windows Kits/8.1/Include/shared"
    "C:/Program Files (x86)/Windows Kits/8.1/Include/um"
    "C:/Program Files (x86)/Windows Kits/8.0/Include/shared"
    "C:/Program Files (x86)/Windows Kits/8.0/Include/um"
  )
Post Reply