phatina / simple-mtpfs

Simple MTP fuse filesystem driver.
GNU General Public License v2.0
364 stars 44 forks source link

"-lmtp not found" on MacPorts #45

Open troex opened 8 years ago

troex commented 8 years ago

I've used MacPorts to install libmtp on my mac, by default MacPorts use prefix /opt/local for all installed software, so in order to configure I had to use command:

PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" LDFLAGS="-L/opt/local/lib" CPPFLAGS="-I/opt/local/include" ./configure

PKG_CONFIG_PATH is for osxfuse not sure why it's not autodetected, probably because pkg-config is from macports too and expects it to be in /opt/local.

I have no knowledge to send PR but hopefully it could be useful for others.

g-rocket commented 7 years ago

I had the same issue; passing

LDFLAGS="-L/opt/local/lib" CPPFLAGS="-I/opt/local/include -I/opt/local/include/osxfuse" ../configure

allowed it to compile properly.