Open in app

Sign In

Write

Sign In

Manuel Alférez Ruiz
Manuel Alférez Ruiz

Home

About

Nov 19, 2020

ld: library not found for -lOpenGL::OpenGL

Problem happens when running OpenGL on macOS, with a Makefile configuration for Debian GNU/Linux. Replicating the error CMakeList.txt cmake_minimum_required(VERSION 2.8) project(MY_PROJECT)find_package(OpenGL REQUIRED) find_package(GLUT REQUIRED)set(SRCS src/main.cpp )add_executable(MY_PROJECT ${SRCS})target_link_libraries(MY_PROJECT OpenGL::OpenGL OpenGL::GLU ${GLUT_LIBRARIES})

Opengl

1 min read

Opengl

1 min read

Manuel Alférez Ruiz

Manuel Alférez Ruiz

manuelalferez.com

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams