Cannot locate cube.mesh [media files are removed after running make clean]

Bug #587720 reported by qubodup
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Freedom to Smash
Confirmed
Low
Jon Ander Peñalba

Bug Description

When I have build fts and try to run it in the build/ directory, I get following message:

Mesh: Loading cube.mesh.
Fatal exception caught on main: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource cube.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at OgreResourceGroupManager.cpp (line 763)

Revision history for this message
Jon Ander Peñalba (jonan) wrote :

This shouldn't happen.
Check that you have resources.cfg and a symbolic link to the media folder in the build directory.
In the media folder you should have cube.mesh and resources.cfg should have a line like this 'Zip=media/cube.zip'.

Changed in freedom-to-smash:
status: New → Incomplete
qubodup (qubodup)
summary: - Cammt locate cube.mesh
+ Cannot locate cube.mesh
Revision history for this message
qubodup (qubodup) wrote : Re: Cannot locate cube.mesh

The following is what was going on, until I decided to just clone again (and everything works now), as there were files missing in my repository, which should not, according to http://gitorious.org/freedom-to-smash/mainline/trees/master I suspect that might be because of `make clean`.

The following can be ignored, for now this issue is non-existent or can't be reproduced. I just added the info in case maybe someone runs into the same problem sometime.

=======================

Ok, I pulled today's head and these are my results:

1. I have a resources.cfg in the build directory
2. I have a symbolic link to the media folder in the build directory
3. media directory DOES NOT contain cube.mesh
4. resources.cfg has a 'Zip=media/cube.zip' line

The error I'm getting now when running fts is:
Fatal exception caught on main: OGRE EXCEPTION(7:InternalErrorException): media/cube.zip - error whilst opening archive: Unable to read zip file. in ZipArchive::checkZzipError at OgreZip.cpp (line 259)

there is no cube.zip in the media directory. In fact, the only files in the media directory are:
logo_sinbad.png
qgui.core.zip

Changed in freedom-to-smash:
status: Incomplete → Invalid
Changed in freedom-to-smash:
status: Invalid → New
status: New → Confirmed
Revision history for this message
Jon Ander Peñalba (jonan) wrote :

So the problem is actually running 'make clean'. For some reason files inside a symbolic link are erased, so the original files are removed too.
The obvious solution is not to run 'make clean' but if you've already done it, you can checkout the files and they will appear again (git checkout media/cube.zip).

I'm planning on improving the cmake files to solve some issues and this is one of them. I'll work on it just before the first release, that's scheduled for this month.

Changed in freedom-to-smash:
importance: Undecided → Low
assignee: nobody → Jon Ander Peñalba (jonan)
summary: - Cannot locate cube.mesh
+ Cannot locate cube.mesh [media files are removed after running make
+ clean]
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.