Google Groups

Re: Compile error with NaCl SDK


Devin Huang Dec 25, 2012 11:22 PM
Posted in group: Native-Client-Discuss
Solved. Just remove the libraries under ppapi_cpp/linux/ and ppapi/linux/, and recompile under pepper_23/src using `make`.

Now the examples can be compiled successfully.

On Wednesday, December 26, 2012 11:02:53 AM UTC+8, hdqd...@gmail.com wrote:
I was compiling SDK example on my own 32bit Linux OS:

# cd pepper_23/examples/
# make
...
g++ -shared -Wl,-as-needed -o linux/Debug/libfile_histogram.so linux/Debug/file_histogram_.o -g  -shared  -L/opt/home/root/sdk/pepper_23/lib/linux_host/Debug -lppapi_cpp -lppapi -lpthread
/usr/bin/ld: skipping incompatible /opt/home/root/sdk/pepper_23/lib/linux_host/Debug/libppapi_cpp.a when searching for -lppapi_cpp
/usr/bin/ld: cannot find -lppapi_cpp
/usr/bin/ld: skipping incompatible /opt/home/root/sdk/pepper_23/lib/linux_host/Debug/libppapi.a when searching for -lppapi
/usr/bin/ld: cannot find -lppapi

It said libppapi*.a are not compatiable, maybe they are 64bit version?

How to solve this problem? Is there any instruction of how to compile libppapi*.a on my system?

Thanks