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

Author Topic: Static library files for RelWithDebInfo configuration omitting '-s' suffix?  (Read 3854 times)

0 Members and 1 Guest are viewing this topic.

hobby

  • Newbie
  • *
  • Posts: 43
    • View Profile
Building the RelWithDebInfo configuration of SFML statically using Visual Studio on a CMake-generated solution seems to produce lib filenames without the '-s' suffix. The Release configuration of the same solution does add this suffix. Is it intentional?

I used CMake 3.3.2 on the latest SFML repository with BUILD_SHARED_LIBS=FALSE and SFML_USE_STATIC_STD_LIBS=TRUE, and built with VS 2012.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10817
    • View Profile
    • development blog
    • Email
Looks like it for some reason never got added.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

hobby

  • Newbie
  • *
  • Posts: 43
    • View Profile
This is really a minor issue, I will just switch to the Release configuration. Thanks.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10817
    • View Profile
    • development blog
    • Email
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
I'm curious: is there any compatibility issue (I'm thinking release vs debug here) with this RelWithDebInfo mode on Windows?
SFML / OS X developer

Rosme

  • Full Member
  • ***
  • Posts: 169
  • Proud member of the shoe club
    • View Profile
    • Code-Concept
It's another mode. So RelWithDebInfo is incompatible with Release, and with Debug. But it can be useful to debug release.
GitHub
Code Concept
Twitter
Rosme on IRC/Discord

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Just want to say, that including debug info in release builds is a really good thing to have working.
It doesn't cost you anything in runtime performance (although it costs a bit of disk space) but it can be invaluable when trying to debug a crash.
Debugging optimized code is *hard* but doing so without debug info is crazy hard.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10817
    • View Profile
    • development blog
    • Email
Static library files for RelWithDebInfo configuration omitting '-s' suffix?
« Reply #7 on: December 04, 2015, 09:33:00 pm »
Well I wonder if it really works with SFML for VS, given that we don't even properly build nor package the debug info for debug builds for Visual Studio (related).
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Rosme

  • Full Member
  • ***
  • Posts: 169
  • Proud member of the shoe club
    • View Profile
    • Code-Concept
I always forget that the PDB are not included. If the PDB were given(apart from the issue of generating them), I don't see why it wouldn't work.
GitHub
Code Concept
Twitter
Rosme on IRC/Discord

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10817
    • View Profile
    • development blog
    • Email
Problem being that CMake gives all the PDB files the same name and the absolute paths are embedded, i.e. making it pretty much useless to distribute.

Then again maybe there are some magic flags for CMake and VS. If so I'd like to know them. ;D
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/