Open in app
Home
Notifications
Lists
Stories

Write
Manuel Alférez Ruiz
Manuel Alférez Ruiz

Home

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

Manuel Alférez Ruiz

Manuel Alférez Ruiz

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable