Before you start hacking…
Please verify that
mtp-detect really gives you the
"No raw devices found." message. Also try to reboot and replug the device/host or use another cable that, preferably, works with another MTP enabled device, if possible.
If your device is detected, then please have a look at: Getting MTP enabled devices to work with Ubuntu? I also posted some troubleshooting instructions and I am still taking suggestions for improvement there.
Installing the latest libmtp version
If you are not running the latest version of libmtp, you can:
Filing a support request for your device
If compiling from source didn't work, chances are that your device is currently not supported by libmtp. A list of supported devices is available which will be sourced during installation or building of the package to create
If in doubt, just follow the procedures on the project homepage to open a bug report/support request for adding a new device, it's basically running
lsusb -v, unless you have experience in programming and submitting patches.
Note: It's useful to provide the name of your device and a link to the product page if possible. Also try searching for the device and vendor ID, you may find that the manufacturer uses the same ID for other devices and that a support request for this ID has already been filed and committed to GIT but hasn't been released a a source package or stable release. (That just happened to me with a newer Lumia device.)