0
0

I’m trying, with the help of a Mac user, to make a support to use Fmod with Java on the Mac platform (NativeFmod).
(I’m the guy of the java interface in the download section).

The problem is that I don’t know well the Mac platform.

I’ve got some problem during the linking operation my c++ code.

I use the following script in Mac OS X :
[code:1za8d52x]
cc -g -I/System/Library/Frameworks/JavaVM.framework/Headers -c -o NativeFmod.o NativeFmod.cpp
cc -dynamiclib -o libNativeFmod.dylib NativeFmod.o libfmod.a
[/code:1za8d52x]

The first line creates well the output file (NativeFmod.o) but when the secon line is running, these errors are printed :
[code:1za8d52x]
ld: Undefined symbols:
vtable for __cxxabiv1::__class_type_info
vtable for __cxxabiv1::__si_class_type_info
operator delete(void*)
operator new(unsigned long)
___gxx_personality_v0
_MPCurrentTaskID
_MPCreateTask
_MPTerminateTask
_MPCreateSemaphore
_MPDeleteSemaphore
_MPWaitOnSemaphore
_MPSignalSemaphore
_UpTime
_AbsoluteToDuration
_YieldToAnyThread
_AddDurationToAbsolute
_MPDelayUntil
_SndSoundManagerVersion
_SndNewChannel
_SetCurrentA5
_SndDisposeChannel
_SndDoImmediate
_SPBRecord
_SPBOpenDevice
_SPBSetDeviceInfo
_SPBGetDeviceInfo
_BitTst
_BitClr
_Fix2Long
_NewSICompletionUPP
_SPBStopRecording
_SPBCloseDevice
_InitOpenTransportInContext
_CloseOpenTransportInContext
_OTCreateConfiguration
_OTOpenEndpointInContext
_OTSetSynchronous
_OTSetBlocking
_NewOTNotifyUPP
_OTInstallNotifier
_OTUseSyncIdleEvents
_OTBind
_OTCloseProvider
_OTUnbind
_OTInitDNSAddress
_OTConnect
_OTCountDataBytes
_OTLook
_OTRcvDisconnect
_OTRcvOrderlyDisconnect
_OTSndOrderlyDisconnect
_OTRcv
_OTSnd
_NewPtrClear
_MemError
_NewPtr
_NewNMUPP
_GetCompressionInfo
_NewSndCallBackUPP
_SndDoCommand
_DisposePtr
_Enqueue
_OTAtomicSetBit
_NMInstall
_NMRemove
_Dequeue
/usr/bin/libtool: internal link edit command failed
[/code:1za8d52x]

I’ve seen that Fmod is Carbon based (Mac version). The fact is that I don’t use Carbon !
Did the problem come from I don’t use it ?

Can somebody help me ?

  • You must to post comments
0
0

Thank you

A lot of errors disapear since I use Carbon.

I think the remaining errors come from my code (but works on Win & Linux !)
[code:vtmqpp43]
ld: Undefined symbols:
vtable for __cxxabiv1::__class_type_info
vtable for __cxxabiv1::__si_class_type_info
operator delete(void*)
operator new(unsigned long)
___gxx_personality_v0
/usr/bin/libtool: internal link edit command failed
[/code:vtmqpp43]

  • You must to post comments
0
0

it looks like your not linking to libstdc++. alternatively, use g++ (rather than gcc) to compile and link your code

  • You must to post comments
0
0

OK, I will try to install gcc (I use it (g++) for the Linux build and it works well).
For the Mac build, I’ve used until now the default c++ compiler (cc).

  • You must to post comments
0
0

have you tried using the default c++ compiler (c++)?

  • You must to post comments
0
0

The guy that build my source in Mac OS X ensure me that his compiler is a c++ one. I asked him to check : the problem come from there !
He uses a c compiler :(

The build now compiles well. The support for Fmod with Java in the Mac platform will be soon available.

Thank you for your help 😀

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.