PhantomMatthew
-
Posts
11 -
Joined
-
Last visited
Posts posted by PhantomMatthew
-
-
Great~~
It works, now I can launch the game and play now.
Thanks, Philip.
I can make some debugging and learn the code. :-)
-
I run gdb and results are below:
gdb ./pyrogenesis_dbgGNU gdb 6.3.50-20050815 (Apple version gdb-1467) (Wed Apr 21 06:57:21 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ........
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/vorbisfile.o" - no debug information available for "vorbisfile.c".
.
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0/bin.v2/libs/signals/build/darwin-4.2.1/release/threading-multi/trackable.o" - no debug information available for "libs/signals/src/trackable.cpp".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0/bin.v2/libs/signals/build/darwin-4.2.1/release/threading-multi/connection.o" - no debug information available for "libs/signals/src/connection.cpp".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0/bin.v2/libs/signals/build/darwin-4.2.1/release/threading-multi/named_slot_map.o" - no debug information available for "libs/signals/src/named_slot_map.cpp".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0/bin.v2/libs/signals/build/darwin-4.2.1/release/threading-multi/signal_base.o" - no debug information available for "libs/signals/src/signal_base.cpp".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0/bin.v2/libs/signals/build/darwin-4.2.1/release/threading-multi/slot.o" - no debug information available for "libs/signals/src/slot.cpp".
.
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/operations.o" - no debug information available for "libs/filesystem/src/operations.cpp".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/path.o" - no debug information available for "libs/filesystem/src/path.cpp".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/portability.o" - no debug information available for "libs/filesystem/src/portability.cpp".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/utf8_codecvt_facet.o" - no debug information available for "libs/filesystem/src/utf8_codecvt_facet.cpp".
.
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0/bin.v2/libs/system/build/darwin-4.2.1/release/threading-multi/error_code.o" - no debug information available for "libs/system/src/error_code.cpp".
........... done
(gdb) r
Starting program: /SourceCode/AgeOfEmpires/trunk/binaries/system/pyrogenesis_dbg
Reading symbols for shared libraries .+++++++++++++++++++++.................................................................................warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/mdct.o" - no debug information available for "mdct.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/smallft.o" - no debug information available for "smallft.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/block.o" - no debug information available for "block.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/envelope.o" - no debug information available for "envelope.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/window.o" - no debug information available for "window.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/lsp.o" - no debug information available for "lsp.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/lpc.o" - no debug information available for "lpc.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/analysis.o" - no debug information available for "analysis.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/synthesis.o" - no debug information available for "synthesis.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/psy.o" - no debug information available for "psy.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/info.o" - no debug information available for "info.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/floor1.o" - no debug information available for "floor1.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/floor0.o" - no debug information available for "floor0.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/res0.o" - no debug information available for "res0.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/mapping0.o" - no debug information available for "mapping0.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/registry.o" - no debug information available for "registry.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/codebook.o" - no debug information available for "codebook.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/sharedbook.o" - no debug information available for "sharedbook.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.1/lib/.libs/bitrate.o" - no debug information available for "bitrate.c".
........ done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00000001004b83a7 in amd64_CAS () at locale_facets.tcc:2578
2578 }
(gdb) bt full
#0 0x00000001004b83a7 in amd64_CAS () at locale_facets.tcc:2578
No symbol table info available.
#1 0x0000000100038507 in cpu_CAS (location=0x1007781a8, expected=0, newValue=1) at ../../../source/lib/sysdep/arch/amd64/amd64.cpp:68
No locals.
#2 0x000000010045ddf4 in ModuleShouldInitialize (pInitState=0x1007781a8) at ../../../source/lib/module_init.cpp:49
latchedInitState = 0
#3 0x00000001004974bb in h_mgr_init () at ../../../source/lib/res/h_mgr.cpp:807
No locals.
#4 0x000000010019edd0 in Init (args=@0x7fff5fbfe830, flags=0) at ../../../source/ps/GameSetup/GameSetup.cpp:860
setup_vmode = true
hooks = {
override_gl_upload_caps = 0x7fff5fbfde90,
get_log_dir = 0x7fff5fbfdd00,
bundle_logs = 0x7fff5fbfdfd0,
translate = 0x7fff5fbfe008,
translate_free = 0x7fff5fbfdf30,
log = 0x7fff87373a8f <_NSFileExistsAtPath+211>,
display_error = 0x6d2f73726573552f
}
setup_gui = false
windowed = false
quality = 42089920
missing = 0x7fff88b750e6 "??teH?\005?C[?H?0H???^"
__func__ = "Init"
suppress__ = 0 '\0'
suppress__ = 0 '\0'
#5 0x000000010003a4ad in RunGameOrAtlas (argc=1, argv=0x101711920) at ../../../source/main.cpp:408
args = {
m_Args = {
<std::_Vector_base<std::pair<CStr8, CStr8>,std::allocator<std::pair<CStr8, CStr8> > >> = {
_M_impl = {
<std::allocator<std::pair<CStr8, CStr8> >> = {
<__gnu_cxx::new_allocator<std::pair<CStr8, CStr8> >> = {<No data fields>}, <No data fields>},
members of std::_Vector_base<std::pair<CStr8, CStr8>,std::allocator<std::pair<CStr8, CStr8> > >::_Vector_impl:
_M_start = 0x0,
_M_finish = 0x0,
_M_end_of_storage = 0x0
}
}, <No data fields>},
m_Arg0 = {
<std::basic_string<char,std::char_traits<char>,std::allocator<char> >> = {
static npos = 18446744073709551615,
_M_dataplus = {
<std::allocator<char>> = {
<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
members of std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Alloc_hider:
_M_p = 0x1028247e8 "/SourceCode/AgeOfEmpires/trunk/binaries/system/pyrogenesis_dbg"
}
}, <No data fields>}
}
ran_atlas = false
res = 9.9999999999406119e-07
#6 0x000000010003a558 in SDL_main (argc=1, argv=0x101711920) at ../../../source/main.cpp:424
No locals.
#7 0x00000001004c6ba0 in -[sDLMain applicationDidFinishLaunching:] () at locale_facets.tcc:2578
No symbol table info available.
#8 0x00007fff8737a86e in _nsnote_callback ()
No symbol table info available.
#9 0x00007fff83475aea in __CFXNotificationPost ()
No symbol table info available.
#10 0x00007fff83462098 in _CFXNotificationPostNotification ()
No symbol table info available.
#11 0x00007fff873717d8 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
No symbol table info available.
#12 0x00007fff842e9fb2 in -[NSApplication _postDidFinishNotification] ()
No symbol table info available.
#13 0x00007fff842e9ee7 in -[NSApplication _sendFinishLaunchingNotification] ()
No symbol table info available.
#14 0x00007fff843b4ed1 in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
No symbol table info available.
#15 0x00007fff843b4b4d in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
No symbol table info available.
#16 0x00007fff873a916a in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
No symbol table info available.
#17 0x00007fff873a8f9a in _NSAppleEventManagerGenericHandler ()
No symbol table info available.
#18 0x00007fff84f08323 in aeDispatchAppleEvent ()
No symbol table info available.
#19 0x00007fff84f0821c in dispatchEventAndSendReply ()
No symbol table info available.
#20 0x00007fff84f08123 in aeProcessAppleEvent ()
No symbol table info available.
#21 0x00007fff83c7f8fd in AEProcessAppleEvent ()
No symbol table info available.
#22 0x00007fff842b9c0d in _DPSNextEvent ()
No symbol table info available.
#23 0x00007fff842b9379 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
No symbol table info available.
#24 0x00007fff8427f05b in -[NSApplication run] ()
No symbol table info available.
#25 0x00000001004c71f3 in main () at locale_facets.tcc:2578
No symbol table info available.
Current language: auto; currently c++
(gdb)
Please help to analyze.
-
Thanks a lot, Philip.
I trid again after modifying it without AtlasUI buid. It can pass.
But after build, I tried to launch it, it shows seg fault and failed to launch. Also I tried test_dbg, it also shows seg fault.
Now I think maybe some dylib files cause these problem, I used +universal when port binaries. But I cannot make sure and will have some tries.
-
Do you mean it gave the error message "libxml2 must have threading support enabled"? I changed the code recently - I tested it on OS X (10.5) and the _REENTRANT flag didn't appear to be necessary, but if you get that error then seemingly it is necessary sad.gif. I've changed it back in SVN - if you revert your changes and update, does it work better now?
Yes, it is the error message.
After I updated SVN changes, pyrogenesis can be linked. But I found AtalsUI has some link errors as below:
==== Building AtlasUI ====precompiled.cpp
In file included from /opt/local/include/wx-2.8/wx/wx.h:21,
from /opt/local/include/wx-2.8/wx/wxprec.h:68,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:43,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/opt/local/include/wx-2.8/wx/hashmap.h: In member function ‘wxLongToLongHashMap_wxImplementation_HashTable::Node** wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(const long int&) const’:
/opt/local/include/wx-2.8/wx/hashmap.h:737: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /opt/local/include/wx-2.8/wx/event.h:18,
from /opt/local/include/wx-2.8/wx/wx.h:25,
from /opt/local/include/wx-2.8/wx/wxprec.h:68,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:43,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/opt/local/include/wx-2.8/wx/clntdata.h: In member function ‘wxShadowObjectMethods_wxImplementation_HashTable::Node** wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:
/opt/local/include/wx-2.8/wx/clntdata.h:20: warning: dereferencing type-punned pointer will break strict-aliasing rules
/opt/local/include/wx-2.8/wx/clntdata.h: In member function ‘wxShadowObjectFields_wxImplementation_HashTable::Node** wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:
/opt/local/include/wx-2.8/wx/clntdata.h:25: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /opt/local/include/wx-2.8/wx/event.h:21,
from /opt/local/include/wx-2.8/wx/wx.h:25,
from /opt/local/include/wx-2.8/wx/wxprec.h:68,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:43,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/opt/local/include/wx-2.8/wx/gdicmn.h: In member function ‘wxStringToColourHashMap_wxImplementation_HashTable::Node** wxStringToColourHashMap_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:
/opt/local/include/wx-2.8/wx/gdicmn.h:544: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /opt/local/include/wx-2.8/wx/mac/cursor.h:4,
from /opt/local/include/wx-2.8/wx/cursor.h:34,
from /opt/local/include/wx-2.8/wx/event.h:22,
from /opt/local/include/wx-2.8/wx/wx.h:25,
from /opt/local/include/wx-2.8/wx/wxprec.h:68,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:43,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/opt/local/include/wx-2.8/wx/mac/carbon/cursor.h: At global scope:
/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&)’
In file included from /opt/local/include/wx-2.8/wx/mac/app.h:4,
from /opt/local/include/wx-2.8/wx/app.h:576,
from /opt/local/include/wx-2.8/wx/wx.h:26,
from /opt/local/include/wx-2.8/wx/wxprec.h:68,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:43,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/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()’
In file included from /opt/local/include/wx-2.8/wx/wx.h:26,
from /opt/local/include/wx-2.8/wx/wxprec.h:68,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:43,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/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()’
In file included from /opt/local/include/wx-2.8/wx/dcgraph.h:17,
from /opt/local/include/wx-2.8/wx/dc.h:881,
from /opt/local/include/wx-2.8/wx/mac/carbon/window.h:16,
from /opt/local/include/wx-2.8/wx/mac/window.h:4,
from /opt/local/include/wx-2.8/wx/window.h:1505,
from /opt/local/include/wx-2.8/wx/wx.h:36,
from /opt/local/include/wx-2.8/wx/wxprec.h:68,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:43,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/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)’
In file included from /opt/local/include/wx-2.8/wx/wx.h:45,
from /opt/local/include/wx-2.8/wx/wxprec.h:68,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:43,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/opt/local/include/wx-2.8/wx/image.h: In member function ‘wxImageHistogramBase_wxImplementation_HashTable::Node** wxImageHistogramBase_wxImplementation_HashTable::GetNodePtr(const long unsigned int&) const’:
/opt/local/include/wx-2.8/wx/image.h:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /opt/local/include/wx-2.8/wx/mac/statbmp.h:4,
from /opt/local/include/wx-2.8/wx/statbmp.h:64,
from /opt/local/include/wx-2.8/wx/wx.h:76,
from /opt/local/include/wx-2.8/wx/wxprec.h:68,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:43,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/opt/local/include/wx-2.8/wx/mac/carbon/statbmp.h: In member function ‘virtual wxIcon wxStaticBitmap::GetIcon() const’:
/opt/local/include/wx-2.8/wx/mac/carbon/statbmp.h:50: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:55,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/opt/local/include/wx-2.8/wx/filesys.h: In member function ‘wxFSHandlerHash_wxImplementation_HashTable::Node** wxFSHandlerHash_wxImplementation_HashTable::GetNodePtr(const void* const&) const’:
/opt/local/include/wx-2.8/wx/filesys.h:176: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.h:56,
from ../../../source/tools/atlas/AtlasUI/Misc/precompiled.cpp:18:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h: At global scope:
/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:48)
/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:48)
ActorEditor.cpp
ActorEditorListCtrl.cpp
AnimListEditor.cpp
PropListEditor.cpp
ColourTester.cpp
ColourTesterColourCtrl.cpp
ColourTesterFileCtrl.cpp
ColourTesterImageCtrl.cpp
ActionButton.cpp
ToolButton.cpp
Canvas.cpp
ColourDialog.cpp
DraggableListCtrl.cpp
DraggableListCtrlCommands.cpp
EditableListCtrl.cpp
EditableListCtrlCommands.cpp
FieldEditCtrl.cpp
ListCtrlValidator.cpp
QuickComboBox.cpp
QuickFileCtrl.cpp
QuickTextCtrl.cpp
FileHistory.cpp
HighResTimer.cpp
SnapSplitterWindow.cpp
virtualdirtreectrl.cpp
AtlasDialog.cpp
AtlasWindow.cpp
ErrorReporter.cpp
AtlasClipboard.cpp
AtlasEventLoop.cpp
AtlasWindowCommand.cpp
AtlasWindowCommandProc.cpp
Datafile.cpp
Observable.cpp
FFmpeg.cpp
VideoRecorder.cpp
DLLInterface.cpp
ScenarioEditor.cpp
SectionLayout.cpp
Sidebar.cpp
Cinematic.cpp
Environment.cpp
LightControl.cpp
Terrain.cpp
Trigger.cpp
AlterElevation.cpp
FlattenElevation.cpp
PaintTerrain.cpp
PlaceObject.cpp
ScriptedTool.cpp
TransformObject.cpp
Brushes.cpp
MiscState.cpp
ObjectSettings.cpp
Tools.cpp
Linking AtlasUI
ld: warning: in obj/AtlasUI_Debug/ActorEditor.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ActorEditorListCtrl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/AnimListEditor.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/PropListEditor.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ColourTester.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ColourTesterColourCtrl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ColourTesterFileCtrl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ColourTesterImageCtrl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ActionButton.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ToolButton.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/Canvas.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ColourDialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/DraggableListCtrl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/DraggableListCtrlCommands.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/EditableListCtrl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/EditableListCtrlCommands.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/FieldEditCtrl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ListCtrlValidator.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/QuickComboBox.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/QuickFileCtrl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/QuickTextCtrl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/FileHistory.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/HighResTimer.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/SnapSplitterWindow.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/virtualdirtreectrl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/AtlasDialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/AtlasWindow.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ErrorReporter.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/AtlasClipboard.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/AtlasEventLoop.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/AtlasWindowCommand.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/AtlasWindowCommandProc.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/Datafile.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/Observable.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/FFmpeg.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/VideoRecorder.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/DLLInterface.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ScenarioEditor.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/SectionLayout.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/Sidebar.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/Cinematic.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/Environment.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/LightControl.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/Terrain.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/Trigger.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/AlterElevation.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/FlattenElevation.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/PaintTerrain.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/PlaceObject.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ScriptedTool.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/TransformObject.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/Brushes.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/MiscState.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/ObjectSettings.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in obj/AtlasUI_Debug/Tools.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in ../../../binaries/system/libAtlasObject_dbg.a, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in ../../../binaries/system/libAtlasScript_dbg.a, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in ../../../binaries/system/libwxJS_dbg.a, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libboost_signals-mt.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libboost_filesystem-mt.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libboost_system-mt.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libIL.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libILU.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in ../../../binaries/system/libmozjs-ps-debug.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libxml2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: duplicate dylib /opt/local/lib/libz.1.dylib
ld: in /opt/local/lib/libSDL-1.2.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
collect2: ld returned 1 exit status
make[1]: *** [../../../binaries/system/libAtlasUI_dbg.so] Error 1
make: *** [AtlasUI] Error 2
-
When I build in Mac OS X 10.6.3 Snow Leopard, I found some issues:
(1) The error enable thread still existed in current version.
I search it from our forum, and temporarily fix it by modifying extern_libs.lua as below:
if OS == "windows" thentinsert(package.includepaths, libraries_dir.."libxml2/include")
tinsert(package.libpaths, libraries_dir.."libxml2/lib")
tinsert(package.config["Debug" ].links, "libxml2")
tinsert(package.config["Testing"].links, "libxml2")
tinsert(package.config["Release"].links, "libxml2")
else
-- libxml2 needs _REENTRANT or __MT__ for thread support;
-- OS X doesn't get either set by default, so do it manually
-- if OS == "osx" then
tinsert(package.defines, "_REENTRANT")
-- else
-- pkgconfig("libxml-2.0")
-- end
end
(2) When linking pyrogenesis, it will shows below error:
==== Building pyrogenesis ====main.cpp
Linking pyrogenesis
Undefined symbols:
"_xmlRelaxNGNewMemParserCtxt", referenced from:
RelaxNGValidator::LoadGrammar(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libengine_dbg.a(RelaxNG.o)
"_xmlRelaxNGNewValidCtxt", referenced from:
RelaxNGValidator::Validate(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)in libengine_dbg.a(RelaxNG.o)
"_xmlDocGetRootElement", referenced from:
CXeromyces::CreateXMB(_xmlDoc*, WriteBuffer&) in libengine_dbg.a(Xeromyces.o)
CXeromyces::CreateXMB(_xmlDoc*, WriteBuffer&) in libengine_dbg.a(Xeromyces.o)
"_xmlNodeGetContent", referenced from:
OutputElement(_xmlNode*, WriteBuffer&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned int> > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned int> > >&)in libengine_dbg.a(Xeromyces.o)
OutputElement(_xmlNode*, WriteBuffer&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned int> > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned int> > >&)in libengine_dbg.a(Xeromyces.o)
"_xmlRelaxNGValidateDoc", referenced from:
RelaxNGValidator::Validate(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)in libengine_dbg.a(RelaxNG.o)
"_xmlCleanupParser", referenced from:
CXeromyces::Terminate() in libengine_dbg.a(Xeromyces.o)
"_xmlInitParser", referenced from:
CXeromyces::Startup() in libengine_dbg.a(Xeromyces.o)
"_xmlGetLineNo", referenced from:
OutputElement(_xmlNode*, WriteBuffer&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned int> > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned int> > >&)in libengine_dbg.a(Xeromyces.o)
"_xmlFreeDoc", referenced from:
CXeromyces::LoadString(char const*)in libengine_dbg.a(Xeromyces.o)
CXeromyces::Load(boost::filesystem::basic_path<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, VfsPathTraits> const&)in libengine_dbg.a(Xeromyces.o)
RelaxNGValidator::Validate(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)in libengine_dbg.a(RelaxNG.o)
"_xmlFree", referenced from:
OutputElement(_xmlNode*, WriteBuffer&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned int> > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned int> > >&)in libengine_dbg.a(Xeromyces.o)
OutputElement(_xmlNode*, WriteBuffer&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned int> > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned int> > >&)in libengine_dbg.a(Xeromyces.o)
"_xmlReadMemory", referenced from:
CXeromyces::LoadString(char const*)in libengine_dbg.a(Xeromyces.o)
CXeromyces::Load(boost::filesystem::basic_path<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, VfsPathTraits> const&)in libengine_dbg.a(Xeromyces.o)
RelaxNGValidator::Validate(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)in libengine_dbg.a(RelaxNG.o)
"_xmlRelaxNGParse", referenced from:
RelaxNGValidator::LoadGrammar(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libengine_dbg.a(RelaxNG.o)
"_xmlRelaxNGFreeParserCtxt", referenced from:
RelaxNGValidator::LoadGrammar(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libengine_dbg.a(RelaxNG.o)
"_xmlSetStructuredErrorFunc", referenced from:
CXeromyces::Terminate() in libengine_dbg.a(Xeromyces.o)
CXeromyces::Startup() in libengine_dbg.a(Xeromyces.o)
"_xmlRelaxNGFree", referenced from:
RelaxNGValidator::~RelaxNGValidator()in libengine_dbg.a(RelaxNG.o)
RelaxNGValidator::~RelaxNGValidator()in libengine_dbg.a(RelaxNG.o)
"_xmlRelaxNGFreeValidCtxt", referenced from:
RelaxNGValidator::Validate(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)in libengine_dbg.a(RelaxNG.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
And another suggestion is to add nasm to MacPorts list, for default nasm is not work for old amd64_asm problem.
-
I tried gcc_select and fix the CFBunlde.h error.
And I make a mistake when editing code, it should be "libxml/tree.h" as source code. Sorry......
And now, fcollada can be built corretly.
Thanks.
-
After I run pkg-config libxml-2.0 --cflags
it shows:
-I/opt/local/include/libxml2I can get the tree.h file under /opt/local/include/libxml2/libxml/
Do I need to modify xcodeproj file with some changes?
And it is also very weird to found CFBundle error.
Thanks for your quick reply.
-
I followed the Mac OS X build instruction but I still found error with building FCollada.
Updating bundled third-party dependencies...bash -c 'mkdir -p output/{debug,release,test}/{FCollada/{FCDocument,FMath,FUtils,FColladaTest/{FCTestAssetManagement,FCTestExportImport,FCTestXRef}},FColladaPlugins/FArchiveXML}'
FCollada/FCollada.cpp
In file included from FCollada/FCollada.h:49,
from FCollada/StdAfx.h:13,
from FCollada/FCollada.cpp:9:
FCollada/FUtils/FUtils.h:91:25: error: libxml\tree.h: No such file or directory
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43,
from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20,
from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
from FCollada/FUtils/FUCriticalSection.h:18,
from FCollada/FUtils/FUError.h:21,
from FCollada/FUtils/FUtils.h:129,
from FCollada/FCollada.h:49,
from FCollada/StdAfx.h:13,
from FCollada/FCollada.cpp:9:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:147: error: format string argument not a string type
make: *** [output/debug/FCollada/FCollada.o] Error 1
ERROR: FCollada build failed
I also use google to search some topics of this issue in our forum, and tried to use /libraries/fcollada/src/FCollada/FCollada.xcodeproj to build FCollada, but I found error "no file existing of /libxml/tree.h". I already follow the Mac OS X build intruction and get libxml2 installed.
When I search topics in forum, it said I need to us macports to install libxml-dev or libxml2-dev. But when I tried sudo port install libxml-dev or libxml2-dev, I get below error messages:
Error: Port libxml-dev not foundError: Port libxml2-dev not found
Would you please help about this issue?
-
Thanks Ykkrosh, it works after modifying it to https!! I really like to try this Great Game and hope I can contribute something to this project.
-
I'm a Chinese developer. I likes Ages Of Empires very much and am happy to get the Great game 0AD from internet. But when tried to use SVN to checkout source code from my Macbook pro, I saw below error:
A trunk/build
A trunk/build/dehydra
A trunk/build/dehydra/tests
A trunk/build/dehydra/tests/printf-type-check.txt
A trunk/build/dehydra/tests/printf-type-check.cpp
A trunk/build/dehydra/printf-type-check.js
A trunk/build/dehydra/README.txt
A trunk/build/workspaces
svn: GET of '/public/!svn/ver/6793/ps/trunk/build/workspaces/update-workspaces.bat': Could not read status line: connection was closed by server (http://svn.wildfiregames.com)
But I can use Firefox to access source code in website. I have no idea about that, would you please give me some help about that?
Mac OS X 10.6.3 Build Issue
in Bug reports
Posted
Yes, I only disable Altas build and can launch the game.