-
Notifications
You must be signed in to change notification settings - Fork 804
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
building on FreeBSD 12.0 amd64 #101
Comments
Please see #49 where the build issues for FreeBSD are solved. The reason it hasn't been merged yet is that the MPQ isn't being correctly loaded/detected. If you can solve that we would be happy to merge it. We might also soon implement direct file access (#46), that would also mean that we could merge it. |
Thanks for the link. Other thing: I forgot that I was building in 64 bit enviroment and it must be 32. Nuno Teixeira |
The 64bit builds are actually starting to be fairly stable and playable but still aren't able to load save games. |
btw, I just builded Kraileth fork and I compile it 100% but it failed with: [100%] Linking CXX executable devilutionx cmake with: and -DCMAKE_C_COMPILER=/usr/local/bin/gcc8 same result. Tomorrow I will try to get a 32 bit jail for building. Thanks |
If you copied the cmake defines here, then I'd say you're missing a minus in front of the last one. This would explain why it tries to link against libasan. Great to see another FreeBSD user here, BTW! |
Hello Kraileth, Thanks :) I send a message to freebsd forum to see if we can get more help porting this to freebsd: https://forums.freebsd.org/threads/fan-of-diablo-i-devilutionx-almost-working-on-freebsd.70704/ BTW, I own an original copy of Diablo I that is included with Battle Chest (Diablo II/Diablo II Expansion). I will not quit until I play it :). Cheers, Nuno |
So direct file access is now implemented if you want to try getting it running without the MPQ, be aware that speech and music are explicitly loaded from the MPQ by the engine so they will be absent. |
@AJenbo: Thanks a lot for porting this over from Devilution! I just freed one hard drive, installed a fresh i386 FreeBSD 12 and gave it a try. After cloning the current version of DevilutionX and making the changes you committed to the FreeBSD branch to the three files, the project still builds as before. Unfortunately I was not able to test direct mode - the executable produced by the current code crashes with a bus error... :( I ran the program again with truss (think FreeBSD equivalent of strace). While I have no idea what is going on here, maybe this will give you (or any other developer) an idea where the crash happens (if the full output instead of just the last 50 lines or so is required I can of course provide that, too):
|
Are you building with CLang or GGC? Try wapping. I'm sorry but I'm not seeing the issue from the log :( Looks like it's during loading of diablo.ini, or possibly SDL_init. |
I'm closing this topic despite things only appearing to work on FreeBSD i386, for one thing, amd64 isn't fully supported in general, but secondly, I think a new investigation is in order regarding getting it to compile on FreeBSD using CLang as well as on a AMD64 installation. |
Hello,
I'm using FreeBSD 12.0 amd64:
cmake-3.14.3
gcc8-8.3.0
sdl2-2.0.9
sdl2_mixer-2.0.4
sdl2_ttf-2.0.15
I instructed cmake to use gcc instead of clang (base) and I only received a warning:
"CMake Warning at CMakeLists.txt:59 (message):
Not 32-bit, highly experimental!"
build stops around 60%.
I attached a log with build error.
Thanks,
Nuno Teixeira
build.log
The text was updated successfully, but these errors were encountered: