On 05/06 12:28, Kai Krakow wrote:
> Am Sat, 6 May 2017 04:18:57 +0200
> schrieb [email protected]:
> 
> > On 05/05 09:17, Kai Krakow wrote:
> > > Am Fri, 5 May 2017 21:12:53 +0200
> > > schrieb [email protected]:
> > >   
> > > > On 05/05 09:03, Kai Krakow wrote:  
> >  [...]  
> >  [...]  
> > > >  [...]  
> > > >  [...]    
> >  [...]  
> > > >  [...]    
> >  [...]  
> > > >  [...]  
> > > >  [...]    
> >  [...]  
> >  [...]  
> >  [...]  
> >  [...]  
> > > > 
> > > > Hi Kai,
> > > > 
> > > > sorry for the confusion I initiated...
> > > > 
> > > > This one I used
> > > > 
> > > > QT_GRAPHICSSYSTEM=raster freecad  
> > > 
> > > Please also try my other suggestion:
> > > 
> > > Find your GL drivers with "locate libGL.so" or "qfile -b libGL.so"
> > > and try those paths in the preloader:
> > > 
> > > # LD_PRELOAD=/path/to/libGL.so freecad
> > > 
> > > Try the libGL most specific to your graphics card first.
> > > 
> > > 
> > > -- 
> > > Regards,
> > > Kai
> > > 
> > > Replies to list-only preferred.
> > > 
> > > 
> > >   
> > 
> > Hi Kai,
> > 
> > 
> > here the results:
> > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD       
> > ERROR: ld.so: object '/usr/lib64/opengl/nvidia/lib/.' from LD_PRELOAD
> > cannot be preloaded (cannot read file data): ignored. FreeCAD 0.16,
> > Libs: 0.16RUnknown © Juergen Riegel, Werner Mayer, Yorik van Havre
> > 2001-2015 #####                 ####  ###   ####  
> >   #                    #      # #   #   # 
> >   #     ##  #### ####  #     #   #  #   # 
> >   ####  # # #  # #  #  #     #####  #   # 
> >   #     #   #### ####  #    #     # #   # 
> >   #     #   #    #     #    #     # #   #  ##  ##  ##
> >   #     #   #### ####   ### #     # ####   ##  ##  ##
> > 
> > libGL error: No matching fbConfigs or visuals found
> > libGL error: failed to load driver: swrast
> > using visual class 4, id 2b
> > [1]    17990 segmentation fault
> > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD
> 
> This makes no sense... You have to give an .so file.
> 
>  >LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD  
> > FreeCAD 0.16, Libs: 0.16RUnknown
> > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> >   #####                 ####  ###   ####  
> >   #                    #      # #   #   # 
> >   #     ##  #### ####  #     #   #  #   # 
> >   ####  # # #  # #  #  #     #####  #   # 
> >   #     #   #### ####  #    #     # #   # 
> >   #     #   #    #     #    #     # #   #  ##  ##  ##
> >   #     #   #### ####   ### #     # ####   ##  ##  ##
> > 
> > using visual class 4, id 2b
> > [1]    17552 segmentation fault
> > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD
> 
> Okay, so this fixes the problem with the visual as I expected. But now
> it's segfaulting.
> 
> Are you using an NVIDIA card with proprietary driver?
> 
> 
> -- 
> Regards,
> Kai
> 
> Replies to list-only preferred.
> 
> 
> 

Hi,

...it runs now at least for root (called as user it crashes still).

I did the following:


mv /usr/lib64/libGL.so  /usr/lib64/off.libGL.so 

for all libGL.so* in /usr/lib64/libGL.so*

Addtionally I added 06nvidia to /etc/ld.so.config.d/. with this
contents:
/usr/lib64/opengl/nvidia/lib
and did a ldconfig afterwards and reboot to release any filehandle.

One question remains:
It works for root but not for any other user.
I (as user) am in the video group.

I checked the directory/file permissions of opencascade and they
seem to be ok.

I straced FreeCAD...but...I fear not to see anything suspicious
because the output contains a lot of noise (much more as normally
seen in such traces)...

The eselects show:
>eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11
>eselect mesa list  
i915 (Intel 915, 945)
i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
r300 (Radeon R300-R500)
r600 (Radeon R600-R700, Evergreen, Northern Islands)
sw (Software renderer)
  [1]   classic
  [2]   gallium *

Why is nvidia not listed with the second command?

Any ideas?

Cheers
Meino







Reply via email to