I am trying to install nuklear library on Debian Stable Linux with instructions from https://github.com/golang-ui/nuklear
However, I am getting following error:
$ go get github.com/golang-ui/nuklear/nk
# github.com/go-gl/glfw/v3.2/glfw
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
# github.com/go-gl/gl/v3.2-core/gl
/usr/bin/ld: cannot find -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
I have following libGL files on my system:
me#mycomp:/usr/lib$ find | grep libGL\.so
./i386-linux-gnu/libGL.so.1.2.0
./i386-linux-gnu/libGL.so.1
./x86_64-linux-gnu/libGL.so.1.2.0
./x86_64-linux-gnu/libGL.so.1
At one page, it was suggested to install mesa-dev, but I cannot make out how to choose between following which are available:
Package Installed Previous Now State
=======================-===============-===============-===============-=====
libegl1-mesa-dev N/A 13.0.6-1+b2 13.0.6-1+b2
libgl1-mesa-dev N/A 13.0.6-1+b2 13.0.6-1+b2
libgles1-mesa-dev N/A 13.0.6-1+b2 13.0.6-1+b2
libgles2-mesa-dev N/A 13.0.6-1+b2 13.0.6-1+b2
libglu1-mesa-dev N/A 9.0.0-2.1 9.0.0-2.1
libglw1-mesa-dev N/A 8.0.0-1.1 8.0.0-1.1
How can this problem be corrected?
Edit:
The problem got corrected with following command:
sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0 /usr/lib/libGL.so
Related
I tried to install ZKTECO Linux SDK on my ubuntu 20.04
It shows an error when running build.sh
/usr/bin/ld: warning: ../lib/x86/linux-64/libzksensorcore.so, needed by ./lib64/libzkfv.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/local/lib/libidkit.so.2: undefined reference to `MD5#OPENSSL_0.9.8'
collect2: error: ld returned 1 exit status
I exported the .so files to the classpath and ld_library but nothing changed
I am open to any suggestion
I have CentOS Linux release 7.5.1804 with Qt 4.8.7 installed from base repo. I installed NVidia driver version 390.59 release date 2018.5.16.
I have libGL-mesa and libGL-mesa-devel INSTALLED also.
My graphics card Quadro K4000M is doing just fine - for example, glxgears 60fps, Qt Demos (OpenGL) work.
But when I am trying to compile the chip example, I am getting the following error:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible //lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible //usr/lib/libGL.so when searching for -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [chip] Error 1
Here is the ls command output:
[user#centos-7 ~]$ ls -h /usr/lib64/ | grep "libGL"
libGLdispatch.so.0
libGLESv1_CM_nvidia.so.1
libGLESv1_CM_nvidia.so.390.59
libGLESv1_CM.so
libGLESv1_CM.so.1
libGLESv1_CM.so.1.2.0
libGLESv2_nvidia.so.2
libGLESv2_nvidia.so.390.59
libGLESv2.so
libGLESv2.so.2
libGLESv2.so.2.1.0
libGL.la
libGL.so
libGL.so.1
libGL.so.1.7.0
libGLU.so
libGLU.so.1
libGLU.so.1.3.1
libGLX_indirect.so.0
libGLX_nvidia.so.0
libGLX_nvidia.so.390.59
libGLX.so
libGLX.so.0
How to solve the problem?
The problem is solved - I install NVIDIA the latest driver (version: 390.67 release Date: 2018.6.5) in this way: http://www.advancedclustering.com/act_kb/installing-nvidia-drivers-rhel-centos-7/.
I've attempted to build g++ v5.1.0 on my Centos 6 system. The build seems to have worked, but when I try to compile and >link< a program, the linker fails thus:
[seesdev#sees15-lin ~]$ g++ -o testcpp testcpp.cpp
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
Do I have to get a newer version of "ld"? How?
I am attempting to link with the ncurses library. This doesn't work, though. These are the error messages:
/usr/bin/ld: cannot find -lcurses
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
Makefile:102: recipe for target 'ch_lab' failed
make[1]: *** [ch_lab] Error 1
My question is, which package should I install to get this working on Ubuntu?
You should install libncurses
sudo apt-get install libncurses5-dev
PROBLEM SOLVED:::
I am using LEDA library in c++.
command used to make object file.
g++ -I$LEDAROOT/incl -c mult.cpp
this command runs fine
I am getting eroor while linking step.
HERE IS THE EROOR
varun#Kinley:~/Documents/LEDA/test/numbers$ g++ -L$LEDAROOT mult.o -lleda -lX11 -lm
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
I think I need to install some package,because when I googled this error the most of problems are solved by installing some package .
I didn't find lx11 error
some of the eroor messages that I googled.
error 1
/usr/bin/ld: cannot find -lfreetype collect2: ld returned 1 exit
status
error 2
/usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status
Links where I find these posts
http://www.qtcentre.org/threads/21069-collect2-ld-returned-1-exit-status
http://www.cyberciti.biz/faq/centos-rhel-redhat-usrbinld-cannot-findlc-error/
Do I need to install some package or there is some other problem
Could be two things
1) The X11 library is installed in a non-standard path. Use the search command to see if libX11.a or libX11.so is available on your system. If yes add the directory path to the -L option.
2) You are missing the libX11 library.
In this case, login as admin and use yum (assuming linux) to install this library.
Eg:
"yum install libX11.i386" or "yum install libX11.x86_64", depending on your architecture (32 bit or 64 bit).