User forums > Help

build failed on Mac

(1/1)

yli:
Hi,

My first attempt to make an JUCE Mac program failed because the following. I know this can be simply solved by adding a few lib in link, but being absolutely new to Mac, I have no idea which ones are needed.

Thanks

-------------- Build: Debug in osx ---------------

Linking executable: bin/Debug/osx
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_Debugger
_CFDataGetBytePtr
_CFDataGetLength
_CFRelease
_MIDIClientCreate
_MIDIDeviceGetNumberOfEntities
_MIDIEndpointGetEntity
_MIDIEntityGetDevice
_MIDIGetDestination
_MIDIGetNumberOfDestinations
_MIDIGetNumberOfSources
_MIDIGetSource
_MIDIInputPortCreate
_MIDIObjectFindByUniqueID
_MIDIObjectGetDataProperty
_MIDIObjectGetStringProperty
_MIDIOutputPortCreate
_MIDIPortConnectSource
_MIDIPortDisconnectSource
_MIDIPortDispose
_MIDISend
_kMIDIPropertyConnectionUniqueID
_kMIDIPropertyName
_CFBundleCopyExecutableURL
_CFBundleGetBundleWithIdentifier
_CFStringCreateWithCharacters
_CFStringGetCharacters
_CFStringGetLength
_CFURLCopyFileSystemPath
_CFURLCreateWithString
_ConvertFromUnicodeToText
_CreateTextEncoding
_CreateUnicodeToTextInfo
_DisposeUnicodeToTextInfo
_FSCloseFork
_FSFlushFork
_FSGetCatalogInfo
_FSIterateForks
_FSOpenFork
_FSPathMakeRef
_FSReadFork
_FSRefMakePath
_FSWriteFork
_LSCopyItemInfoForRef
_LSOpenCFURLRef
_LSOpenFSRef
_LSOpenFromRefSpec
_PBGetCatalogInfoSync
_PBSetCatalogInfoSync
_kCFAllocatorDefault
_AudioGetCurrentHostTime
_AudioGetHostClockFrequency
_Gestalt
_GetCPUSpeed
_MPProcessors
_Microseconds
_RegisterAppearanceClient
_TXNInitTextension
_CloseConnection
_ExitToShell
_FindSymbol
_GetDiskFragment
_AEProcessAppleEvent
_ActivateWindow
_AddDragItemFlavor
_AppendMenuItemTextWithCFString
_BringToFront
_CFArrayGetCount
_CFArrayGetValueAtIndex
_CFDictionaryGetValue
_CFGetTypeID
_CFNumberGetTypeID
_CFNumberGetValue
_CFRunLoopAddSource
_CFRunLoopGetCurrent
_CFUUIDGetConstantUUIDWithBytes
_CFUUIDGetUUIDBytes
_CGAssociateMouseAndMouseCursorPosition
_CGColorSpaceCreateWithPlatformColorSpace
_CGColorSpaceRelease
_CGContextClearRect
_CGContextClipToRect
_CGContextClipToRects
_CGContextFlush
_CGContextGetClipBoundingBox
_CGContextScaleCTM
_CGContextTranslateCTM
_CGDataProviderCreateWithData
_CGDataProviderRelease
_CGDisplayBounds
_CGGetOnlineDisplayList
_CGImageCreate
_CGImageRelease
_CGMainDisplayID
_CGRectContainsPoint
_CGRectIntegral
_CGSetLocalEventsSuppressionInterval
_CGWarpMouseCursorPosition
_CMGetSystemProfile
_CallNextEventHandler
_ChangeMenuItemAttributes
_CheckMenuItem
_ClearCurrentScrap
_ClearMenuBar
_CollapseWindow
_ConvertEventRefToEventRecord
_CopyRgn
_CountDragItems
_CreateCustomWindow
_CreateEvent
_CreateNewMenu
_CreateNewWindow
_DMGetGDeviceByDisplayID
_DiffRgn
_DisposeDrag
_DisposeRgn
_DisposeWindow
_FSpGetFInfo
_FSpMakeFSRef
_FindWindow
_FlashMenuBar
_FrontWindow
_GetAvailableWindowPositioningBounds
_GetCurrentEventKeyModifiers
_GetCurrentEventTime
_GetCurrentKeyModifiers
_GetCurrentProcess
_GetCurrentScrap
_GetDragItemReferenceNumber
_GetEventClass
_GetEventDispatcherTarget
_GetEventKind
_GetEventParameter
_GetEventTime
_GetFlavorData
_GetFlavorDataSize
_GetFrontProcess
_GetIndMenuItemWithCommandID
_GetMenuID
_GetMenuItemProperty
_GetMouse
_GetPort
_GetRootControl
_GetScrapFlavorData
_GetScrapFlavorSize
_GetUserFocusWindow
_GetWindowAttributes
_GetWindowBounds
_GetWindowEventTarget
_GetWindowPort
_HIGrowBoxViewSetTransparent
_HIObjectCreate
_HIObjectIsOfClass
_HIObjectRegisterSubclass
_HIPointConvert
_HIViewAddSubview
_HIViewAdvanceFocus
_HIViewConvertPoint
_HIViewDrawCGImage
_HIViewFindByID
_HIViewGetBounds
_HIViewGetFrame
_HIViewGetRoot
_HIViewGetSubviewHit
_HIViewGetViewForMouseEvent
_HIViewIsCompositingEnabled
_HIViewPlaceInSuperviewAt
_HIViewRender
_HIViewSetFrame
_HIViewSetNeedsDisplayInRect
_HIViewSetVisible
_HIViewSetZOrder
_HIViewSubtreeContainsFocus
_HideCursor
_HideWindow
_IOCreatePlugInInterfaceForService
_IOIteratorNext
_IOObjectGetClass
_IOObjectRelease
_IOServiceGetMatchingServices
_IOServiceMatching
_InsertMenu
_InsetRgn
_InstallEventHandler
_IsValidPort
_IsValidWindowPtr
_IsWindowActive
_LocalToGlobal
_NewDrag
_NewEventHandlerUPP
_NewRgn
_PutScrapFlavor
_QDBeginCGContext
_QDDisplayWaitCursor
_QDEndCGContext
_ReceiveNextEvent
_RegisterToolboxObjectClass
_ReleaseEvent
_RemoveEventHandler
_SameProcess
_SelectWindow
_SendBehind
_SendEventToEventTarget
_SetAutomaticControlDragTrackingEnabledForWindow
_SetControlDragTrackingEnabled
_SetCursor
_SetDragAllowableActions
_SetEventParameter
_SetFrontProcessWithOptions
_SetMenuItemCommandKey
_SetMenuItemHierarchicalMenu
_SetMenuItemKeyGlyph
_SetMenuItemModifiers
_SetMenuItemProperty
_SetMenuTitleWithCFString
_SetPort
_SetPortWindowPort
_SetRectRgn
_SetThemeCursor
_SetUserFocusWindow
_SetWindowAlpha
_SetWindowBounds
_SetWindowTitleWithCFString
_ShowCursor
_ShowWindow
_StandardAlert
_SysBeep
_TickCount
_TrackDrag
_TrackMouseLocationWithOptions
_UpdateSystemActivity
___CFConstantStringClassReference
_aglChoosePixelFormat
_aglCreateContext
_aglDescribePixelFormat
_aglDestroyContext
_aglEnable
_aglGetCurrentContext
_aglGetInteger
_aglNextPixelFormat
_aglSetCurrentContext
_aglSetDrawable
_aglSetInteger
_aglSwapBuffers
_glViewport
_kCFRunLoopDefaultMode
_kHIViewWindowContentID
_kHIViewWindowGrowBoxID
_kIOMasterPortDefault
_AECoerceDesc
_AECountItems
_AECreateDesc
_AEDisposeDesc
_AEGetDescData
_AEGetDescDataSize
_AEGetNthPtr
_DisposeNavEventUPP
_DisposeNavObjectFilterUPP
_GetWindowGroup
_NavCreateChooseFolderDialog
_NavCreateGetFileDialog
_NavCreatePutFileDialog
_NavCustomControl
_NavDialogDispose
_NavDialogGetReply
_NavDialogGetSaveFileName
_NavDialogRun
_NavDisposeReply
_NavGetDefaultDialogCreationOptions
_NewNavEventUPP
_NewNavObjectFilterUPP
_SetWindowGroup
_ATSFontGetName
_ATSFontIteratorCreate
_ATSFontIteratorNext
_ATSFontIteratorRelease
_ATSUCreateStyle
_ATSUCreateTextLayoutWithTextPtr
_ATSUDirectGetLayoutDataArrayPtrFromTextLayout
_ATSUDirectReleaseLayoutDataArrayPtr
_ATSUDisposeStyle
_ATSUDisposeTextLayout
_ATSUFindFontFromName
_ATSUGetLineControl
_ATSUGlyphGetCubicPaths
_ATSUSetAttributes
_ATSUSetTransientFontMatching
_DisposeATSCubicClosePathUPP
_DisposeATSCubicCurveToUPP
_DisposeATSCubicLineToUPP
_DisposeATSCubicMoveToUPP
_Fix2X
_NewATSCubicClosePathUPP
_NewATSCubicCurveToUPP
_NewATSCubicLineToUPP
_NewATSCubicMoveToUPP
_X2Fix
_AEGetParamDesc
_AEInstallEventHandler
_GetApplicationEventTarget
_GetMainEventQueue
_HiliteMenu
_MenuSelect
_NewAEEventHandlerUPP
_PostEventToQueue
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 5 seconds)
0 errors, 0 warnings

Auria:
Seems like you at least need Carbon and AppKit (using flags "-framework Carbon", etc., for both compilation and linking, usually). No clue where that Midi* stuff comes from. You should know what you're linking against, though, it's up to you to know what you're linking against, after all you have the code and we don't

Navigation

[0] Message Index

Go to full version