Re: SPU compile problem
Brian Paul <[email protected]> Thu, 11 Aug 2005 08:42:09 -0600
| Newsgroups | gmane.comp.graphics.chromium.devel |
|---|---|
| Message-ID | <[email protected]> |
That looks OK to me. I don't know what the problem is. Have you tried compiling Chromium in debug mode? You might get more info that way (edit options.mk, set RELEASE=0). -Brian PS: I'm posting all follow-ups to the mailing list. Í¢¿¡ Ñî wrote: > I run the command "ldd libwarpvertexspu.so", the result is: > [yzheng1@cesc12 Linux]$ ldd libwarpvertexspu.so > libCgGL.so => /usr/lib/libCgGL.so (0x4001b000) > libCg.so => /usr/lib/libCg.so (0x4005f000) > libspuload.so => > /u1/yzheng1/TiledDisplay/Chromium/lib/Linux/libspuload.so > (0x4027b000) > libcrutil.so => > /u1/yzheng1/TiledDisplay/Chromium/lib/Linux/libcrutil.so ( > 0x402af000) > libcrmothership.so => > /u1/yzheng1/TiledDisplay/Chromium/lib/Linux/libcrmot > hership.so (0x402cc000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x402d1000) > libm.so.6 => /lib/tls/libm.so.6 (0x40384000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x403a6000) > libc.so.6 => /lib/tls/libc.so.6 (0x42000000) > libdl.so.2 => /lib/libdl.so.2 (0x403ae000) > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x403b1000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > It doesn't seem any problem, Could you tell me if it is right? Or if > there is some question ,could you give me some help? Thanks a lot! > > Sincerely yours, > Yang Tingjun > >> From: Brian Paul <[email protected]> >> To: Í¢¿¡ Ñî <[email protected]> >> CC: [email protected] >> Subject: Re: [Chromium-dev] SPU compile problem >> Date: Thu, 11 Aug 2005 08:23:26 -0600 >> >> Í¢¿¡ Ñî wrote: >> >>> I write a SPU called warpvertexspu to warp the image by a Cg >>> program. In the warpvertexspu.h, >>> I include the cg.h and cgGL.h and in warpvertexspu_init.c and >>> warpvertexspu.c I call cg and cgGL functions. But after I compile the >>> source by adding -lCgGL and -lCg to the LDFLAGS variable in the >>> makefile, when I use the warpvertexspu.so , It says "DLL could >>> find/open the warpvertexspu.so". But if I comment the cg and cgGL >>> functions in the warpvertexspu.c and keep the cg functions in the >>> 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!=NULL) >>> cgGLSetMatrixParameterfc(WarpParam,WarpM); >>> if(ModelViewProjParam!=NULL) >>> 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[] = { >>> { "Begin", (SPUGenericFunction)warpvertexBegin }, >>> { "End", (SPUGenericFunction)warpvertexEnd }, >>> { NULL, NULL } >>> }; >>> >>> I don't know why calling cg functions in the warpvertexspu_int.c can >>> work well but calling in the warpvertexspu.c cannot work. Maybe there >>> 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 >> dependencies. >> >> -Brian >> > > _________________________________________________________________ > Don’t just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf