Dolphin, the GameCube and Wii emulator - Forums
Failure when compiling AudioCommon.cpp.o - 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: Failure when compiling AudioCommon.cpp.o (/Thread-failure-when-compiling-audiocommon-cpp-o)



Failure when compiling AudioCommon.cpp.o - RadoslavL - 08-11-2022

I wanted to compile Dolphin from source, so I cloned the git repository's 5.0 branch and then I ran
Code:
git submodule update --init
After I made the build directory and created the Makefile using
Code:
cmake ..
I ran
Code:
make
but it failed to compile the libraries and outputs this error message:
Code:
In file included from /usr/include/soundtouch/FIFOSamplePipe.h:46,
                from /usr/include/soundtouch/SoundTouch.h:68,
                from /home/rado/dolphin-emu/Source/Core/AudioCommon/OpenALStream.h:35,
                from /home/rado/dolphin-emu/Source/Core/AudioCommon/AudioCommon.cpp:12:
/usr/include/soundtouch/FIFOSamplePipe.h: In member function ‘bool soundtouch::FIFOSamplePipe::verifyNumberOfChannels(int) const’:
/usr/include/soundtouch/FIFOSamplePipe.h:62:9: error: exception handling disabled, use ‘-fexceptions’ to enable
  62 |         ST_THROW_RT_ERROR("Error: Illegal number of channels");
     |         ^~~~~~~~~~~~~~~~~
make[2]: *** [Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/build.make:77: Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/AudioCommon.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:829: Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
I've never seen this kind of error message before. I tried using a different branch, but that didn't change anything. I followed the compilation tutorial on the website without skipping anything. What can I do to solve this problem?


RE: Failure when compiling AudioCommon.cpp.o - KHg8m3r - 08-15-2022

What Linux distro are you running?


RE: Failure when compiling AudioCommon.cpp.o - RadoslavL - 08-16-2022

(08-15-2022, 11:36 PM)KHg8m3r Wrote: What Linux distro are you running?
I am using Gentoo.