Author Topic: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files  (Read 57686 times)

0 Members and 1 Guest are viewing this topic.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
@adriweb:
Does the Mac build work?

Yes, it works great :) (x64 tested)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
I installed the packages zlib1g-dbg and libssl-dev, and then ran "make dist" in the src directory. A lot of errors in minizip popped up, but a (Linux) executable file appeared. I tried to run it with "sudo luna file.lua output.tns" but the terminal replied back "command not found." What am I doing wrong? I'm using Ubuntu 11.04 32-bit.

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline imo_inx

  • Manman, SaviourOfTheMultiverse!
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 473
  • Rating: +27/-8
  • imo_inx
    • View Profile
You could try uninstalling and reinstalling it.


Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
You don't need to use sudo, and you probably want to use "./luna" instead of "luna", if you're launching from the directory where you compiled Luna.

Venom: make dist does not install Luna, in the sense that it won't copy luna to a directory in PATH, so uninstalling and reinstalling Luna wouldn't change anything ;)
« Last Edit: August 10, 2011, 01:44:48 pm by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
It worked! Sorry, I'm a complete noob at Linux (I only began using it a week or two ago to get TILP to work without installing GTK+ on Windows), so when does one use ./ and what does it do?

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
When launching a program in a terminal, if it's not in the PATH environment variable, you need to give the full path to the program, e.g. /home/user/luna/luna. But if you're launching "luna" from the /home/user/luna folder, you still need to use "./luna" to indicate the path of the program (since, again, /home/user/luna is not in the PATH).
On Windows, the current folder is automatically prepended to the PATH. Which is slightly more convenient, but is strongly frowned upon from a security POV, since executables in the local folder could shadow other executables from the path.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Just to make it clear, ./ refers to the current directory :)

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
When I run TILP though, not including the "./" in front is okay. Why is this? And just to be clear, are all Linux programs supposed to be run with a "./" in the front?

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
If a program is in your bin directory, you don't need it.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Quote
When I run TILP though, not including the "./" in front is okay. Why is this?
Because TILP is being installed to a folder that is listed in the PATH environment variable :)

Quote
And just to be clear, are all Linux programs supposed to be run with a "./" in the front?
No :)
Either they are installed in a folder that is listed in the PATH environment variable, in which case you don't need to use "./" or "/home/<...>" or "../<...>", which are ways to tell the command interpreter where to find the program, or they aren't, and then you have to tell the command interpreter where to find the program.
The general principle is the same on Windows, except that on Windows, PATH automatically contains ".".
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Okay I get it  :w00t: Thanks and good luck to the Ndless 3 developers!

Are you wondering who Sammy is? My avatar is Sammy.
   

SirCmpwn

  • Guest
What on Earth was TI thinking, making their own closed source encryption scheme?  As far as stupid decisions go, that's a pretty big one.  Anyone who knows anything about encryption knows that you use a publicly available algorithm, or make your algorithm public.

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
What on Earth was TI thinking, making their own closed source encryption scheme?  As far as stupid decisions go, that's a pretty big one.  Anyone who knows anything about encryption knows that you use a publicly available algorithm, or make your algorithm public.
They didn't. They used triple-DES encryption, which is publicly available.
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
SirCmpwn: the encryption itself is indeed standard; but the obfuscation (a more generic term that more accurately describes what TI is doing, it's not just encryption + compression) contains a proprietary, and patented part.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

SirCmpwn

  • Guest
Oh, that makes sense.  Why would they obfuscate it, though?  Seems a bit strange.