SFML community forums

Help => General => Topic started by: RKim on April 19, 2018, 04:33:29 pm

Title: help : SFML_2_4_2_osx_clang build error on macOS High Sierra
Post by: RKim on April 19, 2018, 04:33:29 pm
I downloaded the SFML_2_4_2_osx_clang from https://www.sfml-dev.org/download/sfml/2.4.2/.

Inside the project source directory, I created build subdirectory.

cd build
cmake ../.       (attachment: cake-log.txt)
make              (attachment: make-log.txt)

The following is the snippet of the make error. It appears that I need to properly set CMakeLIsts.txt for OpenGL library ?? Any help will be appreciated.

....
 "_glMatrixMode", referenced from:
      _main in OpenGL.cpp.o
      _main in Window.cpp.o
  "_glRotatef", referenced from:
      _main in OpenGL.cpp.o
      _main in Window.cpp.o
  "_glTexCoordPointer", referenced from:
      _main in OpenGL.cpp.o
  "_glTranslatef", referenced from:
      _main in OpenGL.cpp.o
      _main in Window.cpp.o
  "_glVertexPointer", referenced from:
      _main in OpenGL.cpp.o
      _main in Window.cpp.o
  "_glViewport", referenced from:
      _main in OpenGL.cpp.o
      _main in Window.cpp.o
  "_objc_msgSend", referenced from:
      resourcePath() in ResourcePath.mm.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Title: Re: help : SFML_2_4_2_osx_clang build error on macOS High Sierra
Post by: Hiura on April 24, 2018, 07:29:39 am
I downloaded the SFML_2_4_2_osx_clang from https://www.sfml-dev.org/download/sfml/2.4.2/.
This archive contains already built binaries. If you want to build SFML either use the git version of the source code archive from the download page.