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

Author Topic: Cannot find debug libraries.  (Read 2393 times)

0 Members and 1 Guest are viewing this topic.

Woocash

  • Newbie
  • *
  • Posts: 6
    • View Profile
Cannot find debug libraries.
« on: February 08, 2017, 02:41:49 am »
Hi,

I have compiled SFML by myself with tutorial given on this site and also configured Code::Blocks 16.01 with another. It works with release mode but when I am switching to debug I am getting this:

||=== Build: Debug in SFML (compiler: GNU GCC Compiler 5.4) ===|
ld||cannot find -lsfml-graphics-d|
ld||cannot find -lsfml-window-d|
ld||cannot find -lsfml-system-d|
ld||cannot find -lsfml-audio-d|
ld||cannot find -lsfml-network-d|
||error: ld returned 1 exit status|
||=== Build failed: 6 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

I am using Ubuntu 16.04.1 and SFML 2.4.1.
OS: Ubuntu 16.04.1
SFML 2.4.1
Compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Cannot find debug libraries.
« Reply #1 on: February 08, 2017, 02:42:41 am »
Did you build debug libs?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Woocash

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Cannot find debug libraries.
« Reply #2 on: February 08, 2017, 03:11:50 am »
How can I build debug libraries?

EDIT: Now I see I didn't build those libraries... Just made makefile with cmake.
« Last Edit: February 08, 2017, 03:38:12 am by Woocash »
OS: Ubuntu 16.04.1
SFML 2.4.1
Compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Cannot find debug libraries.
« Reply #3 on: February 08, 2017, 11:40:45 am »
Not sure if you figured it out, but you have to set CMAKE_BUILD_TYPE to debug. Keep in mind that on Linux you only need debug libraries, if you actually want to debug the library, i.e. step into SFML with a debugger. Where as on Windows, it's required to use debug libraries when running your application in debug mode.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Woocash

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Cannot find debug libraries.
« Reply #4 on: February 08, 2017, 12:36:55 pm »
Thanks, now everything works fine.
OS: Ubuntu 16.04.1
SFML 2.4.1
Compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

 

anything