bugGlobulation 2 - Bugs: bug #21574, 0.9.1 doesn't start on Mac OS X...


bug #21574: 0.9.1 doesn't start on Mac OS X Tiger Intel

Submitter:  None
Submitted:  Tue 13 Nov 2007 09:21:44 PM UTC
Severity:  3 - Normal Status:  Ready For Test
Assigned to:  appleboy Open/Closed:  Open
Release:  None Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup

Jump to the original submission

Tue 29 Apr 2008 04:44:12 PM UTC, comment #10: 

I tried the same with beta 3 and the same problems/situation occurred.


Thu 20 Mar 2008 01:20:03 PM UTC, comment #9: 

I just tried the latest hg revision 3331:d5c1f02f6089 and it works fine. Thanks for your quick help.

I'm not sure why, but I had to set DATADIR to ${prefix}/share/glob2 to make it work. I first thought ${prefix}/share should be enough (which is the default value).

And while viewing the credits I got the following error message and got no credits, just a blank page:

ScrollingText::ScrollingText() : error, can't open file AUTHORS
ScrollingText::ScrollingText() : error, can't open file AUTHORS

Is there a way to fix this?

Thanks for your help,

Thu 20 Mar 2008 01:08:45 AM UTC, comment #8: 

I have made a simple fix that allows you to change the installation directory and the data directories separately. Simply set DATADIR in the latest scripts as well as INSTALLDIR

Bradley Arsenault <genixpro>
Group administrator
Wed 19 Mar 2008 11:44:22 AM UTC, comment #7: 

I try to make my problem(s) a bit clearer.

Everything works fine if I just compile/install Globulation 2. But as I'm the maintainer of the [macports][1] port of Globulation [2] I need a DESTDIR variable like in GNU Autotools to put the compiled files into a special directory before they are installed in their final destination by macports. This is done to make uninstallations easy. For more information please have a look at [3]. As I'm not familiar with SCons I haven't found a way to do this. To simulate a DESTDIR variable I use the following command to install Globulation to the temporary directory (${destdir} points to the temporary DESTDIR directory; ${prefix) is used by macports, normally it's /opt/local):

    scons install BINDIR="${destroot}${prefix}/bin" \

And so I have to patch "libgag/src/FileManager.cpp" so it points to the correct directory (${prefix}/share) as INSTALLDIR doesn't work anymore and it's the constant used in "libgag/src/FileManager.cpp". Here is my "patch". _PREFIX_ is then replaced by the value of ${prefix} to make it portable where other prefix values are used.

--- libgag/src/FileManager.cpp 2008-02-17 15:09:58.000000000 +0100
+++ libgag/src/FileManager.cpp 2008-02-17 15:10:02.000000000 +0100
@@ -128,7 +128,7 @@
+ addDir("__PREFIX__/share/glob2");
  fileListIndex = -1;

I hope this makes my problem easier to understand.

The warning message which I described in the last post is the only warning I get during compiles so I thought I post it so  you know of it. It doesn't cause any problems for me.


[1]: http://macports.org/
[2]: http://www.macports.org/ports.php?by=name&substr=glob2
[3]: http://guide.macports.org/#reference.phases.introduction

Mon 17 Mar 2008 03:04:39 AM UTC, comment #6: 

I opened the bug back up, just trying to figure out how you're having problems because I haven't been able to reproduce your problem and I know there is at least one other mac developer here that hasn't had an issue either.

Apple <appleboy>
Group Member
Sat 15 Mar 2008 04:36:18 PM UTC, comment #5: 


I compilied the latest revision (3305:c334d278f8d9) and it works fine. I still had to patch libgag/src/FileManager.cpp because I found no way to use something similar to DESTDIR with Scons. Do you know a way to do this?

The error message when the data files can't be found is still very vague:

Fatal error : while loading "data/texts.list.txt"
src/GlobalContainer.cpp:456: failed assertion `false'
Abort trap

Would it be possible to improve it?

I got the following warning message during the compile. I'm not sure what it
means, I'm no C programmer. But it didn't cause any problems for me.

src/MultiplayerGameScreen.cpp: In constructor 'MultiplayerGameScreen::MultiplayerGameScreen(boost::shared_ptr<MultiplayerGame>, boost::shared_ptr<YOGClient>, boost::shared_ptr<IRCTextMessageHandler>)':
src/MultiplayerGameScreen.cpp:41: warning: passing negative value '-0x00000000000000001' for argument 1 to 'YOGClientChatChannel::YOGClientChatChannel(Uint32, boost::shared_ptr<YOGClient>)'

Thanks for your help,

Thu 13 Mar 2008 08:35:52 AM UTC, comment #4: 

I've tested the hg .app bundle I've made with several other people who don't have the libraries installed (under tiger) without any issues.

Apple <appleboy>
Group Member
Mon 10 Mar 2008 10:42:55 PM UTC, comment #3: 

Could you please try again, except with the latest mercurial code? beta3-rc branch. A lot of changes have been made to both the SConstruct file and the source code and I think it might've been fixed as I'm able to compile the source code and create .app bundles just fine on tiger.

Apple <appleboy>
Group Member
Sun 17 Feb 2008 05:36:04 PM UTC, comment #2: 

Sorry for the late reply, I forgot about the bug report.

I just tried compiling 0.9.1 again and I think I found the problem: glob2 can't find the data files. If I run it from the directory where all data is stored (share/glob2) it works, otherwise not.

I fixed this by patching libgag/src/FileManager.cpp, so it points to the correct path. Now everything works fine. I couldn't use the constant PACKAGE_DATA_DIR (in config.h) as I have to install the data in a temporary directory, then it's moved to its final destination (macports port). Would it be possible to add support for a DESTDIR variable to the scons Makefile? (Or maybe there is one and I don't know about it.)

It would be more helpful if a better error message could be printed. Something like "data files could not be found!" or similar.


Tue 25 Dec 2007 06:54:32 PM UTC, comment #1: 

Are you sure you have all the required data files?
Could you try with a fresh cloning of the mercurial tree?

Thank you.

Stephane Magnenat <nct>
Group administrator
Tue 13 Nov 2007 09:21:44 PM UTC, original submission:  


I just compiled globulation2 0.9.1 on my MacBook Pro Intel with Mac OS X 10.4.10. Everything build fine (I used macports libraries and modified the SConstruct script so they are found) but when I start the following error occurs:

Settings::load("preferences.txt") : error, can't open file.
libgag/src/Sprite.cpp:130: failed assertion `sprite'
Abort trap

I'm not sure what to do.

Thanks for your help,



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by genixpro (Posted a comment)
  • -email is unavailable- added by appleboy (Updated the item)
  • -email is unavailable- added by nct (Posted a comment)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-03-20 genixpro StatusNeed Info Ready For Test
    2008-03-17 appleboy Open/ClosedClosed Open
    2008-03-13 appleboy Open/ClosedOpen Closed
    2008-03-10 appleboy StatusNone Need Info
    2008-03-10 appleboy Assigned toNone appleboy

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code