Haivision / srt

Secure, Reliable, Transport
https://www.srtalliance.org
Mozilla Public License 2.0
3.11k stars 852 forks source link

gnutls doesn't include all link dependencies #565

Open rdp opened 5 years ago

rdp commented 5 years ago

cross compiling for windows from linux results in a ton of undefined reference to `nettle_mpz_sizeinbase_256_u' type errors:

CMakeFiles/srt-live-transmit.dir/linklibs.rsp is "missing" some pkg deps of gnutls (nettle, hogweed, etc.)

 cmake  -G"Unix Makefiles" . -DENABLE_STATIC_RUNTIME=1 -DBUILD_SHARED_LIBS=0 -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_FIND_ROOT_PATH=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_RANLIB=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-ranlib -DCMAKE_C_COMPILER=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-g++ -DCMAKE_RC_COMPILER=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-windres -DCMAKE_INSTALL_PREFIX=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 -DUSE_GNUTLS=ON -DENABLE_SHARED=OFF

[100%] Linking CXX executable srt-file-transmit.exe
/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/8.2.0/../../../../i686-w64-mingw32/bin/ld: /home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/8.2.0/../../../../i686-w64-mingw32/lib/../lib/libgnutls.a(lt19-mpi.o):mpi.c:(.text+0x31): undefined reference to `nettle_mpz_sizeinbase_256_u'
/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/8.2.0/../../../../i686-w64-mingw32/bin/ld: /home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/lib/gcc/i686-w64-mingw32/8.2.0/../../../../i686-w64-mingw32/lib/../lib/libgnutls.a(lt19-mpi.o):mpi.c:(.text+0x74): undefined reference to `nettle_mpz_get_str_256'
...
rdp commented 9 months ago

work around might be to disable apps :)