Open yurivict opened 1 year ago
I need more information here. Using a VirtualBox machine (freebsd 13.2 amd64)
$ clang --version
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
Target: x86_64-unknown-freebsd13.2
Thread model: posix
InstalledDir: /usr/bin
I can nicely build, for example, the stuff test is afterwards linked as follows to gtest
bin/unittest_stuff:
libg2o_stuff.so.0.1 => /home/goki/workspace/g2o/build/lib/libg2o_stuff.so.0.1 (0x3e6bc17d2000)
libgmock_main.so.1.14.0 => /home/goki/workspace/g2o/build/lib/libgmock_main.so.1.14.0 (0x3e6bc2f9f000)
libgmock.so.1.14.0 => /home/goki/workspace/g2o/build/lib/libgmock.so.1.14.0 (0x3e6bc19a2000)
libgtest.so.1.14.0 => /home/goki/workspace/g2o/build/lib/libgtest.so.1.14.0 (0x3e6bc1aee000)
libthr.so.3 => /lib/libthr.so.3 (0x3e6bc202d000)
libc++.so.1 => /usr/lib/libc++.so.1 (0x3e6bc3d66000)
libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x3e6bc4cb7000)
libm.so.5 => /lib/libm.so.5 (0x3e6bc4ce2000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x3e6bc541b000)
libc.so.7 => /lib/libc.so.7 (0x3e6bc6100000)
[vdso] (0x7ffffffff5d0)
Please provide the output of make VERBOSE=1
or more information on how your linker is called. Or which command sequence you used.
I found a dependency issue problem in one of the examples when there is no OPENGL found but that should be unrelated to the linking issue for gtest.
@yurivict Would be interesting to understand if master fixes the issue for you. Thanks.
Version: 20230806 clang-14 FreeBSD 13.2