Building ogre: can't open file OgreSDK/ogredeps

Problems building or running the engine, queries about how to use features etc.
Post Reply
ForbiddenLaw
Gnoblar
Posts: 8
Joined: Sun Jan 04, 2015 8:59 pm

Building ogre: can't open file OgreSDK/ogredeps

Post by ForbiddenLaw »

Hi, newbie here. I'm trying to build the engine using cMake and VS 2013. So I downloaded ogre's deps from bitbucket and built them, and I got the "ogredeps" directory with the "include", "bin", and "lib" subdirectories.
I put the folder inside ogre's main folder, opened up cmake(gui) and added "OGRE_DEPENDENCIES_DIR" varaiable and initialized it.
When I press the button "Configure", cMake does seem to find it, but it says it can't open it:

Code: Select all

Configuring OGRE 1.9.0
CMake Error: cmListFileCache: error can not open file C:/Users/[my_name]/Desktop/OgreSDK/Ogre/ogredeps
CMake Error at CMakeLists.txt:216 (include):
  include could not find load file:

    ogredeps


CMake Error at CMakeLists.txt:407 (include):
  include could not find load file:

    PrepareThreadingOptions


CMake Error at CMakeLists.txt:476 (include):
  include could not find load file:

    ConfigureBuild


CMake Error at CMakeLists.txt:490 (include):
  include could not find load file:

    InstallResources


CMake Warning (dev) at CMakeLists.txt:539 (add_subdirectory):
  The source directory

    C:/Users/[my_name]/Desktop/OgreSDK/Ogre/CMake

  does not contain a CMakeLists.txt file.

  CMake does not support this case but it used to work accidentally and is
  being allowed for compatibility.

  Policy CMP0014 is not set: Input directories must have CMakeLists.txt.  Run
  "cmake --help-policy CMP0014" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:542 (include):
  include could not find load file:

    Packaging

I downloaded the dependencies from here :https://bitbucket.org/cabalistic/ogredeps/downloads

I know for sure that my inexperience in programming has a role in this. :lol:

Oh, and sorry for my English, it is not my native language.
User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by Mind Calamity »

Can you post a screenshot of the directory structure of the dependencies folder and your CMake settings ?

It should be looking for a directory, not a file, weird.
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
ForbiddenLaw
Gnoblar
Posts: 8
Joined: Sun Jan 04, 2015 8:59 pm

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by ForbiddenLaw »

Image
Image
Image
Image
Image

And I noticed that cmake doesn't care at all about the OGRE_DEPENDENCIES_DIR var I added.
User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by Mind Calamity »

Rename "ogredeps" into "Dependencies" and try again, it's really weird. Also you shouldn't need "Advanced" ticked in CMake, it only clutters the variables usually.

Untick "Advanced" and post a screenshot again from the settings, as well as the output on Generate/Configure.

If all else fails go to File -> Delete Cache, and start over. This time describe everything you do and post here, so I can try to see where you did something wrong. :)
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
ForbiddenLaw
Gnoblar
Posts: 8
Joined: Sun Jan 04, 2015 8:59 pm

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by ForbiddenLaw »

I deleted the cache, renamed "ogredeps" to "Dependencies", although the cmakelist.txt looks for "ogredeps", not "Dependencies" and this time cmake can't even find the folder:

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.9.0
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
CMake Error at CMakeLists.txt:216 (include):
  include could not find load file:

    ogredeps


CMake Error at CMakeLists.txt:407 (include):
  include could not find load file:

    PrepareThreadingOptions


CMake Error at CMakeLists.txt:476 (include):
  include could not find load file:

    ConfigureBuild


CMake Error at CMakeLists.txt:490 (include):
  include could not find load file:

    InstallResources


CMake Warning (dev) at CMakeLists.txt:539 (add_subdirectory):
  The source directory

    C:/Users/Stefano/Desktop/OgreSDK/sinbad-ogre-dd09c099cab4/CMake

  does not contain a CMakeLists.txt file.

  CMake does not support this case but it used to work accidentally and is
  being allowed for compatibility.

  Policy CMP0014 is not set: Input directories must have CMakeLists.txt.  Run
  "cmake --help-policy CMP0014" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:542 (include):
  include could not find load file:

    Packaging


Configuring incomplete, errors occurred!
See also "C:/Users/Stefano/Desktop/OgreSDK/sinbad-ogre-dd09c099cab4/Build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Stefano/Desktop/OgreSDK/sinbad-ogre-dd09c099cab4/Build/CMakeFiles/CMakeError.log".
CMake config :

Image

I tried changing line 216 of CMakeList.txt from :

Code: Select all

# Find dependencies
include(ogredeps)
To:

Code: Select all

# Find dependencies
include(Dependencies)
But it says again that it can't open it.
ForbiddenLaw
Gnoblar
Posts: 8
Joined: Sun Jan 04, 2015 8:59 pm

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by ForbiddenLaw »

I deleted the cache and tried to rename the folder into "Dependencies", but this time cmake couldn't even find it.
So I changed line 216 of CMakeList.txt from

Code: Select all

include(Dependencies)
to include(name_of_my_dependencies_folder["Dependencies" or "ogredeps"]).

And I got the same error as before (cannot open file...bla/blab/la/blabla)

This is the cmake configuration:
Image

Ok, seriously, I don't know why this is happening, I built ogre several times (mainly for mingw) but that was another version of ogre(1.10 unstable[I downloaded it thinking it was 1.9 :mrgreen: ). Maybe I can try rebuiliding 1.10 and reapiting the same steps (and using the same dependencies? Can I?) for 1.9. But when I have the time. Thanks a lot for your help.
User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by Mind Calamity »

Okay I'm really not sure what's going on with your setup, I'll try to build it from source tomorrow and make a video for you, I need to update my ver. of OGRE anyways. :)
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by frostbyte »

and added "OGRE_DEPENDENCIES_DIR" varaiable and initialized it.
don't do that...cmake scripts works perfect with ogre( except sometimes you have to hit configure twice ) ...don't try fixing what is not broken.... :wink:
follow the tutorial word for word and you should be ok...http://www.ogre3d.org/tikiwiki/tiki-ind ... tart+Guide

just for information, you are addressing two different things...
when "ogredeps" folder is added to the cmake folder( source or build folder? i don't remember... ) cmake will order to build it from source...
when "Dependencies" folder is added cmake will look for the prebuild libs...( OGRE_DEPENDENCIES_DIR )
this is the default behavior...
i think its easier just to drop "ogredeps" source folder in the cmake folder and let cmake build all together with ogre...

another option is to use prebuild snapshot provided by transporter http://www.ogre3d.org/forums/viewtopic.php?t=69274
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
ForbiddenLaw
Gnoblar
Posts: 8
Joined: Sun Jan 04, 2015 8:59 pm

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by ForbiddenLaw »

frostbyte wrote: don't do that...cmake scripts works perfect with ogre( except sometimes you have to hit configure twice ) ...don't try fixing what is not broken.... :wink:
follow the tutorial word for word and you should be ok...http://www.ogre3d.org/tikiwiki/tiki-ind ... tart+Guide
I did it because the guide wants the user to use this variable... but since I couldn't find it, I simpy added it.. But it changed nothing (since cmake was about to throw another error: CMake error: I don't even give a f*** of your stupid variable. :twisted: )
frostbyte wrote: when "ogredeps" folder is added to the cmake folder( source or build folder? i don't remember... ) cmake will order to build it from source...
when "Dependencies" folder is added cmake will look for the prebuild libs...( OGRE_DEPENDENCIES_DIR )
this is the default behavior...
i think its easier just to drop "ogredeps" source folder in the cmake folder and let cmake build all together with ogre...
Wow, I didn't know this difference, thanks a lot. However, it didn't change anything :cry:
frostbyte wrote: another option is to use prebuild snapshot provided by transporter http://www.ogre3d.org/forums/viewtopic.php?t=69274
Nah, that wouldn't satisfy me at all.

Ok, so, now I'm planning to rebuild version 1.10 unstable as I did before... I hope it will work :)
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by frostbyte »

I did it because the guide wants the user to use this variable... but since I couldn't find it
yeah, this wiki-tutorial is brand new, i never tried it, with old tutorial you never had to change anything in cmake folders defs...
try searching the forum for the old "how to build ogre" tutorial.
Ok, so, now I'm planning to rebuild version 1.10 unstable as I did before...
no reason to go back to 1.9 from 1.10... "1.10 unstable" is more stable then "1.9 stable" and api's are the same+ you get webgl backend+dx11 8)
its easier just to drop "ogredeps" source folder in the cmake folder and let cmake build all together with ogre...
this works for me with 1_10 branch, not sure about 1_9...
you need to drop it on the cmake source( make more sense ) or maybe build folder - i don't remember so you'll have to try both options....( try source first )
just open cmake gui and hit configure twice( choosing msvc..) , generate...nmake ....nmake install...dont change anything in cmake script, use the original file...
good luck...
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
ForbiddenLaw
Gnoblar
Posts: 8
Joined: Sun Jan 04, 2015 8:59 pm

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by ForbiddenLaw »

That's very very strange... I did the same, exactly the same steps as before(with 1.9), with the same dependencies that gave me the famous error(can't open file..) and it worked...
So now my question is.. does ogre 1.9 use new versions of dependencies? I downloaded them from here:
https://bitbucket.org/cabalistic/ogredeps/downloads The default branch(the only one) to be precise.
frostbyte wrote: no reason to go back to 1.9 from 1.10... "1.10 unstable" is more stable then "1.9 stable" and api's are the same+ you get webgl backend+dx11 8)
Really? I thought it was the opposite :o

So, in the end, as a survivor of the most unknown, less popular problem ever encountered in the building process of Ogre3D; even if I didn't succeed in building the version I wanted; as I discovered, thanks to the suggestion of frostbyte, the more stability and power of the self-styled "unstable" version 1.10, I'm now able to go on with this huge library and get the hang of it. I can now leave my island of Despair.
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by frostbyte »

I can now leave my island of Despair.
don't pack your suitcase, yet... :wink:
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
User avatar
Thyrion
Goblin
Posts: 224
Joined: Wed Jul 31, 2013 1:58 pm
Location: germany
x 8

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by Thyrion »

frostbyte wrote:
I can now leave my island of Despair.
don't pack your suitcase, yet... :wink:
this ^ :)
User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by Mind Calamity »

Here's the vid I promised you, although a day later:

[youtube]huWo6y_icLA[/youtube]

It's realtime, I didn't cut anything out, so feel free to skip all the compile time, hope you find it of some use. :)
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
ForbiddenLaw
Gnoblar
Posts: 8
Joined: Sun Jan 04, 2015 8:59 pm

Re: Building ogre: can't open file OgreSDK/ogredeps

Post by ForbiddenLaw »

Thank you for the time you spent making the video.
Post Reply