I am trying to compile a .so file the relies on the FTDI library. I'm not sure how to include the library so that it compiles correctly. (Below is my best guess). Is this possible or is there another way to go about it?
shared: pldevice pldeviceenttecpro pluniverse $(CC) -shared -Wl,-soname,libplanklight.so -o libplanklight.so\ -L/usr/local/lib -lftd2xx \ pldevice.o pldeviceenttecpro.o pluniverse.o Edit: This is what the output is:
g++ -fPIC -c pldevice.cpp g++ -fPIC -c pldeviceenttecpro.cpp g++ -fPIC -c pluniverse.cpp g++ -shared -Wl,-soname,libplanklight.so -o libplanklight.so\ -L/usr/local/lib -lftd2xx \ pldevice.o pldeviceenttecpro.o pluniverse.o /usr/bin/x86_64-linux-gnu-ld: cannot open output file libplanklight.so-L/usr/local/lib: No such file or directory collect2: error: ld returned 1 exit status Makefile:5: recipe for target 'shared' failed make: *** [shared] Error 1