Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: cyanophycean314 on April 13, 2013, 02:29:12 pm

Title: Luna on Linux
Post by: cyanophycean314 on April 13, 2013, 02:29:12 pm
Hey guys, it's been a long time I've been here. I have been making a few projects here and there, but nothing much. I'm trying to get a development environment on my new Linux Mint distro. I got karmTI running, but right now my biggest obstacle is getting luna to run. Any suggestions?

Thanks
Title: Re: Luna on Linux
Post by: Lionel Debroux on April 13, 2013, 02:51:32 pm
Luna can be compiled for Linux and MacOS X. What problems are you facing ?
Title: Re: Luna on Linux
Post by: Juju on April 13, 2013, 07:13:00 pm
Get build-essential from apt-get, aptitude or synaptic, download Luna from here: http://www.ticalc.org/archives/files/fileinfo/441/44113.html

Then unzip, go in src/, type make and optionally move the resulting executable in /usr/local/bin. There you go you have a working luna.
Title: Re: Luna on Linux
Post by: ExtendeD on April 14, 2013, 04:58:09 am
On Linux make sure before building it to:
 * Install libssl-dev
 * Install zlib
 * Install GCC v4.5 or higher
Title: Re: Luna on Linux
Post by: cyanophycean314 on April 14, 2013, 10:11:33 am
I know I have libssl-dev and gcc installed. As for zlib, I have zlib1g and zlib1g-dev installed. Are those the right packages? I get a lot of results for that in Synaptic.

When I'm in the terminal and I type in make at the luna src directory I get:
Quote
[email protected] ~/Documents/Programming/Lua/luna-v0.3a/src $ make
gcc -W -Wall -m32 -DUSE_FILE32API   -c -o luna.o luna.c
In file included from /usr/include/unistd.h:26:0,
                 from luna.c:2:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make: *** [luna.o] Error 1

Thanks once more
Title: Re: Luna on Linux
Post by: Lionel Debroux on April 14, 2013, 10:21:02 am
You should either install some 32-bit development library (not sure which one would fix the problem, your favorite search engine would help), or remove the -m32 compiler flag.