Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS / macOS #171

Open
ghost opened this issue Apr 30, 2020 · 7 comments
Open

iOS / macOS #171

ghost opened this issue Apr 30, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Apr 30, 2020

I noticed you wanted to do mobile ports, has anyone worked on a macOS port first? Didn't see anything but it's completely possible I missed someone's pr for iOS or macOS.

@Sebanisu
Copy link
Collaborator

It should compile on mac. Much like linux. You'd need to use the command line or hardcode the path to the ff8 files. But I don't have a system to try it on. I don't think Maki has a mac around either. We're currently playing around with the idea of switching engines. I'm experimenting on c++. Maki was fiddling with unity.

@ghost
Copy link
Author

ghost commented Apr 30, 2020

Ok I'm going to try to take a look at it and see where I can get. I had just graduated with a 2yr degree in computer science and if I had to rate my skills, at an intern skill level, but with the lock down meaning I can't really job hunt, if you come up with some tasks appropriate to an intern level of skill I'd love to start helping in whatever engine.

@ghost
Copy link
Author

ghost commented May 1, 2020

Well I ran the OpenGL Linux project, added a MacOSGameLocationProvider and got it to compile, but I'm getting some kind of runtime exception and unfortunately VS is not giving me a call stack but stopping execution and loading a copy of ExceptionServicesCommon.cs. I'm going to keep trying to figure it out, but any ideas would be appreciated.

@Sebanisu
Copy link
Collaborator

Sebanisu commented May 1, 2020 via email

@Sebanisu
Copy link
Collaborator

Sebanisu commented May 1, 2020

You may need to step threw the code with the debugger. It should not take long as it's early in the process.

@ghost
Copy link
Author

ghost commented May 1, 2020

Just found the call stack, it's an error having to do with libdl it looks like to me. I'm going to look at that a bit then try a manual step through if that doesn't work.

Unhandled Exception: System.DllNotFoundException: libdl.so.2 assembly:<unknown assembly> type:<unknown type> member:(null) at (wrapper managed-to-native) FFmpeg.AutoGen.Native.LinuxNativeMethods.dlopen(string,int) at FFmpeg.AutoGen.Native.LibraryLoader.LoadNativeLibrary (System.String libraryName) [0x00037] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.Native.LibraryLoader.LoadNativeLibrary (System.String path, System.String libraryName, System.Int32 version) [0x00014] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg.LoadLibrary (System.String libraryName) [0x00040] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg+<>c__DisplayClass5_0.<.cctor>b__0 (System.String name) [0x00036] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg+<>c.<LoadLibrary>b__14_0 (System.String x) [0x00005] in <7d2de336d2224661a63fb9739dc76a92>:0 at System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) [0x0001e] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/List.cs:578 at FFmpeg.AutoGen.ffmpeg.LoadLibrary (System.String libraryName) [0x0000b] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg+<>c__DisplayClass5_0.<.cctor>b__0 (System.String name) [0x00036] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg+<>c.<.cctor>b__5_78 (FFmpeg.AutoGen.AVPacket* pkt) [0x00005] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg.av_packet_unref (FFmpeg.AutoGen.AVPacket* pkt) [0x00000] in <7d2de336d2224661a63fb9739dc76a92>:0 at OpenVIII.AV.FfccVariableGroup.Dispose (System.Boolean disposing) [0x000c5] in /Users/jeremiahkorreck/RiderProjects/OpenVIII-monogame/Core/AV/FfccVariableGroup.cs:122 at OpenVIII.AV.FfccVariableGroup.Finalize () [0x00002] in /Users/jeremiahkorreck/RiderProjects/OpenVIII-monogame/Core/AV/FfccVariableGroup.cs:56 [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libdl.so.2 assembly:<unknown assembly> type:<unknown type> member:(null) at (wrapper managed-to-native) FFmpeg.AutoGen.Native.LinuxNativeMethods.dlopen(string,int) at FFmpeg.AutoGen.Native.LibraryLoader.LoadNativeLibrary (System.String libraryName) [0x00037] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.Native.LibraryLoader.LoadNativeLibrary (System.String path, System.String libraryName, System.Int32 version) [0x00014] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg.LoadLibrary (System.String libraryName) [0x00040] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg+<>c__DisplayClass5_0.<.cctor>b__0 (System.String name) [0x00036] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg+<>c.<LoadLibrary>b__14_0 (System.String x) [0x00005] in <7d2de336d2224661a63fb9739dc76a92>:0 at System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) [0x0001e] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/List.cs:578 at FFmpeg.AutoGen.ffmpeg.LoadLibrary (System.String libraryName) [0x0000b] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg+<>c__DisplayClass5_0.<.cctor>b__0 (System.String name) [0x00036] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg+<>c.<.cctor>b__5_78 (FFmpeg.AutoGen.AVPacket* pkt) [0x00005] in <7d2de336d2224661a63fb9739dc76a92>:0 at FFmpeg.AutoGen.ffmpeg.av_packet_unref (FFmpeg.AutoGen.AVPacket* pkt) [0x00000] in <7d2de336d2224661a63fb9739dc76a92>:0 at OpenVIII.AV.FfccVariableGroup.Dispose (System.Boolean disposing) [0x000c5] in /Users/jeremiahkorreck/RiderProjects/OpenVIII-monogame/Core/AV/FfccVariableGroup.cs:122 at OpenVIII.AV.FfccVariableGroup.Finalize () [0x00002] in /Users/jeremiahkorreck/RiderProjects/OpenVIII-monogame/Core/AV/FfccVariableGroup.cs:56 AL lib: (EE) alc_cleanup: 1 device not closed

@Sebanisu
Copy link
Collaborator

Sebanisu commented May 1, 2020

https://github.com/Ruslan-B/FFmpeg.AutoGen I guess ffmpeg.autogen cannot find ffmpeg? It took me a bit of trail and error to get it to work on Linux. The site has a link for ffmpeg via homebrew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant