Open AphidGit opened 1 year ago
Hm this is weird since we use the submodule at a specific commit so it shouldn't suddenly change. How did you initialize the submodule? Can you show the output of git status
in the repo?
On ubuntu 22.04 LTS, here's how I fixed it:
wget https://github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz; \
tar xf release-1.12.1.tar.gz; \
rm -rf libgdiplus-6.1/external/googletest/*; \
cp -rfpd googletest-release-1.12.1/* host-mono/libgdiplus-6.1/external/googletest/
Releases 1.13.x and later will not work due to C++14 being required.
Issue: This no longer compiles correctly. Issue is in the imported
googletest
which is not version-bound. Some changes in this external code have made it incompatible with this repo's makefile/autotools thingamajig.A test was added that does something to blow up the compiler; specifically this bit of code;
Dummy is filled with the current stack pointer to check that the stack grows downward or upward (i.e. what do the memory addresses do, increase or decrease?). The compiler does not like this uninitialized pointer use when used with default settings including
-wError=maybe-unitialized
. This option needs to be turned off to compile googletest (and probably results in more errors; i.e. set-Wno-error-maybe-uninitialized
). Haven't been able to test any further because autotools is so impenetrably complicated.