Cross Compiling Raytrace benchmark using X11

ef snorlaxgb at gmail.com
Thu Sep 3 01:09:43 PDT 2009


Hello,
I am trying to Cross Compile (For Alpha) Parsec Benchmarks 2.1
application called Raytrace which Depends on Mesa as well as X11
Libraries.

While compiling I am linking to the following libs with Raytrace:
 -lX11 -lGL -lGLU -lXext -lXau

It is important to note that I made these static libaries on my
machine, downloading the source code from the X11 Website.

During compiling I get the follow errors (many like this, this is just
a snippet)

/home/ef/Crosscompiler/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/lib//libXext.a(XShm.o):
In function `XShmCreateImage':
/home/ef/libXext-1.0.4/src/XShm.c:301: undefined reference to `_XGetScanlinePad'
/home/ef/libXext-1.0.4/src/XShm.c:301: undefined reference to `_XGetScanlinePad'
/home/ef/libXext-1.0.4/src/XShm.c:316: undefined reference to
`_XInitImageFuncPtrs'
/home/ef/libXext-1.0.4/src/XShm.c:316: undefined reference to
`_XInitImageFuncPtrs'
/home/ef/libXext-1.0.4/src/XShm.c:311: undefined reference to
`_XGetBitsPerPixel'
/home/ef/libXext-1.0.4/src/XShm.c:311: undefined reference to
`_XGetBitsPerPixel'


/home/ef/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux.gcc-alpha/lib/libGL.a(xm_span.o):
In function `get_row_ci':
/home/ef/parsec-2.1/pkgs/libs/mesa/obj/amd64-linux.gcc-alpha/src/mesa/drivers/x11/xm_span.c:3818:
undefined reference to `XGetImage'
/home/ef/parsec-2.1/pkgs/libs/mesa/obj/amd64-linux.gcc-alpha/src/mesa/drivers/x11/xm_span.c:3818:
undefined reference to `XGetImage'
/home/ef/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux.gcc-alpha/lib/libGL.a(xm_span.o):
In function `read_pixel':
/home/ef/parsec-2.1/pkgs/libs/mesa/obj/amd64-linux.gcc-alpha/src/mesa/drivers/x11/xm_span.c:105:
undefined reference to `XGetImage'
/home/ef/parsec-2.1/pkgs/libs/mesa/obj/amd64-linux.gcc-alpha/src/mesa/drivers/x11/xm_span.c:105:
undefined reference to `XGetImage'
/home/ef/parsec-2.1/pkgs/libs/mesa/obj/amd64-linux.gcc-alpha/src/mesa/drivers/x11/xm_span.c:105:
undefined reference to `XGetImage'


It seems that the X11 Library is not linking properly any ideas?
Thanks in Advance!



More information about the xorg mailing list