Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
383 stars 73 forks source link

build issue on MAC yosemite #19

Closed lewislepton closed 9 years ago

lewislepton commented 9 years ago

i get right to the 'make' part [not even 'make install'] of the build, but it then doesnt make it. it says about something like 'SDL.so' at the end plus something else. dont know what it is. also did contact david regarding this but he doesnt know. he said it may be something to do with SDL2, maybe, but these are guesses really

– using yosemite/mac 10.10.3 – SDL2.0.3. built from source also tried the binary build from the site – have all the other SDL_image etc in my frameworks folder – also have cmake 2.8.12-2.

great if someone could help.

thanks

lepton:_build_ lepton$ make
Scanning dependencies of target common
[  2%] Building C object common/CMakeFiles/common.dir/array.c.o
[  5%] Building C object common/CMakeFiles/common.dir/common.c.o
[  8%] Building C object common/CMakeFiles/common.dir/rwops.c.o
[ 11%] Building C object common/CMakeFiles/common.dir/surface.c.o
[ 14%] Building C object common/CMakeFiles/common.dir/table.c.o
[ 17%] Building C object common/CMakeFiles/common.dir/variant.c.o
[ 20%] Building C object common/CMakeFiles/common.dir/video.c.o
Linking C static library libcommon.a
[ 20%] Built target common
Scanning dependencies of target SDL
[ 23%] Building C object CMakeFiles/SDL.dir/src/audio.c.o
[ 26%] Building C object CMakeFiles/SDL.dir/src/channel.c.o
[ 29%] Building C object CMakeFiles/SDL.dir/src/clipboard.c.o
[ 32%] Building C object CMakeFiles/SDL.dir/src/cpu.c.o
[ 35%] Building C object CMakeFiles/SDL.dir/src/display.c.o
[ 38%] Building C object CMakeFiles/SDL.dir/src/events.c.o
[ 41%] Building C object CMakeFiles/SDL.dir/src/filesystem.c.o
[ 44%] Building C object CMakeFiles/SDL.dir/src/gamecontroller.c.o
[ 47%] Building C object CMakeFiles/SDL.dir/src/gl.c.o
[ 50%] Building C object CMakeFiles/SDL.dir/src/haptic.c.o
[ 52%] Building C object CMakeFiles/SDL.dir/src/joystick.c.o
[ 55%] Building C object CMakeFiles/SDL.dir/src/keyboard.c.o
[ 58%] Building C object CMakeFiles/SDL.dir/src/logging.c.o
[ 61%] Building C object CMakeFiles/SDL.dir/src/mouse.c.o
[ 64%] Building C object CMakeFiles/SDL.dir/src/platform.c.o
[ 67%] Building C object CMakeFiles/SDL.dir/src/power.c.o
[ 70%] Building C object CMakeFiles/SDL.dir/src/rectangle.c.o
[ 73%] Building C object CMakeFiles/SDL.dir/src/renderer.c.o
[ 76%] Building C object CMakeFiles/SDL.dir/src/SDL.c.o
[ 79%] Building C object CMakeFiles/SDL.dir/src/texture.c.o
[ 82%] Building C object CMakeFiles/SDL.dir/src/thread.c.o
[ 85%] Building C object CMakeFiles/SDL.dir/src/timer.c.o
[ 88%] Building C object CMakeFiles/SDL.dir/src/window.c.o
Linking C shared module SDL.so
Undefined symbols for architecture x86_64:
  "_SDL_AddEventWatch", referenced from:
      _eventAddFilter in events.c.o
  "_SDL_AddTimer", referenced from:
      _l_addTimer in timer.c.o
  "_SDL_AllocRW", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_SDL_AtomicAdd", referenced from:
      _l_channel_get in channel.c.o
      _l_channel_gc in channel.c.o
      _l_thread_create in thread.c.o
      _destroy in thread.c.o
      _callback in thread.c.o
  "_SDL_AtomicGet", referenced from:
      _l_channel_gc in channel.c.o
      _destroy in thread.c.o
  "_SDL_AudioInit", referenced from:
      _l_audioInit in audio.c.o
  "_SDL_AudioQuit", referenced from:
      _l_audioQuit in audio.c.o
  "_SDL_BuildAudioCVT", referenced from:
      _audioGetCVT in audio.c.o
  "_SDL_ClearError", referenced from:
      _l_clearError in SDL.c.o
  "_SDL_ClearHints", referenced from:
      _l_clearHints in SDL.c.o
  "_SDL_CloseAudio", referenced from:
      _l_audiodev_gc in audio.c.o
  "_SDL_CloseAudioDevice", referenced from:
      _l_audiodev_gc in audio.c.o
  "_SDL_CondBroadcast", referenced from:
      _channelClear in channel.c.o
      _l_channel_wait in channel.c.o
      _channelWait in channel.c.o
      _channelPush in channel.c.o
      _channelPop in channel.c.o
  "_SDL_CondWait", referenced from:
      _channelWait in channel.c.o
      _channelSupply in channel.c.o
  "_SDL_ConvertAudio", referenced from:
      _l_convertAudio in audio.c.o
  "_SDL_ConvertSurfaceFormat", referenced from:
      _l_surface_convertFormat in libcommon.a(surface.c.o)
  "_SDL_CreateColorCursor", referenced from:
      _l_createColorCursor in mouse.c.o
  "_SDL_CreateCond", referenced from:
      _l_channel_get in channel.c.o
  "_SDL_CreateCursor", referenced from:
      _l_createCursor in mouse.c.o
  "_SDL_CreateMutex", referenced from:
      _l_channel_get in channel.c.o
      _luaopen_SDL in SDL.c.o
  "_SDL_CreateRGBSurface", referenced from:
      _l_surface_createRGB in libcommon.a(surface.c.o)
  "_SDL_CreateRenderer", referenced from:
      _l_createRenderer in renderer.c.o
  "_SDL_CreateSoftwareRenderer", referenced from:
      _l_createSoftwareRenderer in renderer.c.o
  "_SDL_CreateTexture", referenced from:
      _l_renderer_createTexture in renderer.c.o
  "_SDL_CreateTextureFromSurface", referenced from:
      _l_renderer_createTextureFromSuface in renderer.c.o
  "_SDL_CreateThread", referenced from:
      _l_thread_create in thread.c.o
  "_SDL_CreateWindow", referenced from:
      _l_createWindow in window.c.o
  "_SDL_DelEventWatch", referenced from:
      _l_filter_gc in events.c.o
  "_SDL_Delay", referenced from:
      _l_delay in timer.c.o
  "_SDL_DestroyCond", referenced from:
      _l_channel_get in channel.c.o
  "_SDL_DestroyMutex", referenced from:
      _l_channel_get in channel.c.o
  "_SDL_DestroyRenderer", referenced from:
      _l_renderer_gc in renderer.c.o
  "_SDL_DestroyTexture", referenced from:
      _l_texture_gc in texture.c.o
  "_SDL_DestroyWindow", referenced from:
      _l_window_gc in window.c.o
  "_SDL_DetachThread", referenced from:
      _l_thread_gc in thread.c.o
  "_SDL_DisableScreenSaver", referenced from:
      _l_video_disableScreenSaver in display.c.o
  "_SDL_EnableScreenSaver", referenced from:
      _l_video_enableScreenSaver in display.c.o
  "_SDL_EnclosePoints", referenced from:
      _l_enclosePoints in rectangle.c.o
  "_SDL_EventState", referenced from:
      _l_event_eventState in events.c.o
  "_SDL_FillRect", referenced from:
      _l_surface_fillRect in libcommon.a(surface.c.o)
  "_SDL_FillRects", referenced from:
      _l_surface_fillRects in libcommon.a(surface.c.o)
  "_SDL_FilterEvents", referenced from:
      _l_event_filterEvents in events.c.o
  "_SDL_FlushEvent", referenced from:
      _l_event_flushEvent in events.c.o
  "_SDL_FlushEvents", referenced from:
      _l_event_flushEvents in events.c.o
  "_SDL_FreeCursor", referenced from:
      _l_cursor_gc in mouse.c.o
  "_SDL_FreeRW", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_rw_gc in libcommon.a(rwops.c.o)
  "_SDL_FreeSurface", referenced from:
      _l_surface_gc in libcommon.a(surface.c.o)
  "_SDL_GL_CreateContext", referenced from:
      _l_glCreateContext in gl.c.o
  "_SDL_GL_DeleteContext", referenced from:
      _l_glDeleteContext in gl.c.o
  "_SDL_GL_ExtensionSupported", referenced from:
      _l_glExtensionSupported in gl.c.o
  "_SDL_GL_GetAttribute", referenced from:
      _l_glGetAttribute in gl.c.o
  "_SDL_GL_GetCurrentContext", referenced from:
      _l_glGetCurrentContext in gl.c.o
  "_SDL_GL_GetCurrentWindow", referenced from:
      _l_glGetCurrentWindow in gl.c.o
  "_SDL_GL_GetDrawableSize", referenced from:
      _l_glGetDrawableSize in gl.c.o
  "_SDL_GL_GetSwapInterval", referenced from:
      _l_glGetSwapInterval in gl.c.o
  "_SDL_GL_MakeCurrent", referenced from:
      _l_glMakeCurrent in gl.c.o
  "_SDL_GL_SetAttribute", referenced from:
      _l_glSetAttribute in gl.c.o
  "_SDL_GL_SetSwapInterval", referenced from:
      _l_glSetSwapInterval in gl.c.o
  "_SDL_GL_SwapWindow", referenced from:
      _l_glSwapWindow in gl.c.o
  "_SDL_GameControllerAddMapping", referenced from:
      _l_gameControllerAddMapping in gamecontroller.c.o
  "_SDL_GameControllerClose", referenced from:
      _l_gamectl_gc in gamecontroller.c.o
  "_SDL_GameControllerGetAttached", referenced from:
      _l_gamectl_tostring in gamecontroller.c.o
      _l_gamectl_getAttached in gamecontroller.c.o
  "_SDL_GameControllerName", referenced from:
      _l_gamectl_tostring in gamecontroller.c.o
      _l_gamectl_name in gamecontroller.c.o
  "_SDL_GameControllerNameForIndex", referenced from:
      _l_gameControllerNameForIndex in gamecontroller.c.o
  "_SDL_GameControllerOpen", referenced from:
      _l_gameControllerOpen in gamecontroller.c.o
  "_SDL_GetAudioDeviceName", referenced from:
      _l_getAudioDeviceName in audio.c.o
  "_SDL_GetAudioDeviceStatus", referenced from:
      _l_audiodev_tostring in audio.c.o
      _l_audiodev_status in audio.c.o
  "_SDL_GetAudioDriver", referenced from:
      _l_getAudioDriver in audio.c.o
  "_SDL_GetAudioStatus", referenced from:
      _l_getAudioStatus in audio.c.o
      _l_audiodev_status in audio.c.o
  "_SDL_GetBasePath", referenced from:
      _l_getBasePath in filesystem.c.o
  "_SDL_GetCPUCacheLineSize", referenced from:
      _l_cpu_getCacheLineSize in cpu.c.o
  "_SDL_GetCPUCount", referenced from:
      _l_cpu_getCount in cpu.c.o
  "_SDL_GetClipRect", referenced from:
      _l_surface_getClipRect in libcommon.a(surface.c.o)
      _surfaceBlit in libcommon.a(surface.c.o)
  "_SDL_GetClipboardText", referenced from:
      _l_video_getClipboardText in clipboard.c.o
  "_SDL_GetClosestDisplayMode", referenced from:
      _l_video_getClosestDisplayMode in display.c.o
  "_SDL_GetColorKey", referenced from:
      _l_surface_getColorKey in libcommon.a(surface.c.o)
  "_SDL_GetCurrentAudioDriver", referenced from:
      _l_getCurrentAudioDriver in audio.c.o
  "_SDL_GetCurrentDisplayMode", referenced from:
      _l_video_getCurrentDisplayMode in display.c.o
  "_SDL_GetCurrentVideoDriver", referenced from:
      _l_video_getCurrentVideoDriver in display.c.o
  "_SDL_GetCursor", referenced from:
      _l_getCursor in mouse.c.o
  "_SDL_GetDesktopDisplayMode", referenced from:
      _l_video_getDesktopDisplayMode in display.c.o
  "_SDL_GetDisplayBounds", referenced from:
      _l_video_getDisplayBounds in display.c.o
  "_SDL_GetDisplayMode", referenced from:
      _l_video_getDisplayMode in display.c.o
  "_SDL_GetError", referenced from:
      _luaopen_SDL in SDL.c.o
      _l_getError in SDL.c.o
      _l_texture_tostring in texture.c.o
      _l_rw_read in libcommon.a(rwops.c.o)
      _l_rw_write in libcommon.a(rwops.c.o)
      _commonPushSDLError in libcommon.a(common.c.o)
  "_SDL_GetHint", referenced from:
      _l_getHint in SDL.c.o
  "_SDL_GetKeyFromName", referenced from:
      _l_getKeyFromName in keyboard.c.o
  "_SDL_GetKeyFromScancode", referenced from:
      _l_getKeyFromScancode in keyboard.c.o
  "_SDL_GetKeyName", referenced from:
      _l_getKeyName in keyboard.c.o
  "_SDL_GetKeyboardFocus", referenced from:
      _l_getKeyboardFocus in keyboard.c.o
  "_SDL_GetKeyboardState", referenced from:
      _keysIndex in keyboard.c.o
  "_SDL_GetModState", referenced from:
      _l_getModState in keyboard.c.o
  "_SDL_GetMouseFocus", referenced from:
      _l_getMouseFocus in mouse.c.o
  "_SDL_GetMouseState", referenced from:
      _l_getMouseState in mouse.c.o
  "_SDL_GetNumAudioDevices", referenced from:
      _l_getNumAudioDevices in audio.c.o
  "_SDL_GetNumAudioDrivers", referenced from:
      _l_getNumAudioDrivers in audio.c.o
  "_SDL_GetNumDisplayModes", referenced from:
      _l_video_getNumDisplayModes in display.c.o
  "_SDL_GetNumRenderDrivers", referenced from:
      _l_getNumRenderDrivers in renderer.c.o
  "_SDL_GetNumVideoDisplays", referenced from:
      _l_video_getNumVideoDisplays in display.c.o
  "_SDL_GetNumVideoDrivers", referenced from:
      _l_video_getNumVideoDrivers in display.c.o
  "_SDL_GetPerformanceCounter", referenced from:
      _l_getPerformanceCounter in timer.c.o
  "_SDL_GetPerformanceFrequency", referenced from:
      _l_getPerformanceFrequency in timer.c.o
  "_SDL_GetPlatform", referenced from:
      _l_getPlatform in platform.c.o
  "_SDL_GetPowerInfo", referenced from:
      _l_getPowerInfo in power.c.o
  "_SDL_GetPrefPath", referenced from:
      _l_getPrefPath in filesystem.c.o
  "_SDL_GetRelativeMouseMode", referenced from:
      _l_getRelativeMouseMode in mouse.c.o
  "_SDL_GetRelativeMouseState", referenced from:
      _l_getRelativeMouseState in mouse.c.o
  "_SDL_GetRenderDrawBlendMode", referenced from:
      _l_renderer_getDrawBlendMode in renderer.c.o
  "_SDL_GetRenderDrawColor", referenced from:
      _l_renderer_getDrawColor in renderer.c.o
  "_SDL_GetRenderDriverInfo", referenced from:
      _l_getRenderDriverInfo in renderer.c.o
  "_SDL_GetRendererInfo", referenced from:
      _l_renderer_tostring in renderer.c.o
      _l_renderer_getInfo in renderer.c.o
  "_SDL_GetScancodeFromKey", referenced from:
      _l_getScancodeFromKey in keyboard.c.o
  "_SDL_GetScancodeFromName", referenced from:
      _l_getScancodeFromName in keyboard.c.o
  "_SDL_GetScancodeName", referenced from:
      _l_getScancodeName in keyboard.c.o
  "_SDL_GetSurfaceAlphaMod", referenced from:
      _l_surface_getAlphaMod in libcommon.a(surface.c.o)
  "_SDL_GetSurfaceBlendMode", referenced from:
      _l_surface_getBlendMode in libcommon.a(surface.c.o)
  "_SDL_GetSurfaceColorMod", referenced from:
      _l_surface_getColorMod in libcommon.a(surface.c.o)
  "_SDL_GetTextureAlphaMod", referenced from:
      _l_texture_getAlphaMod in texture.c.o
  "_SDL_GetTextureBlendMode", referenced from:
      _l_texture_getBlendMode in texture.c.o
  "_SDL_GetTextureColorMod", referenced from:
      _l_texture_getColorMod in texture.c.o
  "_SDL_GetThreadID", referenced from:
      _l_thread_tostring in thread.c.o
      _l_thread_getId in thread.c.o
  "_SDL_GetThreadName", referenced from:
      _l_thread_getName in thread.c.o
  "_SDL_GetTicks", referenced from:
      _l_getTicks in timer.c.o
  "_SDL_GetVersion", referenced from:
      _luaopen_SDL in SDL.c.o
  "_SDL_GetVideoDriver", referenced from:
      _l_video_getVideoDriver in display.c.o
  "_SDL_GetWindowBrightness", referenced from:
      _l_window_getBrightness in window.c.o
  "_SDL_GetWindowDisplayIndex", referenced from:
      _l_window_getDisplayIndex in window.c.o
  "_SDL_GetWindowDisplayMode", referenced from:
      _l_window_getDisplayMode in window.c.o
  "_SDL_GetWindowFlags", referenced from:
      _l_window_getFlags in window.c.o
  "_SDL_GetWindowGammaRamp", referenced from:
      _l_window_getGammaRamp in window.c.o
  "_SDL_GetWindowGrab", referenced from:
      _l_window_getGrab in window.c.o
  "_SDL_GetWindowID", referenced from:
      _l_window_getID in window.c.o
  "_SDL_GetWindowMaximumSize", referenced from:
      _l_window_getMaximumSize in window.c.o
  "_SDL_GetWindowMinimumSize", referenced from:
      _l_window_getMinimumSize in window.c.o
  "_SDL_GetWindowPixelFormat", referenced from:
      _l_window_getPixelFormat in window.c.o
  "_SDL_GetWindowPosition", referenced from:
      _l_window_getPosition in window.c.o
  "_SDL_GetWindowSize", referenced from:
      _l_window_tostring in window.c.o
      _l_window_getSize in window.c.o
  "_SDL_GetWindowSurface", referenced from:
      _l_window_getSurface in window.c.o
  "_SDL_GetWindowTitle", referenced from:
      _l_window_tostring in window.c.o
      _l_window_getTitle in window.c.o
  "_SDL_HapticClose", referenced from:
      _l_haptic_gc in haptic.c.o
  "_SDL_HapticDestroyEffect", referenced from:
      _l_haptic_destroyEffect in haptic.c.o
  "_SDL_HapticEffectSupported", referenced from:
      _l_haptic_effectSupported in haptic.c.o
  "_SDL_HapticGetEffectStatus", referenced from:
      _l_haptic_getEffectStatus in haptic.c.o
  "_SDL_HapticIndex", referenced from:
      _l_haptic_index in haptic.c.o
  "_SDL_HapticNewEffect", referenced from:
      _l_haptic_newEffect in haptic.c.o
  "_SDL_HapticNumAxes", referenced from:
      _l_haptic_numAxes in haptic.c.o
  "_SDL_HapticNumEffects", referenced from:
      _l_haptic_numEffects in haptic.c.o
  "_SDL_HapticNumEffectsPlaying", referenced from:
      _l_haptic_numEffectsPlaying in haptic.c.o
  "_SDL_HapticOpen", referenced from:
      _l_hapticOpen in haptic.c.o
  "_SDL_HapticOpenFromJoystick", referenced from:
      _l_hapticOpenFromJoystick in haptic.c.o
  "_SDL_HapticOpenFromMouse", referenced from:
      _l_hapticOpenFromMouse in haptic.c.o
  "_SDL_HapticOpened", referenced from:
      _l_hapticOpened in haptic.c.o
  "_SDL_HapticPause", referenced from:
      _l_haptic_pause in haptic.c.o
  "_SDL_HapticRumbleInit", referenced from:
      _l_haptic_rumbleInit in haptic.c.o
  "_SDL_HapticRumblePlay", referenced from:
      _l_haptic_rumblePlay in haptic.c.o
  "_SDL_HapticRumbleStop", referenced from:
      _l_haptic_rumbleStop in haptic.c.o
  "_SDL_HapticRumbleSupported", referenced from:
      _l_haptic_rumbleSupported in haptic.c.o
  "_SDL_HapticRunEffect", referenced from:
      _l_haptic_runEffect in haptic.c.o
  "_SDL_HapticSetAutocenter", referenced from:
      _l_haptic_setAutocenter in haptic.c.o
  "_SDL_HapticSetGain", referenced from:
      _l_haptic_setGain in haptic.c.o
  "_SDL_HapticStopAll", referenced from:
      _l_haptic_stopAll in haptic.c.o
  "_SDL_HapticStopEffect", referenced from:
      _l_haptic_stopEffect in haptic.c.o
  "_SDL_HapticUnpause", referenced from:
      _l_haptic_unpause in haptic.c.o
  "_SDL_HapticUpdateEffect", referenced from:
      _l_haptic_updateEffect in haptic.c.o
  "_SDL_Has3DNow", referenced from:
      _l_cpu_has3DNow in cpu.c.o
  "_SDL_HasAltiVec", referenced from:
      _l_cpu_hasAltiVec in cpu.c.o
  "_SDL_HasClipboardText", referenced from:
      _l_video_hasClipboardText in clipboard.c.o
  "_SDL_HasEvent", referenced from:
      _l_event_hasEvent in events.c.o
  "_SDL_HasEvents", referenced from:
      _l_event_hasEvents in events.c.o
  "_SDL_HasIntersection", referenced from:
      _l_hasIntersection in rectangle.c.o
  "_SDL_HasMMX", referenced from:
      _l_cpu_hasMMX in cpu.c.o
  "_SDL_HasRDTSC", referenced from:
      _l_cpu_hasRDTSC in cpu.c.o
  "_SDL_HasSSE", referenced from:
      _l_cpu_hasSSE in cpu.c.o
  "_SDL_HasSSE2", referenced from:
      _l_cpu_hasSSE2 in cpu.c.o
  "_SDL_HasSSE41", referenced from:
      _l_cpu_hasSSE41 in cpu.c.o
  "_SDL_HasSSE42", referenced from:
      _l_cpu_hasSSE42 in cpu.c.o
  "_SDL_HideWindow", referenced from:
      _l_window_hide in window.c.o
  "_SDL_Init", referenced from:
      _l_init in SDL.c.o
  "_SDL_InitSubSystem", referenced from:
      _l_initSubSystem in SDL.c.o
  "_SDL_IntersectRect", referenced from:
      _l_intersectRect in rectangle.c.o
  "_SDL_IntersectRectAndLine", referenced from:
      _l_intersectRectAndLine in rectangle.c.o
  "_SDL_IsGameController", referenced from:
      _l_isGameController in gamecontroller.c.o
  "_SDL_IsScreenSaverEnabled", referenced from:
      _l_video_isScreenSaverLoaded in display.c.o
  "_SDL_JoystickClose", referenced from:
      _l_joystick_gc in joystick.c.o
  "_SDL_JoystickEventState", referenced from:
      _l_joystickEventState in joystick.c.o
  "_SDL_JoystickGetAttached", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_getAttached in joystick.c.o
  "_SDL_JoystickGetAxis", referenced from:
      _l_joystick_getAxis in joystick.c.o
  "_SDL_JoystickGetBall", referenced from:
      _l_joystick_getBall in joystick.c.o
  "_SDL_JoystickGetButton", referenced from:
      _l_joystick_getButton in joystick.c.o
  "_SDL_JoystickGetHat", referenced from:
      _l_joystick_getHat in joystick.c.o
  "_SDL_JoystickInstanceID", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_instanceID in joystick.c.o
  "_SDL_JoystickIsHaptic", referenced from:
      _l_joystickIsHaptic in haptic.c.o
  "_SDL_JoystickName", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_name in joystick.c.o
  "_SDL_JoystickNameForIndex", referenced from:
      _l_joystickNameForIndex in joystick.c.o
  "_SDL_JoystickNumAxes", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_numAxes in joystick.c.o
  "_SDL_JoystickNumBalls", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_numBalls in joystick.c.o
  "_SDL_JoystickNumButtons", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_numButtons in joystick.c.o
  "_SDL_JoystickNumHats", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_numHats in joystick.c.o
  "_SDL_JoystickOpen", referenced from:
      _l_joystickOpen in joystick.c.o
  "_SDL_JoystickUpdate", referenced from:
      _l_joystickUpdate in joystick.c.o
  "_SDL_LoadBMP_RW", referenced from:
      _l_surface_loadBMP in libcommon.a(surface.c.o)
      _l_surface_loadBMP_RW in libcommon.a(surface.c.o)
  "_SDL_LoadWAV_RW", referenced from:
      _loadWAV in audio.c.o
  "_SDL_LockAudio", referenced from:
      _l_audiodev_lock in audio.c.o
  "_SDL_LockAudioDevice", referenced from:
      _l_audiodev_lock in audio.c.o
  "_SDL_LockMutex", referenced from:
      _l_channel_get in channel.c.o
      _channelClear in channel.c.o
      _channelWait in channel.c.o
      _channelSupply in channel.c.o
      _channelPush in channel.c.o
      _channelPop in channel.c.o
      _channelLast in channel.c.o
      ...
  "_SDL_LockSurface", referenced from:
      _l_surface_lock in libcommon.a(surface.c.o)
  "_SDL_Log", referenced from:
      _l_log in logging.c.o
  "_SDL_LogCritical", referenced from:
      _audioCallback in audio.c.o
      _l_logCritical in logging.c.o
      _callback in thread.c.o
      _timerCallback in timer.c.o
  "_SDL_LogDebug", referenced from:
      _l_logDebug in logging.c.o
  "_SDL_LogError", referenced from:
      _l_logError in logging.c.o
  "_SDL_LogGetPriority", referenced from:
      _l_logGetPriority in logging.c.o
  "_SDL_LogInfo", referenced from:
      _l_logInfo in logging.c.o
  "_SDL_LogMessage", referenced from:
      _l_logMessage in logging.c.o
  "_SDL_LogResetPriorities", referenced from:
      _l_logResetPriorities in logging.c.o
  "_SDL_LogSetAllPriority", referenced from:
      _l_logSetAllPriority in logging.c.o
  "_SDL_LogSetOutputFunction", referenced from:
      _l_logSetOutputFunction in logging.c.o
  "_SDL_LogSetPriority", referenced from:
      _l_logSetPriority in logging.c.o
  "_SDL_LogVerbose", referenced from:
      _l_logVerbose in logging.c.o
  "_SDL_LogWarn", referenced from:
      _l_logWarn in logging.c.o
  "_SDL_LowerBlit", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
  "_SDL_LowerBlitScaled", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
  "_SDL_MaximizeWindow", referenced from:
      _l_window_maximize in window.c.o
  "_SDL_MinimizeWindow", referenced from:
      _l_window_minimize in window.c.o
  "_SDL_MixAudio", referenced from:
      _mixAudio in audio.c.o
  "_SDL_MixAudioFormat", referenced from:
      _mixAudio in audio.c.o
  "_SDL_MouseIsHaptic", referenced from:
      _l_mouseIsHaptic in haptic.c.o
  "_SDL_NumHaptics", referenced from:
      _l_numHaptics in haptic.c.o
  "_SDL_NumJoysticks", referenced from:
      _l_numJoysticks in joystick.c.o
  "_SDL_OpenAudio", referenced from:
      _openAudio in audio.c.o
  "_SDL_OpenAudioDevice", referenced from:
      _openAudio in audio.c.o
  "_SDL_PauseAudio", referenced from:
      _l_audiodev_pause in audio.c.o
  "_SDL_PauseAudioDevice", referenced from:
      _l_audiodev_pause in audio.c.o
  "_SDL_PeepEvents", referenced from:
      _l_event_peepEvents in events.c.o
      _l_event_quitRequested in events.c.o
  "_SDL_PollEvent", referenced from:
      _eventIterator in events.c.o
  "_SDL_PumpEvents", referenced from:
      _l_event_pumpEvents in events.c.o
      _l_event_quitRequested in events.c.o
  "_SDL_QueryTexture", referenced from:
      _l_texture_query in texture.c.o
      _l_texture_tostring in texture.c.o
  "_SDL_Quit", referenced from:
      _l_quit in SDL.c.o
  "_SDL_QuitSubSystem", referenced from:
      _l_quitSubSystem in SDL.c.o
  "_SDL_RWFromFile", referenced from:
      _loadWAV in audio.c.o
      _l_surface_loadBMP in libcommon.a(surface.c.o)
      _l_surface_saveBMP in libcommon.a(surface.c.o)
      _l_rw_fromFile in libcommon.a(rwops.c.o)
  "_SDL_RaiseWindow", referenced from:
      _l_window_raise in window.c.o
  "_SDL_ReadBE16", referenced from:
      _rw_read16 in libcommon.a(rwops.c.o)
  "_SDL_ReadBE32", referenced from:
      _rw_read32 in libcommon.a(rwops.c.o)
  "_SDL_ReadLE16", referenced from:
      _rw_read16 in libcommon.a(rwops.c.o)
  "_SDL_ReadLE32", referenced from:
      _rw_read32 in libcommon.a(rwops.c.o)
  "_SDL_RegisterEvents", referenced from:
      _l_event_registerEvents in events.c.o
  "_SDL_RemoveTimer", referenced from:
      _l_timer_gc in timer.c.o
      _l_timer_remove in timer.c.o
  "_SDL_RenderClear", referenced from:
      _l_renderer_clear in renderer.c.o
  "_SDL_RenderCopy", referenced from:
      _l_renderer_copy in renderer.c.o
  "_SDL_RenderCopyEx", referenced from:
      _l_renderer_copyEx in renderer.c.o
  "_SDL_RenderDrawLine", referenced from:
      _l_renderer_drawLine in renderer.c.o
  "_SDL_RenderDrawLines", referenced from:
      _l_renderer_drawLines in renderer.c.o
  "_SDL_RenderDrawPoint", referenced from:
      _l_renderer_drawPoint in renderer.c.o
  "_SDL_RenderDrawPoints", referenced from:
      _l_renderer_drawPoints in renderer.c.o
  "_SDL_RenderDrawRect", referenced from:
      _rendererDrawOrFillRect in renderer.c.o
  "_SDL_RenderDrawRects", referenced from:
      _rendererDrawOrFillRects in renderer.c.o
  "_SDL_RenderFillRect", referenced from:
      _rendererDrawOrFillRect in renderer.c.o
  "_SDL_RenderFillRects", referenced from:
      _rendererDrawOrFillRects in renderer.c.o
  "_SDL_RenderGetClipRect", referenced from:
      _l_renderer_getClipRect in renderer.c.o
  "_SDL_RenderGetLogicalSize", referenced from:
      _l_renderer_getLogicalSize in renderer.c.o
  "_SDL_RenderGetViewport", referenced from:
      _l_renderer_getViewport in renderer.c.o
  "_SDL_RenderPresent", referenced from:
      _l_renderer_present in renderer.c.o
  "_SDL_RenderSetClipRect", referenced from:
      _l_renderer_setClipRect in renderer.c.o
  "_SDL_RenderSetLogicalSize", referenced from:
      _l_renderer_setLogicalSize in renderer.c.o
  "_SDL_RenderSetViewport", referenced from:
      _l_renderer_setViewport in renderer.c.o
  "_SDL_RestoreWindow", referenced from:
      _l_window_restore in window.c.o
  "_SDL_SaveBMP_RW", referenced from:
      _l_surface_saveBMP in libcommon.a(surface.c.o)
      _l_surface_saveBMP_RW in libcommon.a(surface.c.o)
  "_SDL_SetClipRect", referenced from:
      _l_surface_setClipRect in libcommon.a(surface.c.o)
  "_SDL_SetClipboardText", referenced from:
      _l_video_setClipboardText in clipboard.c.o
  "_SDL_SetColorKey", referenced from:
      _l_surface_setColorKey in libcommon.a(surface.c.o)
  "_SDL_SetCursor", referenced from:
      _l_setCursor in mouse.c.o
  "_SDL_SetError", referenced from:
      _l_setError in SDL.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
  "_SDL_SetEventFilter", referenced from:
      _l_filter_gc in events.c.o
      _eventAddFilter in events.c.o
  "_SDL_SetHint", referenced from:
      _l_setHint in SDL.c.o
  "_SDL_SetModState", referenced from:
      _l_setModState in keyboard.c.o
  "_SDL_SetRelativeMouseMode", referenced from:
      _l_setRelativeMouseMode in mouse.c.o
  "_SDL_SetRenderDrawBlendMode", referenced from:
      _l_renderer_setDrawBlendMode in renderer.c.o
  "_SDL_SetRenderDrawColor", referenced from:
      _l_renderer_setDrawColor in renderer.c.o
  "_SDL_SetRenderTarget", referenced from:
      _l_renderer_setTarget in renderer.c.o
  "_SDL_SetSurfaceAlphaMod", referenced from:
      _l_surface_setAlphaMod in libcommon.a(surface.c.o)
  "_SDL_SetSurfaceBlendMode", referenced from:
      _l_surface_setBlendMode in libcommon.a(surface.c.o)
  "_SDL_SetSurfaceColorMod", referenced from:
      _l_surface_setColorMod in libcommon.a(surface.c.o)
  "_SDL_SetSurfacePalette", referenced from:
      _l_surface_setPalette in libcommon.a(surface.c.o)
  "_SDL_SetSurfaceRLE", referenced from:
      _l_surface_setRLE in libcommon.a(surface.c.o)
  "_SDL_SetTextInputRect", referenced from:
      _l_setTextInputRect in keyboard.c.o
  "_SDL_SetTextureAlphaMod", referenced from:
      _l_texture_setAlphaMod in texture.c.o
  "_SDL_SetTextureBlendMode", referenced from:
      _l_texture_setBlendMode in texture.c.o
  "_SDL_SetTextureColorMod", referenced from:
      _l_texture_setColorMod in texture.c.o
  "_SDL_SetWindowBrightness", referenced from:
      _l_window_setBrightness in window.c.o
  "_SDL_SetWindowDisplayMode", referenced from:
      _l_window_setDisplayMode in window.c.o
  "_SDL_SetWindowFullscreen", referenced from:
      _l_window_setFullscreen in window.c.o
  "_SDL_SetWindowGammaRamp", referenced from:
      _l_window_setGammaRamp in window.c.o
  "_SDL_SetWindowGrab", referenced from:
      _l_window_setGrab in window.c.o
  "_SDL_SetWindowIcon", referenced from:
      _l_window_setIcon in window.c.o
  "_SDL_SetWindowMaximumSize", referenced from:
      _l_window_setMaximumSize in window.c.o
  "_SDL_SetWindowMinimumSize", referenced from:
      _l_window_setMinimumSize in window.c.o
  "_SDL_SetWindowPosition", referenced from:
      _l_window_setPosition in window.c.o
  "_SDL_SetWindowSize", referenced from:
      _l_window_setSize in window.c.o
  "_SDL_SetWindowTitle", referenced from:
      _l_window_setTitle in window.c.o
  "_SDL_ShowCursor", referenced from:
      _l_showCursor in mouse.c.o
  "_SDL_ShowWindow", referenced from:
      _l_window_show in window.c.o
  "_SDL_StartTextInput", referenced from:
      _l_startTextInput in keyboard.c.o
  "_SDL_StopTextInput", referenced from:
      _l_stopTextInput in keyboard.c.o
  "_SDL_UnionRect", referenced from:
      _l_unionRect in rectangle.c.o
  "_SDL_UnlockAudio", referenced from:
      _l_audiodev_unlock in audio.c.o
  "_SDL_UnlockAudioDevice", referenced from:
      _l_audiodev_unlock in audio.c.o
  "_SDL_UnlockMutex", referenced from:
      _l_channel_get in channel.c.o
      _channelClear in channel.c.o
      _channelWait in channel.c.o
      _channelPush in channel.c.o
      _channelPop in channel.c.o
      _channelLast in channel.c.o
      _channelFirst in channel.c.o
      ...
  "_SDL_UnlockSurface", referenced from:
      _l_surface_unlock in libcommon.a(surface.c.o)
  "_SDL_UnlockTexture", referenced from:
      _l_texture_unlock in texture.c.o
  "_SDL_UpdateWindowSurface", referenced from:
      _l_window_updateSurface in window.c.o
  "_SDL_UpdateWindowSurfaceRects", referenced from:
      _l_window_updateSurfaceRects in window.c.o
  "_SDL_UpperBlit", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
  "_SDL_UpperBlitScaled", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
  "_SDL_VideoInit", referenced from:
      _l_video_init in display.c.o
  "_SDL_VideoQuit", referenced from:
      _l_video_quit in display.c.o
  "_SDL_WaitEvent", referenced from:
      _l_event_waitEvent in events.c.o
  "_SDL_WaitEventTimeout", referenced from:
      _l_event_waitEvent in events.c.o
  "_SDL_WaitThread", referenced from:
      _l_thread_wait in thread.c.o
  "_SDL_WarpMouseInWindow", referenced from:
      _l_window_warpMouse in window.c.o
  "_SDL_WasInit", referenced from:
      _l_wasInit in SDL.c.o
  "_SDL_WriteBE16", referenced from:
      _rw_write16 in libcommon.a(rwops.c.o)
  "_SDL_WriteBE32", referenced from:
      _rw_write32 in libcommon.a(rwops.c.o)
  "_SDL_WriteLE16", referenced from:
      _rw_write16 in libcommon.a(rwops.c.o)
  "_SDL_WriteLE32", referenced from:
      _rw_write32 in libcommon.a(rwops.c.o)
  "_SDL_free", referenced from:
      _l_video_getClipboardText in clipboard.c.o
      _pushDropFile in events.c.o
      _l_getBasePath in filesystem.c.o
      _l_getPrefPath in filesystem.c.o
  "_SDL_memset", referenced from:
      _getDirection in haptic.c.o
  "_luaL_checkinteger", referenced from:
      _l_getAudioDeviceName in audio.c.o
      _l_getAudioDriver in audio.c.o
      _mixAudio in audio.c.o
      _l_video_getClosestDisplayMode in display.c.o
      _l_video_getCurrentDisplayMode in display.c.o
      _l_video_getDesktopDisplayMode in display.c.o
      _l_video_getDisplayBounds in display.c.o
      ...
  "_luaL_checklstring", referenced from:
      _l_audioInit in audio.c.o
      _openAudio in audio.c.o
      _mixAudio in audio.c.o
      _loadWAV in audio.c.o
      _l_channel_get in channel.c.o
      _l_video_setClipboardText in clipboard.c.o
      _l_video_init in display.c.o
      ...
  "_luaL_checknumber", referenced from:
      _l_haptic_rumblePlay in haptic.c.o
      _l_window_setBrightness in window.c.o
  "_luaL_checktype", referenced from:
      _audioGetCVT in audio.c.o
      _openAudio in audio.c.o
      _l_event_filterEvents in events.c.o
      _eventAddFilter in events.c.o
      _getEffect in haptic.c.o
      _l_logSetOutputFunction in logging.c.o
      _l_enclosePoints in rectangle.c.o
      ...
  "_luaL_checkudata", referenced from:
      _commonGetUserdata in libcommon.a(common.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
  "_luaL_error", referenced from:
      _audioGetCVT in audio.c.o
      _getEffect in haptic.c.o
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _keysIndex in keyboard.c.o
      ...
  "_luaL_loadfilex", referenced from:
      _openAudio in audio.c.o
      _loadfile in thread.c.o
  "_luaL_newmetatable", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
  "_luaL_newstate", referenced from:
      _openAudio in audio.c.o
      _l_thread_create in thread.c.o
      _l_addTimer in timer.c.o
  "_luaL_openlibs", referenced from:
      _openAudio in audio.c.o
      _l_thread_create in thread.c.o
      _l_addTimer in timer.c.o
  "_luaL_optinteger", referenced from:
      _l_glSetSwapInterval in gl.c.o
  "_luaL_ref", referenced from:
      _openAudio in audio.c.o
      _l_event_filterEvents in events.c.o
      _eventAddFilter in events.c.o
      _l_logSetOutputFunction in logging.c.o
      _l_addTimer in timer.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
  "_luaL_setfuncs", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
      _commonBindLibrary in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
  "_luaL_setmetatable", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_luaL_unref", referenced from:
      _openAudio in audio.c.o
      _l_event_filterEvents in events.c.o
      _l_filter_gc in events.c.o
      _l_logSetOutputFunction in logging.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_rw_gc in libcommon.a(rwops.c.o)
  "_lua_callk", referenced from:
      _eventFilter in events.c.o
      _loggingCustomOutput in logging.c.o
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      ...
  "_lua_close", referenced from:
      _l_audiodev_gc in audio.c.o
      _openAudio in audio.c.o
      _l_thread_create in thread.c.o
      _destroy in thread.c.o
      _l_addTimer in timer.c.o
      _l_timer_gc in timer.c.o
  "_lua_createtable", referenced from:
      _audioPushCVT in audio.c.o
      _loadWAV in audio.c.o
      _l_event_peepEvents in events.c.o
      _eventPush in events.c.o
      _pushKey in events.c.o
      _l_getKeyboardState in keyboard.c.o
      _pushRendererInfo in renderer.c.o
      ...
  "_lua_dump", referenced from:
      _loadfunction in thread.c.o
  "_lua_getfield", referenced from:
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _getDirection in haptic.c.o
      _l_renderer_copyEx in renderer.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
      ...
  "_lua_gettop", referenced from:
      _mixAudio in audio.c.o
      _l_video_init in display.c.o
      _l_event_peepEvents in events.c.o
      _l_event_waitEvent in events.c.o
      _l_enclosePoints in rectangle.c.o
      _l_renderer_copy in renderer.c.o
      _l_quitSubSystem in SDL.c.o
      ...
  "_lua_load", referenced from:
      _loadfunction in thread.c.o
  "_lua_newuserdata", referenced from:
      _l_getKeyboardState in keyboard.c.o
      _commonPushUserdata in libcommon.a(common.c.o)
  "_lua_next", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _variantGet in libcommon.a(variant.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pcallk", referenced from:
      _openAudio in audio.c.o
      _audioCallback in audio.c.o
      _callback in thread.c.o
      _timerCallback in timer.c.o
  "_lua_pushboolean", referenced from:
      _l_enclosePoints in rectangle.c.o
      _l_intersectRect in rectangle.c.o
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetBool in libcommon.a(table.c.o)
      _variantPush in libcommon.a(variant.c.o)
  "_lua_pushcclosure", referenced from:
      _l_event_pollEvent in events.c.o
      _l_getKeyboardState in keyboard.c.o
  "_lua_pushfstring", referenced from:
      _l_audiodev_tostring in audio.c.o
      _l_filter_tostring in events.c.o
      _l_gamectl_tostring in gamecontroller.c.o
      _l_joystick_tostring in joystick.c.o
      _l_renderer_tostring in renderer.c.o
      _l_texture_tostring in texture.c.o
      _l_thread_tostring in thread.c.o
      ...
  "_lua_pushinteger", referenced from:
      _audioCallback in audio.c.o
      _eventPush in events.c.o
      _loggingCustomOutput in logging.c.o
      _l_getMouseState in mouse.c.o
      _l_getRelativeMouseState in mouse.c.o
      _l_getPowerInfo in power.c.o
      _pushRendererInfo in renderer.c.o
      ...
  "_lua_pushlstring", referenced from:
      _audioPushCVT in audio.c.o
      _mixAudio in audio.c.o
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
      _variantPush in libcommon.a(variant.c.o)
  "_lua_pushnil", referenced from:
      _l_channel_first in channel.c.o
      _l_channel_last in channel.c.o
      _l_channel_wait in channel.c.o
      _l_video_getCurrentVideoDriver in display.c.o
      _l_logGetOutputFunction in logging.c.o
      _l_getHint in SDL.c.o
      _commonGetEnum in libcommon.a(common.c.o)
      ...
  "_lua_pushnumber", referenced from:
      _commonPush in libcommon.a(common.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
      _variantPush in libcommon.a(variant.c.o)
  "_lua_pushstring", referenced from:
      _l_video_getClipboardText in clipboard.c.o
      _l_video_getCurrentVideoDriver in display.c.o
      _l_getBasePath in filesystem.c.o
      _l_getPrefPath in filesystem.c.o
      _loggingCustomOutput in logging.c.o
      _pushRendererInfo in renderer.c.o
      _l_getHint in SDL.c.o
      ...
  "_lua_pushvalue", referenced from:
      _l_event_filterEvents in events.c.o
      _eventAddFilter in events.c.o
      _l_logSetOutputFunction in logging.c.o
      _loadfunction in thread.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
  "_lua_rawgeti", referenced from:
      _audioCallback in audio.c.o
      _eventFilter in events.c.o
      _getCondition in haptic.c.o
      _getDirection in haptic.c.o
      _l_logGetOutputFunction in logging.c.o
      _loggingCustomOutput in logging.c.o
      _timerCallback in timer.c.o
      ...
  "_lua_rawseti", referenced from:
      _l_event_peepEvents in events.c.o
      _pushRendererInfo in renderer.c.o
      _l_window_getGammaRamp in window.c.o
      _commonPushEnum in libcommon.a(common.c.o)
  "_lua_setfield", referenced from:
      _audioPushCVT in audio.c.o
      _eventPush in events.c.o
      _pushKey in events.c.o
      _l_getKeyboardState in keyboard.c.o
      _pushRendererInfo in renderer.c.o
      _commonBindEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      ...
  "_lua_setmetatable", referenced from:
      _l_getKeyboardState in keyboard.c.o
  "_lua_settable", referenced from:
      _variantPush in libcommon.a(variant.c.o)
  "_lua_settop", referenced from:
      _audioCallback in audio.c.o
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _getDirection in haptic.c.o
      _l_renderer_copyEx in renderer.c.o
      ...
  "_lua_toboolean", referenced from:
      _l_getAudioDeviceName in audio.c.o
      _l_getNumAudioDevices in audio.c.o
      _l_audiodev_pause in audio.c.o
      _eventFilter in events.c.o
      _l_setRelativeMouseMode in mouse.c.o
      _l_showCursor in mouse.c.o
      _l_surface_setColorKey in libcommon.a(surface.c.o)
      ...
  "_lua_tointegerx", referenced from:
      _callback in thread.c.o
      _l_window_setGammaRamp in window.c.o
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      ...
  "_lua_tolstring", referenced from:
      _openAudio in audio.c.o
      _audioCallback in audio.c.o
      _threadDump in thread.c.o
      _loadfile in thread.c.o
      _loadfunction in thread.c.o
      _callback in thread.c.o
      _timerCallback in timer.c.o
      ...
  "_lua_tonumberx", referenced from:
      _getCondition in haptic.c.o
      _getDirection in haptic.c.o
      _timerCallback in timer.c.o
      _commonGetEnum in libcommon.a(common.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
      _variantGet in libcommon.a(variant.c.o)
  "_lua_type", referenced from:
      _openAudio in audio.c.o
      _audioCallback in audio.c.o
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _getDirection in haptic.c.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [SDL.so] Error 1
make[1]: *** [CMakeFiles/SDL.dir/all] Error 2
make: *** [all] Error 2
lewislepton commented 9 years ago

also to add. i did try building from source on 32 and 64bit with SDL2, but those both come up with the same outcome

Tangent128 commented 9 years ago

Hmm... I'm not very well-versed in OSX or llvm, but will see what I can figure out.

First, can you make clean then run make VERBOSE=1 so we can get some additional output to work with?

lewislepton commented 9 years ago

cheers for helping man,

here is what has spat out. this is from the make clean part onwards

lepton:_build_ lepton$ make clean
lepton:_build_ lepton$ make VERBOSE=1
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -H/Users/lepton/Downloads/luasdl2-master -B/Users/lepton/Downloads/luasdl2-master/_build_ --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_start /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/common /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/common /Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/DependInfo.cmake --color=
Dependee "/Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/DependInfo.cmake" is newer than depender "/Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/depend.internal".
Dependee "/Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/depend.internal".
Scanning dependencies of target common
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/build
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 24
[  2%] Building C object common/CMakeFiles/common.dir/array.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/array.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/array.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 25
[  5%] Building C object common/CMakeFiles/common.dir/common.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/common.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/common.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 26
[  8%] Building C object common/CMakeFiles/common.dir/rwops.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/rwops.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/rwops.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 27
[ 11%] Building C object common/CMakeFiles/common.dir/surface.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/surface.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/surface.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 28
[ 14%] Building C object common/CMakeFiles/common.dir/table.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/table.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/table.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 29
[ 17%] Building C object common/CMakeFiles/common.dir/variant.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/variant.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/variant.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 30
[ 20%] Building C object common/CMakeFiles/common.dir/video.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/video.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/video.c
Linking C static library libcommon.a
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -P CMakeFiles/common.dir/cmake_clean_target.cmake
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/common.dir/link.txt --verbose=1
/usr/bin/ar cr libcommon.a  CMakeFiles/common.dir/array.c.o CMakeFiles/common.dir/common.c.o CMakeFiles/common.dir/rwops.c.o CMakeFiles/common.dir/surface.c.o CMakeFiles/common.dir/table.c.o CMakeFiles/common.dir/variant.c.o CMakeFiles/common.dir/video.c.o
/usr/bin/ranlib libcommon.a
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles  24 25 26 27 28 29 30
[ 20%] Built target common
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/SDL.dir/build.make CMakeFiles/SDL.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/SDL.dir/DependInfo.cmake --color=
Dependee "/Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/SDL.dir/DependInfo.cmake" is newer than depender "/Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/SDL.dir/depend.internal".
Dependee "/Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/SDL.dir/depend.internal".
Scanning dependencies of target SDL
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/SDL.dir/build.make CMakeFiles/SDL.dir/build
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 1
[ 23%] Building C object CMakeFiles/SDL.dir/src/audio.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/audio.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/audio.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 2
[ 26%] Building C object CMakeFiles/SDL.dir/src/channel.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/channel.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/channel.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 3
[ 29%] Building C object CMakeFiles/SDL.dir/src/clipboard.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/clipboard.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/clipboard.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 4
[ 32%] Building C object CMakeFiles/SDL.dir/src/cpu.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/cpu.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/cpu.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 5
[ 35%] Building C object CMakeFiles/SDL.dir/src/display.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/display.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/display.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 6
[ 38%] Building C object CMakeFiles/SDL.dir/src/events.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/events.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/events.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 7
[ 41%] Building C object CMakeFiles/SDL.dir/src/filesystem.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/filesystem.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/filesystem.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 8
[ 44%] Building C object CMakeFiles/SDL.dir/src/gamecontroller.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/gamecontroller.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/gamecontroller.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 9
[ 47%] Building C object CMakeFiles/SDL.dir/src/gl.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/gl.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/gl.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 10
[ 50%] Building C object CMakeFiles/SDL.dir/src/haptic.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/haptic.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/haptic.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 11
[ 52%] Building C object CMakeFiles/SDL.dir/src/joystick.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/joystick.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/joystick.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 12
[ 55%] Building C object CMakeFiles/SDL.dir/src/keyboard.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/keyboard.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/keyboard.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 13
[ 58%] Building C object CMakeFiles/SDL.dir/src/logging.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/logging.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/logging.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 14
[ 61%] Building C object CMakeFiles/SDL.dir/src/mouse.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/mouse.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/mouse.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 15
[ 64%] Building C object CMakeFiles/SDL.dir/src/platform.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/platform.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/platform.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 16
[ 67%] Building C object CMakeFiles/SDL.dir/src/power.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/power.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/power.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 17
[ 70%] Building C object CMakeFiles/SDL.dir/src/rectangle.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/rectangle.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/rectangle.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 18
[ 73%] Building C object CMakeFiles/SDL.dir/src/renderer.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/renderer.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/renderer.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 19
[ 76%] Building C object CMakeFiles/SDL.dir/src/SDL.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/SDL.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/SDL.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 20
[ 79%] Building C object CMakeFiles/SDL.dir/src/texture.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/texture.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/texture.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 21
[ 82%] Building C object CMakeFiles/SDL.dir/src/thread.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/thread.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/thread.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 22
[ 85%] Building C object CMakeFiles/SDL.dir/src/timer.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/timer.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/timer.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 23
[ 88%] Building C object CMakeFiles/SDL.dir/src/window.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/window.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/window.c
Linking C shared module SDL.so
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/SDL.dir/link.txt --verbose=1
/usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names   -o SDL.so CMakeFiles/SDL.dir/src/audio.c.o CMakeFiles/SDL.dir/src/channel.c.o CMakeFiles/SDL.dir/src/clipboard.c.o CMakeFiles/SDL.dir/src/cpu.c.o CMakeFiles/SDL.dir/src/display.c.o CMakeFiles/SDL.dir/src/events.c.o CMakeFiles/SDL.dir/src/filesystem.c.o CMakeFiles/SDL.dir/src/gamecontroller.c.o CMakeFiles/SDL.dir/src/gl.c.o CMakeFiles/SDL.dir/src/haptic.c.o CMakeFiles/SDL.dir/src/joystick.c.o CMakeFiles/SDL.dir/src/keyboard.c.o CMakeFiles/SDL.dir/src/logging.c.o CMakeFiles/SDL.dir/src/mouse.c.o CMakeFiles/SDL.dir/src/platform.c.o CMakeFiles/SDL.dir/src/power.c.o CMakeFiles/SDL.dir/src/rectangle.c.o CMakeFiles/SDL.dir/src/renderer.c.o CMakeFiles/SDL.dir/src/SDL.c.o CMakeFiles/SDL.dir/src/texture.c.o CMakeFiles/SDL.dir/src/thread.c.o CMakeFiles/SDL.dir/src/timer.c.o CMakeFiles/SDL.dir/src/window.c.o common/libcommon.a -framework Cocoa 
Undefined symbols for architecture x86_64:
  "_SDL_AddEventWatch", referenced from:
      _eventAddFilter in events.c.o
  "_SDL_AddTimer", referenced from:
      _l_addTimer in timer.c.o
  "_SDL_AllocRW", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_SDL_AtomicAdd", referenced from:
      _l_channel_get in channel.c.o
      _l_channel_gc in channel.c.o
      _l_thread_create in thread.c.o
      _destroy in thread.c.o
      _callback in thread.c.o
  "_SDL_AtomicGet", referenced from:
      _l_channel_gc in channel.c.o
      _destroy in thread.c.o
  "_SDL_AudioInit", referenced from:
      _l_audioInit in audio.c.o
  "_SDL_AudioQuit", referenced from:
      _l_audioQuit in audio.c.o
  "_SDL_BuildAudioCVT", referenced from:
      _audioGetCVT in audio.c.o
  "_SDL_ClearError", referenced from:
      _l_clearError in SDL.c.o
  "_SDL_ClearHints", referenced from:
      _l_clearHints in SDL.c.o
  "_SDL_CloseAudio", referenced from:
      _l_audiodev_gc in audio.c.o
  "_SDL_CloseAudioDevice", referenced from:
      _l_audiodev_gc in audio.c.o
  "_SDL_CondBroadcast", referenced from:
      _channelClear in channel.c.o
      _l_channel_wait in channel.c.o
      _channelWait in channel.c.o
      _channelPush in channel.c.o
      _channelPop in channel.c.o
  "_SDL_CondWait", referenced from:
      _channelWait in channel.c.o
      _channelSupply in channel.c.o
  "_SDL_ConvertAudio", referenced from:
      _l_convertAudio in audio.c.o
  "_SDL_ConvertSurfaceFormat", referenced from:
      _l_surface_convertFormat in libcommon.a(surface.c.o)
  "_SDL_CreateColorCursor", referenced from:
      _l_createColorCursor in mouse.c.o
  "_SDL_CreateCond", referenced from:
      _l_channel_get in channel.c.o
  "_SDL_CreateCursor", referenced from:
      _l_createCursor in mouse.c.o
  "_SDL_CreateMutex", referenced from:
      _l_channel_get in channel.c.o
      _luaopen_SDL in SDL.c.o
  "_SDL_CreateRGBSurface", referenced from:
      _l_surface_createRGB in libcommon.a(surface.c.o)
  "_SDL_CreateRenderer", referenced from:
      _l_createRenderer in renderer.c.o
  "_SDL_CreateSoftwareRenderer", referenced from:
      _l_createSoftwareRenderer in renderer.c.o
  "_SDL_CreateTexture", referenced from:
      _l_renderer_createTexture in renderer.c.o
  "_SDL_CreateTextureFromSurface", referenced from:
      _l_renderer_createTextureFromSuface in renderer.c.o
  "_SDL_CreateThread", referenced from:
      _l_thread_create in thread.c.o
  "_SDL_CreateWindow", referenced from:
      _l_createWindow in window.c.o
  "_SDL_DelEventWatch", referenced from:
      _l_filter_gc in events.c.o
  "_SDL_Delay", referenced from:
      _l_delay in timer.c.o
  "_SDL_DestroyCond", referenced from:
      _l_channel_get in channel.c.o
  "_SDL_DestroyMutex", referenced from:
      _l_channel_get in channel.c.o
  "_SDL_DestroyRenderer", referenced from:
      _l_renderer_gc in renderer.c.o
  "_SDL_DestroyTexture", referenced from:
      _l_texture_gc in texture.c.o
  "_SDL_DestroyWindow", referenced from:
      _l_window_gc in window.c.o
  "_SDL_DetachThread", referenced from:
      _l_thread_gc in thread.c.o
  "_SDL_DisableScreenSaver", referenced from:
      _l_video_disableScreenSaver in display.c.o
  "_SDL_EnableScreenSaver", referenced from:
      _l_video_enableScreenSaver in display.c.o
  "_SDL_EnclosePoints", referenced from:
      _l_enclosePoints in rectangle.c.o
  "_SDL_EventState", referenced from:
      _l_event_eventState in events.c.o
  "_SDL_FillRect", referenced from:
      _l_surface_fillRect in libcommon.a(surface.c.o)
  "_SDL_FillRects", referenced from:
      _l_surface_fillRects in libcommon.a(surface.c.o)
  "_SDL_FilterEvents", referenced from:
      _l_event_filterEvents in events.c.o
  "_SDL_FlushEvent", referenced from:
      _l_event_flushEvent in events.c.o
  "_SDL_FlushEvents", referenced from:
      _l_event_flushEvents in events.c.o
  "_SDL_FreeCursor", referenced from:
      _l_cursor_gc in mouse.c.o
  "_SDL_FreeRW", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_rw_gc in libcommon.a(rwops.c.o)
  "_SDL_FreeSurface", referenced from:
      _l_surface_gc in libcommon.a(surface.c.o)
  "_SDL_GL_CreateContext", referenced from:
      _l_glCreateContext in gl.c.o
  "_SDL_GL_DeleteContext", referenced from:
      _l_glDeleteContext in gl.c.o
  "_SDL_GL_ExtensionSupported", referenced from:
      _l_glExtensionSupported in gl.c.o
  "_SDL_GL_GetAttribute", referenced from:
      _l_glGetAttribute in gl.c.o
  "_SDL_GL_GetCurrentContext", referenced from:
      _l_glGetCurrentContext in gl.c.o
  "_SDL_GL_GetCurrentWindow", referenced from:
      _l_glGetCurrentWindow in gl.c.o
  "_SDL_GL_GetDrawableSize", referenced from:
      _l_glGetDrawableSize in gl.c.o
  "_SDL_GL_GetSwapInterval", referenced from:
      _l_glGetSwapInterval in gl.c.o
  "_SDL_GL_MakeCurrent", referenced from:
      _l_glMakeCurrent in gl.c.o
  "_SDL_GL_SetAttribute", referenced from:
      _l_glSetAttribute in gl.c.o
  "_SDL_GL_SetSwapInterval", referenced from:
      _l_glSetSwapInterval in gl.c.o
  "_SDL_GL_SwapWindow", referenced from:
      _l_glSwapWindow in gl.c.o
  "_SDL_GameControllerAddMapping", referenced from:
      _l_gameControllerAddMapping in gamecontroller.c.o
  "_SDL_GameControllerClose", referenced from:
      _l_gamectl_gc in gamecontroller.c.o
  "_SDL_GameControllerGetAttached", referenced from:
      _l_gamectl_tostring in gamecontroller.c.o
      _l_gamectl_getAttached in gamecontroller.c.o
  "_SDL_GameControllerName", referenced from:
      _l_gamectl_tostring in gamecontroller.c.o
      _l_gamectl_name in gamecontroller.c.o
  "_SDL_GameControllerNameForIndex", referenced from:
      _l_gameControllerNameForIndex in gamecontroller.c.o
  "_SDL_GameControllerOpen", referenced from:
      _l_gameControllerOpen in gamecontroller.c.o
  "_SDL_GetAudioDeviceName", referenced from:
      _l_getAudioDeviceName in audio.c.o
  "_SDL_GetAudioDeviceStatus", referenced from:
      _l_audiodev_tostring in audio.c.o
      _l_audiodev_status in audio.c.o
  "_SDL_GetAudioDriver", referenced from:
      _l_getAudioDriver in audio.c.o
  "_SDL_GetAudioStatus", referenced from:
      _l_getAudioStatus in audio.c.o
      _l_audiodev_status in audio.c.o
  "_SDL_GetBasePath", referenced from:
      _l_getBasePath in filesystem.c.o
  "_SDL_GetCPUCacheLineSize", referenced from:
      _l_cpu_getCacheLineSize in cpu.c.o
  "_SDL_GetCPUCount", referenced from:
      _l_cpu_getCount in cpu.c.o
  "_SDL_GetClipRect", referenced from:
      _l_surface_getClipRect in libcommon.a(surface.c.o)
      _surfaceBlit in libcommon.a(surface.c.o)
  "_SDL_GetClipboardText", referenced from:
      _l_video_getClipboardText in clipboard.c.o
  "_SDL_GetClosestDisplayMode", referenced from:
      _l_video_getClosestDisplayMode in display.c.o
  "_SDL_GetColorKey", referenced from:
      _l_surface_getColorKey in libcommon.a(surface.c.o)
  "_SDL_GetCurrentAudioDriver", referenced from:
      _l_getCurrentAudioDriver in audio.c.o
  "_SDL_GetCurrentDisplayMode", referenced from:
      _l_video_getCurrentDisplayMode in display.c.o
  "_SDL_GetCurrentVideoDriver", referenced from:
      _l_video_getCurrentVideoDriver in display.c.o
  "_SDL_GetCursor", referenced from:
      _l_getCursor in mouse.c.o
  "_SDL_GetDesktopDisplayMode", referenced from:
      _l_video_getDesktopDisplayMode in display.c.o
  "_SDL_GetDisplayBounds", referenced from:
      _l_video_getDisplayBounds in display.c.o
  "_SDL_GetDisplayMode", referenced from:
      _l_video_getDisplayMode in display.c.o
  "_SDL_GetError", referenced from:
      _luaopen_SDL in SDL.c.o
      _l_getError in SDL.c.o
      _l_texture_tostring in texture.c.o
      _l_rw_read in libcommon.a(rwops.c.o)
      _l_rw_write in libcommon.a(rwops.c.o)
      _commonPushSDLError in libcommon.a(common.c.o)
  "_SDL_GetHint", referenced from:
      _l_getHint in SDL.c.o
  "_SDL_GetKeyFromName", referenced from:
      _l_getKeyFromName in keyboard.c.o
  "_SDL_GetKeyFromScancode", referenced from:
      _l_getKeyFromScancode in keyboard.c.o
  "_SDL_GetKeyName", referenced from:
      _l_getKeyName in keyboard.c.o
  "_SDL_GetKeyboardFocus", referenced from:
      _l_getKeyboardFocus in keyboard.c.o
  "_SDL_GetKeyboardState", referenced from:
      _keysIndex in keyboard.c.o
  "_SDL_GetModState", referenced from:
      _l_getModState in keyboard.c.o
  "_SDL_GetMouseFocus", referenced from:
      _l_getMouseFocus in mouse.c.o
  "_SDL_GetMouseState", referenced from:
      _l_getMouseState in mouse.c.o
  "_SDL_GetNumAudioDevices", referenced from:
      _l_getNumAudioDevices in audio.c.o
  "_SDL_GetNumAudioDrivers", referenced from:
      _l_getNumAudioDrivers in audio.c.o
  "_SDL_GetNumDisplayModes", referenced from:
      _l_video_getNumDisplayModes in display.c.o
  "_SDL_GetNumRenderDrivers", referenced from:
      _l_getNumRenderDrivers in renderer.c.o
  "_SDL_GetNumVideoDisplays", referenced from:
      _l_video_getNumVideoDisplays in display.c.o
  "_SDL_GetNumVideoDrivers", referenced from:
      _l_video_getNumVideoDrivers in display.c.o
  "_SDL_GetPerformanceCounter", referenced from:
      _l_getPerformanceCounter in timer.c.o
  "_SDL_GetPerformanceFrequency", referenced from:
      _l_getPerformanceFrequency in timer.c.o
  "_SDL_GetPlatform", referenced from:
      _l_getPlatform in platform.c.o
  "_SDL_GetPowerInfo", referenced from:
      _l_getPowerInfo in power.c.o
  "_SDL_GetPrefPath", referenced from:
      _l_getPrefPath in filesystem.c.o
  "_SDL_GetRelativeMouseMode", referenced from:
      _l_getRelativeMouseMode in mouse.c.o
  "_SDL_GetRelativeMouseState", referenced from:
      _l_getRelativeMouseState in mouse.c.o
  "_SDL_GetRenderDrawBlendMode", referenced from:
      _l_renderer_getDrawBlendMode in renderer.c.o
  "_SDL_GetRenderDrawColor", referenced from:
      _l_renderer_getDrawColor in renderer.c.o
  "_SDL_GetRenderDriverInfo", referenced from:
      _l_getRenderDriverInfo in renderer.c.o
  "_SDL_GetRendererInfo", referenced from:
      _l_renderer_tostring in renderer.c.o
      _l_renderer_getInfo in renderer.c.o
  "_SDL_GetScancodeFromKey", referenced from:
      _l_getScancodeFromKey in keyboard.c.o
  "_SDL_GetScancodeFromName", referenced from:
      _l_getScancodeFromName in keyboard.c.o
  "_SDL_GetScancodeName", referenced from:
      _l_getScancodeName in keyboard.c.o
  "_SDL_GetSurfaceAlphaMod", referenced from:
      _l_surface_getAlphaMod in libcommon.a(surface.c.o)
  "_SDL_GetSurfaceBlendMode", referenced from:
      _l_surface_getBlendMode in libcommon.a(surface.c.o)
  "_SDL_GetSurfaceColorMod", referenced from:
      _l_surface_getColorMod in libcommon.a(surface.c.o)
  "_SDL_GetTextureAlphaMod", referenced from:
      _l_texture_getAlphaMod in texture.c.o
  "_SDL_GetTextureBlendMode", referenced from:
      _l_texture_getBlendMode in texture.c.o
  "_SDL_GetTextureColorMod", referenced from:
      _l_texture_getColorMod in texture.c.o
  "_SDL_GetThreadID", referenced from:
      _l_thread_tostring in thread.c.o
      _l_thread_getId in thread.c.o
  "_SDL_GetThreadName", referenced from:
      _l_thread_getName in thread.c.o
  "_SDL_GetTicks", referenced from:
      _l_getTicks in timer.c.o
  "_SDL_GetVersion", referenced from:
      _luaopen_SDL in SDL.c.o
  "_SDL_GetVideoDriver", referenced from:
      _l_video_getVideoDriver in display.c.o
  "_SDL_GetWindowBrightness", referenced from:
      _l_window_getBrightness in window.c.o
  "_SDL_GetWindowDisplayIndex", referenced from:
      _l_window_getDisplayIndex in window.c.o
  "_SDL_GetWindowDisplayMode", referenced from:
      _l_window_getDisplayMode in window.c.o
  "_SDL_GetWindowFlags", referenced from:
      _l_window_getFlags in window.c.o
  "_SDL_GetWindowGammaRamp", referenced from:
      _l_window_getGammaRamp in window.c.o
  "_SDL_GetWindowGrab", referenced from:
      _l_window_getGrab in window.c.o
  "_SDL_GetWindowID", referenced from:
      _l_window_getID in window.c.o
  "_SDL_GetWindowMaximumSize", referenced from:
      _l_window_getMaximumSize in window.c.o
  "_SDL_GetWindowMinimumSize", referenced from:
      _l_window_getMinimumSize in window.c.o
  "_SDL_GetWindowPixelFormat", referenced from:
      _l_window_getPixelFormat in window.c.o
  "_SDL_GetWindowPosition", referenced from:
      _l_window_getPosition in window.c.o
  "_SDL_GetWindowSize", referenced from:
      _l_window_tostring in window.c.o
      _l_window_getSize in window.c.o
  "_SDL_GetWindowSurface", referenced from:
      _l_window_getSurface in window.c.o
  "_SDL_GetWindowTitle", referenced from:
      _l_window_tostring in window.c.o
      _l_window_getTitle in window.c.o
  "_SDL_HapticClose", referenced from:
      _l_haptic_gc in haptic.c.o
  "_SDL_HapticDestroyEffect", referenced from:
      _l_haptic_destroyEffect in haptic.c.o
  "_SDL_HapticEffectSupported", referenced from:
      _l_haptic_effectSupported in haptic.c.o
  "_SDL_HapticGetEffectStatus", referenced from:
      _l_haptic_getEffectStatus in haptic.c.o
  "_SDL_HapticIndex", referenced from:
      _l_haptic_index in haptic.c.o
  "_SDL_HapticNewEffect", referenced from:
      _l_haptic_newEffect in haptic.c.o
  "_SDL_HapticNumAxes", referenced from:
      _l_haptic_numAxes in haptic.c.o
  "_SDL_HapticNumEffects", referenced from:
      _l_haptic_numEffects in haptic.c.o
  "_SDL_HapticNumEffectsPlaying", referenced from:
      _l_haptic_numEffectsPlaying in haptic.c.o
  "_SDL_HapticOpen", referenced from:
      _l_hapticOpen in haptic.c.o
  "_SDL_HapticOpenFromJoystick", referenced from:
      _l_hapticOpenFromJoystick in haptic.c.o
  "_SDL_HapticOpenFromMouse", referenced from:
      _l_hapticOpenFromMouse in haptic.c.o
  "_SDL_HapticOpened", referenced from:
      _l_hapticOpened in haptic.c.o
  "_SDL_HapticPause", referenced from:
      _l_haptic_pause in haptic.c.o
  "_SDL_HapticRumbleInit", referenced from:
      _l_haptic_rumbleInit in haptic.c.o
  "_SDL_HapticRumblePlay", referenced from:
      _l_haptic_rumblePlay in haptic.c.o
  "_SDL_HapticRumbleStop", referenced from:
      _l_haptic_rumbleStop in haptic.c.o
  "_SDL_HapticRumbleSupported", referenced from:
      _l_haptic_rumbleSupported in haptic.c.o
  "_SDL_HapticRunEffect", referenced from:
      _l_haptic_runEffect in haptic.c.o
  "_SDL_HapticSetAutocenter", referenced from:
      _l_haptic_setAutocenter in haptic.c.o
  "_SDL_HapticSetGain", referenced from:
      _l_haptic_setGain in haptic.c.o
  "_SDL_HapticStopAll", referenced from:
      _l_haptic_stopAll in haptic.c.o
  "_SDL_HapticStopEffect", referenced from:
      _l_haptic_stopEffect in haptic.c.o
  "_SDL_HapticUnpause", referenced from:
      _l_haptic_unpause in haptic.c.o
  "_SDL_HapticUpdateEffect", referenced from:
      _l_haptic_updateEffect in haptic.c.o
  "_SDL_Has3DNow", referenced from:
      _l_cpu_has3DNow in cpu.c.o
  "_SDL_HasAltiVec", referenced from:
      _l_cpu_hasAltiVec in cpu.c.o
  "_SDL_HasClipboardText", referenced from:
      _l_video_hasClipboardText in clipboard.c.o
  "_SDL_HasEvent", referenced from:
      _l_event_hasEvent in events.c.o
  "_SDL_HasEvents", referenced from:
      _l_event_hasEvents in events.c.o
  "_SDL_HasIntersection", referenced from:
      _l_hasIntersection in rectangle.c.o
  "_SDL_HasMMX", referenced from:
      _l_cpu_hasMMX in cpu.c.o
  "_SDL_HasRDTSC", referenced from:
      _l_cpu_hasRDTSC in cpu.c.o
  "_SDL_HasSSE", referenced from:
      _l_cpu_hasSSE in cpu.c.o
  "_SDL_HasSSE2", referenced from:
      _l_cpu_hasSSE2 in cpu.c.o
  "_SDL_HasSSE41", referenced from:
      _l_cpu_hasSSE41 in cpu.c.o
  "_SDL_HasSSE42", referenced from:
      _l_cpu_hasSSE42 in cpu.c.o
  "_SDL_HideWindow", referenced from:
      _l_window_hide in window.c.o
  "_SDL_Init", referenced from:
      _l_init in SDL.c.o
  "_SDL_InitSubSystem", referenced from:
      _l_initSubSystem in SDL.c.o
  "_SDL_IntersectRect", referenced from:
      _l_intersectRect in rectangle.c.o
  "_SDL_IntersectRectAndLine", referenced from:
      _l_intersectRectAndLine in rectangle.c.o
  "_SDL_IsGameController", referenced from:
      _l_isGameController in gamecontroller.c.o
  "_SDL_IsScreenSaverEnabled", referenced from:
      _l_video_isScreenSaverLoaded in display.c.o
  "_SDL_JoystickClose", referenced from:
      _l_joystick_gc in joystick.c.o
  "_SDL_JoystickEventState", referenced from:
      _l_joystickEventState in joystick.c.o
  "_SDL_JoystickGetAttached", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_getAttached in joystick.c.o
  "_SDL_JoystickGetAxis", referenced from:
      _l_joystick_getAxis in joystick.c.o
  "_SDL_JoystickGetBall", referenced from:
      _l_joystick_getBall in joystick.c.o
  "_SDL_JoystickGetButton", referenced from:
      _l_joystick_getButton in joystick.c.o
  "_SDL_JoystickGetHat", referenced from:
      _l_joystick_getHat in joystick.c.o
  "_SDL_JoystickInstanceID", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_instanceID in joystick.c.o
  "_SDL_JoystickIsHaptic", referenced from:
      _l_joystickIsHaptic in haptic.c.o
  "_SDL_JoystickName", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_name in joystick.c.o
  "_SDL_JoystickNameForIndex", referenced from:
      _l_joystickNameForIndex in joystick.c.o
  "_SDL_JoystickNumAxes", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_numAxes in joystick.c.o
  "_SDL_JoystickNumBalls", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_numBalls in joystick.c.o
  "_SDL_JoystickNumButtons", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_numButtons in joystick.c.o
  "_SDL_JoystickNumHats", referenced from:
      _l_joystick_tostring in joystick.c.o
      _l_joystick_numHats in joystick.c.o
  "_SDL_JoystickOpen", referenced from:
      _l_joystickOpen in joystick.c.o
  "_SDL_JoystickUpdate", referenced from:
      _l_joystickUpdate in joystick.c.o
  "_SDL_LoadBMP_RW", referenced from:
      _l_surface_loadBMP in libcommon.a(surface.c.o)
      _l_surface_loadBMP_RW in libcommon.a(surface.c.o)
  "_SDL_LoadWAV_RW", referenced from:
      _loadWAV in audio.c.o
  "_SDL_LockAudio", referenced from:
      _l_audiodev_lock in audio.c.o
  "_SDL_LockAudioDevice", referenced from:
      _l_audiodev_lock in audio.c.o
  "_SDL_LockMutex", referenced from:
      _l_channel_get in channel.c.o
      _channelClear in channel.c.o
      _channelWait in channel.c.o
      _channelSupply in channel.c.o
      _channelPush in channel.c.o
      _channelPop in channel.c.o
      _channelLast in channel.c.o
      ...
  "_SDL_LockSurface", referenced from:
      _l_surface_lock in libcommon.a(surface.c.o)
  "_SDL_Log", referenced from:
      _l_log in logging.c.o
  "_SDL_LogCritical", referenced from:
      _audioCallback in audio.c.o
      _l_logCritical in logging.c.o
      _callback in thread.c.o
      _timerCallback in timer.c.o
  "_SDL_LogDebug", referenced from:
      _l_logDebug in logging.c.o
  "_SDL_LogError", referenced from:
      _l_logError in logging.c.o
  "_SDL_LogGetPriority", referenced from:
      _l_logGetPriority in logging.c.o
  "_SDL_LogInfo", referenced from:
      _l_logInfo in logging.c.o
  "_SDL_LogMessage", referenced from:
      _l_logMessage in logging.c.o
  "_SDL_LogResetPriorities", referenced from:
      _l_logResetPriorities in logging.c.o
  "_SDL_LogSetAllPriority", referenced from:
      _l_logSetAllPriority in logging.c.o
  "_SDL_LogSetOutputFunction", referenced from:
      _l_logSetOutputFunction in logging.c.o
  "_SDL_LogSetPriority", referenced from:
      _l_logSetPriority in logging.c.o
  "_SDL_LogVerbose", referenced from:
      _l_logVerbose in logging.c.o
  "_SDL_LogWarn", referenced from:
      _l_logWarn in logging.c.o
  "_SDL_LowerBlit", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
  "_SDL_LowerBlitScaled", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
  "_SDL_MaximizeWindow", referenced from:
      _l_window_maximize in window.c.o
  "_SDL_MinimizeWindow", referenced from:
      _l_window_minimize in window.c.o
  "_SDL_MixAudio", referenced from:
      _mixAudio in audio.c.o
  "_SDL_MixAudioFormat", referenced from:
      _mixAudio in audio.c.o
  "_SDL_MouseIsHaptic", referenced from:
      _l_mouseIsHaptic in haptic.c.o
  "_SDL_NumHaptics", referenced from:
      _l_numHaptics in haptic.c.o
  "_SDL_NumJoysticks", referenced from:
      _l_numJoysticks in joystick.c.o
  "_SDL_OpenAudio", referenced from:
      _openAudio in audio.c.o
  "_SDL_OpenAudioDevice", referenced from:
      _openAudio in audio.c.o
  "_SDL_PauseAudio", referenced from:
      _l_audiodev_pause in audio.c.o
  "_SDL_PauseAudioDevice", referenced from:
      _l_audiodev_pause in audio.c.o
  "_SDL_PeepEvents", referenced from:
      _l_event_peepEvents in events.c.o
      _l_event_quitRequested in events.c.o
  "_SDL_PollEvent", referenced from:
      _eventIterator in events.c.o
  "_SDL_PumpEvents", referenced from:
      _l_event_pumpEvents in events.c.o
      _l_event_quitRequested in events.c.o
  "_SDL_QueryTexture", referenced from:
      _l_texture_query in texture.c.o
      _l_texture_tostring in texture.c.o
  "_SDL_Quit", referenced from:
      _l_quit in SDL.c.o
  "_SDL_QuitSubSystem", referenced from:
      _l_quitSubSystem in SDL.c.o
  "_SDL_RWFromFile", referenced from:
      _loadWAV in audio.c.o
      _l_surface_loadBMP in libcommon.a(surface.c.o)
      _l_surface_saveBMP in libcommon.a(surface.c.o)
      _l_rw_fromFile in libcommon.a(rwops.c.o)
  "_SDL_RaiseWindow", referenced from:
      _l_window_raise in window.c.o
  "_SDL_ReadBE16", referenced from:
      _rw_read16 in libcommon.a(rwops.c.o)
  "_SDL_ReadBE32", referenced from:
      _rw_read32 in libcommon.a(rwops.c.o)
  "_SDL_ReadLE16", referenced from:
      _rw_read16 in libcommon.a(rwops.c.o)
  "_SDL_ReadLE32", referenced from:
      _rw_read32 in libcommon.a(rwops.c.o)
  "_SDL_RegisterEvents", referenced from:
      _l_event_registerEvents in events.c.o
  "_SDL_RemoveTimer", referenced from:
      _l_timer_gc in timer.c.o
      _l_timer_remove in timer.c.o
  "_SDL_RenderClear", referenced from:
      _l_renderer_clear in renderer.c.o
  "_SDL_RenderCopy", referenced from:
      _l_renderer_copy in renderer.c.o
  "_SDL_RenderCopyEx", referenced from:
      _l_renderer_copyEx in renderer.c.o
  "_SDL_RenderDrawLine", referenced from:
      _l_renderer_drawLine in renderer.c.o
  "_SDL_RenderDrawLines", referenced from:
      _l_renderer_drawLines in renderer.c.o
  "_SDL_RenderDrawPoint", referenced from:
      _l_renderer_drawPoint in renderer.c.o
  "_SDL_RenderDrawPoints", referenced from:
      _l_renderer_drawPoints in renderer.c.o
  "_SDL_RenderDrawRect", referenced from:
      _rendererDrawOrFillRect in renderer.c.o
  "_SDL_RenderDrawRects", referenced from:
      _rendererDrawOrFillRects in renderer.c.o
  "_SDL_RenderFillRect", referenced from:
      _rendererDrawOrFillRect in renderer.c.o
  "_SDL_RenderFillRects", referenced from:
      _rendererDrawOrFillRects in renderer.c.o
  "_SDL_RenderGetClipRect", referenced from:
      _l_renderer_getClipRect in renderer.c.o
  "_SDL_RenderGetLogicalSize", referenced from:
      _l_renderer_getLogicalSize in renderer.c.o
  "_SDL_RenderGetViewport", referenced from:
      _l_renderer_getViewport in renderer.c.o
  "_SDL_RenderPresent", referenced from:
      _l_renderer_present in renderer.c.o
  "_SDL_RenderSetClipRect", referenced from:
      _l_renderer_setClipRect in renderer.c.o
  "_SDL_RenderSetLogicalSize", referenced from:
      _l_renderer_setLogicalSize in renderer.c.o
  "_SDL_RenderSetViewport", referenced from:
      _l_renderer_setViewport in renderer.c.o
  "_SDL_RestoreWindow", referenced from:
      _l_window_restore in window.c.o
  "_SDL_SaveBMP_RW", referenced from:
      _l_surface_saveBMP in libcommon.a(surface.c.o)
      _l_surface_saveBMP_RW in libcommon.a(surface.c.o)
  "_SDL_SetClipRect", referenced from:
      _l_surface_setClipRect in libcommon.a(surface.c.o)
  "_SDL_SetClipboardText", referenced from:
      _l_video_setClipboardText in clipboard.c.o
  "_SDL_SetColorKey", referenced from:
      _l_surface_setColorKey in libcommon.a(surface.c.o)
  "_SDL_SetCursor", referenced from:
      _l_setCursor in mouse.c.o
  "_SDL_SetError", referenced from:
      _l_setError in SDL.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
  "_SDL_SetEventFilter", referenced from:
      _l_filter_gc in events.c.o
      _eventAddFilter in events.c.o
  "_SDL_SetHint", referenced from:
      _l_setHint in SDL.c.o
  "_SDL_SetModState", referenced from:
      _l_setModState in keyboard.c.o
  "_SDL_SetRelativeMouseMode", referenced from:
      _l_setRelativeMouseMode in mouse.c.o
  "_SDL_SetRenderDrawBlendMode", referenced from:
      _l_renderer_setDrawBlendMode in renderer.c.o
  "_SDL_SetRenderDrawColor", referenced from:
      _l_renderer_setDrawColor in renderer.c.o
  "_SDL_SetRenderTarget", referenced from:
      _l_renderer_setTarget in renderer.c.o
  "_SDL_SetSurfaceAlphaMod", referenced from:
      _l_surface_setAlphaMod in libcommon.a(surface.c.o)
  "_SDL_SetSurfaceBlendMode", referenced from:
      _l_surface_setBlendMode in libcommon.a(surface.c.o)
  "_SDL_SetSurfaceColorMod", referenced from:
      _l_surface_setColorMod in libcommon.a(surface.c.o)
  "_SDL_SetSurfacePalette", referenced from:
      _l_surface_setPalette in libcommon.a(surface.c.o)
  "_SDL_SetSurfaceRLE", referenced from:
      _l_surface_setRLE in libcommon.a(surface.c.o)
  "_SDL_SetTextInputRect", referenced from:
      _l_setTextInputRect in keyboard.c.o
  "_SDL_SetTextureAlphaMod", referenced from:
      _l_texture_setAlphaMod in texture.c.o
  "_SDL_SetTextureBlendMode", referenced from:
      _l_texture_setBlendMode in texture.c.o
  "_SDL_SetTextureColorMod", referenced from:
      _l_texture_setColorMod in texture.c.o
  "_SDL_SetWindowBrightness", referenced from:
      _l_window_setBrightness in window.c.o
  "_SDL_SetWindowDisplayMode", referenced from:
      _l_window_setDisplayMode in window.c.o
  "_SDL_SetWindowFullscreen", referenced from:
      _l_window_setFullscreen in window.c.o
  "_SDL_SetWindowGammaRamp", referenced from:
      _l_window_setGammaRamp in window.c.o
  "_SDL_SetWindowGrab", referenced from:
      _l_window_setGrab in window.c.o
  "_SDL_SetWindowIcon", referenced from:
      _l_window_setIcon in window.c.o
  "_SDL_SetWindowMaximumSize", referenced from:
      _l_window_setMaximumSize in window.c.o
  "_SDL_SetWindowMinimumSize", referenced from:
      _l_window_setMinimumSize in window.c.o
  "_SDL_SetWindowPosition", referenced from:
      _l_window_setPosition in window.c.o
  "_SDL_SetWindowSize", referenced from:
      _l_window_setSize in window.c.o
  "_SDL_SetWindowTitle", referenced from:
      _l_window_setTitle in window.c.o
  "_SDL_ShowCursor", referenced from:
      _l_showCursor in mouse.c.o
  "_SDL_ShowWindow", referenced from:
      _l_window_show in window.c.o
  "_SDL_StartTextInput", referenced from:
      _l_startTextInput in keyboard.c.o
  "_SDL_StopTextInput", referenced from:
      _l_stopTextInput in keyboard.c.o
  "_SDL_UnionRect", referenced from:
      _l_unionRect in rectangle.c.o
  "_SDL_UnlockAudio", referenced from:
      _l_audiodev_unlock in audio.c.o
  "_SDL_UnlockAudioDevice", referenced from:
      _l_audiodev_unlock in audio.c.o
  "_SDL_UnlockMutex", referenced from:
      _l_channel_get in channel.c.o
      _channelClear in channel.c.o
      _channelWait in channel.c.o
      _channelPush in channel.c.o
      _channelPop in channel.c.o
      _channelLast in channel.c.o
      _channelFirst in channel.c.o
      ...
  "_SDL_UnlockSurface", referenced from:
      _l_surface_unlock in libcommon.a(surface.c.o)
  "_SDL_UnlockTexture", referenced from:
      _l_texture_unlock in texture.c.o
  "_SDL_UpdateWindowSurface", referenced from:
      _l_window_updateSurface in window.c.o
  "_SDL_UpdateWindowSurfaceRects", referenced from:
      _l_window_updateSurfaceRects in window.c.o
  "_SDL_UpperBlit", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
  "_SDL_UpperBlitScaled", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
  "_SDL_VideoInit", referenced from:
      _l_video_init in display.c.o
  "_SDL_VideoQuit", referenced from:
      _l_video_quit in display.c.o
  "_SDL_WaitEvent", referenced from:
      _l_event_waitEvent in events.c.o
  "_SDL_WaitEventTimeout", referenced from:
      _l_event_waitEvent in events.c.o
  "_SDL_WaitThread", referenced from:
      _l_thread_wait in thread.c.o
  "_SDL_WarpMouseInWindow", referenced from:
      _l_window_warpMouse in window.c.o
  "_SDL_WasInit", referenced from:
      _l_wasInit in SDL.c.o
  "_SDL_WriteBE16", referenced from:
      _rw_write16 in libcommon.a(rwops.c.o)
  "_SDL_WriteBE32", referenced from:
      _rw_write32 in libcommon.a(rwops.c.o)
  "_SDL_WriteLE16", referenced from:
      _rw_write16 in libcommon.a(rwops.c.o)
  "_SDL_WriteLE32", referenced from:
      _rw_write32 in libcommon.a(rwops.c.o)
  "_SDL_free", referenced from:
      _l_video_getClipboardText in clipboard.c.o
      _pushDropFile in events.c.o
      _l_getBasePath in filesystem.c.o
      _l_getPrefPath in filesystem.c.o
  "_SDL_memset", referenced from:
      _getDirection in haptic.c.o
  "_luaL_checkinteger", referenced from:
      _l_getAudioDeviceName in audio.c.o
      _l_getAudioDriver in audio.c.o
      _mixAudio in audio.c.o
      _l_video_getClosestDisplayMode in display.c.o
      _l_video_getCurrentDisplayMode in display.c.o
      _l_video_getDesktopDisplayMode in display.c.o
      _l_video_getDisplayBounds in display.c.o
      ...
  "_luaL_checklstring", referenced from:
      _l_audioInit in audio.c.o
      _openAudio in audio.c.o
      _mixAudio in audio.c.o
      _loadWAV in audio.c.o
      _l_channel_get in channel.c.o
      _l_video_setClipboardText in clipboard.c.o
      _l_video_init in display.c.o
      ...
  "_luaL_checknumber", referenced from:
      _l_haptic_rumblePlay in haptic.c.o
      _l_window_setBrightness in window.c.o
  "_luaL_checktype", referenced from:
      _audioGetCVT in audio.c.o
      _openAudio in audio.c.o
      _l_event_filterEvents in events.c.o
      _eventAddFilter in events.c.o
      _getEffect in haptic.c.o
      _l_logSetOutputFunction in logging.c.o
      _l_enclosePoints in rectangle.c.o
      ...
  "_luaL_checkudata", referenced from:
      _commonGetUserdata in libcommon.a(common.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
  "_luaL_error", referenced from:
      _audioGetCVT in audio.c.o
      _getEffect in haptic.c.o
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _keysIndex in keyboard.c.o
      ...
  "_luaL_loadfilex", referenced from:
      _openAudio in audio.c.o
      _loadfile in thread.c.o
  "_luaL_newmetatable", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
  "_luaL_newstate", referenced from:
      _openAudio in audio.c.o
      _l_thread_create in thread.c.o
      _l_addTimer in timer.c.o
  "_luaL_openlibs", referenced from:
      _openAudio in audio.c.o
      _l_thread_create in thread.c.o
      _l_addTimer in timer.c.o
  "_luaL_optinteger", referenced from:
      _l_glSetSwapInterval in gl.c.o
  "_luaL_ref", referenced from:
      _openAudio in audio.c.o
      _l_event_filterEvents in events.c.o
      _eventAddFilter in events.c.o
      _l_logSetOutputFunction in logging.c.o
      _l_addTimer in timer.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
  "_luaL_setfuncs", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
      _commonBindLibrary in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
  "_luaL_setmetatable", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_luaL_unref", referenced from:
      _openAudio in audio.c.o
      _l_event_filterEvents in events.c.o
      _l_filter_gc in events.c.o
      _l_logSetOutputFunction in logging.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_rw_gc in libcommon.a(rwops.c.o)
  "_lua_callk", referenced from:
      _eventFilter in events.c.o
      _loggingCustomOutput in logging.c.o
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      ...
  "_lua_close", referenced from:
      _l_audiodev_gc in audio.c.o
      _openAudio in audio.c.o
      _l_thread_create in thread.c.o
      _destroy in thread.c.o
      _l_addTimer in timer.c.o
      _l_timer_gc in timer.c.o
  "_lua_createtable", referenced from:
      _audioPushCVT in audio.c.o
      _loadWAV in audio.c.o
      _l_event_peepEvents in events.c.o
      _eventPush in events.c.o
      _pushKey in events.c.o
      _l_getKeyboardState in keyboard.c.o
      _pushRendererInfo in renderer.c.o
      ...
  "_lua_dump", referenced from:
      _loadfunction in thread.c.o
  "_lua_getfield", referenced from:
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _getDirection in haptic.c.o
      _l_renderer_copyEx in renderer.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
      ...
  "_lua_gettop", referenced from:
      _mixAudio in audio.c.o
      _l_video_init in display.c.o
      _l_event_peepEvents in events.c.o
      _l_event_waitEvent in events.c.o
      _l_enclosePoints in rectangle.c.o
      _l_renderer_copy in renderer.c.o
      _l_quitSubSystem in SDL.c.o
      ...
  "_lua_load", referenced from:
      _loadfunction in thread.c.o
  "_lua_newuserdata", referenced from:
      _l_getKeyboardState in keyboard.c.o
      _commonPushUserdata in libcommon.a(common.c.o)
  "_lua_next", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _variantGet in libcommon.a(variant.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pcallk", referenced from:
      _openAudio in audio.c.o
      _audioCallback in audio.c.o
      _callback in thread.c.o
      _timerCallback in timer.c.o
  "_lua_pushboolean", referenced from:
      _l_enclosePoints in rectangle.c.o
      _l_intersectRect in rectangle.c.o
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetBool in libcommon.a(table.c.o)
      _variantPush in libcommon.a(variant.c.o)
  "_lua_pushcclosure", referenced from:
      _l_event_pollEvent in events.c.o
      _l_getKeyboardState in keyboard.c.o
  "_lua_pushfstring", referenced from:
      _l_audiodev_tostring in audio.c.o
      _l_filter_tostring in events.c.o
      _l_gamectl_tostring in gamecontroller.c.o
      _l_joystick_tostring in joystick.c.o
      _l_renderer_tostring in renderer.c.o
      _l_texture_tostring in texture.c.o
      _l_thread_tostring in thread.c.o
      ...
  "_lua_pushinteger", referenced from:
      _audioCallback in audio.c.o
      _eventPush in events.c.o
      _loggingCustomOutput in logging.c.o
      _l_getMouseState in mouse.c.o
      _l_getRelativeMouseState in mouse.c.o
      _l_getPowerInfo in power.c.o
      _pushRendererInfo in renderer.c.o
      ...
  "_lua_pushlstring", referenced from:
      _audioPushCVT in audio.c.o
      _mixAudio in audio.c.o
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
      _variantPush in libcommon.a(variant.c.o)
  "_lua_pushnil", referenced from:
      _l_channel_first in channel.c.o
      _l_channel_last in channel.c.o
      _l_channel_wait in channel.c.o
      _l_video_getCurrentVideoDriver in display.c.o
      _l_logGetOutputFunction in logging.c.o
      _l_getHint in SDL.c.o
      _commonGetEnum in libcommon.a(common.c.o)
      ...
  "_lua_pushnumber", referenced from:
      _commonPush in libcommon.a(common.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
      _variantPush in libcommon.a(variant.c.o)
  "_lua_pushstring", referenced from:
      _l_video_getClipboardText in clipboard.c.o
      _l_video_getCurrentVideoDriver in display.c.o
      _l_getBasePath in filesystem.c.o
      _l_getPrefPath in filesystem.c.o
      _loggingCustomOutput in logging.c.o
      _pushRendererInfo in renderer.c.o
      _l_getHint in SDL.c.o
      ...
  "_lua_pushvalue", referenced from:
      _l_event_filterEvents in events.c.o
      _eventAddFilter in events.c.o
      _l_logSetOutputFunction in logging.c.o
      _loadfunction in thread.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
  "_lua_rawgeti", referenced from:
      _audioCallback in audio.c.o
      _eventFilter in events.c.o
      _getCondition in haptic.c.o
      _getDirection in haptic.c.o
      _l_logGetOutputFunction in logging.c.o
      _loggingCustomOutput in logging.c.o
      _timerCallback in timer.c.o
      ...
  "_lua_rawseti", referenced from:
      _l_event_peepEvents in events.c.o
      _pushRendererInfo in renderer.c.o
      _l_window_getGammaRamp in window.c.o
      _commonPushEnum in libcommon.a(common.c.o)
  "_lua_setfield", referenced from:
      _audioPushCVT in audio.c.o
      _eventPush in events.c.o
      _pushKey in events.c.o
      _l_getKeyboardState in keyboard.c.o
      _pushRendererInfo in renderer.c.o
      _commonBindEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      ...
  "_lua_setmetatable", referenced from:
      _l_getKeyboardState in keyboard.c.o
  "_lua_settable", referenced from:
      _variantPush in libcommon.a(variant.c.o)
  "_lua_settop", referenced from:
      _audioCallback in audio.c.o
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _getDirection in haptic.c.o
      _l_renderer_copyEx in renderer.c.o
      ...
  "_lua_toboolean", referenced from:
      _l_getAudioDeviceName in audio.c.o
      _l_getNumAudioDevices in audio.c.o
      _l_audiodev_pause in audio.c.o
      _eventFilter in events.c.o
      _l_setRelativeMouseMode in mouse.c.o
      _l_showCursor in mouse.c.o
      _l_surface_setColorKey in libcommon.a(surface.c.o)
      ...
  "_lua_tointegerx", referenced from:
      _callback in thread.c.o
      _l_window_setGammaRamp in window.c.o
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      ...
  "_lua_tolstring", referenced from:
      _openAudio in audio.c.o
      _audioCallback in audio.c.o
      _threadDump in thread.c.o
      _loadfile in thread.c.o
      _loadfunction in thread.c.o
      _callback in thread.c.o
      _timerCallback in timer.c.o
      ...
  "_lua_tonumberx", referenced from:
      _getCondition in haptic.c.o
      _getDirection in haptic.c.o
      _timerCallback in timer.c.o
      _commonGetEnum in libcommon.a(common.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
      _variantGet in libcommon.a(variant.c.o)
  "_lua_type", referenced from:
      _openAudio in audio.c.o
      _audioCallback in audio.c.o
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _getDirection in haptic.c.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [SDL.so] Error 1
make[1]: *** [CMakeFiles/SDL.dir/all] Error 2
make: *** [all] Error 2
Tangent128 commented 9 years ago

OK, the main thing that jumps out at me:

Linking C shared module SDL.so
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/SDL.dir/link.txt --verbose=1
/usr/bin/cc -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names -o SDL.so CMakeFiles/SDL.dir/src/audio.c.o CMakeFiles/SDL.dir/src/channel.c.o CMakeFiles/SDL.dir/src/clipboard.c.o CMakeFiles/SDL.dir/src/cpu.c.o CMakeFiles/SDL.dir/src/display.c.o CMakeFiles/SDL.dir/src/events.c.o CMakeFiles/SDL.dir/src/filesystem.c.o CMakeFiles/SDL.dir/src/gamecontroller.c.o CMakeFiles/SDL.dir/src/gl.c.o CMakeFiles/SDL.dir/src/haptic.c.o CMakeFiles/SDL.dir/src/joystick.c.o CMakeFiles/SDL.dir/src/keyboard.c.o CMakeFiles/SDL.dir/src/logging.c.o CMakeFiles/SDL.dir/src/mouse.c.o CMakeFiles/SDL.dir/src/platform.c.o CMakeFiles/SDL.dir/src/power.c.o CMakeFiles/SDL.dir/src/rectangle.c.o CMakeFiles/SDL.dir/src/renderer.c.o CMakeFiles/SDL.dir/src/SDL.c.o CMakeFiles/SDL.dir/src/texture.c.o CMakeFiles/SDL.dir/src/thread.c.o CMakeFiles/SDL.dir/src/timer.c.o CMakeFiles/SDL.dir/src/window.c.o common/libcommon.a -framework Cocoa 
Undefined symbols for architecture x86_64:

That third line, which is the linking command, does not appear to be referencing any Lua or SDL2 libraries/frameworks. (I would expect more -l or -framework flags.) All I'm seeing being linked are the project's files and the Cocoa framework.

I will be occupied tonight, but if you can post the CMakeCache.txt file I can look at it for clues sometime tomorrow. If you know anybody with experience with cmake on OSX, they can probably puzzle things out faster.

lewislepton commented 9 years ago

cheers man. thanks a bunch for helping. here is the CMakeChace.txt from the build folder im using to build lua-SDL2

sorry i dont know anyone who uses mac with cmake. all friends are windows/linux users

# This is the CMakeCache file.
# For build in directory: /Users/lepton/Downloads/luasdl2/_build_
# It was generated by CMake: /Applications/CMake 2.8-12.app/Contents/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar

//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc

//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF

//Path to a program.
CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local

//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=CMAKE_OBJDUMP-NOTFOUND

//Build architectures for OSX
CMAKE_OSX_ARCHITECTURES:STRING=

//Minimum OS X version to target for deployment (at runtime); newer
// APIs weak linked. Set to empty string for default value.
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=

//The product will be built against the headers and libraries located
// inside the indicated SDK.
CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=Lua-SDL2

//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib

//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO

//Flags used by the linker during the creation of static libraries.
CMAKE_STATIC_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip

//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE

//Path to a file.
LUA52_INCLUDE_DIR:PATH=/usr/local/include

//Lua Libraries
LUA52_LIBRARIES:STRING=/usr/local/lib/liblua.a

//Path to a library.
LUA52_LIBRARY:FILEPATH=/usr/local/lib/liblua.a

//Lua C Module Install Path
LUA_LIBDIR:STRING=lib/lua/5.2

//Value Computed by CMake
Lua-SDL2_BINARY_DIR:STATIC=/Users/lepton/Downloads/luasdl2/_build_

//Value Computed by CMake
Lua-SDL2_SOURCE_DIR:STATIC=/Users/lepton/Downloads/luasdl2

//Path to a file.
SDL2_IMAGE_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2_image.framework/Headers

//Path to a library.
SDL2_IMAGE_LIBRARY:FILEPATH=/Library/Frameworks/SDL2_image.framework

//Path to a file.
SDL2_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2.framework/Headers

//Where the SDL Library can be found
SDL2_LIBRARY:STRING=-framework Cocoa

//Path to a file.
SDL2_MIXER_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2_mixer.framework/Headers

//Path to a library.
SDL2_MIXER_LIBRARY:FILEPATH=/Library/Frameworks/SDL2_mixer.framework

//Path to a file.
SDL2_NET_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2_net.framework/Headers

//Path to a library.
SDL2_NET_LIBRARY:FILEPATH=/Library/Frameworks/SDL2_net.framework

//Path to a file.
SDL2_TTF_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2_ttf.framework/Headers

//Path to a library.
SDL2_TTF_LIBRARY:FILEPATH=/Library/Frameworks/SDL2_ttf.framework

//Dependencies for the target
SDL_LIB_DEPENDS:STATIC=general;common;general;-framework Cocoa;

//Installation of tutorials
WITH_DOCS:BOOL=ON

//Path to install examples
WITH_DOCSDIR:STRING=share/docs/Lua-SDL2

//Enable SDL_image
WITH_IMAGE:BOOL=ON

//Version of Lua to use
WITH_LUAVER:STRING=52

//Enable SDL_mixer
WITH_MIXER:BOOL=ON

//Enable SDL_net
WITH_NET:BOOL=ON

//Enable SDL_ttf
WITH_TTF:BOOL=ON

//Value Computed by CMake
common_BINARY_DIR:STATIC=/Users/lepton/Downloads/luasdl2/_build_/common

//Dependencies for the target
common_LIB_DEPENDS:STATIC=general;-framework Cocoa;

//Value Computed by CMake
common_SOURCE_DIR:STATIC=/Users/lepton/Downloads/luasdl2/common

//Value Computed by CMake
examples_BINARY_DIR:STATIC=/Users/lepton/Downloads/luasdl2/_build_/examples

//Value Computed by CMake
examples_SOURCE_DIR:STATIC=/Users/lepton/Downloads/luasdl2/examples

//Dependencies for the target
image_LIB_DEPENDS:STATIC=general;common;general;-framework Cocoa;general;/Library/Frameworks/SDL2_image.framework;

//Dependencies for the target
mixer_LIB_DEPENDS:STATIC=general;common;general;-framework Cocoa;general;/Library/Frameworks/SDL2_mixer.framework;

//Dependencies for the target
net_LIB_DEPENDS:STATIC=general;common;general;-framework Cocoa;general;/Library/Frameworks/SDL2_net.framework;

//Dependencies for the target
ttf_LIB_DEPENDS:STATIC=general;common;general;-framework Cocoa;general;/Library/Frameworks/SDL2_ttf.framework;

//Value Computed by CMake
tutorials_BINARY_DIR:STATIC=/Users/lepton/Downloads/luasdl2/_build_/tutorials

//Value Computed by CMake
tutorials_SOURCE_DIR:STATIC=/Users/lepton/Downloads/luasdl2/tutorials

########################
# INTERNAL cache entries
########################

//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_BUILD_TOOL
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/make
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/Users/lepton/Downloads/luasdl2/_build_
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=12
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/Applications/CMake 2.8-12.app/Contents/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/Applications/CMake 2.8-12.app/Contents/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/Applications/CMake 2.8-12.app/Contents/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/Applications/CMake 2.8-12.app/Contents/bin/ccmake
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/Users/lepton/Downloads/luasdl2
//ADVANCED property for variable: CMAKE_INSTALL_NAME_TOOL
CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=8
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/Applications/CMake 2.8-12.app/Contents/share/cmake-2.8
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Details about finding Lua52
FIND_PACKAGE_MESSAGE_DETAILS_Lua52:INTERNAL=[/usr/local/lib/liblua.a][/usr/local/include][v()]
//Details about finding SDL2
FIND_PACKAGE_MESSAGE_DETAILS_SDL2:INTERNAL=[-framework Cocoa][/Library/Frameworks/SDL2.framework/Headers;/usr/local/include][v()]
//Details about finding SDL2_image
FIND_PACKAGE_MESSAGE_DETAILS_SDL2_image:INTERNAL=[/Library/Frameworks/SDL2_image.framework][/Library/Frameworks/SDL2_image.framework/Headers][v2.0.0()]
//Details about finding SDL2_mixer
FIND_PACKAGE_MESSAGE_DETAILS_SDL2_mixer:INTERNAL=[/Library/Frameworks/SDL2_mixer.framework][/Library/Frameworks/SDL2_mixer.framework/Headers][v()]
//Details about finding SDL2_net
FIND_PACKAGE_MESSAGE_DETAILS_SDL2_net:INTERNAL=[/Library/Frameworks/SDL2_net.framework][/Library/Frameworks/SDL2_net.framework/Headers][v()]
//Details about finding SDL2_ttf
FIND_PACKAGE_MESSAGE_DETAILS_SDL2_ttf:INTERNAL=[/Library/Frameworks/SDL2_ttf.framework][/Library/Frameworks/SDL2_ttf.framework/Headers][v()]
//ADVANCED property for variable: LUA52_INCLUDE_DIR
LUA52_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: LUA52_LIBRARIES
LUA52_LIBRARIES-ADVANCED:INTERNAL=1
//ADVANCED property for variable: LUA52_LIBRARY
LUA52_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_IMAGE_INCLUDE_DIR
SDL2_IMAGE_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_IMAGE_LIBRARY
SDL2_IMAGE_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_MIXER_INCLUDE_DIR
SDL2_MIXER_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_MIXER_LIBRARY
SDL2_MIXER_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_NET_INCLUDE_DIR
SDL2_NET_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_NET_LIBRARY
SDL2_NET_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_TTF_INCLUDE_DIR
SDL2_TTF_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_TTF_LIBRARY
SDL2_TTF_LIBRARY-ADVANCED:INTERNAL=1
SDL_LIBRARY_TEMP:INTERNAL=-framework Cocoa
//Have symbol CIRCLEQ_HEAD
SYSQUEUE_CIRCLEQ:INTERNAL=1
//Have symbol CIRCLEQ_FOREACH
SYSQUEUE_CIRCLEQ_FOREACH:INTERNAL=1
//Have symbol CIRCLEQ_FOREACH_SAFE
SYSQUEUE_CIRCLEQ_FOREACH_SAFE:INTERNAL=
//Have include sys/queue.h
SYSQUEUE_FOUND:INTERNAL=1
//Have symbol LIST_HEAD
SYSQUEUE_LIST:INTERNAL=1
//Have symbol LIST_FOREACH
SYSQUEUE_LIST_FOREACH:INTERNAL=1
//Have symbol LIST_FOREACH_SAFE
SYSQUEUE_LIST_FOREACH_SAFE:INTERNAL=1
//Have symbol SIMPLEQ_HEAD
SYSQUEUE_SIMPLEQ:INTERNAL=
//Have symbol SLIST_HEAD
SYSQUEUE_SLIST:INTERNAL=1
//Have symbol SLIST_FOREACH
SYSQUEUE_SLIST_FOREACH:INTERNAL=1
//Have symbol SLIST_FOREACH_SAFE
SYSQUEUE_SLIST_FOREACH_SAFE:INTERNAL=1
//Have symbol STAILQ_HEAD
SYSQUEUE_STAILQ:INTERNAL=1
//Have symbol STAILQ_FOREACH
SYSQUEUE_STAILQ_FOREACH:INTERNAL=1
//Have symbol STAILQ_FOREACH_SAFE
SYSQUEUE_STAILQ_FOREACH_SAFE:INTERNAL=1
//Have symbol TAILQ_HEAD
SYSQUEUE_TAILQ:INTERNAL=1
//Have symbol TAILQ_FOREACH
SYSQUEUE_TAILQ_FOREACH:INTERNAL=1
//Have symbol TAILQ_FOREACH_SAFE
SYSQUEUE_TAILQ_FOREACH_SAFE:INTERNAL=1
Tangent128 commented 9 years ago

Looking into things; there are definitely some Cmake configuration things I'll need to fix, like using -undefined dynamic_lookup for the Lua symbols. (Leaving this link for my own reference.)

Meanwhile, this does not look right:

SDL2_LIBRARY:STRING=-framework Cocoa

Which is strange because all the other SDL2-related variables look plausible. I'm guessing something went wrong when Cmake was trying to find SDL2, and I'll have to figure out what.

For science, try changing that to:

SDL2_LIBRARY:STRING=-framework SDL2

Then have cmake regenerate your Makefiles and try again. (It won't succeed because of the Lua linking issue, but if we're lucky it will generate less errors than before.)

lewislepton commented 9 years ago

actually less errors that popped up. here is the terminal stuff that came up. ill just post the CmakeCache.txt next

to add. i did check the CmakeCache and there was another 'framework cocoa', but did leave that though

lepton:luasdl2-master lepton$ mkdir _build_
lepton:luasdl2-master lepton$ cd _build_
lepton:_build_ lepton$ cmake ..
-- The C compiler identification is Clang 6.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found SDL2: -framework Cocoa  
-- Found Lua52: /Library/Frameworks/lua.framework (found version "5.1.4") 
-- Looking for sys/queue.h
-- Looking for sys/queue.h - found
-- Looking for SLIST_HEAD
-- Looking for SLIST_HEAD - found
-- Looking for SLIST_FOREACH
-- Looking for SLIST_FOREACH - found
-- Looking for SLIST_FOREACH_SAFE
-- Looking for SLIST_FOREACH_SAFE - found
-- Looking for STAILQ_HEAD
-- Looking for STAILQ_HEAD - found
-- Looking for STAILQ_FOREACH
-- Looking for STAILQ_FOREACH - found
-- Looking for STAILQ_FOREACH_SAFE
-- Looking for STAILQ_FOREACH_SAFE - found
-- Looking for LIST_HEAD
-- Looking for LIST_HEAD - found
-- Looking for LIST_FOREACH
-- Looking for LIST_FOREACH - found
-- Looking for LIST_FOREACH_SAFE
-- Looking for LIST_FOREACH_SAFE - found
-- Looking for TAILQ_HEAD
-- Looking for TAILQ_HEAD - found
-- Looking for TAILQ_FOREACH
-- Looking for TAILQ_FOREACH - found
-- Looking for TAILQ_FOREACH_SAFE
-- Looking for TAILQ_FOREACH_SAFE - found
-- Looking for SIMPLEQ_HEAD
-- Looking for SIMPLEQ_HEAD - not found
-- Looking for CIRCLEQ_HEAD
-- Looking for CIRCLEQ_HEAD - found
-- Looking for CIRCLEQ_FOREACH
-- Looking for CIRCLEQ_FOREACH - found
-- Looking for CIRCLEQ_FOREACH_SAFE
-- Looking for CIRCLEQ_FOREACH_SAFE - not found
-- The CXX compiler identification is Clang 6.1.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SDL2_image: /Library/Frameworks/SDL2_image.framework (found version "2.0.0") 
-- Found SDL2_mixer: /Library/Frameworks/SDL2_mixer.framework  
-- Found SDL2_ttf: /Library/Frameworks/SDL2_ttf.framework  
-- Found SDL2_net: /Library/Frameworks/SDL2_net.framework  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ cmake ..
-- Found SDL2: -framework SDL2  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ make
Scanning dependencies of target common
[  2%] Building C object common/CMakeFiles/common.dir/array.c.o
[  5%] Building C object common/CMakeFiles/common.dir/common.c.o
[  8%] Building C object common/CMakeFiles/common.dir/rwops.c.o
[ 11%] Building C object common/CMakeFiles/common.dir/surface.c.o
[ 14%] Building C object common/CMakeFiles/common.dir/table.c.o
[ 17%] Building C object common/CMakeFiles/common.dir/variant.c.o
[ 20%] Building C object common/CMakeFiles/common.dir/video.c.o
Linking C static library libcommon.a
[ 20%] Built target common
Scanning dependencies of target SDL
[ 23%] Building C object CMakeFiles/SDL.dir/src/audio.c.o
[ 26%] Building C object CMakeFiles/SDL.dir/src/channel.c.o
[ 29%] Building C object CMakeFiles/SDL.dir/src/clipboard.c.o
[ 32%] Building C object CMakeFiles/SDL.dir/src/cpu.c.o
[ 35%] Building C object CMakeFiles/SDL.dir/src/display.c.o
[ 38%] Building C object CMakeFiles/SDL.dir/src/events.c.o
[ 41%] Building C object CMakeFiles/SDL.dir/src/filesystem.c.o
[ 44%] Building C object CMakeFiles/SDL.dir/src/gamecontroller.c.o
[ 47%] Building C object CMakeFiles/SDL.dir/src/gl.c.o
[ 50%] Building C object CMakeFiles/SDL.dir/src/haptic.c.o
[ 52%] Building C object CMakeFiles/SDL.dir/src/joystick.c.o
[ 55%] Building C object CMakeFiles/SDL.dir/src/keyboard.c.o
[ 58%] Building C object CMakeFiles/SDL.dir/src/logging.c.o
[ 61%] Building C object CMakeFiles/SDL.dir/src/mouse.c.o
[ 64%] Building C object CMakeFiles/SDL.dir/src/platform.c.o
[ 67%] Building C object CMakeFiles/SDL.dir/src/power.c.o
[ 70%] Building C object CMakeFiles/SDL.dir/src/rectangle.c.o
[ 73%] Building C object CMakeFiles/SDL.dir/src/renderer.c.o
[ 76%] Building C object CMakeFiles/SDL.dir/src/SDL.c.o
[ 79%] Building C object CMakeFiles/SDL.dir/src/texture.c.o
[ 82%] Building C object CMakeFiles/SDL.dir/src/thread.c.o
[ 85%] Building C object CMakeFiles/SDL.dir/src/timer.c.o
[ 88%] Building C object CMakeFiles/SDL.dir/src/window.c.o
Linking C shared module SDL.so
ld: framework not found SDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [SDL.so] Error 1
make[1]: *** [CMakeFiles/SDL.dir/all] Error 2
make: *** [all] Error 2
lewislepton commented 9 years ago

here is the CmakeCache, this has the edits for the 'framework cocoa' to 'framework SDL2'

# This is the CMakeCache file.
# For build in directory: /Users/lepton/Downloads/luasdl2-master/_build_
# It was generated by CMake: /Applications/CMake 2.8-12.app/Contents/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar

//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc

//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF

//Path to a program.
CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local

//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=CMAKE_OBJDUMP-NOTFOUND

//Build architectures for OSX
CMAKE_OSX_ARCHITECTURES:STRING=

//Minimum OS X version to target for deployment (at runtime); newer
// APIs weak linked. Set to empty string for default value.
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=

//The product will be built against the headers and libraries located
// inside the indicated SDK.
CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=Lua-SDL2

//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib

//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO

//Flags used by the linker during the creation of static libraries.
CMAKE_STATIC_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip

//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE

//Path to a file.
LUA52_INCLUDE_DIR:PATH=/Library/Frameworks/Lua.framework/Headers

//Lua Libraries
LUA52_LIBRARIES:STRING=/Library/Frameworks/lua.framework

//Path to a library.
LUA52_LIBRARY:FILEPATH=/Library/Frameworks/lua.framework

//Lua C Module Install Path
LUA_LIBDIR:STRING=lib/lua/5.2

//Value Computed by CMake
Lua-SDL2_BINARY_DIR:STATIC=/Users/lepton/Downloads/luasdl2-master/_build_

//Value Computed by CMake
Lua-SDL2_SOURCE_DIR:STATIC=/Users/lepton/Downloads/luasdl2-master

//Path to a file.
SDL2_IMAGE_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2_image.framework/Headers

//Path to a library.
SDL2_IMAGE_LIBRARY:FILEPATH=/Library/Frameworks/SDL2_image.framework

//Path to a file.
SDL2_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2.framework/Headers

//Where the SDL Library can be found
SDL2_LIBRARY:STRING=-framework SDL2

//Path to a file.
SDL2_MIXER_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2_mixer.framework/Headers

//Path to a library.
SDL2_MIXER_LIBRARY:FILEPATH=/Library/Frameworks/SDL2_mixer.framework

//Path to a file.
SDL2_NET_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2_net.framework/Headers

//Path to a library.
SDL2_NET_LIBRARY:FILEPATH=/Library/Frameworks/SDL2_net.framework

//Path to a file.
SDL2_TTF_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2_ttf.framework/Headers

//Path to a library.
SDL2_TTF_LIBRARY:FILEPATH=/Library/Frameworks/SDL2_ttf.framework

//Dependencies for the target
SDL_LIB_DEPENDS:STATIC=general;common;general;-framework SDL2;

//Installation of tutorials
WITH_DOCS:BOOL=ON

//Path to install examples
WITH_DOCSDIR:STRING=share/docs/Lua-SDL2

//Enable SDL_image
WITH_IMAGE:BOOL=ON

//Version of Lua to use
WITH_LUAVER:STRING=52

//Enable SDL_mixer
WITH_MIXER:BOOL=ON

//Enable SDL_net
WITH_NET:BOOL=ON

//Enable SDL_ttf
WITH_TTF:BOOL=ON

//Value Computed by CMake
common_BINARY_DIR:STATIC=/Users/lepton/Downloads/luasdl2-master/_build_/common

//Dependencies for the target
common_LIB_DEPENDS:STATIC=general;-framework SDL2;

//Value Computed by CMake
common_SOURCE_DIR:STATIC=/Users/lepton/Downloads/luasdl2-master/common

//Value Computed by CMake
examples_BINARY_DIR:STATIC=/Users/lepton/Downloads/luasdl2-master/_build_/examples

//Value Computed by CMake
examples_SOURCE_DIR:STATIC=/Users/lepton/Downloads/luasdl2-master/examples

//Dependencies for the target
image_LIB_DEPENDS:STATIC=general;common;general;-framework SDL2;general;/Library/Frameworks/SDL2_image.framework;

//Dependencies for the target
mixer_LIB_DEPENDS:STATIC=general;common;general;-framework SDL2;general;/Library/Frameworks/SDL2_mixer.framework;

//Dependencies for the target
net_LIB_DEPENDS:STATIC=general;common;general;-framework SDL2;general;/Library/Frameworks/SDL2_net.framework;

//Dependencies for the target
ttf_LIB_DEPENDS:STATIC=general;common;general;-framework SDL2;general;/Library/Frameworks/SDL2_ttf.framework;

//Value Computed by CMake
tutorials_BINARY_DIR:STATIC=/Users/lepton/Downloads/luasdl2-master/_build_/tutorials

//Value Computed by CMake
tutorials_SOURCE_DIR:STATIC=/Users/lepton/Downloads/luasdl2-master/tutorials

########################
# INTERNAL cache entries
########################

//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_BUILD_TOOL
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/make
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/Users/lepton/Downloads/luasdl2-master/_build_
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=12
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/Applications/CMake 2.8-12.app/Contents/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/Applications/CMake 2.8-12.app/Contents/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/Applications/CMake 2.8-12.app/Contents/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/Applications/CMake 2.8-12.app/Contents/bin/ccmake
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/Users/lepton/Downloads/luasdl2-master
//ADVANCED property for variable: CMAKE_INSTALL_NAME_TOOL
CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=8
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/Applications/CMake 2.8-12.app/Contents/share/cmake-2.8
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Details about finding Lua52
FIND_PACKAGE_MESSAGE_DETAILS_Lua52:INTERNAL=[/Library/Frameworks/lua.framework][/Library/Frameworks/Lua.framework/Headers][v5.1.4()]
//Details about finding SDL2
FIND_PACKAGE_MESSAGE_DETAILS_SDL2:INTERNAL=[-framework SDL2][/Library/Frameworks/SDL2.framework/Headers;/usr/local/include][v()]
//Details about finding SDL2_image
FIND_PACKAGE_MESSAGE_DETAILS_SDL2_image:INTERNAL=[/Library/Frameworks/SDL2_image.framework][/Library/Frameworks/SDL2_image.framework/Headers][v2.0.0()]
//Details about finding SDL2_mixer
FIND_PACKAGE_MESSAGE_DETAILS_SDL2_mixer:INTERNAL=[/Library/Frameworks/SDL2_mixer.framework][/Library/Frameworks/SDL2_mixer.framework/Headers][v()]
//Details about finding SDL2_net
FIND_PACKAGE_MESSAGE_DETAILS_SDL2_net:INTERNAL=[/Library/Frameworks/SDL2_net.framework][/Library/Frameworks/SDL2_net.framework/Headers][v()]
//Details about finding SDL2_ttf
FIND_PACKAGE_MESSAGE_DETAILS_SDL2_ttf:INTERNAL=[/Library/Frameworks/SDL2_ttf.framework][/Library/Frameworks/SDL2_ttf.framework/Headers][v()]
//ADVANCED property for variable: LUA52_INCLUDE_DIR
LUA52_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: LUA52_LIBRARIES
LUA52_LIBRARIES-ADVANCED:INTERNAL=1
//ADVANCED property for variable: LUA52_LIBRARY
LUA52_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_IMAGE_INCLUDE_DIR
SDL2_IMAGE_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_IMAGE_LIBRARY
SDL2_IMAGE_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_MIXER_INCLUDE_DIR
SDL2_MIXER_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_MIXER_LIBRARY
SDL2_MIXER_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_NET_INCLUDE_DIR
SDL2_NET_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_NET_LIBRARY
SDL2_NET_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_TTF_INCLUDE_DIR
SDL2_TTF_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: SDL2_TTF_LIBRARY
SDL2_TTF_LIBRARY-ADVANCED:INTERNAL=1
SDL_LIBRARY_TEMP:INTERNAL=-framework Cocoa
//Have symbol CIRCLEQ_HEAD
SYSQUEUE_CIRCLEQ:INTERNAL=1
//Have symbol CIRCLEQ_FOREACH
SYSQUEUE_CIRCLEQ_FOREACH:INTERNAL=1
//Have symbol CIRCLEQ_FOREACH_SAFE
SYSQUEUE_CIRCLEQ_FOREACH_SAFE:INTERNAL=
//Have include sys/queue.h
SYSQUEUE_FOUND:INTERNAL=1
//Have symbol LIST_HEAD
SYSQUEUE_LIST:INTERNAL=1
//Have symbol LIST_FOREACH
SYSQUEUE_LIST_FOREACH:INTERNAL=1
//Have symbol LIST_FOREACH_SAFE
SYSQUEUE_LIST_FOREACH_SAFE:INTERNAL=1
//Have symbol SIMPLEQ_HEAD
SYSQUEUE_SIMPLEQ:INTERNAL=
//Have symbol SLIST_HEAD
SYSQUEUE_SLIST:INTERNAL=1
//Have symbol SLIST_FOREACH
SYSQUEUE_SLIST_FOREACH:INTERNAL=1
//Have symbol SLIST_FOREACH_SAFE
SYSQUEUE_SLIST_FOREACH_SAFE:INTERNAL=1
//Have symbol STAILQ_HEAD
SYSQUEUE_STAILQ:INTERNAL=1
//Have symbol STAILQ_FOREACH
SYSQUEUE_STAILQ_FOREACH:INTERNAL=1
//Have symbol STAILQ_FOREACH_SAFE
SYSQUEUE_STAILQ_FOREACH_SAFE:INTERNAL=1
//Have symbol TAILQ_HEAD
SYSQUEUE_TAILQ:INTERNAL=1
//Have symbol TAILQ_FOREACH
SYSQUEUE_TAILQ_FOREACH:INTERNAL=1
//Have symbol TAILQ_FOREACH_SAFE
SYSQUEUE_TAILQ_FOREACH_SAFE:INTERNAL=1
Tangent128 commented 9 years ago

(tip: use ``` above and below a paste to format it nicer)

ld: framework not found SDL2

Hmm... That's confusing...

You have /Library/Frameworks/SDL2_image.framework, but not /Library/Frameworks/SDL2.framework, if I'm reading things right?

lewislepton commented 9 years ago

thanks. i just couldnt remember how the posting works in github. so thanks ;)

yeah. that is weird. i mean, really weird. here is a screenshot of my frameworks, which live in the main library/frameworks folder. so you can se it has everything in that is needed

frameworks

lewislepton commented 9 years ago

to add. this SDL2.framework was built from source. its in 64bit also. as said in a previous post, i did do a 32bit version but that also came up the same. lastly. i just tried using a pre-built binary, and that is the same outcome

lewislepton commented 9 years ago

this is what spat out on the terminal using the pre-built binary. and it does show that the SDL2.framework is being found. you can see it finds it when i do cmake .. again after changing the framework cocoa to SDL2

its weird

lepton:_build_ lepton$ cmake ..
-- The C compiler identification is Clang 6.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found SDL2: -framework Cocoa  
-- Found Lua52: /usr/local/lib/liblua.a  
-- Looking for sys/queue.h
-- Looking for sys/queue.h - found
-- Looking for SLIST_HEAD
-- Looking for SLIST_HEAD - found
-- Looking for SLIST_FOREACH
-- Looking for SLIST_FOREACH - found
-- Looking for SLIST_FOREACH_SAFE
-- Looking for SLIST_FOREACH_SAFE - found
-- Looking for STAILQ_HEAD
-- Looking for STAILQ_HEAD - found
-- Looking for STAILQ_FOREACH
-- Looking for STAILQ_FOREACH - found
-- Looking for STAILQ_FOREACH_SAFE
-- Looking for STAILQ_FOREACH_SAFE - found
-- Looking for LIST_HEAD
-- Looking for LIST_HEAD - found
-- Looking for LIST_FOREACH
-- Looking for LIST_FOREACH - found
-- Looking for LIST_FOREACH_SAFE
-- Looking for LIST_FOREACH_SAFE - found
-- Looking for TAILQ_HEAD
-- Looking for TAILQ_HEAD - found
-- Looking for TAILQ_FOREACH
-- Looking for TAILQ_FOREACH - found
-- Looking for TAILQ_FOREACH_SAFE
-- Looking for TAILQ_FOREACH_SAFE - found
-- Looking for SIMPLEQ_HEAD
-- Looking for SIMPLEQ_HEAD - not found
-- Looking for CIRCLEQ_HEAD
-- Looking for CIRCLEQ_HEAD - found
-- Looking for CIRCLEQ_FOREACH
-- Looking for CIRCLEQ_FOREACH - found
-- Looking for CIRCLEQ_FOREACH_SAFE
-- Looking for CIRCLEQ_FOREACH_SAFE - not found
-- The CXX compiler identification is Clang 6.1.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SDL2_image: /Library/Frameworks/SDL2_image.framework (found version "2.0.0") 
-- Found SDL2_mixer: /Library/Frameworks/SDL2_mixer.framework  
-- Found SDL2_ttf: /Library/Frameworks/SDL2_ttf.framework  
-- Found SDL2_net: /Library/Frameworks/SDL2_net.framework  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ cmake ..
-- Found SDL2: -framework SDL2  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ make
Scanning dependencies of target common
[  2%] Building C object common/CMakeFiles/common.dir/array.c.o
[  5%] Building C object common/CMakeFiles/common.dir/common.c.o
[  8%] Building C object common/CMakeFiles/common.dir/rwops.c.o
[ 11%] Building C object common/CMakeFiles/common.dir/surface.c.o
[ 14%] Building C object common/CMakeFiles/common.dir/table.c.o
[ 17%] Building C object common/CMakeFiles/common.dir/variant.c.o
[ 20%] Building C object common/CMakeFiles/common.dir/video.c.o
Linking C static library libcommon.a
[ 20%] Built target common
Scanning dependencies of target SDL
[ 23%] Building C object CMakeFiles/SDL.dir/src/audio.c.o
[ 26%] Building C object CMakeFiles/SDL.dir/src/channel.c.o
[ 29%] Building C object CMakeFiles/SDL.dir/src/clipboard.c.o
[ 32%] Building C object CMakeFiles/SDL.dir/src/cpu.c.o
[ 35%] Building C object CMakeFiles/SDL.dir/src/display.c.o
[ 38%] Building C object CMakeFiles/SDL.dir/src/events.c.o
[ 41%] Building C object CMakeFiles/SDL.dir/src/filesystem.c.o
[ 44%] Building C object CMakeFiles/SDL.dir/src/gamecontroller.c.o
[ 47%] Building C object CMakeFiles/SDL.dir/src/gl.c.o
[ 50%] Building C object CMakeFiles/SDL.dir/src/haptic.c.o
[ 52%] Building C object CMakeFiles/SDL.dir/src/joystick.c.o
[ 55%] Building C object CMakeFiles/SDL.dir/src/keyboard.c.o
[ 58%] Building C object CMakeFiles/SDL.dir/src/logging.c.o
[ 61%] Building C object CMakeFiles/SDL.dir/src/mouse.c.o
[ 64%] Building C object CMakeFiles/SDL.dir/src/platform.c.o
[ 67%] Building C object CMakeFiles/SDL.dir/src/power.c.o
[ 70%] Building C object CMakeFiles/SDL.dir/src/rectangle.c.o
[ 73%] Building C object CMakeFiles/SDL.dir/src/renderer.c.o
[ 76%] Building C object CMakeFiles/SDL.dir/src/SDL.c.o
[ 79%] Building C object CMakeFiles/SDL.dir/src/texture.c.o
[ 82%] Building C object CMakeFiles/SDL.dir/src/thread.c.o
[ 85%] Building C object CMakeFiles/SDL.dir/src/timer.c.o
[ 88%] Building C object CMakeFiles/SDL.dir/src/window.c.o
Linking C shared module SDL.so
ld: framework not found SDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [SDL.so] Error 1
make[1]: *** [CMakeFiles/SDL.dir/all] Error 2
make: *** [all] Error 2
Tangent128 commented 9 years ago

Even weirder, just noticed that

SDL2_INCLUDE_DIR:PATH=/Library/Frameworks/SDL2.framework/Headers

appears as expected in both CMakeCache files you pasted.

So it's finding the right folder. Looking into the FindSDL2 script in CMake, I determined that the "-framework Cocoa" is actually appended to the discovered path, so it's not inherently wrong.

Something is finding the header file, but not the library file. I wonder if maybe a filename changed on us.

Can you screencap the contents of the SDL2.framework folder, as well as the SDL2_image.framework folder?

lewislepton commented 9 years ago

here is the SDL.framework one

screen shot 2015-04-23 at 20 53 13

screen shot 2015-04-23 at 20 53 02

lewislepton commented 9 years ago

here is SDL2_image.framework

screen shot 2015-04-23 at 20 55 06

screen shot 2015-04-23 at 20 54 58

Tangent128 commented 9 years ago

I was hoping there would be some clue in their structure, but they look more or less the same layout to me...

Some things I'm seeing around the internet [1][2] suggest cmake's FindSDL2 module is a bit unreliable now...

A few things to experiment with, in no particular order:

For any of these, please make with VERBOSE=1 to show the actual compiler commands that get run.

lewislepton commented 9 years ago

this is in cmake 2.8[whatever] but it is the latest version 2. would being on version 3 help?

lewislepton commented 9 years ago

are those chonges from within FindSDL2.cmake? because i could not find CMAKE_SHARED_LINKER_FLAGS

Tangent128 commented 9 years ago

CMAKE_SHARED_LINKER_FLAGS is a built-in variable, I think you can set it with the -D option to cmake.

I do not know how cmake differs from version 2 to version 3.

lewislepton commented 9 years ago

ive not really messed deep with cmake before. so if you can help with this, that would help.

in terminal, im in the lua-SDL2 directory, say /Users/lepton/Downloads/luasdl2/. where would i put that -D when in it. do i make the _build_ folder first then try it. and if so how would it be input.

again, ive never used cmake anything further than letting it do its thing

thanks

Tangent128 commented 9 years ago

I'm actually not that experienced with cmake either, I'm learning it as I maintain this :P

Assuming _build_ (or build, or build2, or whatever you name the folder) in the project's checkout folder, then it would probably look like cmake .. -DCMAKE_SHARED_LINKER_FLAGS=-F/Library/Frameworks

lewislepton commented 9 years ago

here is the terminal output. i done cmake .. first, updated the cmakecache.txt file with framowork SDL2 then ran that cmake code just above you posted

lepton:~ lepton$ cd /Users/lepton/Downloads/luasdl2-master 
lepton:luasdl2-master lepton$ mkdir _build_
lepton:luasdl2-master lepton$ cd _build_
lepton:_build_ lepton$ cmake ..
-- The C compiler identification is Clang 6.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found SDL2: -framework Cocoa  
-- Found Lua52: /usr/local/lib/liblua.a  
-- Looking for sys/queue.h
-- Looking for sys/queue.h - found
-- Looking for SLIST_HEAD
-- Looking for SLIST_HEAD - found
-- Looking for SLIST_FOREACH
-- Looking for SLIST_FOREACH - found
-- Looking for SLIST_FOREACH_SAFE
-- Looking for SLIST_FOREACH_SAFE - found
-- Looking for STAILQ_HEAD
-- Looking for STAILQ_HEAD - found
-- Looking for STAILQ_FOREACH
-- Looking for STAILQ_FOREACH - found
-- Looking for STAILQ_FOREACH_SAFE
-- Looking for STAILQ_FOREACH_SAFE - found
-- Looking for LIST_HEAD
-- Looking for LIST_HEAD - found
-- Looking for LIST_FOREACH
-- Looking for LIST_FOREACH - found
-- Looking for LIST_FOREACH_SAFE
-- Looking for LIST_FOREACH_SAFE - found
-- Looking for TAILQ_HEAD
-- Looking for TAILQ_HEAD - found
-- Looking for TAILQ_FOREACH
-- Looking for TAILQ_FOREACH - found
-- Looking for TAILQ_FOREACH_SAFE
-- Looking for TAILQ_FOREACH_SAFE - found
-- Looking for SIMPLEQ_HEAD
-- Looking for SIMPLEQ_HEAD - not found
-- Looking for CIRCLEQ_HEAD
-- Looking for CIRCLEQ_HEAD - found
-- Looking for CIRCLEQ_FOREACH
-- Looking for CIRCLEQ_FOREACH - found
-- Looking for CIRCLEQ_FOREACH_SAFE
-- Looking for CIRCLEQ_FOREACH_SAFE - not found
-- The CXX compiler identification is Clang 6.1.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SDL2_image: /Library/Frameworks/SDL2_image.framework (found version "2.0.0") 
-- Found SDL2_mixer: /Library/Frameworks/SDL2_mixer.framework  
-- Found SDL2_ttf: /Library/Frameworks/SDL2_ttf.framework  
-- Found SDL2_net: /Library/Frameworks/SDL2_net.framework  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ cmake .. -DCMAKE_SHARED_LINKER_FLAGS=-F/Library/Frameworks
-- Found SDL2: -framework SDL2  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ make
Scanning dependencies of target common
[  2%] Building C object common/CMakeFiles/common.dir/array.c.o
[  5%] Building C object common/CMakeFiles/common.dir/common.c.o
[  8%] Building C object common/CMakeFiles/common.dir/rwops.c.o
[ 11%] Building C object common/CMakeFiles/common.dir/surface.c.o
[ 14%] Building C object common/CMakeFiles/common.dir/table.c.o
[ 17%] Building C object common/CMakeFiles/common.dir/variant.c.o
[ 20%] Building C object common/CMakeFiles/common.dir/video.c.o
Linking C static library libcommon.a
[ 20%] Built target common
Scanning dependencies of target SDL
[ 23%] Building C object CMakeFiles/SDL.dir/src/audio.c.o
[ 26%] Building C object CMakeFiles/SDL.dir/src/channel.c.o
[ 29%] Building C object CMakeFiles/SDL.dir/src/clipboard.c.o
[ 32%] Building C object CMakeFiles/SDL.dir/src/cpu.c.o
[ 35%] Building C object CMakeFiles/SDL.dir/src/display.c.o
[ 38%] Building C object CMakeFiles/SDL.dir/src/events.c.o
[ 41%] Building C object CMakeFiles/SDL.dir/src/filesystem.c.o
[ 44%] Building C object CMakeFiles/SDL.dir/src/gamecontroller.c.o
[ 47%] Building C object CMakeFiles/SDL.dir/src/gl.c.o
[ 50%] Building C object CMakeFiles/SDL.dir/src/haptic.c.o
[ 52%] Building C object CMakeFiles/SDL.dir/src/joystick.c.o
[ 55%] Building C object CMakeFiles/SDL.dir/src/keyboard.c.o
[ 58%] Building C object CMakeFiles/SDL.dir/src/logging.c.o
[ 61%] Building C object CMakeFiles/SDL.dir/src/mouse.c.o
[ 64%] Building C object CMakeFiles/SDL.dir/src/platform.c.o
[ 67%] Building C object CMakeFiles/SDL.dir/src/power.c.o
[ 70%] Building C object CMakeFiles/SDL.dir/src/rectangle.c.o
[ 73%] Building C object CMakeFiles/SDL.dir/src/renderer.c.o
[ 76%] Building C object CMakeFiles/SDL.dir/src/SDL.c.o
[ 79%] Building C object CMakeFiles/SDL.dir/src/texture.c.o
[ 82%] Building C object CMakeFiles/SDL.dir/src/thread.c.o
[ 85%] Building C object CMakeFiles/SDL.dir/src/timer.c.o
[ 88%] Building C object CMakeFiles/SDL.dir/src/window.c.o
Linking C shared module SDL.so
ld: framework not found SDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [SDL.so] Error 1
make[1]: *** [CMakeFiles/SDL.dir/all] Error 2
make: *** [all] Error 2
lewislepton commented 9 years ago

also just tried it with the cmake .. whatever``both times when first time i then change to generated cmakecache.txt to``framework cocoa``framework SDL2` same thing

lepton:luasdl2-master lepton$ mkdir _build_
lepton:luasdl2-master lepton$ cd _build_
lepton:_build_ lepton$ cmake .. -DCMAKE_SHARED_LINKER_FLAGS=-F/Library/Frameworks
-- The C compiler identification is Clang 6.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found SDL2: -framework Cocoa  
-- Found Lua52: /usr/local/lib/liblua.a  
-- Looking for sys/queue.h
-- Looking for sys/queue.h - found
-- Looking for SLIST_HEAD
-- Looking for SLIST_HEAD - found
-- Looking for SLIST_FOREACH
-- Looking for SLIST_FOREACH - found
-- Looking for SLIST_FOREACH_SAFE
-- Looking for SLIST_FOREACH_SAFE - found
-- Looking for STAILQ_HEAD
-- Looking for STAILQ_HEAD - found
-- Looking for STAILQ_FOREACH
-- Looking for STAILQ_FOREACH - found
-- Looking for STAILQ_FOREACH_SAFE
-- Looking for STAILQ_FOREACH_SAFE - found
-- Looking for LIST_HEAD
-- Looking for LIST_HEAD - found
-- Looking for LIST_FOREACH
-- Looking for LIST_FOREACH - found
-- Looking for LIST_FOREACH_SAFE
-- Looking for LIST_FOREACH_SAFE - found
-- Looking for TAILQ_HEAD
-- Looking for TAILQ_HEAD - found
-- Looking for TAILQ_FOREACH
-- Looking for TAILQ_FOREACH - found
-- Looking for TAILQ_FOREACH_SAFE
-- Looking for TAILQ_FOREACH_SAFE - found
-- Looking for SIMPLEQ_HEAD
-- Looking for SIMPLEQ_HEAD - not found
-- Looking for CIRCLEQ_HEAD
-- Looking for CIRCLEQ_HEAD - found
-- Looking for CIRCLEQ_FOREACH
-- Looking for CIRCLEQ_FOREACH - found
-- Looking for CIRCLEQ_FOREACH_SAFE
-- Looking for CIRCLEQ_FOREACH_SAFE - not found
-- The CXX compiler identification is Clang 6.1.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SDL2_image: /Library/Frameworks/SDL2_image.framework (found version "2.0.0") 
-- Found SDL2_mixer: /Library/Frameworks/SDL2_mixer.framework  
-- Found SDL2_ttf: /Library/Frameworks/SDL2_ttf.framework  
-- Found SDL2_net: /Library/Frameworks/SDL2_net.framework  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ cmake .. -DCMAKE_SHARED_LINKER_FLAGS=-F/Library/Frameworks
-- Found SDL2: -framework SDL2  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ make
Scanning dependencies of target common
[  2%] Building C object common/CMakeFiles/common.dir/array.c.o
[  5%] Building C object common/CMakeFiles/common.dir/common.c.o
[  8%] Building C object common/CMakeFiles/common.dir/rwops.c.o
[ 11%] Building C object common/CMakeFiles/common.dir/surface.c.o
[ 14%] Building C object common/CMakeFiles/common.dir/table.c.o
[ 17%] Building C object common/CMakeFiles/common.dir/variant.c.o
[ 20%] Building C object common/CMakeFiles/common.dir/video.c.o
Linking C static library libcommon.a
[ 20%] Built target common
Scanning dependencies of target SDL
[ 23%] Building C object CMakeFiles/SDL.dir/src/audio.c.o
[ 26%] Building C object CMakeFiles/SDL.dir/src/channel.c.o
[ 29%] Building C object CMakeFiles/SDL.dir/src/clipboard.c.o
[ 32%] Building C object CMakeFiles/SDL.dir/src/cpu.c.o
[ 35%] Building C object CMakeFiles/SDL.dir/src/display.c.o
[ 38%] Building C object CMakeFiles/SDL.dir/src/events.c.o
[ 41%] Building C object CMakeFiles/SDL.dir/src/filesystem.c.o
[ 44%] Building C object CMakeFiles/SDL.dir/src/gamecontroller.c.o
[ 47%] Building C object CMakeFiles/SDL.dir/src/gl.c.o
[ 50%] Building C object CMakeFiles/SDL.dir/src/haptic.c.o
[ 52%] Building C object CMakeFiles/SDL.dir/src/joystick.c.o
[ 55%] Building C object CMakeFiles/SDL.dir/src/keyboard.c.o
[ 58%] Building C object CMakeFiles/SDL.dir/src/logging.c.o
[ 61%] Building C object CMakeFiles/SDL.dir/src/mouse.c.o
[ 64%] Building C object CMakeFiles/SDL.dir/src/platform.c.o
[ 67%] Building C object CMakeFiles/SDL.dir/src/power.c.o
[ 70%] Building C object CMakeFiles/SDL.dir/src/rectangle.c.o
[ 73%] Building C object CMakeFiles/SDL.dir/src/renderer.c.o
[ 76%] Building C object CMakeFiles/SDL.dir/src/SDL.c.o
[ 79%] Building C object CMakeFiles/SDL.dir/src/texture.c.o
[ 82%] Building C object CMakeFiles/SDL.dir/src/thread.c.o
[ 85%] Building C object CMakeFiles/SDL.dir/src/timer.c.o
[ 88%] Building C object CMakeFiles/SDL.dir/src/window.c.o
Linking C shared module SDL.so
ld: framework not found SDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [SDL.so] Error 1
make[1]: *** [CMakeFiles/SDL.dir/all] Error 2
make: *** [all] Error 2
Tangent128 commented 9 years ago

Can you use make VERBOSE=1 instead of make? I get more debug output that way, most importantly including the actual commands that get run.

And have you had any success in compiling any other programs using SDL2?

lewislepton commented 9 years ago

no, have not used SDL in other ways in its own. except actually trying it in xcode, running a window. which worked. but you have to do a type of import by linking it

here is the output fromcmake VERBOSE=1

lepton:~ lepton$ cd /Users/lepton/Downloads/luasdl2-master 
lepton:luasdl2-master lepton$ mkdir _build_
lepton:luasdl2-master lepton$ cd _build_
lepton:_build_ lepton$ cmake ..
-- The C compiler identification is Clang 6.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found SDL2: -framework Cocoa  
-- Found Lua52: /usr/local/lib/liblua.a  
-- Looking for sys/queue.h
-- Looking for sys/queue.h - found
-- Looking for SLIST_HEAD
-- Looking for SLIST_HEAD - found
-- Looking for SLIST_FOREACH
-- Looking for SLIST_FOREACH - found
-- Looking for SLIST_FOREACH_SAFE
-- Looking for SLIST_FOREACH_SAFE - found
-- Looking for STAILQ_HEAD
-- Looking for STAILQ_HEAD - found
-- Looking for STAILQ_FOREACH
-- Looking for STAILQ_FOREACH - found
-- Looking for STAILQ_FOREACH_SAFE
-- Looking for STAILQ_FOREACH_SAFE - found
-- Looking for LIST_HEAD
-- Looking for LIST_HEAD - found
-- Looking for LIST_FOREACH
-- Looking for LIST_FOREACH - found
-- Looking for LIST_FOREACH_SAFE
-- Looking for LIST_FOREACH_SAFE - found
-- Looking for TAILQ_HEAD
-- Looking for TAILQ_HEAD - found
-- Looking for TAILQ_FOREACH
-- Looking for TAILQ_FOREACH - found
-- Looking for TAILQ_FOREACH_SAFE
-- Looking for TAILQ_FOREACH_SAFE - found
-- Looking for SIMPLEQ_HEAD
-- Looking for SIMPLEQ_HEAD - not found
-- Looking for CIRCLEQ_HEAD
-- Looking for CIRCLEQ_HEAD - found
-- Looking for CIRCLEQ_FOREACH
-- Looking for CIRCLEQ_FOREACH - found
-- Looking for CIRCLEQ_FOREACH_SAFE
-- Looking for CIRCLEQ_FOREACH_SAFE - not found
-- The CXX compiler identification is Clang 6.1.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SDL2_image: /Library/Frameworks/SDL2_image.framework (found version "2.0.0") 
-- Found SDL2_mixer: /Library/Frameworks/SDL2_mixer.framework  
-- Found SDL2_ttf: /Library/Frameworks/SDL2_ttf.framework  
-- Found SDL2_net: /Library/Frameworks/SDL2_net.framework  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ cmake ..
-- Found SDL2: -framework SDL2  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ make VERBOSE=1
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -H/Users/lepton/Downloads/luasdl2-master -B/Users/lepton/Downloads/luasdl2-master/_build_ --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_start /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/common /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/common /Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/DependInfo.cmake --color=
Dependee "/Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/DependInfo.cmake" is newer than depender "/Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/depend.internal".
Dependee "/Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/depend.internal".
Scanning dependencies of target common
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/build
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 24
[  2%] Building C object common/CMakeFiles/common.dir/array.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/array.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/array.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 25
[  5%] Building C object common/CMakeFiles/common.dir/common.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/common.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/common.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 26
[  8%] Building C object common/CMakeFiles/common.dir/rwops.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/rwops.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/rwops.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 27
[ 11%] Building C object common/CMakeFiles/common.dir/surface.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/surface.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/surface.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 28
[ 14%] Building C object common/CMakeFiles/common.dir/table.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/table.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/table.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 29
[ 17%] Building C object common/CMakeFiles/common.dir/variant.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/variant.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/variant.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 30
[ 20%] Building C object common/CMakeFiles/common.dir/video.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && /usr/bin/cc   -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/common.dir/video.c.o   -c /Users/lepton/Downloads/luasdl2-master/common/video.c
Linking C static library libcommon.a
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -P CMakeFiles/common.dir/cmake_clean_target.cmake
cd /Users/lepton/Downloads/luasdl2-master/_build_/common && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/common.dir/link.txt --verbose=1
/usr/bin/ar cr libcommon.a  CMakeFiles/common.dir/array.c.o CMakeFiles/common.dir/common.c.o CMakeFiles/common.dir/rwops.c.o CMakeFiles/common.dir/surface.c.o CMakeFiles/common.dir/table.c.o CMakeFiles/common.dir/variant.c.o CMakeFiles/common.dir/video.c.o
/usr/bin/ranlib libcommon.a
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles  24 25 26 27 28 29 30
[ 20%] Built target common
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/SDL.dir/build.make CMakeFiles/SDL.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/SDL.dir/DependInfo.cmake --color=
Dependee "/Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/SDL.dir/DependInfo.cmake" is newer than depender "/Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/SDL.dir/depend.internal".
Dependee "/Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/SDL.dir/depend.internal".
Scanning dependencies of target SDL
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/SDL.dir/build.make CMakeFiles/SDL.dir/build
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 1
[ 23%] Building C object CMakeFiles/SDL.dir/src/audio.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/audio.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/audio.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 2
[ 26%] Building C object CMakeFiles/SDL.dir/src/channel.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/channel.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/channel.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 3
[ 29%] Building C object CMakeFiles/SDL.dir/src/clipboard.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/clipboard.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/clipboard.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 4
[ 32%] Building C object CMakeFiles/SDL.dir/src/cpu.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/cpu.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/cpu.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 5
[ 35%] Building C object CMakeFiles/SDL.dir/src/display.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/display.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/display.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 6
[ 38%] Building C object CMakeFiles/SDL.dir/src/events.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/events.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/events.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 7
[ 41%] Building C object CMakeFiles/SDL.dir/src/filesystem.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/filesystem.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/filesystem.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 8
[ 44%] Building C object CMakeFiles/SDL.dir/src/gamecontroller.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/gamecontroller.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/gamecontroller.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 9
[ 47%] Building C object CMakeFiles/SDL.dir/src/gl.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/gl.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/gl.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 10
[ 50%] Building C object CMakeFiles/SDL.dir/src/haptic.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/haptic.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/haptic.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 11
[ 52%] Building C object CMakeFiles/SDL.dir/src/joystick.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/joystick.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/joystick.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 12
[ 55%] Building C object CMakeFiles/SDL.dir/src/keyboard.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/keyboard.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/keyboard.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 13
[ 58%] Building C object CMakeFiles/SDL.dir/src/logging.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/logging.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/logging.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 14
[ 61%] Building C object CMakeFiles/SDL.dir/src/mouse.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/mouse.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/mouse.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 15
[ 64%] Building C object CMakeFiles/SDL.dir/src/platform.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/platform.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/platform.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 16
[ 67%] Building C object CMakeFiles/SDL.dir/src/power.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/power.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/power.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 17
[ 70%] Building C object CMakeFiles/SDL.dir/src/rectangle.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/rectangle.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/rectangle.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 18
[ 73%] Building C object CMakeFiles/SDL.dir/src/renderer.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/renderer.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/renderer.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 19
[ 76%] Building C object CMakeFiles/SDL.dir/src/SDL.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/SDL.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/SDL.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 20
[ 79%] Building C object CMakeFiles/SDL.dir/src/texture.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/texture.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/texture.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 21
[ 82%] Building C object CMakeFiles/SDL.dir/src/thread.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/thread.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/thread.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 22
[ 85%] Building C object CMakeFiles/SDL.dir/src/timer.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/timer.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/timer.c
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 23
[ 88%] Building C object CMakeFiles/SDL.dir/src/window.c.o
/usr/bin/cc  -DSDL_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master    -o CMakeFiles/SDL.dir/src/window.c.o   -c /Users/lepton/Downloads/luasdl2-master/src/window.c
Linking C shared module SDL.so
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/SDL.dir/link.txt --verbose=1
/usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names   -o SDL.so CMakeFiles/SDL.dir/src/audio.c.o CMakeFiles/SDL.dir/src/channel.c.o CMakeFiles/SDL.dir/src/clipboard.c.o CMakeFiles/SDL.dir/src/cpu.c.o CMakeFiles/SDL.dir/src/display.c.o CMakeFiles/SDL.dir/src/events.c.o CMakeFiles/SDL.dir/src/filesystem.c.o CMakeFiles/SDL.dir/src/gamecontroller.c.o CMakeFiles/SDL.dir/src/gl.c.o CMakeFiles/SDL.dir/src/haptic.c.o CMakeFiles/SDL.dir/src/joystick.c.o CMakeFiles/SDL.dir/src/keyboard.c.o CMakeFiles/SDL.dir/src/logging.c.o CMakeFiles/SDL.dir/src/mouse.c.o CMakeFiles/SDL.dir/src/platform.c.o CMakeFiles/SDL.dir/src/power.c.o CMakeFiles/SDL.dir/src/rectangle.c.o CMakeFiles/SDL.dir/src/renderer.c.o CMakeFiles/SDL.dir/src/SDL.c.o CMakeFiles/SDL.dir/src/texture.c.o CMakeFiles/SDL.dir/src/thread.c.o CMakeFiles/SDL.dir/src/timer.c.o CMakeFiles/SDL.dir/src/window.c.o common/libcommon.a -framework SDL2 
ld: framework not found SDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [SDL.so] Error 1
make[1]: *** [CMakeFiles/SDL.dir/all] Error 2
make: *** [all] Error 2
Tangent128 commented 9 years ago

Hmm... it's going to take some digging to figure out what is going on with cmake.

For now, let's make an attempt at finishing the build manually. Everything looked good up to the final link command:

/usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names   -o SDL.so CMakeFiles/SDL.dir/src/audio.c.o CMakeFiles/SDL.dir/src/channel.c.o CMakeFiles/SDL.dir/src/clipboard.c.o CMakeFiles/SDL.dir/src/cpu.c.o CMakeFiles/SDL.dir/src/display.c.o CMakeFiles/SDL.dir/src/events.c.o CMakeFiles/SDL.dir/src/filesystem.c.o CMakeFiles/SDL.dir/src/gamecontroller.c.o CMakeFiles/SDL.dir/src/gl.c.o CMakeFiles/SDL.dir/src/haptic.c.o CMakeFiles/SDL.dir/src/joystick.c.o CMakeFiles/SDL.dir/src/keyboard.c.o CMakeFiles/SDL.dir/src/logging.c.o CMakeFiles/SDL.dir/src/mouse.c.o CMakeFiles/SDL.dir/src/platform.c.o CMakeFiles/SDL.dir/src/power.c.o CMakeFiles/SDL.dir/src/rectangle.c.o CMakeFiles/SDL.dir/src/renderer.c.o CMakeFiles/SDL.dir/src/SDL.c.o CMakeFiles/SDL.dir/src/texture.c.o CMakeFiles/SDL.dir/src/thread.c.o CMakeFiles/SDL.dir/src/timer.c.o CMakeFiles/SDL.dir/src/window.c.o common/libcommon.a -framework SDL2 

So try to manually run (from the same build folder you've been using) this edited version of the command:

/usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names  -F/Library/Frameworks -o SDL.so CMakeFiles/SDL.dir/src/audio.c.o CMakeFiles/SDL.dir/src/channel.c.o CMakeFiles/SDL.dir/src/clipboard.c.o CMakeFiles/SDL.dir/src/cpu.c.o CMakeFiles/SDL.dir/src/display.c.o CMakeFiles/SDL.dir/src/events.c.o CMakeFiles/SDL.dir/src/filesystem.c.o CMakeFiles/SDL.dir/src/gamecontroller.c.o CMakeFiles/SDL.dir/src/gl.c.o CMakeFiles/SDL.dir/src/haptic.c.o CMakeFiles/SDL.dir/src/joystick.c.o CMakeFiles/SDL.dir/src/keyboard.c.o CMakeFiles/SDL.dir/src/logging.c.o CMakeFiles/SDL.dir/src/mouse.c.o CMakeFiles/SDL.dir/src/platform.c.o CMakeFiles/SDL.dir/src/power.c.o CMakeFiles/SDL.dir/src/rectangle.c.o CMakeFiles/SDL.dir/src/renderer.c.o CMakeFiles/SDL.dir/src/SDL.c.o CMakeFiles/SDL.dir/src/texture.c.o CMakeFiles/SDL.dir/src/thread.c.o CMakeFiles/SDL.dir/src/timer.c.o CMakeFiles/SDL.dir/src/window.c.o common/libcommon.a -framework SDL2 -framework Cocoa

(edited version adds -F/Library/Frameworks near the start, since apparently newer OSX compilers don't search it by default, as well as adding -framework Cocoa to the end just in case)

lewislepton commented 9 years ago

so the second one will be put into where? the cmakecache.txt file?

lewislepton commented 9 years ago

also should i keep changing the framework Cocoa to framework SDL2 in cmakecache.txt?

lewislepton commented 9 years ago

ah sorry did you mean use /usr/bin/cc -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names -F/Library/Frameworks -o SDL.so CMakeFiles/SDL.dir/src/audio.c.o CMakeFiles/SDL.dir/src/channel.c.o CMakeFiles/SDL.dir/src/clipboard.c.o CMakeFiles/SDL.dir/src/cpu.c.o CMakeFiles/SDL.dir/src/display.c.o CMakeFiles/SDL.dir/src/events.c.o CMakeFiles/SDL.dir/src/filesystem.c.o CMakeFiles/SDL.dir/src/gamecontroller.c.o CMakeFiles/SDL.dir/src/gl.c.o CMakeFiles/SDL.dir/src/haptic.c.o CMakeFiles/SDL.dir/src/joystick.c.o CMakeFiles/SDL.dir/src/keyboard.c.o CMakeFiles/SDL.dir/src/logging.c.o CMakeFiles/SDL.dir/src/mouse.c.o CMakeFiles/SDL.dir/src/platform.c.o CMakeFiles/SDL.dir/src/power.c.o CMakeFiles/SDL.dir/src/rectangle.c.o CMakeFiles/SDL.dir/src/renderer.c.o CMakeFiles/SDL.dir/src/SDL.c.o CMakeFiles/SDL.dir/src/texture.c.o CMakeFiles/SDL.dir/src/thread.c.o CMakeFiles/SDL.dir/src/timer.c.o CMakeFiles/SDL.dir/src/window.c.o common/libcommon.a -framework SDL2 -framework Cocoa in the terminal/command line just before using make?

Tangent128 commented 9 years ago

I mean, after make runs and fails, run the modified command. (Cmake is setting up the Makefile wrong for whatever reason, so I'm hoping it's only slightly wrong and we can manually finish it)

lewislepton commented 9 years ago

here is the output. starts that i use make then i do the second code

lepton:_build_ lepton$ make
Scanning dependencies of target common
[  2%] Building C object common/CMakeFiles/common.dir/array.c.o
[  5%] Building C object common/CMakeFiles/common.dir/common.c.o
[  8%] Building C object common/CMakeFiles/common.dir/rwops.c.o
[ 11%] Building C object common/CMakeFiles/common.dir/surface.c.o
[ 14%] Building C object common/CMakeFiles/common.dir/table.c.o
[ 17%] Building C object common/CMakeFiles/common.dir/variant.c.o
[ 20%] Building C object common/CMakeFiles/common.dir/video.c.o
Linking C static library libcommon.a
[ 20%] Built target common
Scanning dependencies of target SDL
[ 23%] Building C object CMakeFiles/SDL.dir/src/audio.c.o
[ 26%] Building C object CMakeFiles/SDL.dir/src/channel.c.o
[ 29%] Building C object CMakeFiles/SDL.dir/src/clipboard.c.o
[ 32%] Building C object CMakeFiles/SDL.dir/src/cpu.c.o
[ 35%] Building C object CMakeFiles/SDL.dir/src/display.c.o
[ 38%] Building C object CMakeFiles/SDL.dir/src/events.c.o
[ 41%] Building C object CMakeFiles/SDL.dir/src/filesystem.c.o
[ 44%] Building C object CMakeFiles/SDL.dir/src/gamecontroller.c.o
[ 47%] Building C object CMakeFiles/SDL.dir/src/gl.c.o
[ 50%] Building C object CMakeFiles/SDL.dir/src/haptic.c.o
[ 52%] Building C object CMakeFiles/SDL.dir/src/joystick.c.o
[ 55%] Building C object CMakeFiles/SDL.dir/src/keyboard.c.o
[ 58%] Building C object CMakeFiles/SDL.dir/src/logging.c.o
[ 61%] Building C object CMakeFiles/SDL.dir/src/mouse.c.o
[ 64%] Building C object CMakeFiles/SDL.dir/src/platform.c.o
[ 67%] Building C object CMakeFiles/SDL.dir/src/power.c.o
[ 70%] Building C object CMakeFiles/SDL.dir/src/rectangle.c.o
[ 73%] Building C object CMakeFiles/SDL.dir/src/renderer.c.o
[ 76%] Building C object CMakeFiles/SDL.dir/src/SDL.c.o
[ 79%] Building C object CMakeFiles/SDL.dir/src/texture.c.o
[ 82%] Building C object CMakeFiles/SDL.dir/src/thread.c.o
[ 85%] Building C object CMakeFiles/SDL.dir/src/timer.c.o
[ 88%] Building C object CMakeFiles/SDL.dir/src/window.c.o
Linking C shared module SDL.so
ld: framework not found SDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [SDL.so] Error 1
make[1]: *** [CMakeFiles/SDL.dir/all] Error 2
make: *** [all] Error 2
lepton:_build_ lepton$ /usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names  -F/Library/Frameworks -o SDL.so CMakeFiles/SDL.dir/src/audio.c.o CMakeFiles/SDL.dir/src/channel.c.o CMakeFiles/SDL.dir/src/clipboard.c.o CMakeFiles/SDL.dir/src/cpu.c.o CMakeFiles/SDL.dir/src/display.c.o CMakeFiles/SDL.dir/src/events.c.o CMakeFiles/SDL.dir/src/filesystem.c.o CMakeFiles/SDL.dir/src/gamecontroller.c.o CMakeFiles/SDL.dir/src/gl.c.o CMakeFiles/SDL.dir/src/haptic.c.o CMakeFiles/SDL.dir/src/joystick.c.o CMakeFiles/SDL.dir/src/keyboard.c.o CMakeFiles/SDL.dir/src/logging.c.o CMakeFiles/SDL.dir/src/mouse.c.o CMakeFiles/SDL.dir/src/platform.c.o CMakeFiles/SDL.dir/src/power.c.o CMakeFiles/SDL.dir/src/rectangle.c.o CMakeFiles/SDL.dir/src/renderer.c.o CMakeFiles/SDL.dir/src/SDL.c.o CMakeFiles/SDL.dir/src/texture.c.o CMakeFiles/SDL.dir/src/thread.c.o CMakeFiles/SDL.dir/src/timer.c.o CMakeFiles/SDL.dir/src/window.c.o common/libcommon.a -framework SDL2 -framework Cocoa
Undefined symbols for architecture x86_64:
  "_luaL_checkinteger", referenced from:
      _l_getAudioDeviceName in audio.c.o
      _l_getAudioDriver in audio.c.o
      _mixAudio in audio.c.o
      _l_video_getClosestDisplayMode in display.c.o
      _l_video_getCurrentDisplayMode in display.c.o
      _l_video_getDesktopDisplayMode in display.c.o
      _l_video_getDisplayBounds in display.c.o
      ...
  "_luaL_checklstring", referenced from:
      _l_audioInit in audio.c.o
      _openAudio in audio.c.o
      _mixAudio in audio.c.o
      _loadWAV in audio.c.o
      _l_channel_get in channel.c.o
      _l_video_setClipboardText in clipboard.c.o
      _l_video_init in display.c.o
      ...
  "_luaL_checknumber", referenced from:
      _l_haptic_rumblePlay in haptic.c.o
      _l_window_setBrightness in window.c.o
  "_luaL_checktype", referenced from:
      _audioGetCVT in audio.c.o
      _openAudio in audio.c.o
      _l_event_filterEvents in events.c.o
      _eventAddFilter in events.c.o
      _getEffect in haptic.c.o
      _l_logSetOutputFunction in logging.c.o
      _l_enclosePoints in rectangle.c.o
      ...
  "_luaL_checkudata", referenced from:
      _commonGetUserdata in libcommon.a(common.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
  "_luaL_error", referenced from:
      _audioGetCVT in audio.c.o
      _getEffect in haptic.c.o
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _keysIndex in keyboard.c.o
      ...
  "_luaL_loadfilex", referenced from:
      _openAudio in audio.c.o
      _loadfile in thread.c.o
  "_luaL_newmetatable", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
  "_luaL_newstate", referenced from:
      _openAudio in audio.c.o
      _l_thread_create in thread.c.o
      _l_addTimer in timer.c.o
  "_luaL_openlibs", referenced from:
      _openAudio in audio.c.o
      _l_thread_create in thread.c.o
      _l_addTimer in timer.c.o
  "_luaL_optinteger", referenced from:
      _l_glSetSwapInterval in gl.c.o
  "_luaL_ref", referenced from:
      _openAudio in audio.c.o
      _l_event_filterEvents in events.c.o
      _eventAddFilter in events.c.o
      _l_logSetOutputFunction in logging.c.o
      _l_addTimer in timer.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
  "_luaL_setfuncs", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
      _commonBindLibrary in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
  "_luaL_setmetatable", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_luaL_unref", referenced from:
      _openAudio in audio.c.o
      _l_event_filterEvents in events.c.o
      _l_filter_gc in events.c.o
      _l_logSetOutputFunction in logging.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_rw_gc in libcommon.a(rwops.c.o)
  "_lua_callk", referenced from:
      _eventFilter in events.c.o
      _loggingCustomOutput in logging.c.o
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      ...
  "_lua_close", referenced from:
      _l_audiodev_gc in audio.c.o
      _openAudio in audio.c.o
      _l_thread_create in thread.c.o
      _destroy in thread.c.o
      _l_addTimer in timer.c.o
      _l_timer_gc in timer.c.o
  "_lua_createtable", referenced from:
      _audioPushCVT in audio.c.o
      _loadWAV in audio.c.o
      _l_event_peepEvents in events.c.o
      _eventPush in events.c.o
      _pushKey in events.c.o
      _l_getKeyboardState in keyboard.c.o
      _pushRendererInfo in renderer.c.o
      ...
  "_lua_dump", referenced from:
      _loadfunction in thread.c.o
  "_lua_getfield", referenced from:
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _getDirection in haptic.c.o
      _l_renderer_copyEx in renderer.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
      ...
  "_lua_gettop", referenced from:
      _mixAudio in audio.c.o
      _l_video_init in display.c.o
      _l_event_peepEvents in events.c.o
      _l_event_waitEvent in events.c.o
      _l_enclosePoints in rectangle.c.o
      _l_renderer_copy in renderer.c.o
      _l_quitSubSystem in SDL.c.o
      ...
  "_lua_load", referenced from:
      _loadfunction in thread.c.o
  "_lua_newuserdata", referenced from:
      _l_getKeyboardState in keyboard.c.o
      _commonPushUserdata in libcommon.a(common.c.o)
  "_lua_next", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _variantGet in libcommon.a(variant.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pcallk", referenced from:
      _openAudio in audio.c.o
      _audioCallback in audio.c.o
      _callback in thread.c.o
      _timerCallback in timer.c.o
  "_lua_pushboolean", referenced from:
      _l_enclosePoints in rectangle.c.o
      _l_intersectRect in rectangle.c.o
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetBool in libcommon.a(table.c.o)
      _variantPush in libcommon.a(variant.c.o)
  "_lua_pushcclosure", referenced from:
      _l_event_pollEvent in events.c.o
      _l_getKeyboardState in keyboard.c.o
  "_lua_pushfstring", referenced from:
      _l_audiodev_tostring in audio.c.o
      _l_filter_tostring in events.c.o
      _l_gamectl_tostring in gamecontroller.c.o
      _l_joystick_tostring in joystick.c.o
      _l_renderer_tostring in renderer.c.o
      _l_texture_tostring in texture.c.o
      _l_thread_tostring in thread.c.o
      ...
  "_lua_pushinteger", referenced from:
      _audioCallback in audio.c.o
      _eventPush in events.c.o
      _loggingCustomOutput in logging.c.o
      _l_getMouseState in mouse.c.o
      _l_getRelativeMouseState in mouse.c.o
      _l_getPowerInfo in power.c.o
      _pushRendererInfo in renderer.c.o
      ...
  "_lua_pushlstring", referenced from:
      _audioPushCVT in audio.c.o
      _mixAudio in audio.c.o
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
      _variantPush in libcommon.a(variant.c.o)
  "_lua_pushnil", referenced from:
      _l_channel_first in channel.c.o
      _l_channel_last in channel.c.o
      _l_channel_wait in channel.c.o
      _l_video_getCurrentVideoDriver in display.c.o
      _l_logGetOutputFunction in logging.c.o
      _l_getHint in SDL.c.o
      _commonGetEnum in libcommon.a(common.c.o)
      ...
  "_lua_pushnumber", referenced from:
      _commonPush in libcommon.a(common.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
      _variantPush in libcommon.a(variant.c.o)
  "_lua_pushstring", referenced from:
      _l_video_getClipboardText in clipboard.c.o
      _l_video_getCurrentVideoDriver in display.c.o
      _l_getBasePath in filesystem.c.o
      _l_getPrefPath in filesystem.c.o
      _loggingCustomOutput in logging.c.o
      _pushRendererInfo in renderer.c.o
      _l_getHint in SDL.c.o
      ...
  "_lua_pushvalue", referenced from:
      _l_event_filterEvents in events.c.o
      _eventAddFilter in events.c.o
      _l_logSetOutputFunction in logging.c.o
      _loadfunction in thread.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
  "_lua_rawgeti", referenced from:
      _audioCallback in audio.c.o
      _eventFilter in events.c.o
      _getCondition in haptic.c.o
      _getDirection in haptic.c.o
      _l_logGetOutputFunction in logging.c.o
      _loggingCustomOutput in logging.c.o
      _timerCallback in timer.c.o
      ...
  "_lua_rawseti", referenced from:
      _l_event_peepEvents in events.c.o
      _pushRendererInfo in renderer.c.o
      _l_window_getGammaRamp in window.c.o
      _commonPushEnum in libcommon.a(common.c.o)
  "_lua_setfield", referenced from:
      _audioPushCVT in audio.c.o
      _eventPush in events.c.o
      _pushKey in events.c.o
      _l_getKeyboardState in keyboard.c.o
      _pushRendererInfo in renderer.c.o
      _commonBindEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      ...
  "_lua_setmetatable", referenced from:
      _l_getKeyboardState in keyboard.c.o
  "_lua_settable", referenced from:
      _variantPush in libcommon.a(variant.c.o)
  "_lua_settop", referenced from:
      _audioCallback in audio.c.o
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _getDirection in haptic.c.o
      _l_renderer_copyEx in renderer.c.o
      ...
  "_lua_toboolean", referenced from:
      _l_getAudioDeviceName in audio.c.o
      _l_getNumAudioDevices in audio.c.o
      _l_audiodev_pause in audio.c.o
      _eventFilter in events.c.o
      _l_setRelativeMouseMode in mouse.c.o
      _l_showCursor in mouse.c.o
      _l_surface_setColorKey in libcommon.a(surface.c.o)
      ...
  "_lua_tointegerx", referenced from:
      _callback in thread.c.o
      _l_window_setGammaRamp in window.c.o
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      ...
  "_lua_tolstring", referenced from:
      _openAudio in audio.c.o
      _audioCallback in audio.c.o
      _threadDump in thread.c.o
      _loadfile in thread.c.o
      _loadfunction in thread.c.o
      _callback in thread.c.o
      _timerCallback in timer.c.o
      ...
  "_lua_tonumberx", referenced from:
      _getCondition in haptic.c.o
      _getDirection in haptic.c.o
      _timerCallback in timer.c.o
      _commonGetEnum in libcommon.a(common.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
      _variantGet in libcommon.a(variant.c.o)
  "_lua_type", referenced from:
      _openAudio in audio.c.o
      _audioCallback in audio.c.o
      _getConstant in haptic.c.o
      _getPeriodic in haptic.c.o
      _getCondition in haptic.c.o
      _getRamp in haptic.c.o
      _getDirection in haptic.c.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Tangent128 commented 9 years ago

Believe it or not, that's progress; it linked to SDL2 this time.

I believe I understand the Lua issue; there are certain compiler flags that are needed when building Lua modules to make them link properly.

I fear that they need to be added while compiling the files, in which case I have to figure out how to fix the cmake scripts before that can be sanely addressed.

But on the off chance that they can be provided at the link step, go ahead and attempt:

/usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names  -F/Library/Frameworks -undefined dynamic_lookup -o SDL.so CMakeFiles/SDL.dir/src/audio.c.o CMakeFiles/SDL.dir/src/channel.c.o CMakeFiles/SDL.dir/src/clipboard.c.o CMakeFiles/SDL.dir/src/cpu.c.o CMakeFiles/SDL.dir/src/display.c.o CMakeFiles/SDL.dir/src/events.c.o CMakeFiles/SDL.dir/src/filesystem.c.o CMakeFiles/SDL.dir/src/gamecontroller.c.o CMakeFiles/SDL.dir/src/gl.c.o CMakeFiles/SDL.dir/src/haptic.c.o CMakeFiles/SDL.dir/src/joystick.c.o CMakeFiles/SDL.dir/src/keyboard.c.o CMakeFiles/SDL.dir/src/logging.c.o CMakeFiles/SDL.dir/src/mouse.c.o CMakeFiles/SDL.dir/src/platform.c.o CMakeFiles/SDL.dir/src/power.c.o CMakeFiles/SDL.dir/src/rectangle.c.o CMakeFiles/SDL.dir/src/renderer.c.o CMakeFiles/SDL.dir/src/SDL.c.o CMakeFiles/SDL.dir/src/texture.c.o CMakeFiles/SDL.dir/src/thread.c.o CMakeFiles/SDL.dir/src/timer.c.o CMakeFiles/SDL.dir/src/window.c.o common/libcommon.a -framework SDL2 -framework Cocoa

(added -undefined dynamic_lookup to the flags)

lewislepton commented 9 years ago

done it, and it just didnt go past anywhere. here is the output

lepton:~ lepton$ cd /Users/lepton/Downloads/luasdl2-master 
lepton:luasdl2-master lepton$ mkdir _build_
lepton:luasdl2-master lepton$ cd _build_
lepton:_build_ lepton$ cmake ..
-- The C compiler identification is Clang 6.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found SDL2: -framework Cocoa  
-- Found Lua52: /usr/local/lib/liblua.a  
-- Looking for sys/queue.h
-- Looking for sys/queue.h - found
-- Looking for SLIST_HEAD
-- Looking for SLIST_HEAD - found
-- Looking for SLIST_FOREACH
-- Looking for SLIST_FOREACH - found
-- Looking for SLIST_FOREACH_SAFE
-- Looking for SLIST_FOREACH_SAFE - found
-- Looking for STAILQ_HEAD
-- Looking for STAILQ_HEAD - found
-- Looking for STAILQ_FOREACH
-- Looking for STAILQ_FOREACH - found
-- Looking for STAILQ_FOREACH_SAFE
-- Looking for STAILQ_FOREACH_SAFE - found
-- Looking for LIST_HEAD
-- Looking for LIST_HEAD - found
-- Looking for LIST_FOREACH
-- Looking for LIST_FOREACH - found
-- Looking for LIST_FOREACH_SAFE
-- Looking for LIST_FOREACH_SAFE - found
-- Looking for TAILQ_HEAD
-- Looking for TAILQ_HEAD - found
-- Looking for TAILQ_FOREACH
-- Looking for TAILQ_FOREACH - found
-- Looking for TAILQ_FOREACH_SAFE
-- Looking for TAILQ_FOREACH_SAFE - found
-- Looking for SIMPLEQ_HEAD
-- Looking for SIMPLEQ_HEAD - not found
-- Looking for CIRCLEQ_HEAD
-- Looking for CIRCLEQ_HEAD - found
-- Looking for CIRCLEQ_FOREACH
-- Looking for CIRCLEQ_FOREACH - found
-- Looking for CIRCLEQ_FOREACH_SAFE
-- Looking for CIRCLEQ_FOREACH_SAFE - not found
-- The CXX compiler identification is Clang 6.1.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SDL2_image: /Library/Frameworks/SDL2_image.framework (found version "2.0.0") 
-- Found SDL2_mixer: /Library/Frameworks/SDL2_mixer.framework  
-- Found SDL2_ttf: /Library/Frameworks/SDL2_ttf.framework  
-- Found SDL2_net: /Library/Frameworks/SDL2_net.framework  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ cmake ..
-- Found SDL2: -framework SDL2  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ make
Scanning dependencies of target common
[  2%] Building C object common/CMakeFiles/common.dir/array.c.o
[  5%] Building C object common/CMakeFiles/common.dir/common.c.o
[  8%] Building C object common/CMakeFiles/common.dir/rwops.c.o
[ 11%] Building C object common/CMakeFiles/common.dir/surface.c.o
[ 14%] Building C object common/CMakeFiles/common.dir/table.c.o
[ 17%] Building C object common/CMakeFiles/common.dir/variant.c.o
[ 20%] Building C object common/CMakeFiles/common.dir/video.c.o
Linking C static library libcommon.a
[ 20%] Built target common
Scanning dependencies of target SDL
[ 23%] Building C object CMakeFiles/SDL.dir/src/audio.c.o
[ 26%] Building C object CMakeFiles/SDL.dir/src/channel.c.o
[ 29%] Building C object CMakeFiles/SDL.dir/src/clipboard.c.o
[ 32%] Building C object CMakeFiles/SDL.dir/src/cpu.c.o
[ 35%] Building C object CMakeFiles/SDL.dir/src/display.c.o
[ 38%] Building C object CMakeFiles/SDL.dir/src/events.c.o
[ 41%] Building C object CMakeFiles/SDL.dir/src/filesystem.c.o
[ 44%] Building C object CMakeFiles/SDL.dir/src/gamecontroller.c.o
[ 47%] Building C object CMakeFiles/SDL.dir/src/gl.c.o
[ 50%] Building C object CMakeFiles/SDL.dir/src/haptic.c.o
[ 52%] Building C object CMakeFiles/SDL.dir/src/joystick.c.o
[ 55%] Building C object CMakeFiles/SDL.dir/src/keyboard.c.o
[ 58%] Building C object CMakeFiles/SDL.dir/src/logging.c.o
[ 61%] Building C object CMakeFiles/SDL.dir/src/mouse.c.o
[ 64%] Building C object CMakeFiles/SDL.dir/src/platform.c.o
[ 67%] Building C object CMakeFiles/SDL.dir/src/power.c.o
[ 70%] Building C object CMakeFiles/SDL.dir/src/rectangle.c.o
[ 73%] Building C object CMakeFiles/SDL.dir/src/renderer.c.o
[ 76%] Building C object CMakeFiles/SDL.dir/src/SDL.c.o
[ 79%] Building C object CMakeFiles/SDL.dir/src/texture.c.o
[ 82%] Building C object CMakeFiles/SDL.dir/src/thread.c.o
[ 85%] Building C object CMakeFiles/SDL.dir/src/timer.c.o
[ 88%] Building C object CMakeFiles/SDL.dir/src/window.c.o
Linking C shared module SDL.so
ld: framework not found SDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [SDL.so] Error 1
make[1]: *** [CMakeFiles/SDL.dir/all] Error 2
make: *** [all] Error 2
lepton:_build_ lepton$ /usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names  -F/Library/Frameworks -undefined dynamic_lookup -o SDL.so CMakeFiles/SDL.dir/src/audio.c.o CMakeFiles/SDL.dir/src/channel.c.o CMakeFiles/SDL.dir/src/clipboard.c.o CMakeFiles/SDL.dir/src/cpu.c.o CMakeFiles/SDL.dir/src/display.c.o CMakeFiles/SDL.dir/src/events.c.o CMakeFiles/SDL.dir/src/filesystem.c.o CMakeFiles/SDL.dir/src/gamecontroller.c.o CMakeFiles/SDL.dir/src/gl.c.o CMakeFiles/SDL.dir/src/haptic.c.o CMakeFiles/SDL.dir/src/joystick.c.o CMakeFiles/SDL.dir/src/keyboard.c.o CMakeFiles/SDL.dir/src/logging.c.o CMakeFiles/SDL.dir/src/mouse.c.o CMakeFiles/SDL.dir/src/platform.c.o CMakeFiles/SDL.dir/src/power.c.o CMakeFiles/SDL.dir/src/rectangle.c.o CMakeFiles/SDL.dir/src/renderer.c.o CMakeFiles/SDL.dir/src/SDL.c.o CMakeFiles/SDL.dir/src/texture.c.o CMakeFiles/SDL.dir/src/thread.c.o CMakeFiles/SDL.dir/src/timer.c.o CMakeFiles/SDL.dir/src/window.c.o common/libcommon.a -framework SDL2 -framework Cocoa
lepton:_build_ lepton$
lewislepton commented 9 years ago

did try the make install, nearly worked. done just fter that latest usr/bin/scr blah blah blah

lepton:_build_ lepton$ make install
[ 20%] Built target common
[ 88%] Built target SDL
Scanning dependencies of target image
[ 91%] Building C object sdl-image/CMakeFiles/image.dir/src/image.c.o
Linking C shared module image.so
Undefined symbols for architecture x86_64:
  "_luaL_checkinteger", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      _l_rw_seek in libcommon.a(rwops.c.o)
      _l_rw_writeByte in libcommon.a(rwops.c.o)
      _rw_write16 in libcommon.a(rwops.c.o)
      _rw_write32 in libcommon.a(rwops.c.o)
      _l_surface_createRGB in libcommon.a(surface.c.o)
      ...
  "_luaL_checklstring", referenced from:
      _l_image_load in image.c.o
      _l_image_load_RW in image.c.o
      _l_image_is in image.c.o
      _l_rw_fromFile in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      _l_rw_write in libcommon.a(rwops.c.o)
      _l_rw_writeByte in libcommon.a(rwops.c.o)
      ...
  "_luaL_checktype", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_surface_fillRects in libcommon.a(surface.c.o)
      _videoGetRect in libcommon.a(video.c.o)
      _readTable in libcommon.a(video.c.o)
      _videoGetPoint in libcommon.a(video.c.o)
      _videoGetLine in libcommon.a(video.c.o)
      _videoGetDisplayMode in libcommon.a(video.c.o)
      ...
  "_luaL_checkudata", referenced from:
      _commonGetUserdata in libcommon.a(common.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
  "_luaL_error", referenced from:
      _l_image_load_RW in image.c.o
      _rw_readparams in libcommon.a(rwops.c.o)
  "_luaL_newmetatable", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
  "_luaL_ref", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_luaL_setfuncs", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
      _commonBindLibrary in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
  "_luaL_setmetatable", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_luaL_unref", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_rw_gc in libcommon.a(rwops.c.o)
  "_lua_callk", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
  "_lua_createtable", referenced from:
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
      _videoPushColorRGB in libcommon.a(video.c.o)
      _videoPushRect in libcommon.a(video.c.o)
      _videoPushPoint in libcommon.a(video.c.o)
      ...
  "_lua_getfield", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
      _tableGetEnum in libcommon.a(table.c.o)
      _tableGetString in libcommon.a(table.c.o)
      ...
  "_lua_gettop", referenced from:
      _l_image_load_RW in image.c.o
      _l_surface_createRGB in libcommon.a(surface.c.o)
      _l_surface_fillRect in libcommon.a(surface.c.o)
  "_lua_newuserdata", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_lua_next", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pushboolean", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetBool in libcommon.a(table.c.o)
  "_lua_pushfstring", referenced from:
      _l_rw_tostring in libcommon.a(rwops.c.o)
  "_lua_pushinteger", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      ...
  "_lua_pushlstring", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
  "_lua_pushnil", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _commonPushSDLError in libcommon.a(common.c.o)
      _commonPushErrno in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pushnumber", referenced from:
      _commonPush in libcommon.a(common.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
  "_lua_pushstring", referenced from:
      _commonPushSDLError in libcommon.a(common.c.o)
      _commonPushErrno in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetString in libcommon.a(table.c.o)
  "_lua_pushvalue", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_lua_rawgeti", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
  "_lua_rawseti", referenced from:
      _commonPushEnum in libcommon.a(common.c.o)
  "_lua_setfield", referenced from:
      _commonBindEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _tableSetInt in libcommon.a(table.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
      _tableSetString in libcommon.a(table.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
      _tableSetBool in libcommon.a(table.c.o)
      ...
  "_lua_settop", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      ...
  "_lua_toboolean", referenced from:
      _l_surface_setColorKey in libcommon.a(surface.c.o)
      _l_surface_setRLE in libcommon.a(surface.c.o)
      _tableGetBool in libcommon.a(table.c.o)
  "_lua_tointegerx", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _videoGetColorHex in libcommon.a(video.c.o)
      ...
  "_lua_tolstring", referenced from:
      _rw_read in libcommon.a(rwops.c.o)
      _tableGetString in libcommon.a(table.c.o)
      _tableGetStringl in libcommon.a(table.c.o)
  "_lua_tonumberx", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
  "_lua_type", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      _l_surface_fillRect in libcommon.a(surface.c.o)
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _readRects in libcommon.a(video.c.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [sdl-image/image.so] Error 1
make[1]: *** [sdl-image/CMakeFiles/image.dir/all] Error 2
make: *** [all] Error 2
lepton:_build_ lepton$
Tangent128 commented 9 years ago

Interesting... it looks like you have an SDL.so module built now...

So you might be able to manually move that file onto your Lua module path and see if it works. (SDL_image, etc, are not necessary for the core SDL module to work, so testing without them may be useful.)

Can you run make install VERBOSE=1? I am very curious what commands it's running when building the image module, since the SDL errors did not show up...

lewislepton commented 9 years ago
lepton:_build_ lepton$ make install VERBOSE=1
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -H/Users/lepton/Downloads/luasdl2-master -B/Users/lepton/Downloads/luasdl2-master/_build_ --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_start /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/common /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/common /Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/build
make[2]: Nothing to be done for `common/CMakeFiles/common.dir/build'.
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles  24 25 26 27 28 29 30
[ 20%] Built target common
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/SDL.dir/build.make CMakeFiles/SDL.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/SDL.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/SDL.dir/build.make CMakeFiles/SDL.dir/build
make[2]: Nothing to be done for `CMakeFiles/SDL.dir/build'.
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
[ 88%] Built target SDL
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f sdl-image/CMakeFiles/image.dir/build.make sdl-image/CMakeFiles/image.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/sdl-image /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image/CMakeFiles/image.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f sdl-image/CMakeFiles/image.dir/build.make sdl-image/CMakeFiles/image.dir/build
Linking C shared module image.so
cd /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/image.dir/link.txt --verbose=1
/usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names   -o image.so CMakeFiles/image.dir/src/image.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_image -Wl,-rpath,/Library/Frameworks 
Undefined symbols for architecture x86_64:
  "_luaL_checkinteger", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      _l_rw_seek in libcommon.a(rwops.c.o)
      _l_rw_writeByte in libcommon.a(rwops.c.o)
      _rw_write16 in libcommon.a(rwops.c.o)
      _rw_write32 in libcommon.a(rwops.c.o)
      _l_surface_createRGB in libcommon.a(surface.c.o)
      ...
  "_luaL_checklstring", referenced from:
      _l_image_load in image.c.o
      _l_image_load_RW in image.c.o
      _l_image_is in image.c.o
      _l_rw_fromFile in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      _l_rw_write in libcommon.a(rwops.c.o)
      _l_rw_writeByte in libcommon.a(rwops.c.o)
      ...
  "_luaL_checktype", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_surface_fillRects in libcommon.a(surface.c.o)
      _videoGetRect in libcommon.a(video.c.o)
      _readTable in libcommon.a(video.c.o)
      _videoGetPoint in libcommon.a(video.c.o)
      _videoGetLine in libcommon.a(video.c.o)
      _videoGetDisplayMode in libcommon.a(video.c.o)
      ...
  "_luaL_checkudata", referenced from:
      _commonGetUserdata in libcommon.a(common.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
  "_luaL_error", referenced from:
      _l_image_load_RW in image.c.o
      _rw_readparams in libcommon.a(rwops.c.o)
  "_luaL_newmetatable", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
  "_luaL_ref", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_luaL_setfuncs", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
      _commonBindLibrary in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
  "_luaL_setmetatable", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_luaL_unref", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_rw_gc in libcommon.a(rwops.c.o)
  "_lua_callk", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
  "_lua_createtable", referenced from:
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
      _videoPushColorRGB in libcommon.a(video.c.o)
      _videoPushRect in libcommon.a(video.c.o)
      _videoPushPoint in libcommon.a(video.c.o)
      ...
  "_lua_getfield", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
      _tableGetEnum in libcommon.a(table.c.o)
      _tableGetString in libcommon.a(table.c.o)
      ...
  "_lua_gettop", referenced from:
      _l_image_load_RW in image.c.o
      _l_surface_createRGB in libcommon.a(surface.c.o)
      _l_surface_fillRect in libcommon.a(surface.c.o)
  "_lua_newuserdata", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_lua_next", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pushboolean", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetBool in libcommon.a(table.c.o)
  "_lua_pushfstring", referenced from:
      _l_rw_tostring in libcommon.a(rwops.c.o)
  "_lua_pushinteger", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      ...
  "_lua_pushlstring", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
  "_lua_pushnil", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _commonPushSDLError in libcommon.a(common.c.o)
      _commonPushErrno in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pushnumber", referenced from:
      _commonPush in libcommon.a(common.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
  "_lua_pushstring", referenced from:
      _commonPushSDLError in libcommon.a(common.c.o)
      _commonPushErrno in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetString in libcommon.a(table.c.o)
  "_lua_pushvalue", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_lua_rawgeti", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
  "_lua_rawseti", referenced from:
      _commonPushEnum in libcommon.a(common.c.o)
  "_lua_setfield", referenced from:
      _commonBindEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _tableSetInt in libcommon.a(table.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
      _tableSetString in libcommon.a(table.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
      _tableSetBool in libcommon.a(table.c.o)
      ...
  "_lua_settop", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      ...
  "_lua_toboolean", referenced from:
      _l_surface_setColorKey in libcommon.a(surface.c.o)
      _l_surface_setRLE in libcommon.a(surface.c.o)
      _tableGetBool in libcommon.a(table.c.o)
  "_lua_tointegerx", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _videoGetColorHex in libcommon.a(video.c.o)
      ...
  "_lua_tolstring", referenced from:
      _rw_read in libcommon.a(rwops.c.o)
      _tableGetString in libcommon.a(table.c.o)
      _tableGetStringl in libcommon.a(table.c.o)
  "_lua_tonumberx", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
  "_lua_type", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      _l_surface_fillRect in libcommon.a(surface.c.o)
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _readRects in libcommon.a(video.c.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [sdl-image/image.so] Error 1
make[1]: *** [sdl-image/CMakeFiles/image.dir/all] Error 2
make: *** [all] Error 2
lewislepton commented 9 years ago

ah yeah, i do see a SDL.so file in _build_ folder. so this should really go where lua was installed? which would be in my usr/local/bin?

Tangent128 commented 9 years ago

From your lua interpreter, run

print(package.cpath)

That will show you the folders you can stick SDL.so into. Most likely, /usr/lib/lua, but check.

I'm working on getting Luarocks to build lua-SDL2 on its own, without requiring cmake. That will have its own challenges, but is worth a shot if we can't get the cmake build stable for you.

lewislepton commented 9 years ago

put that in, but actually still running up with problems

lepton:luasdl2-master lepton$ cd _build_
lepton:_build_ lepton$ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ make
[ 20%] Built target common
[ 88%] Built target SDL
Linking C shared module image.so
Undefined symbols for architecture x86_64:
  "_luaL_checkinteger", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      _l_rw_seek in libcommon.a(rwops.c.o)
      _l_rw_writeByte in libcommon.a(rwops.c.o)
      _rw_write16 in libcommon.a(rwops.c.o)
      _rw_write32 in libcommon.a(rwops.c.o)
      _l_surface_createRGB in libcommon.a(surface.c.o)
      ...
  "_luaL_checklstring", referenced from:
      _l_image_load in image.c.o
      _l_image_load_RW in image.c.o
      _l_image_is in image.c.o
      _l_rw_fromFile in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      _l_rw_write in libcommon.a(rwops.c.o)
      _l_rw_writeByte in libcommon.a(rwops.c.o)
      ...
  "_luaL_checktype", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_surface_fillRects in libcommon.a(surface.c.o)
      _videoGetRect in libcommon.a(video.c.o)
      _readTable in libcommon.a(video.c.o)
      _videoGetPoint in libcommon.a(video.c.o)
      _videoGetLine in libcommon.a(video.c.o)
      _videoGetDisplayMode in libcommon.a(video.c.o)
      ...
  "_luaL_checkudata", referenced from:
      _commonGetUserdata in libcommon.a(common.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
  "_luaL_error", referenced from:
      _l_image_load_RW in image.c.o
      _rw_readparams in libcommon.a(rwops.c.o)
  "_luaL_newmetatable", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
  "_luaL_ref", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_luaL_setfuncs", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
      _commonBindLibrary in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
  "_luaL_setmetatable", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_luaL_unref", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_rw_gc in libcommon.a(rwops.c.o)
  "_lua_callk", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
  "_lua_createtable", referenced from:
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
      _videoPushColorRGB in libcommon.a(video.c.o)
      _videoPushRect in libcommon.a(video.c.o)
      _videoPushPoint in libcommon.a(video.c.o)
      ...
  "_lua_getfield", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
      _tableGetEnum in libcommon.a(table.c.o)
      _tableGetString in libcommon.a(table.c.o)
      ...
  "_lua_gettop", referenced from:
      _l_image_load_RW in image.c.o
      _l_surface_createRGB in libcommon.a(surface.c.o)
      _l_surface_fillRect in libcommon.a(surface.c.o)
  "_lua_newuserdata", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_lua_next", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pushboolean", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetBool in libcommon.a(table.c.o)
  "_lua_pushfstring", referenced from:
      _l_rw_tostring in libcommon.a(rwops.c.o)
  "_lua_pushinteger", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      ...
  "_lua_pushlstring", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
  "_lua_pushnil", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _commonPushSDLError in libcommon.a(common.c.o)
      _commonPushErrno in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pushnumber", referenced from:
      _commonPush in libcommon.a(common.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
  "_lua_pushstring", referenced from:
      _commonPushSDLError in libcommon.a(common.c.o)
      _commonPushErrno in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetString in libcommon.a(table.c.o)
  "_lua_pushvalue", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_lua_rawgeti", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
  "_lua_rawseti", referenced from:
      _commonPushEnum in libcommon.a(common.c.o)
  "_lua_setfield", referenced from:
      _commonBindEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _tableSetInt in libcommon.a(table.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
      _tableSetString in libcommon.a(table.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
      _tableSetBool in libcommon.a(table.c.o)
      ...
  "_lua_settop", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      ...
  "_lua_toboolean", referenced from:
      _l_surface_setColorKey in libcommon.a(surface.c.o)
      _l_surface_setRLE in libcommon.a(surface.c.o)
      _tableGetBool in libcommon.a(table.c.o)
  "_lua_tointegerx", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _videoGetColorHex in libcommon.a(video.c.o)
      ...
  "_lua_tolstring", referenced from:
      _rw_read in libcommon.a(rwops.c.o)
      _tableGetString in libcommon.a(table.c.o)
      _tableGetStringl in libcommon.a(table.c.o)
  "_lua_tonumberx", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
  "_lua_type", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      _l_surface_fillRect in libcommon.a(surface.c.o)
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _readRects in libcommon.a(video.c.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [sdl-image/image.so] Error 1
make[1]: *** [sdl-image/CMakeFiles/image.dir/all] Error 2
make: *** [all] Error 2
lepton:_build_ lepton$ make install VERBOSE=1
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -H/Users/lepton/Downloads/luasdl2-master -B/Users/lepton/Downloads/luasdl2-master/_build_ --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_start /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/common /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/common /Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/build
make[2]: Nothing to be done for `common/CMakeFiles/common.dir/build'.
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles  24 25 26 27 28 29 30
[ 20%] Built target common
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/SDL.dir/build.make CMakeFiles/SDL.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles/SDL.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/SDL.dir/build.make CMakeFiles/SDL.dir/build
make[2]: Nothing to be done for `CMakeFiles/SDL.dir/build'.
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
[ 88%] Built target SDL
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f sdl-image/CMakeFiles/image.dir/build.make sdl-image/CMakeFiles/image.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/sdl-image /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image/CMakeFiles/image.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f sdl-image/CMakeFiles/image.dir/build.make sdl-image/CMakeFiles/image.dir/build
Linking C shared module image.so
cd /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/image.dir/link.txt --verbose=1
/usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names   -o image.so CMakeFiles/image.dir/src/image.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_image -Wl,-rpath,/Library/Frameworks 
Undefined symbols for architecture x86_64:
  "_luaL_checkinteger", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      _l_rw_seek in libcommon.a(rwops.c.o)
      _l_rw_writeByte in libcommon.a(rwops.c.o)
      _rw_write16 in libcommon.a(rwops.c.o)
      _rw_write32 in libcommon.a(rwops.c.o)
      _l_surface_createRGB in libcommon.a(surface.c.o)
      ...
  "_luaL_checklstring", referenced from:
      _l_image_load in image.c.o
      _l_image_load_RW in image.c.o
      _l_image_is in image.c.o
      _l_rw_fromFile in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      _l_rw_write in libcommon.a(rwops.c.o)
      _l_rw_writeByte in libcommon.a(rwops.c.o)
      ...
  "_luaL_checktype", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_surface_fillRects in libcommon.a(surface.c.o)
      _videoGetRect in libcommon.a(video.c.o)
      _readTable in libcommon.a(video.c.o)
      _videoGetPoint in libcommon.a(video.c.o)
      _videoGetLine in libcommon.a(video.c.o)
      _videoGetDisplayMode in libcommon.a(video.c.o)
      ...
  "_luaL_checkudata", referenced from:
      _commonGetUserdata in libcommon.a(common.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
  "_luaL_error", referenced from:
      _l_image_load_RW in image.c.o
      _rw_readparams in libcommon.a(rwops.c.o)
  "_luaL_newmetatable", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
  "_luaL_ref", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_luaL_setfuncs", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
      _commonBindLibrary in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
  "_luaL_setmetatable", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_luaL_unref", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_rw_gc in libcommon.a(rwops.c.o)
  "_lua_callk", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
  "_lua_createtable", referenced from:
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
      _videoPushColorRGB in libcommon.a(video.c.o)
      _videoPushRect in libcommon.a(video.c.o)
      _videoPushPoint in libcommon.a(video.c.o)
      ...
  "_lua_getfield", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
      _tableGetEnum in libcommon.a(table.c.o)
      _tableGetString in libcommon.a(table.c.o)
      ...
  "_lua_gettop", referenced from:
      _l_image_load_RW in image.c.o
      _l_surface_createRGB in libcommon.a(surface.c.o)
      _l_surface_fillRect in libcommon.a(surface.c.o)
  "_lua_newuserdata", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_lua_next", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pushboolean", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetBool in libcommon.a(table.c.o)
  "_lua_pushfstring", referenced from:
      _l_rw_tostring in libcommon.a(rwops.c.o)
  "_lua_pushinteger", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      ...
  "_lua_pushlstring", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
  "_lua_pushnil", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _commonPushSDLError in libcommon.a(common.c.o)
      _commonPushErrno in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pushnumber", referenced from:
      _commonPush in libcommon.a(common.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
  "_lua_pushstring", referenced from:
      _commonPushSDLError in libcommon.a(common.c.o)
      _commonPushErrno in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetString in libcommon.a(table.c.o)
  "_lua_pushvalue", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_lua_rawgeti", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
  "_lua_rawseti", referenced from:
      _commonPushEnum in libcommon.a(common.c.o)
  "_lua_setfield", referenced from:
      _commonBindEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _tableSetInt in libcommon.a(table.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
      _tableSetString in libcommon.a(table.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
      _tableSetBool in libcommon.a(table.c.o)
      ...
  "_lua_settop", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      ...
  "_lua_toboolean", referenced from:
      _l_surface_setColorKey in libcommon.a(surface.c.o)
      _l_surface_setRLE in libcommon.a(surface.c.o)
      _tableGetBool in libcommon.a(table.c.o)
  "_lua_tointegerx", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _videoGetColorHex in libcommon.a(video.c.o)
      ...
  "_lua_tolstring", referenced from:
      _rw_read in libcommon.a(rwops.c.o)
      _tableGetString in libcommon.a(table.c.o)
      _tableGetStringl in libcommon.a(table.c.o)
  "_lua_tonumberx", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
  "_lua_type", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      _l_surface_fillRect in libcommon.a(surface.c.o)
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _readRects in libcommon.a(video.c.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [sdl-image/image.so] Error 1
make[1]: *** [sdl-image/CMakeFiles/image.dir/all] Error 2
make: *** [all] Error 2
lewislepton commented 9 years ago

if not, then its fine. i can wait in all honesty for the luarocks thing and the easier way of getting lua-SDL2 to get up and running

Tangent128 commented 9 years ago

Let me clarify: while inside lua, run print(package.cpath), and you should see patterns looking something like /usr/lib/lua/?.so; ignoring the ?.so gives you a folder which Lua looks in to find C modules.

So if you move the SDL.so file we built to any of the cpath folders, then run Lua again, try require("SDL"). If that runs without errors, then you at least have a hackish version of the module running to experiment with.

Either way, I'll bump this issue as I have news on the building front, whether cmake or LuaRocks. (speaking of the latter...)

lewislepton commented 9 years ago

aye, i did see that usr/lib/lua/?.so ill just try the require stuff now. let you know whats happening

Tangent128 commented 9 years ago

If you're comfortable with Luarocks, you can try to checkout the "luarocks-builtin" branch of the repository which I pushed last night.

Assuming Luarocks is installed, running

luarocks make lua-sdl2-scm-3.rockspec

in the checkout folder will try to build the library. On its own, it will probably say it can't find SDL2, but you should be able to figure out paths for the SDL2_INCDIR and SDL2_LIBDIR variables that satisfy it. I'm guessing this is what you need, but experiment:

luarocks make lua-sdl2-scm-3.rockspec SDL2_INCDIR=/Library/Frameworks/SDL2.framework/Headers/ SDL2_LIBDIR=/Library/Frameworks/SDL2.framework/
lewislepton commented 9 years ago

not familiar with luarocks at all, despite me working with lua ;)

also just tried the SDL.so in the usr/local/lib/lua/5.3/SDL.so, then ran require("SDL") and it spat out this

require("SDL")
table: 0x7f9ab9c18740
Tangent128 commented 9 years ago

The require returns a table instead of erroring? That is what you want to see, good.

OK, so you should be able to start trying out the module in scripts now. You will not be able to use the SDL.image, SDL.mixer, SDL.net, or SDL.ttf extensions because we haven't gotten them built yet, but it's a start.

lewislepton commented 9 years ago

aye, getting closer. so i can have a bash on lua-SDL, just not with extensions. thats cool - but as i said im actually willing to wait for a more full-proof build arrangement. but happy none-the-less its come up with something good ;)

so how could we go about building the extensions?

Tangent128 commented 9 years ago

In the short term:

For SDL.image, first run

make image VERBOSE=1

from your build dir. If what we previously saw is indicative, It will build some stuff, then error out at link time just before the end due to not finding Lua symbols.

So, look at the last command make printed attempting (/usr/bin/cc a line or two after "Linking C shared module image.so"). You'll want to rerun that command (along with its long list of arguments), but add -undefined dynamic_lookup to the arguments. (order might matter, so try to put it before the -o image.so)

In any other spare time, try to play around with LuaRocks a bit?

lewislepton commented 9 years ago

here is the spat out terminal

lepton:~ lepton$ cd /Users/lepton/Downloads/luasdl2-master 
lepton:luasdl2-master lepton$ cd _build_
lepton:_build_ lepton$ make image VERBOSE=1
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -H/Users/lepton/Downloads/luasdl2-master -B/Users/lepton/Downloads/luasdl2-master/_build_ --check-build-system CMakeFiles/Makefile.cmake 0
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 image
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -H/Users/lepton/Downloads/luasdl2-master -B/Users/lepton/Downloads/luasdl2-master/_build_ --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_start /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 8
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 sdl-image/CMakeFiles/image.dir/all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/common /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/common /Users/lepton/Downloads/luasdl2-master/_build_/common/CMakeFiles/common.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/build
make[3]: Nothing to be done for `common/CMakeFiles/common.dir/build'.
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles  24 25 26 27 28 29 30
[ 87%] Built target common
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f sdl-image/CMakeFiles/image.dir/build.make sdl-image/CMakeFiles/image.dir/depend
cd /Users/lepton/Downloads/luasdl2-master/_build_ && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/lepton/Downloads/luasdl2-master /Users/lepton/Downloads/luasdl2-master/sdl-image /Users/lepton/Downloads/luasdl2-master/_build_ /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image/CMakeFiles/image.dir/DependInfo.cmake --color=
Dependee "/Users/lepton/Downloads/luasdl2-master/_build_/sdl-image/CMakeFiles/image.dir/DependInfo.cmake" is newer than depender "/Users/lepton/Downloads/luasdl2-master/_build_/sdl-image/CMakeFiles/image.dir/depend.internal".
Dependee "/Users/lepton/Downloads/luasdl2-master/_build_/sdl-image/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/lepton/Downloads/luasdl2-master/_build_/sdl-image/CMakeFiles/image.dir/depend.internal".
Scanning dependencies of target image
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f sdl-image/CMakeFiles/image.dir/build.make sdl-image/CMakeFiles/image.dir/build
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/lepton/Downloads/luasdl2-master/_build_/CMakeFiles 31
[100%] Building C object sdl-image/CMakeFiles/image.dir/src/image.c.o
cd /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image && /usr/bin/cc  -Dimage_EXPORTS -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -fPIC -I/Users/lepton/Downloads/luasdl2-master/_build_ -I/Library/Frameworks/SDL2.framework/Headers -I/usr/local/include -I/Users/lepton/Downloads/luasdl2-master -I/src -I/Library/Frameworks/SDL2_image.framework/Headers    -F/Library/Frameworks  -o CMakeFiles/image.dir/src/image.c.o   -c /Users/lepton/Downloads/luasdl2-master/sdl-image/src/image.c
Linking C shared module image.so
cd /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/image.dir/link.txt --verbose=1
/usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names   -o image.so CMakeFiles/image.dir/src/image.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_image -Wl,-rpath,/Library/Frameworks 
Undefined symbols for architecture x86_64:
  "_luaL_checkinteger", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      _l_rw_seek in libcommon.a(rwops.c.o)
      _l_rw_writeByte in libcommon.a(rwops.c.o)
      _rw_write16 in libcommon.a(rwops.c.o)
      _rw_write32 in libcommon.a(rwops.c.o)
      _l_surface_createRGB in libcommon.a(surface.c.o)
      ...
  "_luaL_checklstring", referenced from:
      _l_image_load in image.c.o
      _l_image_load_RW in image.c.o
      _l_image_is in image.c.o
      _l_rw_fromFile in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      _l_rw_write in libcommon.a(rwops.c.o)
      _l_rw_writeByte in libcommon.a(rwops.c.o)
      ...
  "_luaL_checktype", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_surface_fillRects in libcommon.a(surface.c.o)
      _videoGetRect in libcommon.a(video.c.o)
      _readTable in libcommon.a(video.c.o)
      _videoGetPoint in libcommon.a(video.c.o)
      _videoGetLine in libcommon.a(video.c.o)
      _videoGetDisplayMode in libcommon.a(video.c.o)
      ...
  "_luaL_checkudata", referenced from:
      _commonGetUserdata in libcommon.a(common.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
  "_luaL_error", referenced from:
      _l_image_load_RW in image.c.o
      _rw_readparams in libcommon.a(rwops.c.o)
  "_luaL_newmetatable", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
  "_luaL_ref", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_luaL_setfuncs", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
      _commonBindLibrary in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
  "_luaL_setmetatable", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_luaL_unref", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _l_rw_gc in libcommon.a(rwops.c.o)
  "_lua_callk", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
  "_lua_createtable", referenced from:
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _commonNewLibrary in libcommon.a(common.c.o)
      _videoPushColorRGB in libcommon.a(video.c.o)
      _videoPushRect in libcommon.a(video.c.o)
      _videoPushPoint in libcommon.a(video.c.o)
      ...
  "_lua_getfield", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
      _tableGetEnum in libcommon.a(table.c.o)
      _tableGetString in libcommon.a(table.c.o)
      ...
  "_lua_gettop", referenced from:
      _l_image_load_RW in image.c.o
      _l_surface_createRGB in libcommon.a(surface.c.o)
      _l_surface_fillRect in libcommon.a(surface.c.o)
  "_lua_newuserdata", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_lua_next", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pushboolean", referenced from:
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetBool in libcommon.a(table.c.o)
  "_lua_pushfstring", referenced from:
      _l_rw_tostring in libcommon.a(rwops.c.o)
  "_lua_pushinteger", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      ...
  "_lua_pushlstring", referenced from:
      _l_rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
  "_lua_pushnil", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _commonPushSDLError in libcommon.a(common.c.o)
      _commonPushErrno in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
  "_lua_pushnumber", referenced from:
      _commonPush in libcommon.a(common.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
  "_lua_pushstring", referenced from:
      _commonPushSDLError in libcommon.a(common.c.o)
      _commonPushErrno in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetString in libcommon.a(table.c.o)
  "_lua_pushvalue", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_lua_rawgeti", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
  "_lua_rawseti", referenced from:
      _commonPushEnum in libcommon.a(common.c.o)
  "_lua_setfield", referenced from:
      _commonBindEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _tableSetInt in libcommon.a(table.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
      _tableSetString in libcommon.a(table.c.o)
      _tableSetStringl in libcommon.a(table.c.o)
      _tableSetBool in libcommon.a(table.c.o)
      ...
  "_lua_settop", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _readTable in libcommon.a(video.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      ...
  "_lua_toboolean", referenced from:
      _l_surface_setColorKey in libcommon.a(surface.c.o)
      _l_surface_setRLE in libcommon.a(surface.c.o)
      _tableGetBool in libcommon.a(table.c.o)
  "_lua_tointegerx", referenced from:
      _rw_size in libcommon.a(rwops.c.o)
      _rw_seek in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_write in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _videoGetColorHex in libcommon.a(video.c.o)
      ...
  "_lua_tolstring", referenced from:
      _rw_read in libcommon.a(rwops.c.o)
      _tableGetString in libcommon.a(table.c.o)
      _tableGetStringl in libcommon.a(table.c.o)
  "_lua_tonumberx", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _tableGetDouble in libcommon.a(table.c.o)
  "_lua_type", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
      _rw_read in libcommon.a(rwops.c.o)
      _rw_close in libcommon.a(rwops.c.o)
      _l_surface_fillRect in libcommon.a(surface.c.o)
      _surfaceBlit in libcommon.a(surface.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _readRects in libcommon.a(video.c.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [sdl-image/image.so] Error 1
make[2]: *** [sdl-image/CMakeFiles/image.dir/all] Error 2
make[1]: *** [sdl-image/CMakeFiles/image.dir/rule] Error 2
make: *** [image] Error 2
lewislepton commented 9 years ago

aye, i will have a look at luarocks when i have some spare time, just a tiny bit busy just now, but would be good to know anyway ;)

lewislepton commented 9 years ago

so add this now in the terminal. it has the added line -undefined dynamic_lookup, would that be the best place? just to ask before i try

/usr/bin/cc    -Wall -Wextra -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -bundle -Wl,-headerpad_max_install_names -undefined dynamic_lookup   -o image.so CMakeFiles/image.dir/src/image.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_image -Wl,-rpath,/Library/Frameworks