whisper.cpp/examples
Daniel Bevenius d5cc27ee4d
examples : add dl to the list of libraries linked (#2875)
* examples : add dl to the list of libraries linked

This commit adds the dynamic linker library to the list of libraries
linked by the examples.

The motivation for this change is that when building the examples on
ubuntu 20.04, which uses GCC 9.4.0, the dynamic linker requires
explicit linking or the following error is generated:
```console
[ 64%] Linking CXX executable ../../bin/whisper-cli
cd /app/whisper.cpp/build/examples/cli && /usr/bin/cmake -E cmake_link_script CMakeFiles/whisper-cli.dir/link.txt --verbose=1
/usr/bin/c++  -O3 -DNDEBUG   CMakeFiles/whisper-cli.dir/cli.cpp.o  -o ../../bin/whisper-cli  -Wl,-rpath,/app/whisper.cpp/build/src:/app/whisper.cpp/build/ggml/src: ../libcommon.a ../../src/libwhisper.so.1.7.4 -pthread ../../ggml/src/libggml.so ../../ggml/src/libggml-cpu.so ../../ggml/src/libggml-base.so
/usr/bin/ld: ../libcommon.a(common-whisper.cpp.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [examples/cli/CMakeFiles/whisper-cli.dir/build.make:89: bin/whisper-cli] Error 1
make[2]: Leaving directory '/app/whisper.cpp/build'
make[1]: *** [CMakeFiles/Makefile2:433: examples/cli/CMakeFiles/whisper-cli.dir/all] Error 2
make[1]: Leaving directory '/app/whisper.cpp/build'
make: *** [Makefile:130: all] Error 2
```

Resolves: https://github.com/ggerganov/whisper.cpp/issues/2854
2025-03-14 04:42:20 +01:00
..
addon.node fix: missing include common-whisper (#2858) 2025-03-02 20:55:11 +02:00
bench whisper : support GGML_BACKEND_DL (#2843) 2025-02-27 13:35:07 +01:00
bench.wasm whisper : add support for large v3 (#1444) 2023-11-07 15:30:18 +02:00
cli common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
command common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
command.wasm whisper : add context param to disable gpu (#1293) 2023-11-06 11:04:24 +02:00
deprecation-warning examples : handle "main.exe" deprecation 2024-12-30 13:00:18 +02:00
lsp common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
python readme : remove invalid flag from Python example (#2396) 2024-08-30 14:00:38 +03:00
quantize whisper : reorganize source code + improve CMake (#2256) 2024-06-26 19:34:09 +03:00
server common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
stream common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
stream.wasm stream.wasm : fix invalid memory access when no segments (#1902) 2024-02-26 10:12:35 +02:00
sycl sycl: fix example build (#2570) 2024-11-18 14:57:23 +02:00
talk-llama common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
wchess common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
whisper.android android : try to fix build 2024-12-18 12:52:16 +02:00
whisper.android.java whisper : adapt to latest ggml (skip) (#0) 2024-10-05 15:23:51 +03:00
whisper.nvim whisper.nvim : fix missing reference to "model" variable (#2049) 2024-04-15 19:41:28 +03:00
whisper.objc objc : fix build, tmp remove GPU support, use C++17 2025-03-08 15:13:01 +02:00
whisper.swiftui whisper: add xcframework build script (#2873) 2025-03-13 13:56:39 +01:00
whisper.wasm whisper : add context param to disable gpu (#1293) 2023-11-06 11:04:24 +02:00
CMakeLists.txt examples : add dl to the list of libraries linked (#2875) 2025-03-14 04:42:20 +01:00
common-ggml.cpp common : remove old types 2024-12-18 12:52:16 +02:00
common-ggml.h whisper : add integer quantization support (#540) 2023-04-30 18:51:57 +03:00
common-sdl.cpp common : more general m_audio_len update logic (#2855) 2025-03-07 10:10:03 +02:00
common-sdl.h sdl : fix audio callback (#1523) 2023-11-20 13:16:38 +02:00
common-whisper.cpp common : fix audio loading by miniaudio (#2862) 2025-03-04 19:05:21 +02:00
common-whisper.h common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
common.cpp common : fix audio loading by miniaudio (#2862) 2025-03-04 19:05:21 +02:00
common.h common : fix audio loading by miniaudio (#2862) 2025-03-04 19:05:21 +02:00
ffmpeg-transcode.cpp examples : fix ffmpeg v5 build (#2543) 2024-11-13 21:41:52 +02:00
generate-karaoke.sh examples : use miniaudio for direct decoding flac, mp3, ogg and wav (#2759) 2025-02-27 09:06:54 +02:00
grammar-parser.cpp whisper : reorganize source code + improve CMake (#2256) 2024-06-26 19:34:09 +03:00
grammar-parser.h whisper : add grammar-based sampling (#1229) 2023-11-13 10:51:34 +02:00
helpers.js js : remove un-needed request header from fetchRemote (#2119) 2024-05-13 15:13:19 +03:00
json.hpp examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
livestream.sh whisper : rename binaries + fix install (#2648) 2024-12-21 09:43:49 +02:00
miniaudio.h examples : use miniaudio for direct decoding flac, mp3, ogg and wav (#2759) 2025-02-27 09:06:54 +02:00
stb_vorbis.c examples : use miniaudio for direct decoding flac, mp3, ogg and wav (#2759) 2025-02-27 09:06:54 +02:00
twitch.sh whisper : rename binaries + fix install (#2648) 2024-12-21 09:43:49 +02:00
yt-wsp.sh whisper : rename binaries + fix install (#2648) 2024-12-21 09:43:49 +02:00