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.
How to compile sdk for linux
Moderator: Moderators
Makefile for Linux
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
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