Page 1 of 1

Building 64bit Dependencies

Posted: Wed Sep 05, 2012 9:47 am
by metsavaht
Hello

I'm posting this for everyone else who has/had problems with it.

I was trying to build 64bit OGRE, but it kept failing, i found out that zlib.lib and zlibd.lib were missing.
Dependencies did build, but zlib was not copied

I found out that if you change zlib project x64 platform configuration IntDir and OutDir from "$(Platform)\$(Configuration)" to "Win32_LIB_$(Configuration)"

I think that its caused by some directory differences in the configuration, OutDir is "$(Platform)\$(Configuration)" but some locations are set to "Win32_LIB_$(Configuration).

BR

Re: Building 64bit Dependencies

Posted: Wed Sep 05, 2012 11:42 am
by Mind Calamity
Did you build the INSTALL target ? Also where did you get the dependencies from ?

http://www.bitbucket.org/cabalistic/ogredeps

Use CMake to build this (and you must build the INSTALL target in order to install the dependencies, obviously).

BTW - Where the dependencies will be installed depends on the value you set CMAKE_INSTALL_PREFIX to.

Re: Building 64bit Dependencies

Posted: Thu Sep 06, 2012 1:14 am
by notNullGothik
Perhaps related, but let me know.

I built 1.8.1 release with VStudio2010 for the x64, it compiled fine.
Running SampleBrowser crashes with the

Code: Select all

 OGRE EXCEPTION(5:ItemIdentityException): Cannot find an archive factory to deal with archive of type Zip in ArchiveManager::load at src/OgreARchiveManager.cpp
Another thread mentions a problem with a dependency (zziplib.lib) for an older Ogre version, but i compiled also dependencies using X64 target and the mentioned lib is there, my resources paths look correct.
I got the dependencies from the Ogre page and compiled OK.
Am I missing something?

Re: Building 64bit Dependencies

Posted: Thu Sep 06, 2012 6:38 am
by Kojack
I'm not sure where that dependency package came from (as in why was it put on source forge), but it's out of date compared to the standard dependency source we use to build ogre: https://bitbucket.org/cabalistic/ogredeps
The zip contains cg 2.2, freeimage 3.13, freetype 2.3.11, ois 1.2, zlib 1.2.3, zziplib 0.13.57,
while the mercurial repo contains cg 3.1, freeimage 3.15.3, freetype 2.4.9, ois 1.3, zlib 1.2.7, zziplib 0.13.62

That shouldn't affect zip loading, but then again I haven't tried a 64 bit build with that dependency package.

Re: Building 64bit Dependencies

Posted: Thu Sep 06, 2012 10:03 am
by metsavaht
Mind Calamity wrote:Did you build the INSTALL target ? Also where did you get the dependencies from ?

http://www.bitbucket.org/cabalistic/ogredeps

Use CMake to build this (and you must build the INSTALL target in order to install the dependencies, obviously).

BTW - Where the dependencies will be installed depends on the value you set CMAKE_INSTALL_PREFIX to.
I dependencies from Ogre Download page.

And I think you misunderstand me, when building x64 dependencies from download page, then zlib is not copied to OGRE/Dependencies/(include/lib) directory.

But using dependencies from http://www.bitbucket.org/cabalistic/ogredeps, should fix the problem for me.

Thanks in advanced