0

Everything is pretty much similar to this question except glfwInit() (all other glfw functions still cause linkage error), which is linking normally. When I tried to change 'glfw' to 'glfw3' everything is ok, but application freezes at glfwCreateWindow(). I think, I exactly needs '-glfw', not 'glfw3' but it causes linking errors. What do I have to do?

Community
  • 1
  • 1
Netherwire
  • 2,669
  • 3
  • 31
  • 54

1 Answers1

1

There were two reasons:

  1. Linkage error because of presence of deprecated glfw2 libs (just do sudo apt-get purge libglfw-dev and sudo apt-get purge libglfw2 and reinstall libglfw3.
  2. Freeze. Yup, this is a well-known unity bug. You can for example manually retrieve a valid window pointer to use it with glfw. And you also can use for example gnome or mate.
Netherwire
  • 2,669
  • 3
  • 31
  • 54