Forum

Author Topic: Problems with installation of Photoscan 1.3.4  (Read 4380 times)

samhpc84

  • Newbie
  • *
  • Posts: 5
    • View Profile
Problems with installation of Photoscan 1.3.4
« on: November 07, 2017, 09:37:55 AM »
Hi,

I am trying to install Agi Photoscan Pro on our HPC cluster for some users that requested this software. We are running CentOS 7.4.

I followed the installation instructions given in the manual and extracted the .tar.gz archive in a folder. Afterwards I tried to run the photoscan.sh script as indicated in the manual. It does not work at all, gives a lot of warnings/errors and then crashes with a segmentation fault:

[sfux@eu-login-06 x86_64]$ photoscan.sh
No license found.
Details: No license for product (-1)
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShaderProgram::attributeLocation( a_vertex ): shader program is not linked
QOpenGLShaderProgram::attributeLocation( a_normal ): shader program is not linked
QOpenGLShaderProgram::attributeLocation( a_color ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( mvp_matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( normal_matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( point_size ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShaderProgram::attributeLocation( a_vertex ): shader program is not linked
QOpenGLShaderProgram::attributeLocation( a_normal ): shader program is not linked
QOpenGLShaderProgram::attributeLocation( a_texcoord ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( mvp_matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( normal_matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( t_diffuse ): shader program is not linked
QOpenGLShader: could not create shader
Vertex shader for simpleShaderProg (MainVertexShader & PositionOnlyVertexShader) failed to compile
QOpenGLShader: could not create shader
Fragment shader for simpleShaderProg (MainFragmentShader & ShockingPinkSrcFragmentShader) failed to compile
QOpenGLShaderProgram: could not create shader program
Errors linking simple shader:
QOpenGLShader: could not create shader
Vertex shader for blitShaderProg (MainWithTexCoordsVertexShader & UntransformedPositionVertexShader) failed to compile
QOpenGLShader: could not create shader
Fragment shader for blitShaderProg (MainFragmentShader & ImageSrcFragmentShader) failed to compile
QOpenGLShaderProgram: could not create shader program
Errors linking blit shader:
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!
QOpenGLShader: could not create shader
Warning: "" failed to compile!

QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
Could not link shader program:
 ""
/cluster/apps/agi_photoscan/1.3.4/x86_64/photoscan.sh: line 19: 106328 Segmentation fault      "$dirname/$appname" "$@"
[sfux@eu-login-06 x86_64]$


Is this a known problem ?

PolarNick

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Re: Problems with installation of Photoscan 1.3.4
« Reply #1 on: November 07, 2017, 01:37:06 PM »
May be your libGL.so points to mesa GL? If this is the case - libGL.so should point at the same library as libGL.so.1. (I find this suggestion here)

samhpc84

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Problems with installation of Photoscan 1.3.4
« Reply #2 on: November 08, 2017, 10:35:32 AM »
@PolarNick:

Thank you for your reply. I checked, and libGL.so and libGL.so.1 are pointing to the same library:

[sfux@eu-login-09 ~]$ ls -ltr /usr/lib64/libGL*
-rwxr-xr-x 1 root root 524464 Jun 10  2014 /usr/lib64/libGLU.so.1.3.1
-rwxr-xr-x 1 root root 641064 Jul 26 15:34 /usr/lib64/libGLdispatch.so.0.0.0
-rwxr-xr-x 1 root root 481320 Aug  4 06:27 /usr/lib64/libGL.so.1.2.0
lrwxrwxrwx 1 root root     14 Oct 25 09:58 /usr/lib64/libGL.so.1 -> libGL.so.1.2.0
lrwxrwxrwx 1 root root     15 Oct 25 10:06 /usr/lib64/libGLU.so.1 -> libGLU.so.1.3.1
lrwxrwxrwx 1 root root     14 Oct 25 10:07 /usr/lib64/libGL.so -> libGL.so.1.2.0
lrwxrwxrwx 1 root root     15 Oct 25 10:07 /usr/lib64/libGLU.so -> libGLU.so.1.3.1
lrwxrwxrwx 1 root root     22 Oct 25 10:08 /usr/lib64/libGLdispatch.so.0 -> libGLdispatch.so.0.0.0


PolarNick

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Re: Problems with installation of Photoscan 1.3.4
« Reply #3 on: November 08, 2017, 12:56:29 PM »
What is your GPU, driver version, are you using X11 forwardnig, can you run glxgears/other OpenGL applications, what is your output of glxinfo?

samhpc84

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Problems with installation of Photoscan 1.3.4
« Reply #4 on: November 08, 2017, 03:40:53 PM »
We are not having any GPU's in the cluster.

The system requirements in the manual do not mention that a GPU is required:

Minimal configuration
• Windows XP or later (32 or 64 bit), Mac OS X Mountain Lion or later, Debian/Ubuntu with GLIBC
2.13+ (64 bit)
• Intel Core 2 Duo processor or equivalent
• 4 GB of RAM
Recommended configuration
• Windows 7 SP 1 or later (64 bit), Mac OS X Mountain Lion or later, Debian/Ubuntu with GLIBC 2.13+
(64 bit)
• Intel Core i7 processor
• 16 GB of RAM
The number of photos that can be processed by PhotoScan depends on the available RAM and
reconstruction parameters used. Assuming that a single photo resolution is of the order of 10 MPix, 4 GB
RAM is sufficient to make a model based on 30 to 50 photos. 16 GB RAM will allow to process up to
300-400 photographs.


The Photoscan Pro manual also just states that GPU acceleration is supported but it does not state that a GPU is required:

PhotoScan supports accelerated image matching and depth maps reconstruction due to the graphics
hardware (GPU) exploiting.


Regarding your question about OpenGL, we have the following packages (rpm's) installed:

mesa-libEGL.x86_64          17.0.1-6.20170307.el7
mesa-libEGL-devel.x86_64    17.0.1-6.20170307.el7
mesa-libGL.x86_64           17.0.1-6.20170307.el7
mesa-libGL-devel.x86_64     17.0.1-6.20170307.el7
mesa-libGLU.x86_64          9.0.0-4.el7
mesa-libGLU-devel.x86_64    9.0.0-4.el7

Is there any additional rpm required ?

PolarNick

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Re: Problems with installation of Photoscan 1.3.4
« Reply #5 on: November 08, 2017, 05:56:20 PM »
GPU is not required in headless mode (in case of network processing or running python scripts), but GUI require some version of OpenGL.

glxgears runs fine? What is output of glxinfo? I am not sure about mesa, but output of glxinfo will show available version of OpenGL and other helpful info.

samhpc84

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Problems with installation of Photoscan 1.3.4
« Reply #6 on: November 10, 2017, 10:41:27 AM »
[sfux@eu-login-02 ~]$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TURKS (DRM 2.43.0 / 4.4.0-97-generic, LLVM 4.0.0)
OpenGL version string: 1.4 (3.0 Mesa 17.0.7)
OpenGL extensions:
[sfux@eu-login-02 ~]$

glxgears seems to run fine:

[sfux@eu-login-02 ~]$ glxgears             
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
37010 frames in 13.1 seconds = 2817.803 FPS
594 frames in 12.4 seconds = 48.069 FPS
705 frames in 12.1 seconds = 58.482 FPS
1039 frames in 12.1 seconds = 86.060 FPS
1246 frames in 24.5 seconds = 50.901 FPS
1299 frames in 12.0 seconds = 108.034 FPS
779 frames in 12.0 seconds = 64.705 FPS

PolarNick

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Re: Problems with installation of Photoscan 1.3.4
« Reply #7 on: November 10, 2017, 11:40:55 AM »
Shaders support was introduced in OpenGL 2.0, and so PhotoScan requires at least OpenGL 2.0, but your configuration provides only OpenGL 1.4 :(

benjyfeen

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Problems with installation of Photoscan 1.3.4
« Reply #8 on: November 10, 2017, 06:32:07 PM »
This is a common problem for people running Photoscan via VNC to an X Window desktop on a headless cloud server.

The solution is to set up VirtualGL on the Photoscan host and access it with TurboVNC.

You'll find lots of howtos if you Google:

blender VirtualGL Linux

Hi,

I am trying to install Agi Photoscan Pro on our HPC cluster for some users that requested this software. We are running CentOS 7.4.

I followed the installation instructions given in the manual and extracted the .tar.gz archive in a folder. Afterwards I tried to run the photoscan.sh script as indicated in the manual. It does not work at all, gives a lot of warnings/errors and then crashes with a segmentation fault:

[sfux@eu-login-06 x86_64]$ photoscan.sh
No license found.
Details: No license for product (-1)
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShaderProgram::attributeLocation( a_vertex ): shader program is not linked
QOpenGLShaderProgram::attributeLocation( a_normal ): shader program is not linked
QOpenGLShaderProgram::attributeLocation( a_color ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( mvp_matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( normal_matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( point_size ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShaderProgram::attributeLocation( a_vertex ): shader program is not linked
QOpenGLShaderProgram::attributeLocation( a_normal ): shader program is not linked
QOpenGLShaderProgram::attributeLocation( a_texcoord ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( mvp_matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( normal_matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( t_diffuse ): shader program is not linked
QOpenGLShader: could not create shader
...
Is this a known problem ?


samhpc84

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Problems with installation of Photoscan 1.3.4
« Reply #9 on: November 13, 2017, 11:50:42 AM »
Thank you for the useful reply.

I will check if we can support Virtual GL / TurboVNC on our cluster.

Best regards