From: Alan H. <al...@tu...> - 2006-08-24 11:20:21
|
On Thu, 2006-08-24 at 10:25 +0200, Paul Melis wrote: > Hi, > > Sorry, the previous mail was accidently sent before I finished it... > > I'm trying to build CR1.9-rc4 in the cygwin shell. The build goes quite a long way, but fails with a linker error. > > At first, there was a minor glitch in spu/tilesort/tilesortspu_diffapi.c, > in which diffGetString() (line 137) wasn't defined as __stdcall. > Because of this the assignment on line 356 fails as the variable the > function is assigned to is of type GetStringFunc_t, which is: > > typedef const GLubyte * (SPU_APIENTRY *GetStringFunc_t)(GLenum); > (include/spu_dispatch_table.h, line 830) > > This was easy to fix by adding the __stdcall qualifier to diffGetString(). > > > But in building the tilesort SPU there's a linker error: > > Linking ../../built/tilesortspu/WIN_NT/tilesortspu.dll > Creating library ../../built/tilesortspu/WIN_NT/tilesortspu.lib and object .. > /../built/tilesortspu/WIN_NT/tilesortspu.exp > tilesortspu_client.obj : error LNK2019: unresolved external symbol _crStateUseSe > rverArrayElements referenced in function _tilesortspu_DrawElements@16 > ../../built/tilesortspu/WIN_NT/tilesortspu.dll : fatal error LNK1120: 1 unresolv > ed externals > make[3]: *** [../../built/tilesortspu/WIN_NT/tilesortspu.dll] Error 2 > make[2]: *** [dep] Error 2 > make[1]: *** [tilesort.subdir] Error 2 > make: *** [spu.subdir] Error 2 > > I checked to see where crStateUseServerArrayElements() is defined and it is in > crstate.lib. But this lib is explicitly not linked on windows, so I'm unsure how to > fix this... I've just fixed this in the CVS, but essentially the function crStateUseServerArrayElements should be defined in cr/state_tracker/state_defs.py Alan. |