Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Using SFML via conan produces a linker error  (Read 1299 times)

0 Members and 1 Guest are viewing this topic.

RandomEngineer

  • Newbie
  • *
  • Posts: 2
    • View Profile
Using SFML via conan produces a linker error
« on: May 08, 2020, 01:38:57 pm »
Hi everyone!

Did anyone of you successfully get SFML to work via conan? I recently tried it and surprisingly got a linker error. SFML builds and runs fine on my system (Linux Mint 18.3 with GCC 9), but apparently not through conan. Does anyone of you have an idea what the problem might be?

This is the error I'm getting:
/home/******/.conan/data/sfml/2.5.1/bincrafters/stable/package/4f882f95684146ffd495dda9058c21e895175590/lib/libsfml-window-d.so: Undefined reference to `reallocarray'
collect2: error: ld returned 1 exit status

I'd highly appreciate if anyone of you knows what's going on there. Thanks in advance!
« Last Edit: May 08, 2020, 01:40:32 pm by RandomEngineer »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Using SFML via conan produces a linker error
« Reply #1 on: May 15, 2020, 11:15:42 am »
Might simply be that the pre-built binary was created for a different distro. Maybe you can force a rebuild of the recipe?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything