[关闭]
@nrailgun 2017-11-24T00:45:31.000000Z 字数 614 阅读 1128

Setup Examples on Ubuntu 16.04 in CG superbible

Graphics


Update: It's much easier to run on Windows, I found.

The CMakeList of sb7 didn't take ubuntu 16.04 apt into consideration.

If you install GLFW3 on ubuntu with apt-get, then the library is named libglfw.so.3 instead of libglfw3.so. But the sb7 code link against glfw3 with flag -lglfw3.

Solutions:

  1. Install glfw3 with given source code (which I don't think is necessary). That will name the dynamic library for good.
  2. Make a symbolic link yourself. I really hate to screw with package manager. Since this solution adds only one symbolic link without making any change to apt packages, I guess it's OK.
  3. Modify the CMakeList. This is the best idea as long as you are familiar with CMake.
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注