Page 1 of 1

ArrayFire compilation and dependence on libGL

PostPosted: Mon Mar 24, 2014 2:59 am
by pushknly1
Hi,

I have downloaded a copy of ArrayFire for evaluation and was trying to compile the examples. The compilation failed for the helloworld example. This is the error I get,

cc -m64 -Wall -Werror -I/N/u/pratnali/BigRed2/Software/arrayfire-2.0/include -pthread -O2 -DNDEBUG -DAFCL -lrt -Wl,--no-as-needed -L/N/u/pratnali/BigRed2/Software/arrayfire-2.0/lib64 -lpthread -lstdc++ -lm -Wl,-rpath,/N/u/pratnali/BigRed2/Software/arrayfire-2.0/lib64,-rpath,/N/u/pratnali/BigRed2/Software/arrayfire-2.0/lib64 -lafcl helloworld.cpp -o helloworld_ocl
/usr/lib64/libGL.so.1: undefined reference to `xcb_glx_set_client_info_arb'
/usr/lib64/libGL.so.1: undefined reference to `xcb_glx_create_context_attribs_arb_checked'
/usr/lib64/libGL.so.1: undefined reference to `xcb_glx_set_client_info_2arb'
collect2: error: ld returned 1 exit status
make: *** [helloworld_ocl] Error 1

The gcc version on the system is 4.8.1.

Could you please suggest a solution for this problem?

- Pushkar

Re: ArrayFire compilation and dependence on libGL

PostPosted: Wed Apr 02, 2014 1:45 pm
by pavanky
Hi,

Can you tell us the distribution you are using ?

Re: ArrayFire compilation and dependence on libGL

PostPosted: Wed Apr 02, 2014 4:25 pm
by pushknly1
Hi,

It is Cray Linux Environment 4.1.UP01. The system is basically a Cluster and the compilation was tried on a single node. A google search suggested that the issue might be related to MESA driver, but I do not have admin privileges on the system and cannot change it.

Pushkar

Re: ArrayFire compilation and dependence on libGL

PostPosted: Wed Apr 02, 2014 6:56 pm
by pavanky
Hi Puskhar,

Can you see if you can find libxcb.so or libxcb-glx.so on your system ?

Re: ArrayFire compilation and dependence on libGL

PostPosted: Wed Apr 02, 2014 8:49 pm
by pushknly1
Hi,

Yes I have got both libxcb.so and libscb-glx.so.

Re: ArrayFire compilation and dependence on libGL

PostPosted: Thu Apr 03, 2014 4:13 pm
by pavanky
Can you open common.mk in arrayfire/examples and add "LD_FLAGS += -lGL -lxcb -lxcb-glx" just above " cuda:" line and let me know how it goes.

Re: ArrayFire compilation and dependence on libGL

PostPosted: Thu Apr 03, 2014 6:49 pm
by pushknly1
Hi,

Unfortunately I am getting the same error with the change.

Re: ArrayFire compilation and dependence on libGL

PostPosted: Thu Apr 10, 2014 1:53 pm
by pavanky
Hi,

If you are not going to use visualization we can try to get you a version of ArrayFire without graphics. This way you will not have libGL dependencies. This will however take a little bit of time from our side.

You can email support@accelereyes.com with the link to the forum so we can create a ticket and get back to you once we have the required version.

Re: ArrayFire compilation and dependence on libGL

PostPosted: Fri Apr 11, 2014 4:51 pm
by pushknly1
Hi Pavan,

Thanks a lot. We don't need visualization. I will go ahead and send a request to the mentioned email.

Pushkar