SDK 1.8 was only tested with Ubuntu 14.04. It may fail if you attempt to install it on a later version. If you are installing on Ubuntu 14.04, and there are still error messages, check this post for more suggestions.
Hope this helps,
Platon
No bare board software demos are available for T1040, sorry. If you are looking for a reference code to bringup and control a peripheral, you can look at Linux drivers:
Best Regards,
Platon