Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
385 stars 74 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
Tangent128 commented 9 years ago

That is where I would put it, yes.

lewislepton commented 9 years ago

this is what popped up

lepton:~ 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 -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
clang: error: no such file or directory: 'CMakeFiles/image.dir/src/image.c.o'
clang: error: no such file or directory: '../common/libcommon.a'
Tangent128 commented 9 years ago

Try cd-ing into sdl-image/ and rerun the same command.

lewislepton commented 9 years ago

oddly the same thing

lepton:~ lepton$ cd /Users/lepton/Downloads/luasdl2-master/sdl-image 
lepton:sdl-image 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 -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
clang: error: no such file or directory: 'CMakeFiles/image.dir/src/image.c.o'
clang: error: no such file or directory: '../common/libcommon.a'
Tangent128 commented 9 years ago

Oh, sorry- try /Users/lepton/Downloads/luasdl2-master/_build_/sdl-image

lewislepton commented 9 years ago

it built the image.so. what next? screen shot 2015-04-25 at 22 32 17

Tangent128 commented 9 years ago

Wherever you put the SDL.so file, create an SDL folder, and put image.so into there.

Similar steps should get mixer, net, and ttf working, but I'd suggest ensuring the examples that don't require them are working first.

lewislepton commented 9 years ago

should i put SDL.so in that folder, or have it stay where it is so its reading whatever is inside the folder?

Tangent128 commented 9 years ago

SDL.so stays as /usr/local/lib/lua/5.3/SDL.so

image.so becomes /usr/local/lib/lua/5.3/SDL/image.so

lewislepton commented 9 years ago

one other question. i normally use sublime for all my lua based stuff. can i use that, and if so, how?

also just import with dofile into terminal to check. here is the output

> dofile("/Users/lepton/Downloads/luasdl2-master/examples/paths/paths.lua")
Base directory: /usr/local/bin/
Preference directory: /Users/lepton/Library/Application Support/Lua-SDL2/Testing/
lewislepton commented 9 years ago

but that image.so is in the right place now

lewislepton commented 9 years ago

also tried the threads one

> dofile("/Users/lepton/Downloads/luasdl2-master/examples/threads/channel.lua") Waiting...
Main...
Pushing...
Received: true
He received
> 
Tangent128 commented 9 years ago

I assume lua is installed at /usr/local/bin/? It seems like the examples are running properly, yeah.

lewislepton commented 9 years ago

aye, it is installed in bin. here is some snapshots to show the current setup

screen shot 2015-04-25 at 23 40 28

screen shot 2015-04-25 at 23 40 39

Tangent128 commented 9 years ago

So it sounds like you have a working setup now, just not one that builds conveniently.

lewislepton commented 9 years ago

aye, its getting there. slowly but surely ;) its just building the other things. we have the image.so, just the next ones now

lewislepton commented 9 years ago

just to say thanks as well. but hopefully once this is all done, then it can be weeded out for others ;) its worth it

Tangent128 commented 9 years ago

I assume you can adapt the image.so instructions to the other three submodules on your own?.

lewislepton commented 9 years ago

aye, just sorting them now

lewislepton commented 9 years ago

here are them all. just double check before i start using them

/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 mixer.so CMakeFiles/mixer.dir/src/mixer.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_mixer -Wl,-rpath,/Library/Frameworks

/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 net.so CMakeFiles/net.dir/src/net.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_net -Wl,-rpath,/Library/Frameworks

/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 ttf.so CMakeFiles/ttf.dir/src/ttf.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_ttf -Wl,-rpath,/Library/Frameworks

Tangent128 commented 9 years ago

As long as you run each from the right subfolder of _build_, looks plausible.

lewislepton commented 9 years ago

just tried mixer

lepton:sdl-mixer lepton$ cd /Users/lepton/Downloads/luasdl2-master/_build_/sdl-mixer
lepton:sdl-mixer 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 -undefined dynamic_lookup   -o mixer.so CMakeFiles/mixer.dir/src/mixer.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_mixer -Wl,-rpath,/Library/Frameworks
clang: error: no such file or directory: 'CMakeFiles/mixer.dir/src/mixer.c.o'
lewislepton commented 9 years ago

same one with net

lepton:sdl-net 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 -undefined dynamic_lookup   -o net.so CMakeFiles/net.dir/src/net.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_net -Wl,-rpath,/Library/Frameworks
clang: error: no such file or directory: 'CMakeFiles/net.dir/src/net.c.o'
lewislepton commented 9 years ago

this is with in the build folder also, not outside it

lewislepton commented 9 years ago

same with ttf

lepton:sdl-ttf 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 -undefined dynamic_lookup   -o ttf.so CMakeFiles/ttf.dir/src/ttf.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_ttf -Wl,-rpath,/Library/Frameworks
clang: error: no such file or directory: 'CMakeFiles/ttf.dir/src/ttf.c.o'
lewislepton commented 9 years ago

obviously ive buggered up, but really just changed the image text from before to mixer ttf net

lewislepton commented 9 years ago

checked what examples i could, and the ones which did not need the other add-ons [mixer/ttf/net], all work. rwops etc were fine, which is good.

also got it working in sublime text. so can build from that.

one thing i noticed with keyboard is that got stuck, didnt output anything, plus seemed to freeze lua. it didnt in a way since the 'x' to close it would come up if i hovered, but wouldnt shut down without force closing

lewislepton commented 9 years ago

its getting close though, but i cant figure out the mixer.co / ttf.co / net.co build script. i thought i could just replace image - but no dice

lewislepton commented 9 years ago

image.so works, which is cool

screen shot 2015-04-26 at 00 21 08

Tangent128 commented 9 years ago

You have to be in _build_/sdl-net,_build_/sdl-mixer, _build_/sdl-ttf, and so forth.

lewislepton commented 9 years ago

oh, thought i was. will try again. its late ;)

lewislepton commented 9 years ago

done it. but still problem. same actually from before. this is mixer

lepton:~ lepton$ cd /Users/lepton/Downloads/luasdl2-master/_build_/sdl-mixer 
lepton:sdl-mixer 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 -undefined dynamic_lookup   -o mixer.so CMakeFiles/mixer.dir/src/mixer.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_mixer -Wl,-rpath,/Library/Frameworks
clang: error: no such file or directory: 'CMakeFiles/mixer.dir/src/mixer.c.o'
lepton:sdl-mixer lepton$
Tangent128 commented 9 years ago

Oh, we never did the make-up-to-the-point-it-fails part, did we...

From build, run:

make mixer
make net
make ttf

They will all fail, but the manual linking should work after that.

lewislepton commented 9 years ago

HA, oh yeah. this post has been long ;) here is the output. they did spawn ;)

lepton:~ lepton$ cd /Users/lepton/Downloads/luasdl2-master/_build_/sdl-mixer 
lepton:sdl-mixer 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 -undefined dynamic_lookup   -o mixer.so CMakeFiles/mixer.dir/src/mixer.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_mixer -Wl,-rpath,/Library/Frameworks
clang: error: no such file or directory: 'CMakeFiles/mixer.dir/src/mixer.c.o'
lepton:sdl-mixer lepton$ cd /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ make mixer
[ 87%] Built target common
Scanning dependencies of target mixer
[100%] Building C object sdl-mixer/CMakeFiles/mixer.dir/src/mixer.c.o
Linking C shared module mixer.so
Undefined symbols for architecture x86_64:
  "_luaL_checkinteger", referenced from:
      _l_music_fadeIn in mixer.c.o
      _l_music_volume in mixer.c.o
      _l_music_fadeOut in mixer.c.o
      _l_chunk_volume in mixer.c.o
      _l_chunk_playChannel in mixer.c.o
      _l_chunk_fadeInChannel in mixer.c.o
      _l_mixer_openAudio in mixer.c.o
      ...
  "_luaL_checklstring", referenced from:
      _l_mixer_loadWAV in mixer.c.o
      _l_mixer_loadMUS in mixer.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_checknumber", referenced from:
      _l_music_fadeIn in mixer.c.o
      _l_music_setPosition in mixer.c.o
  "_luaL_checktype", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_luaL_checkudata", referenced from:
      _commonGetUserdata in libcommon.a(common.c.o)
  "_luaL_error", referenced from:
      _l_mixer_fadingChannel in mixer.c.o
      _rw_readparams in libcommon.a(rwops.c.o)
  "_luaL_newmetatable", referenced from:
      _commonBindObject in libcommon.a(common.c.o)
  "_luaL_optinteger", referenced from:
      _l_music_play in mixer.c.o
      _l_chunk_playChannel in mixer.c.o
      _l_chunk_fadeInChannel in mixer.c.o
      _l_mixer_getChunkDecoder in mixer.c.o
      _l_mixer_playing in mixer.c.o
      _l_mixer_paused in mixer.c.o
      _l_mixer_groupChannel in mixer.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)
  "_lua_getfield", referenced from:
      _l_rw_create in libcommon.a(rwops.c.o)
  "_lua_gettop", referenced from:
      _l_music_fadeIn in mixer.c.o
  "_lua_newuserdata", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_lua_next", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
  "_lua_pushboolean", referenced from:
      _commonPush in libcommon.a(common.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)
  "_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)
  "_lua_pushnumber", referenced from:
      _commonPush in libcommon.a(common.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)
  "_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)
  "_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)
  "_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)
  "_lua_tolstring", referenced from:
      _rw_read in libcommon.a(rwops.c.o)
  "_lua_tonumberx", referenced from:
      _commonGetEnum in libcommon.a(common.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)
      _commonGetEnum in libcommon.a(common.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-mixer/mixer.so] Error 1
make[2]: *** [sdl-mixer/CMakeFiles/mixer.dir/all] Error 2
make[1]: *** [sdl-mixer/CMakeFiles/mixer.dir/rule] Error 2
make: *** [mixer] Error 2
lepton:_build_ lepton$ cd /Users/lepton/Downloads/luasdl2-master/_build_/sdl-mixer 
lepton:sdl-mixer 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 -undefined dynamic_lookup   -o mixer.so CMakeFiles/mixer.dir/src/mixer.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_mixer -Wl,-rpath,/Library/Frameworks
lepton:sdl-mixer lepton$ cd /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ make net
[ 87%] Built target common
Scanning dependencies of target net
[100%] Building C object sdl-net/CMakeFiles/net.dir/src/net.c.o
Linking C shared module net.so
Undefined symbols for architecture x86_64:
  "_luaL_checkinteger", referenced from:
      _l_set_checkSockets in net.c.o
      _l_udp_bind in net.c.o
      _l_udp_unbind in net.c.o
      _l_udp_getPeerAddress in net.c.o
      _l_udp_send in net.c.o
      _l_udp_recv in net.c.o
      _l_tcp_recv in net.c.o
      ...
  "_luaL_checklstring", referenced from:
      _l_udp_send in net.c.o
      _l_tcp_send in net.c.o
      _l_resolveHost in net.c.o
  "_luaL_checktype", referenced from:
      _checkAddress in net.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_set_add in net.c.o
      _l_set_del in net.c.o
      _l_udp_send in net.c.o
      _assertNotClosed in net.c.o
      _ready in net.c.o
  "_luaL_newmetatable", referenced from:
      _commonBindObject in libcommon.a(common.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_testudata", referenced from:
      _l_set_add in net.c.o
      _l_set_del in net.c.o
  "_lua_createtable", referenced from:
      _luaopen_SDL_net in net.c.o
      _l_set_gc in net.c.o
      _pushAddress in net.c.o
      _closeSocket in net.c.o
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      ...
  "_lua_getfield", referenced from:
      _l_set_add in net.c.o
      _l_set_del in net.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)
      ...
  "_lua_getuservalue", referenced from:
      _assertNotClosed in net.c.o
  "_lua_newuserdata", referenced from:
      _commonPushUserdata in libcommon.a(common.c.o)
  "_lua_next", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
  "_lua_pushboolean", referenced from:
      _commonPush in libcommon.a(common.c.o)
      _tableSetBool in libcommon.a(table.c.o)
  "_lua_pushinteger", referenced from:
      _l_udp_recv in net.c.o
      _l_tcp_send in net.c.o
      _l_tcp_recv in net.c.o
      _commonBindEnum in libcommon.a(common.c.o)
      _commonPushEnum in libcommon.a(common.c.o)
      _commonPush in libcommon.a(common.c.o)
      _tableSetInt in libcommon.a(table.c.o)
      ...
  "_lua_pushlstring", referenced from:
      _l_udp_recv in net.c.o
      _l_tcp_recv in net.c.o
      _tableSetStringl in libcommon.a(table.c.o)
  "_lua_pushnil", referenced from:
      _l_set_del in net.c.o
      _l_udp_recv in net.c.o
      _l_tcp_recv in net.c.o
      _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)
      ...
  "_lua_pushnumber", referenced from:
      _commonPush in libcommon.a(common.c.o)
      _tableSetDouble in libcommon.a(table.c.o)
  "_lua_pushstring", referenced from:
      _l_tcp_send in net.c.o
      _l_tcp_recv in net.c.o
      _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_set_add in net.c.o
  "_lua_rawseti", referenced from:
      _commonPushEnum in libcommon.a(common.c.o)
  "_lua_rawsetp", referenced from:
      _l_set_add in net.c.o
      _l_set_del in net.c.o
  "_lua_setfield", referenced from:
      _luaopen_SDL_net in net.c.o
      _l_set_gc in net.c.o
      _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)
      ...
  "_lua_settop", referenced from:
      _l_set_add in net.c.o
      _l_set_del in net.c.o
      _assertNotClosed in net.c.o
      _commonGetEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
      ...
  "_lua_setuservalue", referenced from:
      _closeSocket in net.c.o
  "_lua_toboolean", referenced from:
      _tableGetBool in libcommon.a(table.c.o)
  "_lua_tointegerx", referenced from:
      _commonGetEnum in libcommon.a(common.c.o)
      _tableGetInt in libcommon.a(table.c.o)
  "_lua_tolstring", referenced from:
      _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_touserdata", referenced from:
      _l_set_add in net.c.o
      _l_set_del in net.c.o
  "_lua_type", referenced from:
      _l_udp_send in net.c.o
      _assertNotClosed in net.c.o
      _l_resolveHost in net.c.o
      _commonGetEnum in libcommon.a(common.c.o)
      _tableIsType in libcommon.a(table.c.o)
      _tableGetInt in libcommon.a(table.c.o)
      _tableGetDouble in libcommon.a(table.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-net/net.so] Error 1
make[2]: *** [sdl-net/CMakeFiles/net.dir/all] Error 2
make[1]: *** [sdl-net/CMakeFiles/net.dir/rule] Error 2
make: *** [net] Error 2
lepton:_build_ lepton$ cd /Users/lepton/Downloads/luasdl2-master/_build_/sdl-net
lepton:sdl-net 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 -undefined dynamic_lookup   -o net.so CMakeFiles/net.dir/src/net.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_net -Wl,-rpath,/Library/Frameworks
lepton:sdl-net lepton$ cd /Users/lepton/Downloads/luasdl2-master/_build_
lepton:_build_ lepton$ make ttf
[ 87%] Built target common
Scanning dependencies of target ttf
[100%] Building C object sdl-ttf/CMakeFiles/ttf.dir/src/ttf.c.o
Linking C shared module ttf.so
Undefined symbols for architecture x86_64:
  "_luaL_checkinteger", referenced from:
      _l_font_setOutline in ttf.c.o
      _l_font_setHinting in ttf.c.o
      _l_font_glyphIsProvided in ttf.c.o
      _l_font_glyphMetrics in ttf.c.o
      _l_open in ttf.c.o
      _l_rw_read in libcommon.a(rwops.c.o)
      _l_rw_readByte in libcommon.a(rwops.c.o)
      ...
  "_luaL_checklstring", referenced from:
      _fontRender in ttf.c.o
      _fontSize in ttf.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)
      _l_surface_loadBMP in libcommon.a(surface.c.o)
      ...
  "_luaL_checktype", referenced from:
      _getUnicode in ttf.c.o
      _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)
      ...
  "_luaL_checkudata", referenced from:
      _commonGetUserdata in libcommon.a(common.c.o)
      _tableGetUserdata in libcommon.a(table.c.o)
  "_luaL_error", referenced from:
      _fontRender in ttf.c.o
      _fontSize in ttf.c.o
      _l_open in ttf.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:
      _l_font_glyphMetrics in ttf.c.o
      _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)
      ...
  "_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_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:
      _getUnicode in ttf.c.o
      _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:
      _getUnicode in ttf.c.o
      _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:
      _getUnicode in ttf.c.o
      _l_rw_create in libcommon.a(rwops.c.o)
      _commonGetEnum in libcommon.a(common.c.o)
      _commonBindObject in libcommon.a(common.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_font_setKerning in ttf.c.o
      _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:
      _getUnicode in ttf.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)
      _commonGetEnum in libcommon.a(common.c.o)
      ...
  "_lua_tolstring", referenced from:
      _l_open in ttf.c.o
      _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_open in ttf.c.o
      _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)
      ...
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-ttf/ttf.so] Error 1
make[2]: *** [sdl-ttf/CMakeFiles/ttf.dir/all] Error 2
make[1]: *** [sdl-ttf/CMakeFiles/ttf.dir/rule] Error 2
make: *** [ttf] Error 2
lepton:_build_ lepton$ cd /Users/lepton/Downloads/luasdl2-master/_build_/sdl-ttf
lepton:sdl-ttf 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 -undefined dynamic_lookup   -o ttf.so CMakeFiles/ttf.dir/src/ttf.c.o -F/Library/Frameworks ../common/libcommon.a -framework SDL2 -framework SDL2_ttf -Wl,-rpath,/Library/Frameworks
lepton:sdl-ttf lepton$ 
lewislepton commented 9 years ago

photo proof now. ill just jam these in the usr/blah/blah folder and test the examples

screen shot 2015-04-26 at 00 31 41

screen shot 2015-04-26 at 00 31 44

screen shot 2015-04-26 at 00 31 49

lewislepton commented 9 years ago

holy shit balls its all working. WOOOOOOOH, im knackered ;)

lewislepton commented 9 years ago

audio works

lewislepton commented 9 years ago

font works screen shot 2015-04-26 at 00 34 06

lewislepton commented 9 years ago

joystick works screen shot 2015-04-26 at 00 37 09

lewislepton commented 9 years ago

udp works though thats not sending anything, but it doesnt come up with errors

lewislepton commented 9 years ago

same with tcp. no photo, but also no errors

lewislepton commented 9 years ago

threads working. it was before, bt just to keep up with it all

screen shot 2015-04-26 at 00 39 15

lewislepton commented 9 years ago

thats it all working. now its just to get all of this post in a coherent way so others can now use it ;)

again, just to say thanks for this, really means an insane amount to me. been really wanting to use lua and SDL together for ages for making games, just never found anything recent enough. so this really makes my year ;)

Tangent128 commented 9 years ago

You're welcome. Liking Lua+SDL was the reason I took up maintenance of this project.

Closing this issue, then, but #20 exists to track the Luarocks building status. Will also make a new issue for cmake.

ghost commented 9 years ago

After making the .so libs how do I start the program inside sublime?

Tangent128 commented 9 years ago

I am not a sublime user; however, many programmer text editors let you set up commands to be run on the current file with key shortcuts. In this case, a command like lua %placeholder%, or whatever syntax sublime uses.

I'm old-fashioned and just keep a termnal window open to the folder my current Lua scripts of interest are in.

lewislepton commented 9 years ago

@Tangent128 cool man. cheers

@Murii you need 2 things. a 'lua dev' package, which let you build and run from sublime. but if youre on mac, you need another which makes sure its going to your PATH. its called 'fix mac path', but thats for mac. a good search will come up with something if you are on something else and it doesnt work

ghost commented 9 years ago

placeholder being the path to lua ?

lewislepton commented 9 years ago

@Murii so the 2 packages are lua dev and fix mac path

those can be got from inside sublime using package control, as long as thats installed of course

ghost commented 9 years ago

@lewislepton I've just installed lua dev.Now?