I am on a x86_64 platform in Ubuntu 14. However, I would like to build for a 32-bit linux platform. I run into the following issue when I try to build using make:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../libsndfile.so when searching for -lsndfile
/usr/bin/ld: skipping incompatible /usr/local/lib/libsndfile.so when searching for -lsndfile
/usr/bin/ld: skipping incompatible /usr/local/lib/libsndfile.a when searching for -lsndfile
/usr/bin/ld: skipping incompatible /usr/lib/libsndfile.so when searching for -lsndfile
/usr/bin/ld: cannot find -lsndfile
It seems like I am getting this error because I don't have the 32-bit libraries. I could not find anywhere online where I could directly procure the 32-bit version of the library. I tried to follow the steps here:
but instead specifying the build for the configure command:
./configure --build=i686-pc-linux-gnu --disable-static && make
But that didn't help either.
Has anyone encountered this issue before? Any pointers on what I could try? Would I have to create a subdirectory like /usr/lib32/ and move libraries around, perhaps?
I would be grateful for any tips you could provide me. Thanks!