About Store Forum Documentation Contact
Donations:
227$/mo



Post Reply 
Bug reports compiling on mac
Author Message
mystara Offline
Member

Post: #1
Bug reports compiling on mac
H'lo!

I just upgraded to Xcode 4, after learning that the project settings files were now updated to use this. However, in compiling some of the tutorials, I run into problems:

01 - Animation.cpp
This seems to run okay (although the mouse vanishes). When I try to quit the tutorial by hitting escape, the application does not seem to terminate properly.

GDB produces the following output:

Quote:There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000
warning: Unable to read symbols for @executable_path/../Library/Frameworks/Cg.framework/Cg (file not found).
warning: Unable to read symbols from "Cg" (not yet mapped into memory).
[Switching to process 376 thread 0x0]
Tutorials(376,0x7fff7769a960) malloc: *** error for object 0x400000001: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
sharedlibrary apply-load-rules all
warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(guard.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/guard.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_personality.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_personality.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/x86_64/libgcc_eh.a(unwind-dw2.o)" - no debug information available for "/var/tmp/gcc/gcc-5465~16/src/gcc/unwind-dw2.c".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_terminate.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_terminate.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_term_handler.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_term_handler.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(vterminate.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/vterminate.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_exception.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_exception.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(tinfo.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/tinfo.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(del_op.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/del_op.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_type.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_type.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_globals.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_globals.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/x86_64/libgcc_eh.a(unwind-dw2-fde-darwin.o)" - no debug information available for "/var/tmp/gcc/gcc-5465~16/src/gcc/unwind-dw2-fde-darwin.c".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_catch.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_catch.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_throw.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_throw.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_alloc.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_alloc.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_unex_handler.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_unex_handler.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(cp-demangle.o)" - no debug information available for "cp-demangle.c".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(pure.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/pure.cc".

and the stack trace:
Quote:Thread 1, Queue : com.apple.main-thread
#0 0x00007fff8f3dece2 in __pthread_kill ()
#1 0x00007fff8fd9b7d2 in pthread_kill ()
#2 0x00007fff8fd8ca7a in abort ()
#3 0x00007fff8fdeb84c in free ()
#4 0x00000001000cb08f in EE::Free(void*&) ()
#5 0x0000000100002875 in EE::OrientP*& EE::Free<EE::OrientP>(EE::OrientP*&) at /Applications/EsenthelEngineSDK/Installation/EsenthelEngine/Memory/Memory.h:81
#6 0x0000000100002820 in EE::Mems<EE::OrientP>::clear() ()
#7 0x00000001000027d5 in EE::Mems<EE::OrientP>::del() ()
#8 0x00000001000027b5 in EE::Mems<EE::OrientP>::~Mems() ()
#9 0x0000000100002675 in EE::Mems<EE::OrientP>::~Mems() ()
#10 0x00000001000025ff in EE::CSkeleton::~CSkeleton() ()
#11 0x0000000100002035 in EE::CSkeleton::~CSkeleton() ()
#12 0x00007fff8fd8c7c8 in __cxa_finalize ()
#13 0x00007fff8fd8c652 in exit ()
#14 0x00007fff8a252aca in -[NSApplication terminate:] ()
#15 0x00000001001366c8 in -[MyApplication terminate:] ()
#16 0x0000000100137575 in -[MyOpenGLView animationTimer:] ()
#17 0x00007fff8bd5f014 in __NSFireTimer ()
#18 0x00007fff92aa8f84 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ ()
#19 0x00007fff92aa8ad6 in __CFRunLoopDoTimer ()
#20 0x00007fff92a89471 in __CFRunLoopRun ()
#21 0x00007fff92a88ae6 in CFRunLoopRunSpecific ()
#22 0x00007fff8df143d3 in RunCurrentEventLoopInMode ()
#23 0x00007fff8df1b58f in ReceiveNextEventCommon ()
#24 0x00007fff8df1b4ca in BlockUntilNextEventMatchingListInMode ()
#25 0x00007fff8a24c3f1 in _DPSNextEvent ()
#26 0x00007fff8a24bcf5 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#27 0x00007fff8a24862d in -[NSApplication run] ()
#28 0x00007fff8a4c780c in NSApplicationMain ()
#29 0x00000001000019c4 in start ()

31 - Render To Texture.cpp

Produces an error:
Quote:31 - Render To Texture.cpp:73:15:{73:16-73:53}: error: taking the address of a temporary object of type 'EE::RectI' [-Waddress-of-temporary,3]

03 - World with Character
When I run this tutorial, the application launches, and I just get a black (or sometimes white) screen.

GDB output looks like it's related to the first issue here:
Quote:GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011)
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".tty /dev/ttys000
warning: Unable to read symbols for @executable_path/../Library/Frameworks/Cg.framework/Cg (file not found).
warning: Unable to read symbols from "Cg" (not yet mapped into memory).
[Switching to process 409 thread 0x0]
2012-02-01 20:09:06.458 Tutorials[409:407] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
Tutorials: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
sharedlibrary apply-load-rules all
warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(guard.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/guard.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_personality.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_personality.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/x86_64/libgcc_eh.a(unwind-dw2.o)" - no debug information available for "/var/tmp/gcc/gcc-5465~16/src/gcc/unwind-dw2.c".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_terminate.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_terminate.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_term_handler.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_term_handler.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(vterminate.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/vterminate.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_exception.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_exception.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(tinfo.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/tinfo.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(del_op.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/del_op.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_type.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_type.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_globals.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_globals.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/x86_64/libgcc_eh.a(unwind-dw2-fde-darwin.o)" - no debug information available for "/var/tmp/gcc/gcc-5465~16/src/gcc/unwind-dw2-fde-darwin.c".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_catch.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_catch.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_throw.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_throw.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_alloc.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_alloc.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(eh_unex_handler.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/eh_unex_handler.cc".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(cp-demangle.o)" - no debug information available for "cp-demangle.c".

warning: Could not find object file "/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libstdc++-static.a(pure.o)" - no debug information available for "/SourceCache/libstdcxx/libstdcxx-16/libstdcxx/libstdc++-v3/libsupc++/pure.cc".
02-01-2012 09:11 PM
Find all posts by this user Quote this message in a reply
mystara Offline
Member

Post: #2
RE: Bug reports compiling on mac
I should add that I'm running this on OS X 10.7
02-02-2012 09:27 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Bug reports compiling on mac
Thank you very much for the detailed information!
I will check this soon
02-02-2012 11:32 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Bug reports compiling on mac
Hi,

I have tested all your issues with latest EE SDK on Mac (Lion, XCode 4.2 Build 4D199)
And I don't have any of your problems.

31 - Render To Texture.cpp:73:15:{73:16-73:53}: error: taking the address of a temporary object of type 'EE::RectI' [-Waddress-of-temporary,3]
when I do compilation, on my computer this does not result in an error, but just a warning.

perhaps you're using incompatible:
-project settings (.xcodeproj)
-EE headers
-EE lib (.a file on Mac)

try do clean install of latest EE Mac SDK and use project from the SDK
02-16-2012 03:04 PM
Find all posts by this user Quote this message in a reply
mystara Offline
Member

Post: #5
RE: Bug reports compiling on mac
It works on a clean install. Thanks.

Prior to that, I had just run autoupdate on an old, but clean install. Could it be that autoupdate was not updating something?
02-25-2012 11:53 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Bug reports compiling on mac
I'm not sure, it looked like the problem was with some different compiler settings (xcodeproj), but that should be updated by the tool as well.
02-25-2012 12:14 PM
Find all posts by this user Quote this message in a reply
Post Reply