/usr/bin/ld:
CMakeFiles/juceaide.dir/__/__/__/modules/juce_gui_basics/juce_gui_basics.cpp.o:
undefined reference to symbol 'exp@@GLIBC_2.29'
/usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [extras/Build/juceaide/CMakeFiles/juceaide.dir/build.make:194:
extras/Build/juceaide/juceaide_artefacts/Debug/juceaide] Error 1
make[1]: *** [CMakeFiles/Makefile2:131:
extras/Build/juceaide/CMakeFiles/juceaide.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
To reproduce this, you can pull the JUCE git repo and try executing any of these from the root folder, I'm using the 7.0.7 release of Juce. I'm also using rules_foreign_cc 0.9.0 and cmake 3.22.1 on Ubuntu 22.04
https://github.com/juce-framework/JUCE
After dissecting the build_script.sh file a bit, I found the problem is related to bazel not using the "-B cmake-build" arg, which makes no sense to me, but I'm making progress.
I am trying to build a module from the Juce library. It builds successfully on the command line using the following
This also builds correctly (but fails because the output is a folder.
However, this fails:
Producing this error:
To reproduce this, you can pull the JUCE git repo and try executing any of these from the root folder, I'm using the 7.0.7 release of Juce. I'm also using rules_foreign_cc 0.9.0 and cmake 3.22.1 on Ubuntu 22.04 https://github.com/juce-framework/JUCE