dengnianchen / fovnerf

MIT License
54 stars 7 forks source link

Issues installing and running the opengl viewer #2

Closed dlazares closed 2 weeks ago

dlazares commented 1 year ago

Hey @dengnianchen I was able to install and train the models but I'm unable to get the view_gl viewer compiled and working.

I verified I'm running all the required versions

trtexec and nvcc are working and returning the correct versions.

When I run sudo apt install libglfw3 libglfw3-dev libglew2.1 libglew-dev glew-utils libglm-dev, I get the following error:

E: Unable to locate package libglew2.1
E: Couldn't find any package by glob 'libglew2.1'
E: Couldn't find any package by regex 'libglew2.1'

I ran the above command again without libglew2.1 since it seems this is not available on ubuntu 18.04 package manager. Then I tried compiling the viewer using cd cpp/view_gl; make

After continuing like this, I get the following error

/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libGL.so: undefined reference to `_glapi_tls_Current'
collect2: error: ld returned 1 exit status
../Makefile.config:301: recipe for target '../bin/view_gl_debug' failed

Do you have any tips, fixes, or advice on setting this part up?

Thanks!

dlazares commented 1 year ago

what version nvidia driver do you use?

dengnianchen commented 1 year ago

My ubuntu version is also 18.04, driver version is 465.19.01 and Cuda version is 11.3 so if search your apt repo with apt search libglew* what will be printed out?

dlazares commented 1 year ago
Sorting... Done
Full Text Search... Done
glew-utils/focal,now 2.1.0-4 amd64 [installed]
  OpenGL Extension Wrangler - utilities

libglapi-mesa/focal-updates,focal-security,now 21.2.6-0ubuntu0.1~20.04.2 amd64 [installed,automatic]
  free implementation of the GL API -- shared library

libgle3/focal 3.1.0-9 amd64
  OpenGL tubing and extrusion library

libgle3-dev/focal 3.1.0-9 amd64
  OpenGL tubing and extrusion library development files

libgles-dev/focal-updates,focal-security,now 1.3.2-1~ubuntu0.20.04.2 amd64 [installed,automatic]
  Vendor neutral GL dispatch library -- GLES development files

libgles1/focal-updates,focal-security,now 1.3.2-1~ubuntu0.20.04.2 amd64 [installed,automatic]
  Vendor neutral GL dispatch library -- GLESv1 support

libgles2/focal-updates,focal-security,now 1.3.2-1~ubuntu0.20.04.2 amd64 [installed,automatic]
  Vendor neutral GL dispatch library -- GLESv2 support

libgles2-mesa/focal-updates,focal-security 21.2.6-0ubuntu0.1~20.04.2 amd64
  transitional dummy package

libgles2-mesa-dev/focal-updates,focal-security 21.2.6-0ubuntu0.1~20.04.2 amd64
  transitional dummy package

libglew-dev/focal,now 2.1.0-4 amd64 [installed]
  OpenGL Extension Wrangler - development environment

libglew2.1/focal,now 2.1.0-4 amd64 [installed]
  OpenGL Extension Wrangler - runtime environment

libglewmx-dev/focal 1.13.0-4ubuntu3 amd64
  OpenGL Extension Wrangler MX - development environment

libglewmx1.13/focal 1.13.0-4ubuntu3 amd64
  OpenGL Extension Wrangler (Multiple Rendering Contexts)
dengnianchen commented 1 year ago

It seem you already have libglew2.1 installed