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

Author Topic: help : SFML_2_4_2_osx_clang build error on macOS High Sierra  (Read 2029 times)

0 Members and 1 Guest are viewing this topic.

RKim

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
help : SFML_2_4_2_osx_clang build error on macOS High Sierra
« 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)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: help : SFML_2_4_2_osx_clang build error on macOS High Sierra
« Reply #1 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.
SFML / OS X developer

 

anything