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

Improve linux compilation support (GLideN64) #315

Merged
merged 7 commits into from
May 2, 2022
Merged

Improve linux compilation support (GLideN64) #315

merged 7 commits into from
May 2, 2022

Conversation

metronidazole
Copy link
Contributor

@metronidazole metronidazole commented May 2, 2022

This improves linux compilation support. In conjunction with my GLideN64 PR ( blawar/GLideN64#16 ), this will fix compilation of gliden64 as well as fixing a few bugs. It still results in linker errors as AziAudio hasn't been setup to compile, and the meson.build still needs some work for additional files (oot::json).

Has been tested on arch-linux. I haven't fixed the meson to take into account compiling this (32bit) on 64 bit and so you will need to manually fix some references prior to running ninja:

sed -i 's|/usr/lib/libSDL2.so|/usr/lib32/libSDL2.so|g' linux/build.ninja
sed -i 's|/usr/lib/libfreetype.so|/usr/lib32/libfreetype.so|g' linux/build.ninja
sed -i 's|/usr/lib/libpng16.so|/usr/lib32/libpng16.so|g' linux/build.ninja
sed -i 's|/usr/lib/libz.so|/usr/lib32/libz.so|g' linux/build.ninja
sed -i 's|/usr/lib/libGL.so|/usr/lib32/libGL.so|g' linux/build.ninja

Due to a bug in meson, you will need to copy/move the contents of GLideN64 into subprojects/gliden64 (just delete this symlink) for compiling to work. See mesonbuild/meson#8827

Steps are basically the same:

cp baserom_original.z64 ooot/roms/EUR_MQD
cd ooot/tools/ZAPD/
make -j
cd ../../
python setup.py -b EUR_MQD

#symlink workaround due to meson bug
rm subprojects/gliden64 
mkdir subprojects/gliden64
cp -R GLideN64/* subprojects/gliden64/

meson setup linux
# At this point you can apply lib32 fixes if needed (see above)

cd linux
ninja

I have tested these changes on Windows and it compiles/runs fine.

@blawar blawar changed the base branch from master to dev May 2, 2022 14:47
@blawar blawar merged commit cef67aa into blawar:dev May 2, 2022
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

Successfully merging this pull request may close these issues.

2 participants