Dolphin, the GameCube and Wii emulator - Forums
Compiling on Linux Mint 21.1: undefined reference to `mappedMemoryFree' - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Support (https://forums.dolphin-emu.org/Forum-support)
+--- Thread: Compiling on Linux Mint 21.1: undefined reference to `mappedMemoryFree' (/Thread-compiling-on-linux-mint-21-1-undefined-reference-to-mappedmemoryfree)



Compiling on Linux Mint 21.1: undefined reference to `mappedMemoryFree' - nareteng - 02-11-2023

Hi.

I recently upgraded from Linux Mint 20.3 to 21.1 via a clean install. I was attempting to compile on Linux but I'm running into errors with (apparently) the mgba submodule.

cmake output:

make output:

This is the main problem:

Code:
[ 87%] Linking CXX executable ../../../Binaries/dolphin-emu-nogui
[ 87%] Linking CXX executable ../../../Binaries/dolphin-tool
/usr/bin/ld: ../../../Externals/mGBA/mgba/CMakeFiles/mgba.dir/src/core/bitmap-cache.c.o: in function `mBitmapCacheConfigure':
bitmap-cache.c:(.text+0xda): undefined reference to `mappedMemoryFree'
/usr/bin/ld: bitmap-cache.c:(.text+0xf8): undefined reference to `mappedMemoryFree'
/usr/bin/ld: bitmap-cache.c:(.text+0x15b): undefined reference to `anonymousMemoryMap'
/usr/bin/ld: bitmap-cache.c:(.text+0x16c): undefined reference to `anonymousMemoryMap'
/usr/bin/ld: ../../../Externals/mGBA/mgba/CMakeFiles/mgba.dir/src/core/bitmap-cache.c.o: in function `mBitmapCacheConfigureSystem':
bitmap-cache.c:(.text+0x20c): undefined reference to `mappedMemoryFree'
It seems that some of the source files are not being found. What could be the cause of this? Any and all help is appreciated.


RE: Compiling on Linux Mint 21.1: undefined reference to `mappedMemoryFree' - KHg8m3r - 02-11-2023

I don't know if it's the core of your problem, but you are missing the libspeex-dev package, which can be installed with: sudo apt install libspeexdsp-dev

You could also check to make sure you have the latest updates to the mgba and other submodules by running in the main dolphin-emu folder:
git submodule update --init
git pull --recurse-submodules

Then clean out your build folder and rerun cmake to generate a clean make environment


RE: Compiling on Linux Mint 21.1: undefined reference to `mappedMemoryFree' - nareteng - 02-13-2023

(02-11-2023, 09:03 PM)KHg8m3r Wrote: I don't know if it's the core of your problem, but you are missing the libspeex-dev package, which can be installed with: sudo apt install libspeexdsp-dev

You could also check to make sure you have the latest updates to the mgba and other submodules by running in the main dolphin-emu folder:
git submodule update --init
git pull --recurse-submodules

Then clean out your build folder and rerun cmake to generate a clean make environment

Thanks for the suggestions, but the problem was something else. I noticed that the path I was using to build Dolphin contained spaces, e.g.:

/home/user/Dolphin Build/dolphin-emu/build.

I created a new folder at my ~/ and it compiled successfully, even without speex. So maybe mGBA is the issue, upstream might have trouble with whitespaces.

I always run git submodule update --init --recursive after git checkout <branch> and it compiles fine, are there any problems with this approach?


RE: Compiling on Linux Mint 21.1: undefined reference to `mappedMemoryFree' - nareteng - 02-13-2023

Sorry for the double post, but my comments do not show up until an admin approves them, so I can't edit my earlier submissions. Is it possible to add a '[Solved]' tag to this thread? I was able to edit threads before, but I've noticed that I can't do that anymore.