From: Brian P. <bri...@tu...> - 2005-08-11 14:44:38
|
That looks OK to me. I don't know what the problem is. Have you=20 tried compiling Chromium in debug mode? You might get more info that=20 way (edit options.mk, set RELEASE=3D0). -Brian PS: I'm posting all follow-ups to the mailing list. =CD=A2=BF=A1 =D1=EE wrote: > I run the command "ldd libwarpvertexspu.so", the result is: > [yzheng1@cesc12 Linux]$ ldd libwarpvertexspu.so > libCgGL.so =3D> /usr/lib/libCgGL.so (0x4001b000) > libCg.so =3D> /usr/lib/libCg.so (0x4005f000) > libspuload.so =3D>=20 > /u1/yzheng1/TiledDisplay/Chromium/lib/Linux/libspuload.so > (0x4027b000) > libcrutil.so =3D>=20 > /u1/yzheng1/TiledDisplay/Chromium/lib/Linux/libcrutil.so ( > 0x402af000) > libcrmothership.so =3D>=20 > /u1/yzheng1/TiledDisplay/Chromium/lib/Linux/libcrmot > hership.so (0x402cc000) > libstdc++.so.5 =3D> /usr/lib/libstdc++.so.5 (0x402d1000) > libm.so.6 =3D> /lib/tls/libm.so.6 (0x40384000) > libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x403a6000) > libc.so.6 =3D> /lib/tls/libc.so.6 (0x42000000) > libdl.so.2 =3D> /lib/libdl.so.2 (0x403ae000) > libpthread.so.0 =3D> /lib/tls/libpthread.so.0 (0x403b1000) > /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x80000000) >=20 > It doesn't seem any problem, Could you tell me if it is right? Or if=20 > there is some question ,could you give me some help? Thanks a lot! >=20 > Sincerely yours, > Yang Tingjun >=20 >> From: Brian Paul <bri...@tu...> >> To: =CD=A2=BF=A1 =D1=EE <yan...@ho...> >> CC: chr...@li... >> Subject: Re: [Chromium-dev] SPU compile problem >> Date: Thu, 11 Aug 2005 08:23:26 -0600 >> >> =CD=A2=BF=A1 =D1=EE wrote: >> >>> I write a SPU called warpvertexspu to warp the image by a Cg=20 >>> program. In the warpvertexspu.h, >>> I include the cg.h and cgGL.h and in warpvertexspu_init.c and=20 >>> warpvertexspu.c I call cg and cgGL functions. But after I compile the= =20 >>> source by adding -lCgGL and -lCg to the LDFLAGS variable in the=20 >>> makefile, when I use the warpvertexspu.so , It says "DLL could=20 >>> find/open the warpvertexspu.so". But if I comment the cg and cgGL=20 >>> functions in the warpvertexspu.c and keep the cg functions in the=20 >>> warpvertexspu_init.c, after compile the SPU can work well. >>> the warpvertexspu.c: >>> >>> #include <stdio.h> >>> #include "cr_spu.h" >>> #include "warpvertexspu.h" >>> >>> >>> static void WARPVERTEXSPU_APIENTRY warpvertexBegin(GLenum mode) >>> { >>> if(WarpParam!=3DNULL) >>> cgGLSetMatrixParameterfc(WarpParam,WarpM); >>> if(ModelViewProjParam!=3DNULL) >>> cgGLSetStateMatrixParameter(ModelViewProjParam, >>> CG_GL_MODELVIEW_PROJECTION_MATRIX, >>> CG_GL_MATRIX_IDENTITY); >>> cgGLEnableProfile(profile); >>> warpvertex_spu.super.Begin(mode); >>> } >>> >>> static void WARPVERTEXSPU_APIENTRY warpvertexEnd(void) >>> { >>> warpvertex_spu.super.End(); >>> cgGLDisableProfile(profile); >>> } >>> SPUNamedFunctionTable _cr_warpvertex_table[] =3D { >>> { "Begin", (SPUGenericFunction)warpvertexBegin }, >>> { "End", (SPUGenericFunction)warpvertexEnd }, >>> { NULL, NULL } >>> }; >>> >>> I don't know why calling cg functions in the warpvertexspu_int.c can= =20 >>> work well but calling in the warpvertexspu.c cannot work. Maybe there= =20 >>> is something wrong with the makefile.could you give me some help? >>> Thanks very much! >> >> >> Try running 'ldd libwarpvertex.so'. There may be some unresolved=20 >> dependencies. >> >> -Brian >> >=20 > _________________________________________________________________ > Don=92t just search. Find. Check out the new MSN Search!=20 > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >=20 |