How to compile sdk for linux

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

Moderator: Moderators

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

How to compile sdk for linux

Post by senguela »

Hello,
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.
UtaSH
Moderator
Moderator
Posts: 3754
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany
Contact:

Makefile for Linux

Post by UtaSH »

Hi,
you can take any of the makefiles to create one for Linux. For example take the makefile.ibm 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.

Uta
Post Reply