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

Author Topic: Undefined references trying to compile SFGUI 2.0 examples.  (Read 1612 times)

0 Members and 1 Guest are viewing this topic.

Sumzary

  • Guest
Undefined references trying to compile SFGUI 2.0 examples.
« on: December 05, 2013, 02:17:13 pm »
I've got SFML 2.1 point release built statically, now I'm trying to build SFGUI 2.0 point release.

Using cmake 2.8.11.2 and MinGW 4.8.1.

SFGUI seems to build fine, but then, when i get to the examples, this happens:


What could be wrong?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Undefined references trying to compile SFGUI 2.0 examples.
« Reply #1 on: December 05, 2013, 02:24:01 pm »
Btw SFGUI has its own forum. ;)

Seems like the examples don't link correctly against the static libraries. One might have to look at the CMake file.
In the meantime I suggest, you upgrade your CMake version - 2.8.12.1 is current.
« Last Edit: December 05, 2013, 02:26:38 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Undefined references trying to compile SFGUI 2.0 examples.
« Reply #2 on: December 05, 2013, 04:33:03 pm »
Did you specify SFML_STATIC_LIBRARIES as described here? A word of warning though... you need to show advanced CMake entries and remove all the old SFML library paths and reconfigure so that they get filled with the proper static library files. If you are filling in the empty fields in by hand, you will have to add -DSFML_STATIC yourself.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Sumzary

  • Guest
Re: Undefined references trying to compile SFGUI 2.0 examples.
« Reply #3 on: December 05, 2013, 09:08:01 pm »
Thanks a bunch, binary1248, SFGUI compiles fine after adding the SFML_STATIC_LIBRARIES entry.  ;)