Cannot build 1.9 or 1.10 (dll build)

Problems building or running the engine, queries about how to use features etc.
Post Reply
briancodemonkey
Gnoblar
Posts: 1
Joined: Mon Aug 08, 2016 1:12 pm
Location: East Sussex, UK

Cannot build 1.9 or 1.10 (dll build)

Post by briancodemonkey »

Hi
I have come up against a build problem that I cannot resolve. I've just spent a frustrating two days attempting to achieve a build but without success. I have tried 1.9 and 1.10 but to no avail. I am building on windows 10 64 bit, msvc 2015 community edition and am using the gui version of cmake. I am trying to get a debug 32 bit build done and have followed various bits of documentation to do things the right way but none work.

I have determined that the problem lies with the build not generating any .lib files at all. All I get are dlls. This causes a flood of linker errors resulting in 71 projects failing to link with just 2 successful. BTW, I tried a prebuilt binary because of all this, but it doesn't work with the TutorialFramework (further link errors but that's another story).

This is what I get during the CMake configure phase:
Configuring OGRE 1.10.0unstable
Search path: C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/Dependencies;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/../Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/../Dependencies
Looking for ZLIB...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found ZLIB: optimized;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/zlib.lib;debug;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Debug/zlib_d.lib
Looking for ZZip...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found ZZip: optimized;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/zziplib.lib;debug;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Debug/zziplib_d.lib
Looking for FreeImage...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found FreeImage: optimized;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/FreeImage.lib;debug;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Debug/FreeImage_d.lib
Looking for FREETYPE...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMAKE_PREFIX_PATH: C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/Dependencies;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/../Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/../Dependencies
CMAKE_PREFIX_PATH: C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/Dependencies;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/../Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/../Dependencies
Found FREETYPE: optimized;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/freetype.lib;debug;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Debug/freetype_d.lib
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: C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/cg.lib
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

And generate:
Configuring OGRE 1.10.0unstable
Search path: C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/Dependencies;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/../Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/../Dependencies
Looking for ZLIB...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found ZLIB: optimized;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/zlib.lib;debug;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Debug/zlib_d.lib
Looking for ZZip...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found ZZip: optimized;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/zziplib.lib;debug;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Debug/zziplib_d.lib
Looking for FreeImage...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found FreeImage: optimized;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/FreeImage.lib;debug;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Debug/FreeImage_d.lib
Looking for FREETYPE...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMAKE_PREFIX_PATH: C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/Dependencies;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/../Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/../Dependencies
CMAKE_PREFIX_PATH: C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/Dependencies;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/x32/../Dependencies;C:/Users/Brian/Downloads/dev/3D Graphics engines/sinbad-ogre-ec0d024c5b83-1.9/sinbad-ogre-ec0d024c5b83/../Dependencies
Found FREETYPE: optimized;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/freetype.lib;debug;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Debug/freetype_d.lib
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: C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/cg.lib
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:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Release/OIS.lib;debug;C:/Users/Brian/Documents/dev/dev_library/MSVC/OGRE/Dependencies/ogredeps/lib/Debug/OIS_d.lib
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
+ boost
+ boost-thread
+ boost-date_time
+ boost-system
+ boost-chrono
+ boost-atomic
+ OIS
+ Doxygen
-----------------------------------------------------------------------------
-- 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/>
+ 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/>
+ 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
+ Property
+ Terrain
+ RTShader System
+ RTShader System Core Shaders
+ RTShader System Extensions Shaders
+ Volume
+ Overlay
+ HLMS
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: background (boost)
Use double precision: disabled
Nodes inherit transform: disabled
Assert mode: standard
Allocator type: standard
STL containers use allocator: enabled
Strings use allocator: disabled
Memory tracker (debug): disabled
Memory tracker (release): disabled
Use Boost: enabled

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

Configuring done
Generating done

If anyone has come across this themselves and have resolved the issue I would be grateful since it's driving me nuts.
User avatar
Aiden
Halfling
Posts: 54
Joined: Fri Jul 14, 2017 3:16 pm
x 5

Re: Cannot build 1.9 or 1.10 (dll build)

Post by Aiden »

This is now what am getting , on visualstudio 2015 also.It's a shame no one has even responded to your post.
I've been on this for 4 days now.
If you solved it please show how you did it.
:roll:
User avatar
tod
Troll
Posts: 1394
Joined: Wed Aug 02, 2006 9:41 am
Location: Bucharest
x 94
Contact:

Re: Cannot build 1.9 or 1.10 (dll build)

Post by tod »

What build errors do you have?
User avatar
Aiden
Halfling
Posts: 54
Joined: Fri Jul 14, 2017 3:16 pm
x 5

Re: Cannot build 1.9 or 1.10 (dll build)

Post by Aiden »

I fixed this, it turnsout I didn't clone everything fully, also I downgraded to version 1.9 since 1.10 had issues and lacked enough examples.
I also had to fix some files like boost "autoconf" in boost 1.55 since it it would autolink with msvc120 and added some legacy std libs to the dependencies of d3d9.
I also had to add some build command in ogramain.sln within the lib folder (Debug) linker command line params to reduce the libfile size (something to do with incremental link) if you don't then the debug build won't work or link to your ogre apps.
So far everything is smooth, with or without boost.
User avatar
Aiden
Halfling
Posts: 54
Joined: Fri Jul 14, 2017 3:16 pm
x 5

Re: Cannot build 1.9 or 1.10 (dll build)

Post by Aiden »

Now I'm stuck trying to figure out how to load meshes with assimp here is the thread
http://www.ogre3d.org/forums/viewtopic.php?f=1&t=93145
if you can help out.
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: Cannot build 1.9 or 1.10 (dll build)

Post by frostbyte »

https://bitbucket.org/ogreaddons/ogreassimp
but first verify that assimp can read your mesh model( does it look good with assimp viewer? )
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
Post Reply