Jump to content

Error compiling on Mac


Recommended Posts

EDIT: Sorry, just noticed I put this in the wrong place. I'd appreciate if anyone could move it; sorry for the inconvenience.

Sorry to bother everyone with this, but I've encountered the following error when building on my Mac, following the instructions post here: http://trac.wildfiregames.com/wiki/BuildInstructions#OSX

libtool: unrecognized option `-framework'

...and here is the complete build log in case it helps:


desky:workspaces calderco$ sh update-workspaces.sh
bash -c 'mkdir -p output/{debug,release,test}/{FCollada/{FCDocument,FMath,FUtils,FColladaTest/{FCTestAssetManagement,FCTestExportImport,FCTestXRef}},FColladaPlugins/FArchiveXML}'
cp output/libFColladaSD.a ../lib/libFColladaSD.a
cp output/libFColladaSR.a ../lib/libFColladaSR.a
cat: ../../dist/Darwin_DBG.OBJ/nspr/Version: No such file or directory
cd editline; make -f Makefile.ref all
make[1]: Nothing to be done for `all'.
cd fdlibm; make -f Makefile.ref all
make[1]: Nothing to be done for `all'.
make -f Makefile.ref Darwin_DBG.OBJ/libjs.a Darwin_DBG.OBJ/libjs.so Darwin_DBG.OBJ/js Darwin_DBG.OBJ/jsautocfg.h Darwin_DBG.OBJ/jscpucfg Darwin_DBG.OBJ/jscpucfg.o Darwin_DBG.OBJ/jsmathtemp.o
cat: ../../dist/Darwin_DBG.OBJ/nspr/Version: No such file or directory
make[1]: Circular jscpucfg.h <- Darwin_DBG.OBJ/jsautocfg.h dependency dropped.
make[1]: Circular Darwin_DBG.OBJ/jsautocfg.h <- Darwin_DBG.OBJ/jsautocfg.h dependency dropped.
make[1]: `Darwin_DBG.OBJ/libjs.a' is up to date.
libtool -framework System -o Darwin_DBG.OBJ/libjs.so Darwin_DBG.OBJ/jsapi.o Darwin_DBG.OBJ/jsarena.o Darwin_DBG.OBJ/jsarray.o Darwin_DBG.OBJ/jsatom.o Darwin_DBG.OBJ/jsbool.o Darwin_DBG.OBJ/jscntxt.o Darwin_DBG.OBJ/jsdate.o Darwin_DBG.OBJ/jsdbgapi.o Darwin_DBG.OBJ/jsdhash.o Darwin_DBG.OBJ/jsdtoa.o Darwin_DBG.OBJ/jsemit.o Darwin_DBG.OBJ/jsexn.o Darwin_DBG.OBJ/jsfun.o Darwin_DBG.OBJ/jsgc.o Darwin_DBG.OBJ/jshash.o Darwin_DBG.OBJ/jsinterp.o Darwin_DBG.OBJ/jslock.o Darwin_DBG.OBJ/jslog2.o Darwin_DBG.OBJ/jslong.o Darwin_DBG.OBJ/jsmath.o Darwin_DBG.OBJ/jsnum.o Darwin_DBG.OBJ/jsobj.o Darwin_DBG.OBJ/jsopcode.o Darwin_DBG.OBJ/jsparse.o Darwin_DBG.OBJ/jsprf.o Darwin_DBG.OBJ/jsregexp.o Darwin_DBG.OBJ/jsscan.o Darwin_DBG.OBJ/jsscope.o Darwin_DBG.OBJ/jsscript.o Darwin_DBG.OBJ/jsstr.o Darwin_DBG.OBJ/jsutil.o Darwin_DBG.OBJ/jsxdrapi.o Darwin_DBG.OBJ/jsxml.o Darwin_DBG.OBJ/prmjtime.o -L/opt/local/lib/nspr -lplds4 -lplc4 -lnspr4 -L/opt/local/lib -Lfdlibm/Darwin_DBG.OBJ -lfdm -L../../dist/Darwin_DBG.OBJ/lib -lnspr4 -Lfdlibm/Darwin_DBG.OBJ -lfdm -L../../dist/Darwin_DBG.OBJ/lib -lnspr4
libtool: unrecognized option `-framework'
libtool: Try `libtool --help' for more information.
make[1]: *** [Darwin_DBG.OBJ/libjs.so] Error 1
make: *** [all] Error 2
/libjs.a out of date, copying from /Users/calderco/Developer/0ad/libraries/spidermonkey/src/dist/lib/libjs.a
cp: /Users/calderco/Developer/0ad/libraries/spidermonkey/src/dist/lib/libjs.a: No such file or directory
../include/js/jsautocfg.h out of date, copying from /Users/calderco/Developer/0ad/libraries/spidermonkey/src/dist/include/jsautocfg.h
cp: /Users/calderco/Developer/0ad/libraries/spidermonkey/src/dist/include/jsautocfg.h: No such file or directory
ERROR: SpiderMonkey build failed

Thanks in advance for any and all help! I really can't wait to get the game up and running and check it out, the source organization looks absolutely beautiful! ;)

Edited by Calder
Link to comment
Share on other sites

Well, I fixed this by renaming my current install of libtool to libtool2 so that the configure script fell back to the libtool version installed by Mac OS X. I don't know why this error hasn't been fixed yet by the libtool authors, but at least there's a workaround.

Link to comment
Share on other sites

Also, in case anyone experiences this next error, I'll post it as well. pkg-config failed to recognize nspr as installed after doing so through MacPorts, but the solution was simply to copy the nspr.pc file over to the appropriate directory:

sudo cp /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/nspr/files/nspr.pc /usr/lib/pkgconfig

Link to comment
Share on other sites

...and I've got a new error. It's 2 in the morning here and I'm too tired to try debugging this one right now, so I'll just post it and hope someone figures it out before I wake up. ;)


desky:gcc calderco$ make
==== Building mocks_real ====
make[1]: `../../../binaries/system/libmocks_real_dbg.a' is up to date.
==== Building network ====
NetClient.cpp
i686-apple-darwin9-g++-4.0.1: @@FULL_NSPR_CFLAGS@@: No such file or directory
In file included from ../../../source/network/NetClient.h:30,
from ../../../source/network/NetClient.cpp:28:
../../../source/network/NetSession.h:35:23: error: enet/enet.h: No such file or directory
../../../source/network/Serialization.h:76: warning: ‘class ISerializable’ has virtual functions but non-virtual destructor
../../../source/scripting/JSSerialization.h:27: warning: ‘class jsval_ser’ has virtual functions but non-virtual destructor
../../../source/network/Network.h:99: warning: ‘class IMessagePipeEnd’ has virtual functions but non-virtual destructor
../../../source/scripting/ScriptableObject.h:42: warning: ‘class IJSObject’ has virtual functions but non-virtual destructor
../../../source/scripting/ScriptCustomTypes.h: In copy constructor ‘SColour::SColour(const SColour&)’:
../../../source/scripting/ScriptCustomTypes.h:41: warning: base class ‘class CJSObject<SColour, false>’ should be explicitly initialized in the copy constructor
../../../source/network/fsm.h: At global scope:
../../../source/network/fsm.h:146: warning: ‘class CFsm’ has virtual functions but non-virtual destructor
../../../source/network/NetSession.h:48: error: ISO C++ forbids declaration of ‘ENetPeer’ with no type
../../../source/network/NetSession.h:48: error: expected ‘;’ before ‘*’ token
../../../source/network/NetSession.h:189: error: ISO C++ forbids declaration of ‘ENetHost’ with no type
../../../source/network/NetSession.h:189: error: expected ‘;’ before ‘*’ token
../../../source/network/NetSession.h:290: error: ‘ENetPeer’ has not been declared
../../../source/network/NetSession.h:298: error: ISO C++ forbids declaration of ‘ENetPeer’ with no type
../../../source/network/NetSession.h:298: error: expected ‘;’ before ‘*’ token
../../../source/lib/frequency_filter.h:23: warning: ‘struct IFrequencyFilter’ has virtual functions but non-virtual destructor
make[1]: *** [obj/network_Debug/NetClient.o] Error 1
make: *** [network] Error 2

If it helps, 'sudo port install libenet' yields 'Error: Port libenet not found'

EDIT: Nevermind going to bed, fixed this one by installing enet from source.

Edited by Calder
Link to comment
Share on other sites

New error, and this one I'm actually going to sleep on. Here's the problem:


desky:gcc calderco$ make
==== Building mocks_real ====
make[1]: `../../../binaries/system/libmocks_real_dbg.a' is up to date.
==== Building network ====
NetClient.cpp
i686-apple-darwin9-g++-4.0.1: @@FULL_NSPR_CFLAGS@@: No such file or directory
../../../source/network/Serialization.h:76: warning: ‘class ISerializable’ has virtual functions but non-virtual destructor
../../../source/scripting/JSSerialization.h:27: warning: ‘class jsval_ser’ has virtual functions but non-virtual destructor
../../../source/network/Network.h:99: warning: ‘class IMessagePipeEnd’ has virtual functions but non-virtual destructor
../../../source/scripting/ScriptableObject.h:42: warning: ‘class IJSObject’ has virtual functions but non-virtual destructor
../../../source/scripting/ScriptCustomTypes.h: In copy constructor ‘SColour::SColour(const SColour&)’:
../../../source/scripting/ScriptCustomTypes.h:41: warning: base class ‘class CJSObject<SColour, false>’ should be explicitly initialized in the copy constructor
../../../source/network/fsm.h: At global scope:
../../../source/network/fsm.h:146: warning: ‘class CFsm’ has virtual functions but non-virtual destructor
../../../source/lib/frequency_filter.h:23: warning: ‘struct IFrequencyFilter’ has virtual functions but non-virtual destructor
make[1]: *** [obj/network_Debug/NetClient.o] Error 1
make: *** [network] Error 2

Thanks again in advance for any and all help!

Link to comment
Share on other sites

Anyway, after waking up this morning with my head slightly clearer, I realized that:

1) There were no actual errors to speak of

2) Each time I ran make again it would compile one more file

Unfortunately, I only figured that out after trying to manually correct all the warnings! ;) But now my computer is happily chugging away at the following rather inane looking line: :P

make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make; make;

EDIT: at the very end of that make I am left with the following error:


desky:gcc calderco$ make
==== Building mocks_real ====
make[1]: `../../../binaries/system/libmocks_real_dbg.a' is up to date.
==== Building network ====
make[1]: `../../../binaries/system/libnetwork_dbg.a' is up to date.
==== Building engine ====
make[1]: `../../../binaries/system/libengine_dbg.a' is up to date.
==== Building graphics ====
make[1]: `../../../binaries/system/libgraphics_dbg.a' is up to date.
==== Building i18n ====
make[1]: `../../../binaries/system/libi18n_dbg.a' is up to date.
==== Building atlas ====
make[1]: `../../../binaries/system/libatlas_dbg.a' is up to date.
==== Building gui ====
make[1]: `../../../binaries/system/libgui_dbg.a' is up to date.
==== Building lowlevel ====
make[1]: `../../../binaries/system/liblowlevel_dbg.a' is up to date.
==== Building pyrogenesis ====
Linking pyrogenesis
i686-apple-darwin9-g++-4.0.1: @@FULL_NSPR_LIBS@@: No such file or directory
make[1]: *** [../../../binaries/system/pyrogenesis_dbg.app/Contents/MacOS/pyrogenesis_dbg] Error 1
make: *** [pyrogenesis] Error 2

EDIT2: The solution to that problem was to fix the nspr.pc file in /usr/lib/pkgconfig by inserting the values returned by nspr-config. Here's mine:


prefix=/opt/local
exec_prefix=/opt/local
libdir=/opt/local/lib/nspr
includedir=/opt/local/include/nspr

Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.8.0
Libs: -L/opt/local/lib/nspr -lplds4 -lplc4 -lnspr4 -L/opt/local/lib
Cflags: -I/opt/local/include/nspr

Edited by Calder
Link to comment
Share on other sites

Surprise, surprise, we've got a new error to deal with! ;) Here's the build log:


desky:gcc calderco$ make
==== Building mocks_real ====
make[1]: `../../../binaries/system/libmocks_real_dbg.a' is up to date.
==== Building network ====
make[1]: `../../../binaries/system/libnetwork_dbg.a' is up to date.
==== Building engine ====
make[1]: `../../../binaries/system/libengine_dbg.a' is up to date.
==== Building graphics ====
make[1]: `../../../binaries/system/libgraphics_dbg.a' is up to date.
==== Building i18n ====
make[1]: `../../../binaries/system/libi18n_dbg.a' is up to date.
==== Building atlas ====
make[1]: `../../../binaries/system/libatlas_dbg.a' is up to date.
==== Building gui ====
make[1]: `../../../binaries/system/libgui_dbg.a' is up to date.
==== Building lowlevel ====
make[1]: `../../../binaries/system/liblowlevel_dbg.a' is up to date.
==== Building pyrogenesis ====
Linking pyrogenesis
ld warning: in /Library/Frameworks//OpenAL.framework/OpenAL, file is not of required architecture
Undefined symbols:
"_alcMakeContextCurrent", referenced from:
alc_shutdown() in liblowlevel_dbg.a(snd_mgr.o)
alc_init() in liblowlevel_dbg.a(snd_mgr.o)
"_alSourceRewindv", referenced from:
vsrc_reclaim(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
"_alcGetString", referenced from:
alc_init() in liblowlevel_dbg.a(snd_mgr.o)
snd_dev_prepare_enum() in liblowlevel_dbg.a(snd_mgr.o)
"_alGetSourcei", referenced from:
vsrc_deque_finished_bufs(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
vsrc_update(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
"_alcCloseDevice", referenced from:
alc_shutdown() in liblowlevel_dbg.a(snd_mgr.o)
"_alSourcef", referenced from:
vsrc_latch(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
vsrc_latch(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
vsrc_latch(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
vsrc_latch(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
vsrc_latch(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
"_alSourcei", referenced from:
vsrc_latch(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
vsrc_latch(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
vsrc_reclaim(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
"_alSourceQueueBuffers", referenced from:
vsrc_update(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
"_alGenBuffers", referenced from:
al_buf_alloc(void*, int, int, int)in liblowlevel_dbg.a(snd_mgr.o)
"_alSourceUnqueueBuffers", referenced from:
vsrc_deque_finished_bufs(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
"_alcGetError", referenced from:
alc_init() in liblowlevel_dbg.a(snd_mgr.o)
"_alSourcefv", referenced from:
vsrc_latch(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
"_alcIsExtensionPresent", referenced from:
snd_dev_prepare_enum() in liblowlevel_dbg.a(snd_mgr.o)
"_alDeleteBuffers", referenced from:
al_buf_free(unsigned int)in liblowlevel_dbg.a(snd_mgr.o)
"_alListenerf", referenced from:
al_listener_latch() in liblowlevel_dbg.a(snd_mgr.o)
"_alGenSources", referenced from:
al_src_init() in liblowlevel_dbg.a(snd_mgr.o)
"_alBufferData", referenced from:
al_buf_alloc(void*, int, int, int)in liblowlevel_dbg.a(snd_mgr.o)
"_alGetError", referenced from:
al_check(char const*, int)in liblowlevel_dbg.a(snd_mgr.o)
al_src_init() in liblowlevel_dbg.a(snd_mgr.o)
vsrc_latch(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
"_alIsBuffer", referenced from:
al_buf_free(unsigned int)in liblowlevel_dbg.a(snd_mgr.o)
"_alIsSource", referenced from:
al_src_init() in liblowlevel_dbg.a(snd_mgr.o)
al_src_free(unsigned int)in liblowlevel_dbg.a(snd_mgr.o)
vsrc_latch(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
vsrc_reclaim(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
"_alListenerfv", referenced from:
al_listener_latch() in liblowlevel_dbg.a(snd_mgr.o)
al_listener_latch() in liblowlevel_dbg.a(snd_mgr.o)
"_alDeleteSources", referenced from:
al_src_shutdown() in liblowlevel_dbg.a(snd_mgr.o)
"_alSourcePlay", referenced from:
vsrc_grant(VSrc*) in liblowlevel_dbg.a(snd_mgr.o)
"_alcDestroyContext", referenced from:
alc_shutdown() in liblowlevel_dbg.a(snd_mgr.o)
"_alcOpenDevice", referenced from:
alc_init() in liblowlevel_dbg.a(snd_mgr.o)
"_alDistanceModel", referenced from:
al_init() in liblowlevel_dbg.a(snd_mgr.o)
"_alGetString", referenced from:
al_ReportError(int, char const*, int)in liblowlevel_dbg.a(snd_mgr.o)
"_alcCreateContext", referenced from:
alc_init() in liblowlevel_dbg.a(snd_mgr.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [../../../binaries/system/pyrogenesis_dbg.app/Contents/MacOS/pyrogenesis_dbg] Error 1
make: *** [pyrogenesis] Error 2

EDIT: After running make clean, updating and reverting to the latest repo version, the number of errors have been reduced significantly. As the old ones were only specific to my own dirty working copy, I replaced them with the new status.

EDIT2: Following the advice here, I renamed /Library/Frameworks/OpenAL.framework to OpenAL.framework.bac and that did the trick.

Edited by Calder
Link to comment
Share on other sites

New error:


desky:gcc calderco$ make
==== Building mocks_real ====
make[1]: `../../../binaries/system/libmocks_real_dbg.a' is up to date.
==== Building network ====
make[1]: `../../../binaries/system/libnetwork_dbg.a' is up to date.
==== Building engine ====
make[1]: `../../../binaries/system/libengine_dbg.a' is up to date.
==== Building graphics ====
make[1]: `../../../binaries/system/libgraphics_dbg.a' is up to date.
==== Building i18n ====
make[1]: `../../../binaries/system/libi18n_dbg.a' is up to date.
==== Building atlas ====
make[1]: `../../../binaries/system/libatlas_dbg.a' is up to date.
==== Building gui ====
make[1]: `../../../binaries/system/libgui_dbg.a' is up to date.
==== Building lowlevel ====
make[1]: `../../../binaries/system/liblowlevel_dbg.a' is up to date.
==== Building pyrogenesis ====
make[1]: Nothing to be done for `all'.
==== Building mocks_test ====
make[1]: `../../../binaries/system/libmocks_test_dbg.a' is up to date.
==== Building AtlasObject ====
make[1]: `../../../binaries/system/libAtlasObject_dbg.a' is up to date.
==== Building AtlasScript ====
make[1]: `../../../binaries/system/libAtlasScript_dbg.a' is up to date.
==== Building wxJS ====
make[1]: `../../../binaries/system/libwxJS_dbg.a' is up to date.
==== Building AtlasUI ====
ScenarioEditor.cpp
/opt/local/include/wx-2.8/wx/mac/carbon/cursor.h:49: warning: redundant redeclaration of ‘void wxSetCursor(const wxCursor&)’ in same scope
/opt/local/include/wx-2.8/wx/gdicmn.h:752: warning: previous declaration of ‘void wxSetCursor(const wxCursor&)’
/opt/local/include/wx-2.8/wx/mac/carbon/app.h:34: warning: redundant redeclaration of ‘bool wxYield()’ in same scope
/opt/local/include/wx-2.8/wx/utils.h:729: warning: previous declaration of ‘bool wxYield()’
/opt/local/include/wx-2.8/wx/app.h:610: warning: redundant redeclaration of ‘void wxExit()’ in same scope
/opt/local/include/wx-2.8/wx/mac/carbon/app.h:31: warning: previous declaration of ‘void wxExit()’
/opt/local/include/wx-2.8/wx/geometry.h:91: warning: redundant redeclaration of ‘wxPoint2DInt operator*(wxInt32, const wxPoint2DInt&)’ in same scope
/opt/local/include/wx-2.8/wx/geometry.h:90: warning: previous declaration of ‘wxPoint2DInt operator*(wxInt32, const wxPoint2DInt&)’
/opt/local/include/wx-2.8/wx/geometry.h:93: warning: redundant redeclaration of ‘wxPoint2DInt operator*(const wxPoint2DInt&, wxInt32)’ in same scope
/opt/local/include/wx-2.8/wx/geometry.h:92: warning: previous declaration of ‘wxPoint2DInt operator*(const wxPoint2DInt&, wxInt32)’
/opt/local/include/wx-2.8/wx/geometry.h:96: warning: redundant redeclaration of ‘wxPoint2DInt operator/(const wxPoint2DInt&, wxInt32)’ in same scope
/opt/local/include/wx-2.8/wx/geometry.h:95: warning: previous declaration of ‘wxPoint2DInt operator/(const wxPoint2DInt&, wxInt32)’
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
../../../source/tools/atlas/AtlasUI/../GameInterface/MessagePasser.h:30: warning: ‘class AtlasMessage::MessagePasser’ has virtual functions but non-virtual destructor
../../../libraries/spidermonkey/include/js/jsotypes.h:77: error: conflicting declaration ‘typedef struct JSUint64 uint64’
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:48: error: ‘uint64’ has a previous declaration as ‘typedef uint64_t uint64’
make[1]: *** [obj/AtlasUI_Debug/ScenarioEditor.o] Error 1
make: *** [AtlasUI] Error 2

At least we're getting somewhere though! Pyrogenesis successfully built and linked, though it freezes up and quits when I try to run the app, (I'm assuming/hoping that it's missing necessary components).

EDIT: Followed wiki instructions here and replaced line 77 of libraries/spidermonkey/include/js/jsotypes.h with


#ifndef _UINT64
typedef JSUint64 uint64;
#define _UINT64
#endif

Edited by Calder
Link to comment
Share on other sites

Ah, I'm glad the uint64 issue made it into the wiki ;)

though it freezes up and quits when I try to run the app, (I'm assuming/hoping that it's missing necessary components).

hm, we've had reports of successful execution on OS X, so a missing library might explain this. You don't happen to have any information/backtrace on where it's freezing?

Link to comment
Share on other sites

Sorry, I didn't get around to posting my eventual success. ;) The problem is that when starting, it in encounters an error that you need to manually Continue through via the terminal, but I wasn't opening it in a terminal window, so I couldn't continue anything. If this isn't normal, I could give you the debugger output or anything else if that would help...

Link to comment
Share on other sites

There is no ~/0ad folder created automatically, is there anything I have to do to generate the crashlog? Until I can get a crashlog, here's the gdb backtrace of the first error:


#0 0x9372746e in __semwait_signal ()
#1 0x937272ef in nanosleep$UNIX2003 ()
#2 0x9377ce71 in sleep$UNIX2003 ()
#3 0x00469fd4 in udbg_launch_debugger () at ../../../source/lib/sysdep/os/unix/udbg.cpp:87
#4 0x0046a358 in sys_display_error (text=0x22561000, flags=6) at ../../../source/lib/sysdep/os/unix/unix.cpp:66
#5 0x003f3f1d in CallDisplayError (text=0x22561000, flags=6) at ../../../source/lib/debug.cpp:427
#6 0x003f43a6 in debug_DisplayError (description=0x22025330, flags=6, context=0x0, lastFuncToSkip=0x560e28 "debug_OnAssertionFailure", pathname=0x565124 "../../../source/lib/res/sound/snd_mgr.cpp", line=116, func=0x565114 "al_ReportError", suppress=0x743574 "") at ../../../source/lib/debug.cpp:502
#7 0x003f44d8 in debug_OnAssertionFailure (expr=0x560e74 "0", suppress=0x743574 "", file=0x565124 "../../../source/lib/res/sound/snd_mgr.cpp", line=116, func=0x565114 "al_ReportError") at ../../../source/lib/debug.cpp:577
#8 0x0044ad01 in al_ReportError (err=40963, caller=0x565402 "vsrc_latch", line=1480) at ../../../source/lib/res/sound/snd_mgr.cpp:116
#9 0x0044cd88 in vsrc_latch (vs=0x21f057d4) at ../../../source/lib/res/sound/snd_mgr.cpp:1480
#10 0x0044d078 in vsrc_grant (vs=0x21f057d4) at ../../../source/lib/res/sound/snd_mgr.cpp:1598
#11 0x0044e919 in snd_play (hvs=335007450308, static_pri=0) at ../../../source/lib/res/sound/snd_mgr.cpp:1679
#12 0x001ebe90 in JSI_Sound::Loop (this=0x2205d500) at ../../../source/sound/JSI_Sound.cpp:152
#13 0x001ed4d1 in CNativeFunction<JSI_Sound, false, bool, &(JSI_Sound::Loop(JSContext*, unsigned int, int*))>::JSFunction (cx=0x1255900, obj=0x2290b390, argc=0, argv=0x1efa40b4, rval=0xbfffd654) at ScriptableObject.h:185
#14 0x004b7f38 in js_Invoke (cx=0x1255900, argc=0, flags=0) at jsinterp.c:1187
#15 0x004cae39 in js_Interpret (cx=0x1255900, pc=0x1ed1faf1 ":", result=0xbfffe340) at jsinterp.c:3586
#16 0x004b7fba in js_Invoke (cx=0x1255900, argc=1, flags=2) at jsinterp.c:1207
#17 0x004b8335 in js_InternalInvoke (cx=0x1255900, obj=0x2290b320, fval=523289264, flags=0, argc=1, argv=0xbfffe578, rval=0xbfffe568) at jsinterp.c:1284
#18 0x0047bcc0 in JS_CallFunctionValue (cx=0x1255900, obj=0x2290b320, fval=523289264, argc=1, argv=0xbfffe578, rval=0xbfffe568) at jsapi.c:4188
#19 0x003da672 in IGUIObject::ScriptEvent (this=0x1ed47150, Action=@0xbfffe708) at ../../../source/gui/IGUIObject.cpp:504
#20 0x0038f12b in GUI<CStr8>::RecurseObject (RR=0, pObject=0x1ed47150, pFunc={__pfn = 0x3da3ac <IGUIObject::ScriptEvent(CStr8 const&)>, __delta = 0}, Argument=@0xbfffe708) at GUIutil.h:306
#21 0x0038f177 in GUI<CStr8>::RecurseObject (RR=0, pObject=0x1ed45990, pFunc={__pfn = 0x3da3ac <IGUIObject::ScriptEvent(CStr8 const&)>, __delta = 0}, Argument=@0xbfffe708) at GUIutil.h:312
#22 0x0038f177 in GUI<CStr8>::RecurseObject (RR=0, pObject=0x126bee0, pFunc={__pfn = 0x3da3ac <IGUIObject::ScriptEvent(CStr8 const&)>, __delta = 0}, Argument=@0xbfffe708) at GUIutil.h:312
#23 0x003802f4 in CGUI::SendEventToAll (this=0x126c180, EventName=@0xbfffe758) at ../../../source/gui/CGUI.cpp:353
#24 0x0000285b in ProgressiveBuildArchive () at ../../../source/main.cpp:120
#25 0x00002c7d in Frame () at ../../../source/main.cpp:229
#26 0x000033f0 in RunGameOrAtlas (argc=1, argv=0x1209d70) at ../../../source/main.cpp:397
#27 0x00003484 in SDL_main (argc=1, argv=0x1209d70) at ../../../source/main.cpp:410
#28 0x0054049c in -[SDLMain applicationDidFinishLaunching:] () at ../../../source/main.cpp:179
#29 0x901b642a in _nsnote_callback ()
#30 0x9527747a in __CFXNotificationPost ()
#31 0x95277753 in _CFXNotificationPostNotification ()
#32 0x901b3680 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#33 0x901bced8 in -[NSNotificationCenter postNotificationName:object:] ()
#34 0x9275ddf2 in -[NSApplication _postDidFinishNotification] ()
#35 0x9275dd01 in -[NSApplication _sendFinishLaunchingNotification] ()
#36 0x926d781b in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
#37 0x926d7014 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
#38 0x901dba9f in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#39 0x901db7af in _NSAppleEventManagerGenericHandler ()
#40 0x90fe8648 in aeDispatchAppleEvent ()
#41 0x90fe857e in dispatchEventAndSendReply ()
#42 0x90fe8425 in aeProcessAppleEvent ()
#43 0x90cdc981 in AEProcessAppleEvent ()
#44 0x926d48e9 in _DPSNextEvent ()
#45 0x926d3f88 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#46 0x926ccf9f in -[NSApplication run] ()
#47 0x00540c30 in main () at ../../../source/main.cpp:179

If that's helpful, I can post this for all the errors I've received, but I don't want to spam this thread with useless nonsense! ;)

Edited by Calder
Link to comment
Share on other sites

Sorry for the lack of a reply, I apparently missed this thread while on the road and coicidentally saw it now.

hm, I wonder if the OpenAL framework renaming thing was bad, but if that is the first error you are encountering, then at least the device init was successful, which makes that explanation unlikely.

It's possible that the values being passed to vsrc_latch are invalid. Fortunately we have some printfs that should be writing the values to stdout or stderr - do you see such output?

Unfortunately I forgot to update the printfs after adding code to set distance model, so the output is currently incomplete.. have just committed a fix.

Just FYI, sound problems can be worked around by launching with -quickstart .

There is no ~/0ad folder created automatically, is there anything I have to do to generate the crashlog?

My bad, the correct path is: $XDG_CONFIG_HOME/0ad/logs, where $XDG_CONFIG_HOME defaults to ~/.config . Does the crashlog.txt exist there? (just ensuring that works, but I don't think it'll add much information in this case)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...