endlesstravel / Love2dCS

C# Wrapper for LÖVE, a 2d game engine
MIT License
166 stars 14 forks source link

libstdc++ not found for macOS 10.13.6 #108

Closed tonytins closed 4 years ago

tonytins commented 4 years ago

On macOS 10.13.6, I'm unable to run any game because it can't link to libstdc++. I have tried installing GCC from Homebrew, Xcode 9 and 10 but I still get the same error. I've searched everywhere for workarounds but so I've come up empty handed. All I know is it changed from libstdc++ to libc++ sometime after GCC 4.2 and I don't know how to get 4.2 on a Mac without downgrading the operating system.

System.Exception: error on load libstdc++/libstdc++.so.6 System.Exception:  LibraryContentGenerator return null !
   at Love.NativeLibraryUtil.NativlibTool.WriteToTempDir(String tempDir, LibraryContent[] libToLoad)
   at Love.NativeLibraryUtil.NativlibTool.WriteToTempDir(String tempDir, LibraryContent[] libToLoad)
   at Love.NativeLibraryUtil.LibraryLoader.GetFunctionAddrLoader(LibraryContent[] libToLoad, INativeLibraryLoader loader)
   at Love.NativeLibraryUtil.LibraryLoader.Load(LibraryConfig config)
   at Love.Boot.InitNativeLibrary()
   at Love.Boot.Init(BootConfig bootConfig)
endlesstravel commented 4 years ago

The program recognize platform error as Linux but not MacOs. fix it in version 11.0.50 : https://www.nuget.org/packages/Love2dCS/11.0.50