Open palmerj opened 1 year ago
You are a hero! I finally have mupen64puls and GlideN64 running on my Mac M1 mini. Initial testing very promising. Thank you so much!
`neil@Neils-Air src % make
[ 3%] Built target osal
[ 16%] Built target GLideNHQ
[ 17%] Building CXX object CMakeFiles/mupen64plus-video-GLideN64.dir/BufferCopy/ColorBufferToRDRAM.cpp.o
/Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:9:10: warning: non-portable path to file '
^~~~~~~~~~
<config.h>
/Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:71:7: error: use of undeclared identifier 'config' if ((config.generalEmulation.hacks & hack_subscreen) != 0 && m_pCurFrameBuffer->m_width == VI.width) { ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:71:39: error: use of undeclared identifier 'hack_subscreen' if ((config.generalEmulation.hacks & hack_subscreen) != 0 && m_pCurFrameBuffer->m_width == VI.width) { ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:78:6: error: use of undeclared identifier 'config' if (config.video.multisampling != 0) { ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:88:7: error: use of undeclared identifier 'config' if (config.frameBufferEmulation.nativeResFactor == 0 && m_pCurFrameBuffer->m_scale != 1.0f) { ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:154:6: error: use of undeclared identifier 'config' if (config.generalEmulation.enableDitheringPattern == 0 || config.frameBufferEmulation.nativeResFactor != 1) { ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:154:61: error: use of undeclared identifier 'config' if (config.generalEmulation.enableDitheringPattern == 0 || config.frameBufferEmulation.nativeResFactor != 1) { ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:156:11: error: use of undeclared identifier 'config' switch (config.generalEmulation.rdramImageDitheringMode) { ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:157:8: error: use of undeclared identifier 'Config' case Config::BufferDitheringMode::bdmBayer: ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:158:8: error: use of undeclared identifier 'Config' case Config::BufferDitheringMode::bdmMagicSquare: ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:160:71: error: use of undeclared identifier 'Config' s32 threshold = config.generalEmulation.rdramImageDitheringMode == Config::BufferDitheringMode::bdmBayer ? ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:160:20: error: use of undeclared identifier 'config' s32 threshold = config.generalEmulation.rdramImageDitheringMode == Config::BufferDitheringMode::bdmBayer ? ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:168:8: error: use of undeclared identifier 'Config' case Config::BufferDitheringMode::bdmBlueNoise: ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:239:6: error: use of undeclared identifier 'config' if (config.frameBufferEmulation.copyToRDRAM == Config::CopyToRDRAM::ctDisable && config.frameBufferEmulation.fbInfoDisabled != 0) ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:239:49: error: use of undeclared identifier 'Config' if (config.frameBufferEmulation.copyToRDRAM == Config::CopyToRDRAM::ctDisable && config.frameBufferEmulation.fbInfoDisabled != 0) ^ /Users/neil/desktop/GLideN64/src/BufferCopy/ColorBufferToRDRAM.cpp:239:83: error: use of undeclared identifier 'config' if (config.frameBufferEmulation.copyToRDRAM == Config::CopyToRDRAM::ctDisable && config.frameBufferEmulation.fbInfoDisabled != 0) ^ 1 warning and 15 errors generated. make[2]: [CMakeFiles/mupen64plus-video-GLideN64.dir/BufferCopy/ColorBufferToRDRAM.cpp.o] Error 1 make[1]: [CMakeFiles/mupen64plus-video-GLideN64.dir/all] Error 2 make: *** [all] Error 2 `
I'm getting this error, any ideas?
No errors here. Just to be sure, from the directory projects/cmake cmake -DMUPENPLUSAPI=On -DCMAKE_CXX_FLAGS=-std=c++11 ../../src/ and then cmake --build . -j6 Just works with the latest code. Good luck!
No errors here. Just to be sure, from the directory projects/cmake cmake -DMUPENPLUSAPI=On -DCMAKE_CXX_FLAGS=-std=c++11 ../../src/ and then cmake --build . -j6 Just works with the latest code. Good luck!
Thanks this got it working. But I've just realised it's built an arm version and I'm using an old mupen64plus that's Intel via Rosetta. Oops! Oh well, guess I need to figure out how to build mupen64plus as arm64 instead of x84?
UI-Console: Searching for plugins at: /Users/neil/Downloads/mupen64plus-bundle-osx-2/mupen64plus.app/Contents/Frameworks/ UI-Console Error: dlopen('/Users/neil/Downloads/mupen64plus-bundle-osx-2/mupen64plus.app/Contents/Frameworks/mupen64plus-video-GLideN64.dylib') failed: dlopen(/Users/neil/Downloads/mupen64plus-bundle-osx-2/mupen64plus.app/Contents/Frameworks/mupen64plus-video-GLideN64.dylib, 0x0002): tried: '/Users/neil/Downloads/mupen64plus-bundle-osx-2/mupen64plus.app/Contents/Frameworks/mupen64plus-video-GLideN64.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/neil/Downloads/mupen64plus-bundle-osx-2/mupen64plus.app/Contents/Frameworks/mupen64plus-video-GLideN64.dylib' (no such file), '/Users/neil/Downloads/mupen64plus-bundle-osx-2/mupen64plus.app/Contents/Frameworks/mupen64plus-video-GLideN64.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) UI-Console Error: Specified Video plugin not found: mupen64plus-video-GLideN64
Wow that's excellent thanks for this! It's good that can also build rice as an arm64 file too. Especially given GLideN64 seems to be the only video plugin that Mario Tennis works on. Thanks again, you're a star!
In the above blog post, I included a Shell script for a full mupen64plus install, read the update of today. It will spare you tons of time, the compile will be finished within a minute! Cheers.
To get GLideN64 to compile on MacOS Moneterey 12.5.1 and Xcode 13.1 I had to set the CXX_FLAGS to -std=c++11:
I suspect this can be best fixed in the CMAKE around here
This was because I was getting errors with the use of c++ 11 curly brace variable initialisers in: