cannot find -lsndfile / libsndfile in 32-bit linux platform
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:
Code:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../libsndfile.so when searching for -lsndfile http://www.linuxfromscratch.org/blfs...ibsndfile.html but instead specifying the build for the configure command: Code:
./configure --build=i686-pc-linux-gnu --disable-static && make 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! |
Try building with
Code:
./configure --target=i686-pc-linux-gnu |
Thanks for a quick reply veerain. I tried both the target and host flags with ./configure for i686 and i386 with no luck. I had some luck after providing CFLAGS like -m32 with the make command - It would put the libraries in the right folder but error out because more 32-bit libraries (like libflac) were unavailable.
I had a feeling this would end up as a repetitive process, so ended up installing 32-bit Ubuntu. I was then able to successfully install the sndfile package in the right location. It would have been simpler if I was able to search and find 32-bit packages like these from Ubuntu repository. I wonder if that is possible... |
All times are GMT -5. The time now is 05:26 AM. |