I'm not very familiar with this.. (I did a similar thing for some
time ago when I was fixing DirectX for Dev-C++ before it
supported .lib files, but I don't remember much of that)
Here is results of the jam and nm command: (Tell me if the things I
do don't make sense, I really don't understand this problem)
$ jam
...patience...
...patience...
...patience...
...found 3366 target(s)...
...updating 2 target(s)...
LinkPlugin cgdriver2d.csbundle
/usr/bin/ld: Undefined symbols:
_OSXDelegate2D_blitToWindow
_OSXDelegate2D_setMouseCursor
_OSXDelegate2D_setMousePosition
_OSXDelegate2D_setTitle
_OSXDelegate2D_closeWindow
_OSXDelegate2D_delete
_OSXDelegate2D_focusChanged
_OSXDelegate2D_new
_OSXDelegate2D_openWindow
collect2: ld returned 1 exit status
export MACOSX_DEPLOYMENT_TARGET=10.2
g++ -bundle -o cgdriver2d.csbundle ./out/macosxppc/optimize/
plugins/video/canvas/macosx/coregraphics/CGDriver2D.o ./out/macosxppc/
optimize/plugins/video/canvas/macosx/coregraphics/
OSXDelegate2D_CGBlit.o -lm -lmx -ldl -Wl,-multiply_defined,suppress -
L/usr/local/lib -Wl,-framework,AppKit -Wl,-framework,Foundation -
bundle ./out/macosxppc/optimize/libs/libcrystalspace_macosx.a ./out/
macosxppc/optimize/libs/libcrystalspace.a -lz -lm -lmx -ldl -Wl,-
multiply_defined,suppress -L/usr/local/lib -Wl,-framework,AppKit -Wl,-
framework,Foundation
...failed LinkPlugin cgdriver2d.csbundle ...
LinkPlugin glosx2d.csbundle
/usr/bin/ld: Undefined symbols:
_OSXDelegate2D_createOpenGLContext
_OSXDelegate2D_setMouseCursor
_OSXDelegate2D_setMousePosition
_OSXDelegate2D_setTitle
_OSXDelegate2D_updateOpenGLContext
_OSXDelegate2D_closeWindow
_OSXDelegate2D_delete
_OSXDelegate2D_focusChanged
_OSXDelegate2D_new
_OSXDelegate2D_openWindow
collect2: ld returned 1 exit status
export MACOSX_DEPLOYMENT_TARGET=10.2
g++ -bundle -o glosx2d.csbundle ./out/macosxppc/optimize/plugins/
video/canvas/macosx/opengl/GLOSXDriver2D.o ./out/macosxppc/optimize/
plugins/video/canvas/macosx/opengl/OSXDelegate2D_OpenGL.o -lm -lmx -
ldl -Wl,-multiply_defined,suppress -L/usr/local/lib -Wl,-
framework,AppKit -Wl,-framework,Foundation -bundle ./out/macosxppc/
optimize/libs/libcrystalspace_opengl.a ./out/macosxppc/optimize/libs/
libcrystalspace_macosx.a ./out/macosxppc/optimize/libs/
libcrystalspace.a -framework OpenGL -lm -lz -framework OpenGL -lm -lm
-lmx -ldl -Wl,-multiply_defined,suppress -L/usr/local/lib -Wl,-
framework,AppKit -Wl,-framework,Foundation
...failed LinkPlugin glosx2d.csbundle ...
...failed updating 2 target(s)...
$ nm out/macosxppc/optimize/libs/libcrystalspace_macosx.a
out/macosxppc/optimize/libs/libcrystalspace_macosx.a(OSXDelegate2D.o):
00000494 t -[OSXDelegate2D closeWindow]
00000088 t -[OSXDelegate2D dealloc]
00000580 t -[OSXDelegate2D dispatchEvent:forView:]
000004f4 t -[OSXDelegate2D focusChanged:shouldPause:]
00000000 t -[OSXDelegate2D initWithDriver:]
000003a0 t -[OSXDelegate2D mouseEntered:]
00000424 t -[OSXDelegate2D mouseExited:]
000008b8 t -[OSXDelegate2D
openWindow:width:height:depth:fullscreen:onDisplay:onScreen:]
00000158 t -[OSXDelegate2D setMouseCursor:]
00000110 t -[OSXDelegate2D setTitle:]
000001e8 t -[OSXDelegate2D startTrackingMouse]
00000320 t -[OSXDelegate2D stopTrackingMouse]
0000068c t -[OSXDelegate2D(PrivateMethods) adjustTitle]
000005f0 t -[OSXDelegate2D(PrivateMethods) configureTitles:]
0000075c t -[OSXDelegate2D(PrivateMethods) getLastEventType]
000005d8 t -[OSXDelegate2D(PrivateMethods) getWindowStyleForMode:]
00000754 t -[OSXDelegate2D(PrivateMethods) getWindow]
000006c8 t -[OSXDelegate2D(PrivateMethods) windowDidBecomeKey:]
000006e4 t -[OSXDelegate2D(PrivateMethods) windowDidResignKey:]
00000700 t -[OSXDelegate2D(PrivateMethods) windowShouldClose:]
00000764 t -[OSXDelegate2D(PrivateMethods) windowWillResize:toSize:]
00000000 A .objc_category_name_OSXDelegate2D_PrivateMethods
U .objc_class_name_NSConstantString
U .objc_class_name_NSCursor
U .objc_class_name_NSObject
U .objc_class_name_NSScreen
U .objc_class_name_NSString
U .objc_class_name_NSWindow
00000000 A .objc_class_name_OSXDelegate2D
U .objc_class_name_OSXView
U .objc_class_name_OSXWindow
U _CGDisplayPixelsHigh
U _CGDisplayPixelsWide
U _CGShieldingWindowLevel
U _OSXDriver2D_DispatchEvent
U _OSXDriver2D_HideMouse
U _OSXDriver2D_Resize
U _OSXDriver2D_ShowMouse
U __NSConstantStringClassReference
U _objc_msgSend
U _objc_msgSendSuper
U _objc_msgSend_stret
U dyld_stub_binding_helper
out/macosxppc/optimize/libs/libcrystalspace_macosx.a(OSXDriver2D.o):
U _CFDictionaryGetValue
U _CFNumberGetValue
U _CGDisplayBestModeForParameters
U _CGDisplayCapture
U _CGDisplayCurrentMode
U _CGDisplayRelease
U _CGDisplaySwitchToMode
U _CGGetActiveDisplayList
U _CGGetDisplayTransferByTable
U _CGMainDisplayID
U _CGSetDisplayTransferByTable
U _OSXDelegate2D_closeWindow
U _OSXDelegate2D_delete
U _OSXDelegate2D_focusChanged
U _OSXDelegate2D_new
U _OSXDelegate2D_openWindow
000009d8 T _OSXDriver2D_DispatchEvent
000009fc T _OSXDriver2D_HideMouse
000009ec T _OSXDriver2D_Resize
00000a0c T _OSXDriver2D_ShowMouse
U __Z13csStrNCaseCmpPKcS0_m
U __Z8csPrintfPKcz
U __Z9csFPrintfP7__sFILEPKcz
U __Z9csPrintfVPKcPc
000026b0 S __ZN10csArrayCmpIPP5iBaseS2_E14DefaultCompareERKS2_S5_
00001704 T __ZN11OSXDriver2D10InitializeEP15iObjectRegistry
00000b80 T __ZN11OSXDriver2D11HandleEventER6iEvent
00000fd8 T __ZN11OSXDriver2D12EventHandler11AddRefOwnerEPP5iBase
00000010 T __ZN11OSXDriver2D12EventHandler11GetRefCountEv
0000269c S __ZN11OSXDriver2D12EventHandler11HandleEventER6iEvent
00000018 T __ZN11OSXDriver2D12EventHandler14QueryInterfaceEmi
00000cb8 T __ZN11OSXDriver2D12EventHandler14RemoveRefOwnerEPP5iBase
00000a1c T __ZN11OSXDriver2D12EventHandler18scfRemoveRefOwnersEv
00000af8 T __ZN11OSXDriver2D12EventHandler6DecRefEv
00000000 T __ZN11OSXDriver2D12EventHandler6IncRefEv
000026dc S __ZN11OSXDriver2D12EventHandlerD0Ev
00002724 S __ZN11OSXDriver2D12EventHandlerD1Ev
000018ec T __ZN11OSXDriver2D12Initialize16Ev
00000104 T __ZN11OSXDriver2D12Initialize32Ev
00000df0 T __ZN11OSXDriver2D13ChooseDisplayEv
0000038c T
__ZN11OSXDriver2D16FadeToGammaTableEP18_CGDirectDisplayID10GammaTable
0000087c T __ZN11OSXDriver2D16ToggleFullscreenEv
000005f4 T __ZN11OSXDriver2D18ExitFullscreenModeEv
000006fc T __ZN11OSXDriver2D19EnterFullscreenModeEv
00001b6c T __ZN11OSXDriver2D4OpenEv
000006b0 T __ZN11OSXDriver2D5CloseEv
00000548 T __ZN11OSXDriver2D9FadeToRGBEP18_CGDirectDisplayIDfff
00000c90 T __ZN11OSXDriver2D9HideMouseEv
00000974 T
__ZN11OSXDriver2D9SaveGammaEP18_CGDirectDisplayIDR10GammaTable
00000ca4 T __ZN11OSXDriver2D9ShowMouseEv
00001270 T __ZN11OSXDriver2DC1EP12csGraphics2D
00001200 T __ZN11OSXDriver2DC2EP12csGraphics2D
000015b0 T __ZN11OSXDriver2DD0Ev
00001448 T __ZN11OSXDriver2DD1Ev
000012e0 T __ZN11OSXDriver2DD2Ev
00002558 S __ZN12scfInterfaceI11iEventQueueE5GetIDEv
00002630 S __ZN12scfInterfaceI13iOSXAssistantE5GetIDEv
000024ec S __ZN12scfInterfaceI18iCommandLineParserE5GetIDEv
000025c4 S __ZN12scfInterfaceI9iReporterE5GetIDEv
U __ZN14csConfigAccessC1EP15iObjectRegistryPKcbi
U __ZN14csConfigAccessD1Ev
U __ZN14csConfigAccessptEv
U __ZN16csKeyEventHelper10GetRawCodeEPK6iEvent
U __ZN16csKeyEventHelper12GetEventTypeEPK6iEvent
U __ZN16csKeyEventHelper16GetModifiersBitsEPK6iEvent
00002774 S __ZN16csReporterHelper6ReportEP15iObjectRegistryiPKcS3_z
U __ZN4iSCF3SCFE
00002748 S
__ZN7csArrayIPP5iBase21csArrayElementHandlerIS2_E22csArrayMemoryAllocato
rIS2_EE14DefaultCompareERKS2_S9_
00002140 S __ZTI11OSXDriver2D
0000212c S __ZTI13iEventHandler
00002138 S __ZTI5iBase
00002120 S __ZTIN11OSXDriver2D12EventHandlerE
000021c8 S __ZTS11OSXDriver2D
00002198 S __ZTS13iEventHandler
00002190 S __ZTS5iBase
000021a8 S __ZTSN11OSXDriver2D12EventHandlerE
00002208 S __ZTV11OSXDriver2D
00002148 S __ZTV13iEventHandler
00002170 S __ZTV5iBase
U __ZTVN10__cxxabiv117__class_type_infoE
U __ZTVN10__cxxabiv120__si_class_type_infoE
000021d8 S __ZTVN11OSXDriver2D12EventHandlerE
00002950 d
__ZZN11OSXDriver2D12EventHandler14QueryInterfaceEmiE19iEventHandler_scfI
D
00002954 s
__ZZN11OSXDriver2D16FadeToGammaTableEP18_CGDirectDisplayID10GammaTableE1
0TOTAL_USEC
00002240 S __ZZN12scfInterfaceI11iEventQueueE5GetIDEvE2ID
00002248 S __ZZN12scfInterfaceI13iOSXAssistantE5GetIDEvE2ID
0000223c S __ZZN12scfInterfaceI18iCommandLineParserE5GetIDEvE2ID
00002244 S __ZZN12scfInterfaceI9iReporterE5GetIDEvE2ID
U __ZdlPv
U __Znwm
U ___CFStringMakeConstantString
U ___cxa_pure_virtual
U ___sF
U _atoi
U _free
U _gettimeofday
U _malloc
U _memcpy
U _memmove
U _realloc
U dyld_stub_binding_helper
U restFP
U saveFP
out/macosxppc/optimize/libs/libcrystalspace_macosx.a(OSXView.o):
0000012c t -[OSXView acceptsFirstResponder]
00000070 t -[OSXView dealloc]
0000017c t -[OSXView flagsChanged:]
00000000 t -[OSXView initWithFrame:]
00000134 t -[OSXView keyDown:]
00000158 t -[OSXView keyUp:]
000001c4 t -[OSXView mouseDown:]
0000020c t -[OSXView mouseDragged:]
000001a0 t -[OSXView mouseMoved:]
000001e8 t -[OSXView mouseUp:]
0000029c t -[OSXView otherMouseDown:]
000002e4 t -[OSXView otherMouseDragged:]
000002c0 t -[OSXView otherMouseUp:]
00000230 t -[OSXView rightMouseDown:]
00000278 t -[OSXView rightMouseDragged:]
00000254 t -[OSXView rightMouseUp:]
000000d4 t -[OSXView setDelegate:]
U .objc_class_name_NSView
00000000 A .objc_class_name_OSXView
U _objc_msgSend
U _objc_msgSendSuper
U dyld_stub_binding_helper
out/macosxppc/optimize/libs/libcrystalspace_macosx.a(OSXWindow.o):
00000000 t -[OSXWindow canBecomeKeyWindow]
U .objc_class_name_NSWindow
00000000 A .objc_class_name_OSXWindow
If it helps: I don't have any OSXDelegate2D.cpp (not what I can
find), only OSXDelegate2D.m
Post by Eric SunshinePost by Per EckerdalNow I've submitted the bug report (ID 4123010).
The bug does only appear when _all_ of "-fno-exceptions -O3 -
ffast- math" is sent to the compiler, so I fixed it by lowering
the optimization level to 2 by editing COMPILER.CFLAGS.optimize
in Jamconfig.
Often, though, we can work around such crashes by transforming the
code slightly while maintaining the same functionality but in a way
which pacifies the compiler. You might want to run some tests.
Post by Per EckerdalHowever, I encountered some more problems. Here are the error
'G3D_FOGMETHOD' was not declared in this scope
This will be fixed the next time the automated job re-generates
cs_pyth.cpp. (It runs once per day.) Alternately, you could install
Swig on your machine (www.swig.org) to work around this issue. (Be
sure to re-run the CS configure script after installing Swig.)
Post by Per EckerdalLinkPlugin cgdriver2d.csbundle
_OSXDelegate2D_blitToWindow
Somehing strange is going on. The OSXDelegate2D.cpp source does get
compiled, but it seems to be missing symbols, or it is not present
in libcrystalspace_macosx.a for some reason. Try listing the
contents of the generated ./out/macosxppc/optimize/libs/
libcrystalspace_macosx.a to see if the OSXDelegate2D.o object is
present. If it is, extract it and use 'nm' to find out if those
symbols are present in the object file.
-- ES
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Crystal-develop mailing list
https://lists.sourceforge.net/lists/listinfo/crystal-develop