nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nel] Compilation...


From: Vivian Brégier
Subject: Re: [Nel] Compilation...
Date: Fri, 2 May 2003 10:20:10 +0200
User-agent: Mutt/1.3.28i

Daniel Sjölie a écrit :
> 
> Hi...
> 
> When trying to compile NeL cvs I get lots of errors in driver_opengl.cpp
> A file with the output is attached...
> 
> I used g++-3.2 on a debian (mostly "testingi/sarge") linux system...
> Nvidia drivers 3123 installed...

yes, i got errors too...
i corrected the error like this :
Index: fasthls_modifier.cpp
===================================================================
RCS file: /home/cvsroot/code/nel/src/3d/fasthls_modifier.cpp,v
retrieving revision 1.1
diff -r1.1 fasthls_modifier.cpp
111a112,113
>    /*ULL added by Vivian Brégier
>     *             address@hidden/
113,115c115,117
<       static  uint64  mmOne   = 0x00FF00FF00FF00FF;
<       static  uint64  mmGray  = 0x0080008000800080;
<       static  uint64  mmInterpBufer[4]= {0,0,0,0x00FF00FF00FF00FF};
---
>       static  uint64  mmOne   = 0x00FF00FF00FF00FFULL;
>       static  uint64  mmGray  = 0x0080008000800080ULL;
>       static  uint64  mmInterpBufer[4]= {0,0,0,0x00FF00FF00FF00FFULL};

(in C++, constants are supposed to be ints, so 32 bits on an i386.
You have to add ULL (unsigned long long) to tell the compiler that it is 64
bits.)

I had other errors that i corrected, and in the end the programs compiles.
But when i launch snowball the window opens and closes instantly and i just
get a «Abort» in the terminal.

Maybe you'll do better than me :)
-- 
Vivian Brégier
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]