-
Notifications
You must be signed in to change notification settings - Fork 19
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
Mac OS - Game starts, doesn't load #23
Comments
Hi, I think it is done by newest versions of macOS which broke SDL 1.2. I don't have now a Mac. Can you try to build a SDL 1.2 app with graphics and say if it works? |
I just compiled some example code from this guy's SDL2 tutorial page. Worked fine. Is that example good enough? |
SDL 1.2 and SDL 2 are two different underlying implementations. One uses mostly CPU buffers for images, SDL 2 uses textures/OpenGL. If you feel like, you can port the SDL 1.2 to 2.0 and I will be happy to accept contributions. |
There was an open issue for requesting help in exactly this area: |
Did you copy every required file at the proper places? It requires |
Yes, all copied. |
Addition: I re-installed the SDL libs (using |
Same for me. Such issue appears in original source code as well. |
I took original source code from sourceforge and run with small modifications for SDL2. The game works as perfect with graphics and sound. |
Mhm. That is weird. What exactly SDL versions are You running? Also, any chance of hooking the debugger and/or tracer on and checking what's actually happening beneath? Also, what's exact version of MacOS You're using? |
Also, have You tried resizing/minimazing/dragging the blank Window? Some time ago there were reports of libsdl behaving weird on some Apples until forced action. |
I'm on MacOS Mojave (10.14.6), I use SDL 2 library (not SDL 1.2). Resizing for SDL 1.2 doesn't help while with SDL 2 it works as charm. |
I mention again: I'm running original fheroes2 from sourceforge. |
The original FHeroes2 was working full of visual glitches on my machine so I had to drop it. If you know how to fix by porting the code to SDL 2, please do so. I would love if our codebase can support SDL2 nicely as SDL 1.2 is quite old and it looks that it is unsupported on newer MacOS. |
@ciplogic After some fooling around with CMake and such I finally got to compile it and it seems to work fine. Rather slow before getting to the main menu after starting, but working nonetheless. |
Can you make a branch to test it online? Clone it locally and push the code somewhere. Make a copy of the SDL2 dlls (if you use Windows), so maybe we can base the code on SDL2 if it is just slower |
There's a weird problem when starting the game right after compilation, where the binary starts and the window comes up, but nothing loads inside. I remember that I successfully compiled + ran the game some while ago, but now it seems like it just freezes. I compiled it using Apples
clang++
compiler, with libraries from homebrew. I also had to change theTARGET_LINK_LIBRARIES
variable in the "CMakeLists.txt" file by appending the original line with:-L/usr/local/lib -lSDLmain -lSDL -lpng
.See attached screenshot. The CPU works at ~20% utilization. Any ideas about what might be going on?
The text was updated successfully, but these errors were encountered: