[xcrysden] [Partially solved] Install fails at startup in function glLightfv()

Lucas Fernandez Seivane quevedin at gmail.com
Fri Dec 9 18:34:43 CET 2011


The shared uses system version of mesa, opengl tcl/tk and all that,
the semi-shared used some inside but relies on system tcl. I think
again of a bug of the kernel. Usually, I install the semi-shared,
since it is less distro-dependent, and xcrysden is not packed by any
distribution.

regards

On Fri, Dec 9, 2011 at 11:17, Jim Parker <jimparker96313 at gmail.com> wrote:
> After further troubleshooting, I got the semi-shared version to run.
>
> However, I'm not sure why it works now.  I had made several changes to
> the system to attempt to fix the libGL crash, including upgrading the
> kernel
>
> $> sudo apt-get upgrade kernel
>
> and installing libgl1-mesa-glx libglu1-mesa-dev and others that I lost track of.
>
> I guess I'd like to know what is the exact difference between the
> shared and semi-shared versions since one works and the other doesn't?
>
> Cheers,
> --Jim
>
>
>
> On 12/8/11, Jim Parker <jimparker96313 at gmail.com> wrote:
>> Hello,
>>   I have used this program on a Windows machine, but I am trying to
>> install on a Linux box.  Normally, I find it harder to compile these
>> kinds of codes on Windows vice linux, so this is a first for me...
>>
>> I have tried installing the shared/semi-shared and source versions,
>> and yes I cleanly separated the different versions...
>>
>> All crash at the same point during start up.  When I run with
>> $> xcrysden -d
>>
>> I get to the line
>> Executing: XCrySDen-1.5.24-src/bin/ftnunit
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x00596c06 in glLightfv() from /usr/lib/mesa/libGL.so.1
>>
>> I compiled the source code with debugging enabled and tracked the
>> error to line 408 in C/lighting.c
>>
>> line 408:  glLightfv(_LIGHT[il], GL_AMBIENT, light[il].ambient)
>>
>> At this point I am stumped,  the value of il = 0, which would indicate
>> this command fails the first time it is called.
>>
>> My system is an Ubuntu 10.04 LTS distro
>> Intel 945GM graphics card
>>
>> Any suggestions would be appreciated.
>>
>> Cheers,
>> --Jim
>>
> _______________________________________________
> XCrySDen mailing list
> XCrySDen at democritos.it
> http://www.democritos.it/mailman/listinfo/xcrysden



-- 
Lucas Fernández Seivane
UTSA - Department of Physics and Astronomy
+1 210 458 8052
(Formerly Universidad de Oviedo - CINN
http://sites.google.com/site/quevedin/
http://www.researcherid.com/rid/A-8610-2008


More information about the XCrySDen mailing list