Skip to content

Build Error: /usr/bin/ld: cannot find -lGL #39

Description

@mistergibson

gem install qml

... building messages ...

rm -f libqmlbind.so.1.0.0 libqmlbind.so libqmlbind.so.1 libqmlbind.so.1.0
g++ -m64 -Wl,-O1 -shared -Wl,-soname,libqmlbind.so.1 -o libqmlbind.so.1.0.0 api_application.o api_engine.o api_iterator.o api_value.o metaobject.o api_metaobject.o wrapper.o api_string.o api_component.o typeregisterer.o api_register.o exporter.o api_exporter.o api_interface.o interface.o backref.o signalemitter.o api_signal_emitter.o engine.o api_plugin.o moc_engine.o -L/usr/X11R6/lib64 -lQt5Widgets -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
Makefile:330: recipe for target 'libqmlbind.so.1.0.0' failed
make: *** [libqmlbind.so.1.0.0] Error 1
ERROR: Failed to build libqmlbind

Note: my mesa libs (libGL.so) are all installed at /usr/lib/x86_64-linux-gnu/mesa and are included in /etc/ld.so.cache - all mesa libs and headers are present. I even reset my ld cache to allow for stale data as the cause. Nope - won't build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions