Re: Unable to compile all-in-one torcs 1.3.2

Alessandro Ghidotti Piovan <[email protected]> Thu, 23 Feb 2012 11:53:03 +0100
Newsgroups gmane.games.torcs.devel
Message-ID <[email protected]>
Now all works perfectly! Really thank you very much.
I suggest to publish on torcs website this last patch, which will help 
many ubuntu users.

I also had troubles with opengl because i'm running TORCS into a 
VirtualBox Ubuntu 11.10 guest machine, and the host is a Win7 64bit 
nVidia powered:

Compatibility mode, properties unknown.
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x83232a8
OpenGL Warning: Retry with 0x8002 returned 0 visuals
./torcs: line 53:  5914 Segmentation fault      $LIBDIR/torcs-bin -l 
$LOCAL_CONF -L $LIBDIR -D $DATADIR $*

The solution i found to this problem is really simple:
1) remove torcs settings:

$ rm -fR $HOME/.torcs

2) start torcs without direct rendering as

$ LIBGL_ALWAYS_INDIRECT=1 ./torcs

3) go to display options and set VIDEO MODE INITIALIZATION = best

4) quit game and restart torcs now with direct rendering (i.e. as usual)

This problem happens also installing TORCS from ubuntu repository.

Best regards
Alessandro

On 23/02/2012 03:58, Boban Petrovic wrote:
> On Wed, Feb 22, 2012 at 6:21 PM, Alessandro Ghidotti Piovan<
> [email protected]>  wrote:
>
>>   Hello,
>>      I was experiencing the same compilation problem before switching to a
>> windows platform. Now i tried the latest patch you released and i was able
>> to compile torcs on my ubuntu 11.10 machine.
>> However, while "make" ends without errors, now i'm having errors with
>> "make install".
>> I attached my error log. Any idea about how to solve?
>>
>> Thank you for your attention
>> Alessandro
>>
>> Hmm, I took a look at the log, but I don't have a clue what is going on
> with the install. That said I went back to my patch and tried it this time
> after doing "make clean distclean". And the compile failed again to my big
> surprise. After looking at the patch again and the file I touched
> (Make-config) I realized that I shouldn't touch that file at all since it
> is auto generated. Ahh, shame on me, it was a silly mistake. I am providing
> new patch which changes Make-config.in instead. I have to be open and say
> that I still consider this change a workaround. This time I was extra
> paranoid and I tested everything from unpacking torcs tar ball, applying
> the patch and doing "make install datainstall" in the end. Please retest it
> from scratch and let me know of the results. I apologize for the confusion.
>
>    Thanks,
>    Boban
>


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/