Hard to install

Hard to install

Postby Mouxon » 19 Jul 2013, 19:42

Hello,

I would like testing and contributing to the game but I had several difficulties to compile.

Following the Build Instructions and this topic viewtopic.php?f=35&t=4648&p=48413, I tries to install CEGUI 0.8.2 but MiniMap.cpp include the file CEGUIImagesetManager.h which was deleted on CEGUI 0.8.x.
So, I installed CEGUI 0.7.9
After, I needed to add a flag with cmake : -DCMAKE_CXX_FLAGS "-std=c++11".


I succeeded to compile the project but during the execution a bad_alloc exception was thrown because I forgot to copy the file dictonary.txt in my build directory.
By the way, I made a small patch to avoid to throw a exception when the file size is lower than 1. Instead, I return 0 because PrefixTreeLL::build manage the case when size <= 1.


Finally, during the execution, an exception is thrown for the file "Dirt_10001000.mesh".
Before copy the files from "mediaSource" directory, it was the file "Dirt_00001110.mesh" which brings out the exception.

I don't find any solution for this issue.
{l Code}: {l Select All Code}
Starting creature AI for turn 28
Processing deletion queues on turn 28:  (1, 291472)   
During this turn there were 3 calls to GameMap::path().
Creature AI finished     19748us early.

The Creature AI thread took:  0.048416
The misc upkeep thread took:  0.02844


Starting creature AI for turn 29
Processing deletion queues on turn 29:  (1, 290447)   Mesh: Loading Dirt_00001000.mesh.
WARNING: Dirt_00001000.mesh is an older format ([MeshSerializer_v1.40]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
Mesh: Loading Dirt_10001000.mesh.
An internal Ogre3D error ocurred: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_10001000.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/bender/Bureau/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
Internal Ogre3D exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_10001000.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/bender/Bureau/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
*** ERROR: Internal Ogre3D exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_10001000.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/bender/Bureau/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
AL lib: ReleaseALC: 1 device not closed
Erreur de segmentation (core dumped)


Do you any ideas to fix it ?


For your information, I use :
cegui 7.9
ogre 1.8.2
ois 1.3 (from ubuntu's repository)
boost 1.49 (from ubuntu's repository)
gcc 4.7 (from ubuntu's repository)
Attachments
0001-Avoid-bad_alloc-excpetion-when-file-not-exist.patch
Patch to avoid bad_alloc exception when size < 1
(14.89 KiB) Downloaded 359 times
Mouxon
 
Posts: 2
Joined: 15 Jul 2013, 13:13

Re: Hard to install

Postby paul424 » 19 Jul 2013, 22:25

Well it includes CEGUIImagesetManager.h, that was mine optimization by cutting the whole CEGUI into separate includes and use demand criterium . You can always try
{l Code}: {l Select All Code}
#include "CEGUI.h"
, You can try irc://freenode/opendungeons and talk to someone ( like me ) .

Bonus : there is similar name model of Dirt_10001000.mesh as Dirt_10001000a.mesh and Dirt_10001000b.mesh , just pick one and rename as needed. Repeat on similar exceptions until success .
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Hard to install

Postby Skorpio » 20 Jul 2013, 19:32

Welcome to OD Mouxon!

Where do all the new programmers come from? :) We could use some more artists as well. ;)
User avatar
Skorpio
OD Moderator
 
Posts: 775
Joined: 05 Dec 2009, 18:28

Re: Hard to install

Postby paul424 » 20 Jul 2013, 20:36

Scorpio : From summer vacations , and I'm afraid thing will return to normal when September ends.
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Who is online

Users browsing this forum: No registered users and 1 guest