Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] SDL2_ttf linking problems when configuring cmake #16440

Closed
1 task
mcnugets opened this issue Jun 8, 2024 · 5 comments
Closed
1 task

[question] SDL2_ttf linking problems when configuring cmake #16440

mcnugets opened this issue Jun 8, 2024 · 5 comments

Comments

@mcnugets
Copy link

mcnugets commented Jun 8, 2024

What is your question?

I have a problem with configuring SDL2_ttf as the cmake fails to recognize it:

1.16 CMake Error at CMakeLists.txt:14 (add_executable): 
71.16  Target "gamedev_env" links to target "SDL2_ttf::SDL2_ttf" but the target 71.16  was not found. Perhaps a find_package() call is missing for an IMPORTED 71.16  target, or an ALIAS target is missing?

Here is my CMakeLists.txt content

cmake_minimum_required(VERSION 3.15)
project(gamedev_env CXX)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build")


find_package(Bullet REQUIRED)
find_package(Vulkan REQUIRED)
find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED)
find_package(SDL2_ttf REQUIRED)


add_executable(${PROJECT_NAME} src/main.cpp)

target_link_libraries(${PROJECT_NAME} Bullet::Bullet)
target_link_libraries(${PROJECT_NAME} Vulkan::Vulkan)
target_link_libraries(${PROJECT_NAME} SDL2::SDL2)
target_link_libraries(${PROJECT_NAME} SDL2_image::SDL2_image)
target_link_libraries(${PROJECT_NAME} SDL2_ttf::SDL2_ttf)

Is there a way to solve this? I had no issue with other dependencies

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded
Copy link
Member

Hi @mcnugets

Thanks for your question
Can you please share the output of conan install command? That will list the exact target name to use.

I think it might be missing SDL2_ttf::SDL2_ttf-static suffic

@mcnugets
Copy link
Author

mcnugets commented Jun 8, 2024

Hi @memsharded

my conan install command: conan install . -c tools.system.package_manager:mode=install --output-folder=build --build=missing --update

Thank you for the message here is the output:

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
[conf]
tools.system.package_manager:mode=install

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux


======== Computing dependency graph ========
sdl/2.28.3: Checking remote: conancenter
libiconv/1.17: Checking remote: conancenter
libalsa/1.2.10: Checking remote: conancenter
libtool/2.4.7: Checking remote: conancenter
automake/1.16.5: Checking remote: conancenter
autoconf/2.71: Checking remote: conancenter
m4/1.4.19: Checking remote: conancenter
gnu-config/cci.20210814: Checking remote: conancenter
pulseaudio/14.2: Checking remote: conancenter
libsndfile/1.2.2: Checking remote: conancenter
ogg/1.3.5: Checking remote: conancenter
vorbis/1.3.7: Checking remote: conancenter
flac/1.4.2: Checking remote: conancenter
opus/1.4: Checking remote: conancenter
mpg123/1.31.2: Checking remote: conancenter
pkgconf/2.0.3: Checking remote: conancenter
meson/1.2.2: Checking remote: conancenter
ninja/1.11.1: Checking remote: conancenter
yasm/1.3.0: Checking remote: conancenter
libmp3lame/3.100: Checking remote: conancenter
libcap/2.69: Checking remote: conancenter
xorg/system: Checking remote: conancenter
openssl/3.2.2: Checking remote: conancenter
zlib/1.3.1: Checking remote: conancenter
gettext/0.21: Checking remote: conancenter
pkgconf/2.1.0: Checking remote: conancenter
opengl/system: Checking remote: conancenter
wayland/1.22.0: Checking remote: conancenter
libffi/3.4.4: Checking remote: conancenter
libxml2/2.12.7: Checking remote: conancenter
expat/2.6.2: Checking remote: conancenter
meson/1.4.0: Checking remote: conancenter
xkbcommon/1.6.0: Checking remote: conancenter
xkeyboard-config/system: Checking remote: conancenter
meson/1.3.2: Checking remote: conancenter
bison/3.8.2: Checking remote: conancenter
flex/2.6.4: Checking remote: conancenter
wayland-protocols/1.33: Checking remote: conancenter
meson/1.3.0: Checking remote: conancenter
egl/system: Checking remote: conancenter
libunwind/1.8.0: Checking remote: conancenter
xz_utils/5.4.5: Checking remote: conancenter
cmake/3.29.4: Checking remote: conancenter
bullet3/3.25: Checking remote: conancenter
vulkan-loader/1.3.268.0: Checking remote: conancenter
vulkan-headers/1.3.268.0: Checking remote: conancenter
sdl_image/2.6.3: Checking remote: conancenter
libtiff/4.6.0: Checking remote: conancenter
libdeflate/1.19: Checking remote: conancenter
libjpeg/9e: Checking remote: conancenter
jbig/20160605: Checking remote: conancenter
zstd/1.5.5: Checking remote: conancenter
libwebp/1.3.2: Checking remote: conancenter
libpng/1.6.40: Checking remote: conancenter
sdl_ttf/2.20.1: Checking remote: conancenter
freetype/2.13.2: Checking remote: conancenter
bzip2/1.0.8: Checking remote: conancenter
brotli/1.1.0: Checking remote: conancenter
Graph root
    conanfile.py (gamedev_env/1.0): /home/sulla/vscode_projects/vscode/low-level-gamedev-env/conanfile.py
Requirements
    autoconf/2.71#f9307992909d7fb3df459340f1932809 - Cache (conancenter)
    automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50 - Cache (conancenter)
    brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519 - Cache (conancenter)
    bullet3/3.25#370bb7ce7faf0310d53fea75de351248 - Cache (conancenter)
    bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Cache (conancenter)
    egl/system#068ac3037d8cf01f768d0e001e6dcd76 - Cache (conancenter)
    expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b - Cache (conancenter)
    flac/1.4.2#d4051f8b37ee93725dea40dfd6a10168 - Cache (conancenter)
    freetype/2.13.2#7934d59c447d72edcd56025dc60e1aeb - Cache (conancenter)
    jbig/20160605#2d29fa02aacd76902e0d2cbbc24631ef - Cache (conancenter)
    libalsa/1.2.10#8b568d62190ef588cd5dcdd81171c289 - Cache (conancenter)
    libcap/2.69#7ef2d60864c2e58e89db957be936dc49 - Cache (conancenter)
    libdeflate/1.19#3ea74a4549efc14d4b1202dc4bfbf602 - Cache (conancenter)
    libffi/3.4.4#72cccac6139293b6e97ec9cd676547ff - Cache (conancenter)
    libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd - Cache (conancenter)
    libjpeg/9e#3cd27a78643419450ee6d3739514d25c - Cache (conancenter)
    libmp3lame/3.100#44b12d19316eb2b223d98d3e75dae438 - Cache (conancenter)
    libpng/1.6.40#06f726bd4bfd83f5cdc10587826093f0 - Cache (conancenter)
    libsndfile/1.2.2#b3662f832e29507e8d9840a43737cc14 - Cache (conancenter)
    libtiff/4.6.0#51d0e7e15d032aeec1b64e65c44ecd9f - Cache (conancenter)
    libtool/2.4.7#08316dad5c72c541ed21e039e4cf217b - Cache (conancenter)
    libunwind/1.8.0#045502d366b4ce2bc52a492648e62d2b - Cache (conancenter)
    libwebp/1.3.2#52f69c4a31c5cf033fdd9230d77a8e38 - Cache (conancenter)
    libxml2/2.12.7#737a1eba03113d1aa22d67579ced7d5e - Cache (conancenter)
    m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Cache (conancenter)
    mpg123/1.31.2#ce831c936b2284e2066ab3dc58a2628e - Cache (conancenter)
    ogg/1.3.5#062626875f5c8c59f069f76f148098ef - Cache (conancenter)
    opengl/system#4df6fecde4084386beded3ed0e56e4ea - Cache (conancenter)
    openssl/3.2.2#899583c694f9deccec74dbe0bbc65a15 - Cache (conancenter)
    opus/1.4#54631f551fc450783fb2df8cd63f80a2 - Cache (conancenter)
    pulseaudio/14.2#bedb313afed20242c7caa27ae3e10af8 - Cache (conancenter)
    sdl/2.28.3#80647ebd83596b1b39f1f4b6e9daac37 - Cache (conancenter)
    sdl_image/2.6.3#c8e61ff7f4695e3b5d5030fc1f22a17d - Cache (conancenter)
    sdl_ttf/2.20.1#dadbbddccfcc4c4a099dcf4df4fef450 - Cache (conancenter)
    vorbis/1.3.7#37e58f52e59a6232199b34ef402714a6 - Cache (conancenter)
    vulkan-headers/1.3.268.0#830f0f3a78551d9966e3aca789fbaa98 - Cache (conancenter)
    vulkan-loader/1.3.268.0#5bbb5c403e3ecfefbd5201e20658a2dc - Cache (conancenter)
    wayland/1.22.0#284b56bdbe57868770f46100784e3b4d - Cache (conancenter)
    xkbcommon/1.6.0#71f9ce7ed3e1d3b40cbb8c449766b15f - Cache (conancenter)
    xkeyboard-config/system#57dd5c08e72ab06bc2ee0e756c0a2c41 - Cache (conancenter)
    xorg/system#f626cbdd0ba57d9c53bce2d8b9362fad - Cache (conancenter)
    xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad - Cache (conancenter)
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache (conancenter)
    zstd/1.5.5#1f239731dc45147c7fc2f54bfbde73df - Cache (conancenter)
Build requirements
    autoconf/2.71#f9307992909d7fb3df459340f1932809 - Cache (conancenter)
    automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50 - Cache (conancenter)
    bison/3.8.2#ed1ba0c42d2ab7ab64fc3a62e9ecc673 - Cache (conancenter)
    cmake/3.29.4#7ee48c8c484d6df78ac27d64940c26b2 - Cache (conancenter)
    expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b - Cache (conancenter)
    flex/2.6.4#e35bc44b3fcbcd661e0af0dc5b5b1ad4 - Cache (conancenter)
    gettext/0.21#a2bd3513f212013764c9040f4c70ed69 - Cache (conancenter)
    gnu-config/cci.20210814#dc430d754f465e8c74463019672fb97b - Cache (conancenter)
    libffi/3.4.4#72cccac6139293b6e97ec9cd676547ff - Cache (conancenter)
    libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd - Cache (conancenter)
    libtool/2.4.7#08316dad5c72c541ed21e039e4cf217b - Cache (conancenter)
    libxml2/2.12.7#737a1eba03113d1aa22d67579ced7d5e - Cache (conancenter)
    m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Cache (conancenter)
    meson/1.2.2#04bdfb85d665c82b08a3510aee3ffd19 - Cache (conancenter)
    meson/1.3.0#67eebe98438326590a9285377c37cea2 - Cache (conancenter)
    meson/1.3.2#d1125ba555ec1a94f165a3412fdf7f88 - Cache (conancenter)
    meson/1.4.0#024dfac41ea5570cb1aec3ea6fe34d0a - Cache (conancenter)
    ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21 - Cache (conancenter)
    pkgconf/2.0.3#f996677e96e61e6552d85e83756c328b - Cache (conancenter)
    pkgconf/2.1.0#27f44583701117b571307cf5b5fe5605 - Cache (conancenter)
    wayland/1.22.0#284b56bdbe57868770f46100784e3b4d - Cache (conancenter)
    wayland-protocols/1.33#b9e56b7662c2a25f30bfb4eb72df9ad6 - Cache (conancenter)
    yasm/1.3.0#fb800a15413dca19bfaef9e4b5d50694 - Cache (conancenter)
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache (conancenter)
Resolved version ranges
    cmake/[>3.27 <4]: cmake/3.29.4
    cmake/[>=3.16 <4]: cmake/3.29.4
    cmake/[>=3.17.2 <4.0]: cmake/3.29.4
    cmake/[>=3.18 <4]: cmake/3.29.4
    expat/[>=2.6.2 <3]: expat/2.6.2
    libxml2/[>=2.12.5 <3]: libxml2/2.12.7
    openssl/[>=1.1 <4]: openssl/3.2.2
    zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ========
brotli/1.1.0: Current package revision is newer than the remote one
bullet3/3.25: Current package revision is newer than the remote one
bzip2/1.0.8: Current package revision is newer than the remote one
egl/system: Current package revision is newer than the remote one
expat/2.6.2: Current package revision is newer than the remote one
jbig/20160605: Current package revision is newer than the remote one
libcap/2.69: Current package revision is newer than the remote one
libdeflate/1.19: Current package revision is newer than the remote one
libffi/3.4.4: Current package revision is newer than the remote one
libiconv/1.17: Current package revision is newer than the remote one
libjpeg/9e: Current package revision is newer than the remote one
libwebp/1.3.2: Current package revision is newer than the remote one
m4/1.4.19: Current package revision is newer than the remote one
ogg/1.3.5: Current package revision is newer than the remote one
opengl/system: Current package revision is newer than the remote one
opus/1.4: Current package revision is newer than the remote one
vulkan-headers/1.3.268.0: Current package revision is newer than the remote one
xkeyboard-config/system: Current package revision is newer than the remote one
xorg/system: Current package revision is newer than the remote one
xz_utils/5.4.5: Current package revision is newer than the remote one
zlib/1.3.1: Current package revision is newer than the remote one
zstd/1.5.5: Current package revision is newer than the remote one
autoconf/2.71: Current package revision is newer than the remote one
flac/1.4.2: Compatible package ID 01fe6dbfc4b61d1b87e784b3d1d1803b74a38466 equal to the default package ID: Skipping it.
flac/1.4.2: Checking 11 compatible configurations
flac/1.4.2: '9837fd2d4cca025748b949398d4b1c1d1c7a00cb': compiler.cppstd=98
flac/1.4.2: '64b92a1f13552690776b9574bf2dc5ff3b578510': compiler.cppstd=gnu98
flac/1.4.2: '26263fa5cbbff2f83f2319a57655af042ef91ed2': compiler.cppstd=11
flac/1.4.2: '20b5b5cb98291c0dc59c755f3c2c2b1983b451e1': compiler.cppstd=gnu11
flac/1.4.2: 'e7fe8ca9bdff23eb64520e0977af60b7f5e94d90': compiler.cppstd=14
flac/1.4.2: '376872fde599cef4542bd46dd8a19ecad6cd907b': compiler.cppstd=gnu14
flac/1.4.2: 'b8bb359ea6eee8ec25fcdfe71b4186677bd5c9a7': compiler.cppstd=17
flac/1.4.2: Current package revision is newer than the remote one
flac/1.4.2: Main binary package '01fe6dbfc4b61d1b87e784b3d1d1803b74a38466' missing. Using compatible package 'b8bb359ea6eee8ec25fcdfe71b4186677bd5c9a7': compiler.cppstd=17
libmp3lame/3.100: Current package revision is newer than the remote one
libpng/1.6.40: Current package revision is newer than the remote one
libtiff/4.6.0: Compatible package ID 6328ea13bc011f46c31f08389a3e6535deb6c963 equal to the default package ID: Skipping it.
libtiff/4.6.0: Checking 11 compatible configurations
libtiff/4.6.0: 'dcb047323c9d4f33fe8e2304b03df4e0e4ef685b': compiler.cppstd=98
libtiff/4.6.0: 'f63687c98e95b8719aa57b9ece357faca4f77260': compiler.cppstd=gnu98
libtiff/4.6.0: 'f8201b430ed8898b0b60e106f6692490a08183c7': compiler.cppstd=11
libtiff/4.6.0: '4ca05e8dc9b84ac8f87facf9a9832c75f5bc8a52': compiler.cppstd=gnu11
libtiff/4.6.0: '065f1fdd3a7d8c54d8de71368de5cee0a384a1d6': compiler.cppstd=14
libtiff/4.6.0: '315cfb6ee0a7de50c92d817267307508f24ad344': compiler.cppstd=gnu14
libtiff/4.6.0: '8141500ef0fe16b0b5a7ae18bd1ea1ba6d45de2c': compiler.cppstd=17
libtiff/4.6.0: Current package revision is newer than the remote one
libtiff/4.6.0: Main binary package '6328ea13bc011f46c31f08389a3e6535deb6c963' missing. Using compatible package '8141500ef0fe16b0b5a7ae18bd1ea1ba6d45de2c': compiler.cppstd=17
libunwind/1.8.0: Current package revision is newer than the remote one
openssl/3.2.2: Current package revision is newer than the remote one
vorbis/1.3.7: Current package revision is newer than the remote one
automake/1.16.5: Current package revision is newer than the remote one
freetype/2.13.2: Current package revision is newer than the remote one
libtool/2.4.7: Current package revision is newer than the remote one
libxml2/2.12.7: Current package revision is newer than the remote one
mpg123/1.31.2: Current package revision is newer than the remote one
vulkan-loader/1.3.268.0: Current package revision is newer than the remote one
libalsa/1.2.10: Current package revision is newer than the remote one
libsndfile/1.2.2: Compatible package ID 926041235ddaa3a983121414566faad581af0dd5 equal to the default package ID: Skipping it.
libsndfile/1.2.2: Checking 11 compatible configurations
libsndfile/1.2.2: 'eda458999c40209916f9826f2c10e97d05eae5cf': compiler.cppstd=98
libsndfile/1.2.2: '5a0c30cf0ff71fb7c413eb54f62b0574f6853be7': compiler.cppstd=gnu98
libsndfile/1.2.2: '1cc48a08860f49d7e1abd484e38cb88f364cdbab': compiler.cppstd=11
libsndfile/1.2.2: 'd6ef0cbe1e063adb05b524a17e250484e4bcea32': compiler.cppstd=gnu11
libsndfile/1.2.2: 'e7bc64daf63c612f13c8e7b72d3229661df73261': compiler.cppstd=14
libsndfile/1.2.2: '1c3fbb3f9d739595dfc9a088ba5a802670743d6c': compiler.cppstd=gnu14
libsndfile/1.2.2: 'f908b994399fc4c25d1bb440f118f76f7ad7d99f': compiler.cppstd=17
libsndfile/1.2.2: Current package revision is newer than the remote one
libsndfile/1.2.2: Main binary package '926041235ddaa3a983121414566faad581af0dd5' missing. Using compatible package 'f908b994399fc4c25d1bb440f118f76f7ad7d99f': compiler.cppstd=17
wayland/1.22.0: Current package revision is newer than the remote one
pulseaudio/14.2: Current package revision is newer than the remote one
xkbcommon/1.6.0: Current package revision is newer than the remote one
sdl/2.28.3: Current package revision is newer than the remote one
sdl_image/2.6.3: WARN: Can't update, no package in remote
sdl_ttf/2.20.1: Current package revision is newer than the remote one
Requirements
    autoconf/2.71#f9307992909d7fb3df459340f1932809:da39a3ee5e6b4b0d3255bfef95601890afd80709#5b77f70c17ad1741f5845d4e468a347e - Cache
    automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50:9a4eb3c8701508aa9458b1a73d0633783ecc2270#9719e51a6a62041af6a63e00eef35434 - Cache
    brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519:5b903b7d3547e48038c8edfc531cf76728b899e8#bf102045d25236e2d81376e0e48604cd - Cache
    bullet3/3.25#370bb7ce7faf0310d53fea75de351248:d11bafbefb837250efe9654bd297844add36f772#bbbda8659930a142c77021829a9b5553 - Cache
    bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4:763ddd53d7a4775fe84a285f56005a096d9786fd#53f22895547ac66130effcf590404b46 - Cache
    egl/system#068ac3037d8cf01f768d0e001e6dcd76:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
    expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b:2ed03cd8691ea01deb11f88b5c95aa5195ec4816#48db6c5dbe7de05591310430b4b1ee7e - Cache
    flac/1.4.2#d4051f8b37ee93725dea40dfd6a10168:b8bb359ea6eee8ec25fcdfe71b4186677bd5c9a7#7ef582f70bcbfd4bfa3e1b02bc53cc67 - Cache
    freetype/2.13.2#7934d59c447d72edcd56025dc60e1aeb:739e41967cd8e90e567861f59c4c6a1087fe7977#0aa1681909e055ab15235c6492fe640f - Cache
    jbig/20160605#2d29fa02aacd76902e0d2cbbc24631ef:d529a33abf04a079c05de395d985d1a67619d741#3f360af5e9436f349a68fa935680ed69 - Cache
    libalsa/1.2.10#8b568d62190ef588cd5dcdd81171c289:5fa9eb432b28b79c0246ad3b98d042ed84a2b1ca#c1bb5d98e4f7ee95ed4c053d78b098d1 - Cache
    libcap/2.69#7ef2d60864c2e58e89db957be936dc49:e394d65b8a668d2483958bc3fb8d1c2c1729493b#3c3933c66c034c965f4630aab05876f8 - Cache
    libdeflate/1.19#3ea74a4549efc14d4b1202dc4bfbf602:b647c43bfefae3f830561ca202b6cfd935b56205#9bc4c23d5a533af536148055c70acce8 - Cache
    libffi/3.4.4#72cccac6139293b6e97ec9cd676547ff:b647c43bfefae3f830561ca202b6cfd935b56205#26af75302078f154b292d409f1607c49 - Cache
    libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd:b647c43bfefae3f830561ca202b6cfd935b56205#4fd44fefea7c20a6b0f1826c2b875a8c - Cache
    libjpeg/9e#3cd27a78643419450ee6d3739514d25c:b647c43bfefae3f830561ca202b6cfd935b56205#26e0d5731f4223dc20fe9c0d2d4bb6d7 - Cache
    libmp3lame/3.100#44b12d19316eb2b223d98d3e75dae438:b647c43bfefae3f830561ca202b6cfd935b56205#82323ff769c108f6dfb11bab369186b1 - Cache
    libpng/1.6.40#06f726bd4bfd83f5cdc10587826093f0:19b397f6e54f5b8b2c6f7b81c4dce4c52d386e4f#734d739c00955f27c7990f34940bf86f - Cache
    libsndfile/1.2.2#b3662f832e29507e8d9840a43737cc14:f908b994399fc4c25d1bb440f118f76f7ad7d99f#04c7be41a5fb12bbef56e1bdf7c06812 - Cache
    libtiff/4.6.0#51d0e7e15d032aeec1b64e65c44ecd9f:8141500ef0fe16b0b5a7ae18bd1ea1ba6d45de2c#9cfbc4384bc6f5b5d201fe63c2bf2334 - Cache
    libtool/2.4.7#08316dad5c72c541ed21e039e4cf217b:b647c43bfefae3f830561ca202b6cfd935b56205#f4c8da5bffcf49cdf1b4ce011cab7737 - Cache
    libunwind/1.8.0#045502d366b4ce2bc52a492648e62d2b:f29b828289344a131cad8e7680cf053b0ffc2b09#d3df769af1fe61dd1c159dd83b6e0ca2 - Cache
    libwebp/1.3.2#52f69c4a31c5cf033fdd9230d77a8e38:18f01a3f175888d5e3d128efe30c14773afadc83#e55816e5d48a3854454abdc32720bcad - Cache
    libxml2/2.12.7#737a1eba03113d1aa22d67579ced7d5e:835058a17375647fa8abeb3ed1b1faf0ef8f504f#7dd444903cc32b1866112ab9383d8e01 - Cache
    m4/1.4.19#b38ced39a01e31fef5435bc634461fd2:3593751651824fb813502c69c971267624ced41a#cd8019a4f9b70880d548f7cc26569604 - Cache
    mpg123/1.31.2#ce831c936b2284e2066ab3dc58a2628e:cd3321362832070e917e6965cd88f846ae82dcde#af693051b29a0ddacb0cc579fef7906e - Cache
    ogg/1.3.5#062626875f5c8c59f069f76f148098ef:b647c43bfefae3f830561ca202b6cfd935b56205#eb65b3e6ebe9c8667bc03f5638e4b3dd - Cache
    opengl/system#4df6fecde4084386beded3ed0e56e4ea:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
    openssl/3.2.2#899583c694f9deccec74dbe0bbc65a15:ba0c965640dfc9185194d683d05bfbe6419b47a3#314f203a85c840d3412510eb1c1f4ac5 - Cache
    opus/1.4#54631f551fc450783fb2df8cd63f80a2:4df585f63ebee00f46c117ab89b69f931e4b3d26#ea184fe0fbc1bb3e18c551df32da5002 - Cache
    pulseaudio/14.2#bedb313afed20242c7caa27ae3e10af8:3ccd173ab917968fc66c7121dcd52e8388a1ed47#ed3c4fde2d64919af7562ba0acb46284 - Cache
    sdl/2.28.3#80647ebd83596b1b39f1f4b6e9daac37:71f48a097052d28b414a13452c0b88bc3b0b42a2#5942dc3263857c5604ad09f1a4dce583 - Cache
    sdl_image/2.6.3#c8e61ff7f4695e3b5d5030fc1f22a17d:605d866f558161ceb403e201c225f323939fff29#7ff21cf763411105dbd468ea698758d0 - Cache
    sdl_ttf/2.20.1#dadbbddccfcc4c4a099dcf4df4fef450:cd4efb67756b7b654fe80d2ae227dfde443820b5#0cd5acfdcd88718077d0c445b3e5eff2 - Cache
    vorbis/1.3.7#37e58f52e59a6232199b34ef402714a6:a7b68b4d31174eb97fff2f0a35ab28a9c1fd5e42#c6d1add45a7ed260effeef5dcb198e98 - Cache
    vulkan-headers/1.3.268.0#830f0f3a78551d9966e3aca789fbaa98:da39a3ee5e6b4b0d3255bfef95601890afd80709#25e71157a9d0d449211d5a5e6b2909b4 - Cache
    vulkan-loader/1.3.268.0#5bbb5c403e3ecfefbd5201e20658a2dc:54435727cffaa845a3841ab463be3e9349488f71#3557370e0daf9ca311c6de8a4aa7e688 - Cache
    wayland/1.22.0#284b56bdbe57868770f46100784e3b4d:9ef61cfe051f69b8cce843b72e11408e15171fab#2f4a3f922deed888a7661360b8094ee3 - Cache
    xkbcommon/1.6.0#71f9ce7ed3e1d3b40cbb8c449766b15f:24060eb1e52f1ce13c6102f08ed64ce54503c767#8f95f4dbcb9c6bc629e96e8c12cd0c91 - Cache
    xkeyboard-config/system#57dd5c08e72ab06bc2ee0e756c0a2c41:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
    xorg/system#f626cbdd0ba57d9c53bce2d8b9362fad:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
    xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad:b647c43bfefae3f830561ca202b6cfd935b56205#138de75176063b63b5390d111d4af0e2 - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:b647c43bfefae3f830561ca202b6cfd935b56205#6b307bbcbae23635c4006543ffdbf3ef - Cache
    zstd/1.5.5#1f239731dc45147c7fc2f54bfbde73df:c1b14c3945d5adf1e5ae440c43c12f88117f2edc#5766258f0ea4ee0d0a66a93cffb8b93a - Cache
Build requirements
Skipped binaries
    autoconf/2.71, automake/1.16.5, bison/3.8.2, cmake/3.29.4, expat/2.6.2, flex/2.6.4, gettext/0.21, gnu-config/cci.20210814, libffi/3.4.4, libiconv/1.17, libtool/2.4.7, libxml2/2.12.7, m4/1.4.19, meson/1.2.2, meson/1.3.0, meson/1.3.2, meson/1.4.0, ninja/1.11.1, pkgconf/2.0.3, pkgconf/2.1.0, wayland-protocols/1.33, wayland/1.22.0, yasm/1.3.0, zlib/1.3.1
egl/system: System requirements:  already installed
opengl/system: System requirements:  already installed
xkeyboard-config/system: System requirements:  already installed
xorg/system: System requirements:  already installed
xorg/system: System requirements:  already installed

======== Installing packages ========
brotli/1.1.0: Already installed! (1 of 44)
bullet3/3.25: Already installed! (2 of 44)
bzip2/1.0.8: Already installed! (3 of 44)
egl/system: Already installed! (4 of 44)
expat/2.6.2: Already installed! (5 of 44)
jbig/20160605: Already installed! (6 of 44)
libcap/2.69: Already installed! (7 of 44)
libdeflate/1.19: Already installed! (8 of 44)
libffi/3.4.4: Already installed! (9 of 44)
libiconv/1.17: Already installed! (10 of 44)
libjpeg/9e: Already installed! (11 of 44)
libwebp/1.3.2: Already installed! (12 of 44)
m4/1.4.19: Already installed! (13 of 44)
ogg/1.3.5: Already installed! (14 of 44)
opengl/system: Already installed! (15 of 44)
opus/1.4: Already installed! (16 of 44)
vulkan-headers/1.3.268.0: Already installed! (17 of 44)
xkeyboard-config/system: Already installed! (18 of 44)
xorg/system: Already installed! (19 of 44)
xz_utils/5.4.5: Already installed! (20 of 44)
zlib/1.3.1: Already installed! (21 of 44)
zstd/1.5.5: Already installed! (22 of 44)
libmp3lame/3.100: Already installed! (23 of 44)
mpg123/1.31.2: Already installed! (24 of 44)
mpg123/1.31.2: Appending PATH environment variable: /home/sulla/.conan2/p/mpg12d35da3a7a5ab9/p/bin
libalsa/1.2.10: Already installed! (25 of 44)
autoconf/2.71: Already installed! (26 of 44)
flac/1.4.2: Already installed! (27 of 44)
libpng/1.6.40: Already installed! (28 of 44)
libtiff/4.6.0: Already installed! (29 of 44)
libunwind/1.8.0: Already installed! (30 of 44)
openssl/3.2.2: Already installed! (31 of 44)
vorbis/1.3.7: Already installed! (32 of 44)
libxml2/2.12.7: Already installed! (33 of 44)
libxml2/2.12.7: Appending PATH environment variable: /home/sulla/.conan2/p/libxm13ba99bc5c25b/p/bin
vulkan-loader/1.3.268.0: Already installed! (34 of 44)
automake/1.16.5: Already installed! (35 of 44)
freetype/2.13.2: Already installed! (36 of 44)
libsndfile/1.2.2: Already installed! (37 of 44)
wayland/1.22.0: Already installed! (38 of 44)
libtool/2.4.7: Already installed! (39 of 44)
libtool/2.4.7: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
libtool/2.4.7: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
xkbcommon/1.6.0: Already installed! (40 of 44)
pulseaudio/14.2: Already installed! (41 of 44)
sdl/2.28.3: Already installed! (42 of 44)
sdl_image/2.6.3: Already installed! (43 of 44)
sdl_ttf/2.20.1: Already installed! (44 of 44)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'cpp_info.names' used in: libpng/1.6.40, mpg123/1.31.2, bzip2/1.0.8, libalsa/1.2.10, vorbis/1.3.7, opus/1.4, libdeflate/1.19, libsndfile/1.2.2, libxml2/2.12.7, expat/2.6.2, libwebp/1.3.2, libiconv/1.17, sdl_image/2.6.3, vulkan-headers/1.3.268.0, libjpeg/9e, xkbcommon/1.6.0, openssl/3.2.2, ogg/1.3.5, libtiff/4.6.0, flac/1.4.2, bullet3/3.25, sdl/2.28.3, zstd/1.5.5, sdl_ttf/2.20.1, brotli/1.1.0, xz_utils/5.4.5, zlib/1.3.1, freetype/2.13.2
WARN: deprecated:     'cpp_info.build_modules' used in: bullet3/3.25, libxml2/2.12.7, bzip2/1.0.8, openssl/3.2.2, xz_utils/5.4.5, freetype/2.13.2
WARN: deprecated:     'env_info' used in: flac/1.4.2, libsndfile/1.2.2, zstd/1.5.5, mpg123/1.31.2, m4/1.4.19, bzip2/1.0.8, libxml2/2.12.7, libalsa/1.2.10, autoconf/2.71, openssl/3.2.2, wayland/1.22.0, automake/1.16.5, libtool/2.4.7, xkbcommon/1.6.0, libiconv/1.17, jbig/20160605, freetype/2.13.2
WARN: deprecated:     'cpp_info.filenames' used in: vulkan-headers/1.3.268.0, flac/1.4.2, libxml2/2.12.7, mpg123/1.31.2, opengl/system, freetype/2.13.2
WARN: deprecated:     'user_info' used in: automake/1.16.5, freetype/2.13.2

======== Finalizing install (deploy, generators) ========
conanfile.py (gamedev_env/1.0): Calling generate()
conanfile.py (gamedev_env/1.0): Generators folder: /home/sulla/vscode_projects/vscode/low-level-gamedev-env/build/build/Release/generators
conanfile.py (gamedev_env/1.0): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(Bullet)
    find_package(VulkanLoader)
    find_package(SDL2_image)
    find_package(SDL2_ttf)
    find_package(SDL2)
    target_link_libraries(... Bullet::Bullet Vulkan::Loader SDL2_image::SDL2_image sdl_ttf::sdl_ttf SDL2::SDL2main)
conanfile.py (gamedev_env/1.0): CMakeToolchain generated: conan_toolchain.cmake
conanfile.py (gamedev_env/1.0): CMakeToolchain: Preset 'conan-release' added to CMakePresets.json.
    (cmake>=3.23) cmake --preset conan-release
    (cmake<3.23) cmake <path> -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake  -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release
conanfile.py (gamedev_env/1.0): CMakeToolchain generated: /home/sulla/vscode_projects/vscode/low-level-gamedev-env/build/build/Release/generators/CMakePresets.json
conanfile.py (gamedev_env/1.0): CMakeToolchain generated: /home/sulla/vscode_projects/vscode/low-level-gamedev-env/CMakeUserPresets.json
conanfile.py (gamedev_env/1.0): Generating aggregated env files
conanfile.py (gamedev_env/1.0): Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
Install finished successfully


@memsharded
Copy link
Member

Thanks for the feedback.

If you check the output of the conan install you can see:

target_link_libraries(... Bullet::Bullet Vulkan::Loader SDL2_image::SDL2_image sdl_ttf::sdl_ttf SDL2::SDL2main)

It seems the target names for that package is sdl_ttf::sdl_ttf, not with upper case, please try that.

@mcnugets
Copy link
Author

mcnugets commented Jun 8, 2024

@memsharded thank you for the response, but I actually solved the problem.
I had this in upper-case before, but the main issue was when linking targets in CMakeLists.txt it should be: SDL2_ttf::SDL2_ttf-static where I wrote it as SDL2_ttf::SDL2_tff

@mcnugets mcnugets closed this as completed Jun 8, 2024
@memsharded
Copy link
Member

Ok, happy to hear, that was what I was suggesting in #16440 (comment), about the missing -static suffix, I saw it in the recipe. Thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants