How to compile sdk for linux

Questions and answers about 3Dconnexion devices on UNIX and Linux.

Moderator: Moderators

Post Reply
Posts: 2
Joined: Mon Aug 04, 2008 6:03 am
Location: Switzerland

How to compile sdk for linux

Post by senguela » Mon Aug 04, 2008 6:10 am

I am trying to compile sample sdk code. But there are different make files such as for ibm, hp etc. My computer is dell and I have ubuntu running. Which make file should i use.

Posts: 3691
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany

Makefile for Linux

Post by UtaSH » Fri Aug 08, 2008 1:21 am

you can take any of the makefiles to create one for Linux. For example take the and replace the -DIBM by -DLINUX. If you save this file as makefile just run "make", if you save it with the .linux extension call "make -f makefile.linux".

If you experience linker errors you'll have to add the option -L<path> (no space between -L and the path) to the lines with "cc" in the beginning, where <path> it the path to your libs. On Linux this path is most likely /usr/X11R6/lib or /usr/X11R6/lib64 on 64 bit systems.


Post Reply