Announcement

Collapse
No announcement yet.

cant compile norsetto shadow

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • cant compile norsetto shadow

    I cannot compile norsetto-shadow on my system.

    I can get it successfully on ubuntu but not on RHEL.
    I am trying to compile it on RHEL 5.4

    Code:
    [root@test ~/shadow]# make
    gcc -c -DDATA_DIR= -O2 -Wall `pkg-config --cflags x11 xext` shadow.c
    shadow.c: In function ‚tup‚shadow.c:372: warning: implicit declaration of
    function ‚me‚hadow.c:420: warning: pointer targets in passing argument 1 of
    ‚XGetProcAddressARB‚iffer in signedness
    shadow.c:421: warning: pointer targets in passing argument 1 of
    ‚XGetProcAddressARB‚iffer in signedness
    shadow.c:422: warning: pointer targets in passing argument 1 of
    ‚XGetProcAddressARB‚iffer in signedness
    shadow.c:423: warning: pointer targets in passing argument 1 of
    ‚XGetProcAddressARB‚iffer in signedness
    shadow.c:424: warning: pointer targets in passing argument 1 of
    ‚XGetProcAddressARB‚iffer in signedness
    shadow.c:425: warning: pointer targets in passing argument 1 of
    ‚XGetProcAddressARB‚iffer in signedness
    shadow.c:426: warning: pointer targets in passing argument 1 of
    ‚XGetProcAddressARB‚iffer in signedness
    shadow.c:427: warning: pointer targets in passing argument 1 of
    ‚XGetProcAddressARB‚iffer in signedness
    shadow.c:428: warning: pointer targets in passing argument 1 of
    ‚XGetProcAddressARB‚iffer in signedness
    shadow.c:429: warning: pointer targets in passing argument 1 of
    ‚XGetProcAddressARB‚iffer in signedness
    shadow.c:602: warning: implicit declaration of function
    ‚GenProgramsARB‚hadow.c:609: warning: implicit declaration of function
    ‚CreateProgramObjectARB‚hadow.c:617: warning: implicit declaration of function
    ‚UseProgramObjectARB‚hadow.c:619: warning: implicit declaration of function
    ‚GetUniformLocationARB‚hadow.c:622: warning: implicit declaration of function
    ‚GetAttribLocation‚hadow.c:632: warning: implicit declaration of function
    ‚Uniform1i‚hadow.c:637: warning: implicit declaration of function
    ‚ValidateProgramARB‚hadow.c:638: warning: implicit declaration of function
    ‚GetObjectParameterivARB‚hadow.c:642: warning: implicit declaration of
    function ‚GetInfoLogARB‚hadow.c:653: warrender‚:
    shadow.c: In function ‚nder‚shadow.c:862: warning: implicit declaration of
    function ‚VertexAttrib3fv‚hadow.c:919: warning: implicit declaration of
    function ‚WindowPos2i‚hadow.c: In function ‚in‚shadow.c:1326: warning: format
    ‚‚xpects type ‚signed int‚but argument 2 has type ‚sualID‚hadow.c:1347:
    warning: pointer targets in passing argument 7 of ‚hangeProperty‚iffer in
    signedness
    shadow.c:1349: warning: pointer targets in passing argument 7 of
    ‚hangeProperty‚iffer in signedness
    shadow.c:1404: warning: implicit declaration of function
    ‚DeleteProgramsARB‚hadow.c:1407: warning: implicit declaration of function
    ‚DeleteObjectARB‚cc -c -DDATA_DIR= -O2 -Wall `pkg-config --cflags x11 xext`
    camera.c
    gcc -c -DDATA_DIR= -O2 -Wall `pkg-config --cflags x11 xext` extension.c
    extension.h:32: warning: ‚GenFramebuffersEXT‚efined but not used
    extension.h:33: warning: ‚BindFramebufferEXT‚efined but not used
    extension.h:34: warning: ‚FramebufferTexture2DEXT‚efined but not used
    extension.h:35: warning: ‚GenRenderbuffersEXT‚efined but not used
    extension.h:36: warning: ‚BindRenderbufferEXT‚efined but not used
    extension.h:37: warning: ‚RenderbufferStorageEXT‚efined but not used
    extension.h:38: warning: ‚FramebufferRenderbufferEXT‚efined but not used
    extension.h:39: warning: ‚DeleteFramebuffersEXT‚efined but not used
    extension.h:40: warning: ‚DeleteRenderbuffersEXT‚efined but not used
    extension.h:41: warning: ‚CheckFramebufferStatusEXT‚efined but not used
    gcc -c -DDATA_DIR= -O2 -Wall `pkg-config --cflags x11 xext` image.c
    gcc -c -DDATA_DIR= -O2 -Wall `pkg-config --cflags x11 xext` md2.c
    md2.c: In function ‚awMD2‚md2.c:434: warning: suggest parentheses around
    assignment used as truth value
    md2.c:471: warning: implicit declaration of function ‚VertexAttrib3fv‚cc -c
    -DDATA_DIR= -O2 -Wall `pkg-config --cflags x11 xext` shaders.c
    shaders.c: In function ‚mpileShader‚shaders.c:76: warning: implicit
    declaration of function ‚BindProgramARB‚haders.c:77: warning: implicit
    declaration of function ‚ProgramStringARB‚haders.c: In function
    ‚mpileGLSLshaders‚shaders.c:109: warning: implicit declaration of function
    ‚CreateShaderObjectARB‚haders.c:112: warning: implicit declaration of function
    ‚ShaderSourceARB‚haders.c:117: warning: implicit declaration of function
    ‚CompileShaderARB‚haders.c:118: warning: implicit declaration of function
    ‚GetObjectParameterivARB‚haders.c:122: warning: implicit declaration of
    function ‚GetInfoLogARB‚haders.c:140: warning: implicit declaration of
    function ‚AttachObjectARB‚haders.c:143: warning: implicit declaration of
    function ‚LinkProgramARB‚haders.c:157: warning: implicit declaration of
    function ‚ValidateProgramARB‚haders.c:169: warning: implicit declaration of
    function ‚DeleteObjectARB‚cc -c -DDATA_DIR= -O2 -Wall `pkg-config --cflags x11
    xext` vector.c
    gcc  shadow.o camera.o extension.o image.o md2.o shaders.o vector.o
    `pkg-config --libs x11 xext` -lGL -lGLU -lm -o shadow
    shadow.o: In function `render':
    shadow.c:(.text+0xc28): undefined reference to `glVertexAttrib3fv'
    shadow.c:(.text+0xc3a): undefined reference to `glVertexAttrib3fv'
    shadow.o: In function `setup':
    shadow.c:(.text+0x1e35): undefined reference to `glGetAttribLocation'
    shadow.c:(.text+0x1e4d): undefined reference to `glGetAttribLocation'
    shadow.c:(.text+0x1e8f): undefined reference to `glUniform1i'
    shadow.c:(.text+0x1ea1): undefined reference to `glUniform1i'
    shadow.c:(.text+0x1eb3): undefined reference to `glUniform1i'
    md2.o: In function `DrawMD2':
    md2.c:(.text+0x3ff): undefined reference to `glVertexAttrib3fv'
    md2.c:(.text+0x4c3): undefined reference to `glVertexAttrib3fv'
    collect2: ld returned 1 exit status
    make: *** [shadow] Error 1
    The libraries it is referencing that it cannot find are in glext.h, which I do have in /usr/include/GL/glext.h

    I may have prereqs missing ?


    I cannot install ia32libs as there is no fedora/redhat equivalent.
    I have a full list ia32libs from ubuntu, but too long to post here, same as my yum list and my rpm list...

    Any ideas what is wrong....?
    I was thinking either prereqs missing or old libraries ....

    Anybody successfully compile on a fedora/redhat/centos system ?
Working...
X