Compiling ScanTesla on Linux

UbuntuNinja, Mon Jun 27 2011, 06:13AM

Hello everyone, I am trying to compile ScanTesla under a Linux system (Ubuntu 11.04, to be specific) and am encountering problems. So first I was having problems with linking to standard header files like math.h as I have no idea how to tell gcc to link to said files. So I copied math.h and the other relevant headers from /usr/include to the directory where the source file for ScanTesla is and it is not complaining about that anymore. However, now it gives a bunch of errors saying "undefined reference to sqrt/clrscr/gotoxy". I would have assumed that the sqrt function would be handled by math.h, am I wrong? Google was somewhat unhelpful in solving this problem. I am using gcc 4.5.2 on a 64-bit system trying to compile ScanTesla763, if any of that information helps. ScanTesla763 can be found here Link2 .

Thanks!
Re: Compiling ScanTesla on Linux
Carbon_Rod, Mon Jun 27 2011, 07:24AM

People have to start somewhere, and Debian + gcc can make it easier.

sudo apt-get install cmake build-essential

cmake is a worthwhile cross-platform Makefile generator that auto-resolves most dependencies/include paths :
Link2

0. Reboot
1. Create basic "CMakeLists.txt" file
2. Run "cmake ."
3. Run "make"

Most common dependencies are automatically resolved without having to mess with ldconfig.

Ubuntu forums are sometimes useful if you run into one of Debian's lib/link quirks.
Note, that 10.04 (even with its bugs) was the last version that was "mostly compatible" with numerous software SDKs.


Good luck,