Author Topic: Luna 0.3 for OS 3.2 is here!  (Read 6732 times)

0 Members and 1 Guest are viewing this topic.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Luna 0.3 for OS 3.2 is here!
« on: June 24, 2012, 04:58:09 pm »
ExtendeD finally updated his Lua to TNS tool, Luna, with support of Nspire OS 3.2 and its new API and full UTF-8 support.

Download

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Luna 0.3 for OS 3.2 is here!
« Reply #1 on: June 24, 2012, 06:51:41 pm »
Nice to hear. I wonder if the on-calc Lua tools OCLua and others still run on OS 3.2 btw?

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Luna 0.3 for OS 3.2 is here!
« Reply #2 on: June 24, 2012, 06:52:50 pm »
They do, but need to be recompiled with the new lua in order to take advantage of new stuff.

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: Luna 0.3 for OS 3.2 is here!
« Reply #3 on: June 24, 2012, 09:36:15 pm »
If anyone is successful compiling this in linux please report in.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Luna 0.3 for OS 3.2 is here!
« Reply #4 on: June 24, 2012, 10:33:55 pm »
You have to add -lcrypto in the LDFLAGS line in the Makefile.

GCC is apparently awesome enough to tell which library is missing, it was like, hey this function is undefined but you'll find it in this lib, so add it in LDFLAGS and it'll work :P
« Last Edit: June 24, 2012, 10:42:23 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Luna 0.3 for OS 3.2 is here!
« Reply #5 on: June 25, 2012, 05:09:19 am »
You have to add -lcrypto in the LDFLAGS line in the Makefile.

GCC is apparently awesome enough to tell which library is missing, it was like, hey this function is undefined but you'll find it in this lib, so add it in LDFLAGS and it'll work :P
If you ever get it to compile on Mac (intel 64bit), please share ;)

I've gone to this point :
Spoiler For Spoiler:
Code: [Select]
Mac-Pro-Adrien:src adrien$ sudo make all
gcc -W -Wall   -c -o luna.o luna.c
luna.c: In function ‘doccrypt’:
luna.c:288: warning: ‘DES_set_key_checked’ is deprecated (declared at /usr/include/openssl/des.h:227)
luna.c:289: warning: ‘DES_set_key_checked’ is deprecated (declared at /usr/include/openssl/des.h:227)
luna.c:290: warning: ‘DES_set_key_checked’ is deprecated (declared at /usr/include/openssl/des.h:227)
luna.c:304: warning: ‘DES_ecb3_encrypt’ is deprecated (declared at /usr/include/openssl/des.h:135)
gcc -W -Wall   -c -o zip.o minizip-1.1/zip.c
In file included from minizip-1.1/zip.c:196:
minizip-1.1/crypt.h:35: warning: unused parameter ‘pcrc_32_tab’
gcc -W -Wall   -c -o ioapi.o minizip-1.1/ioapi.c
minizip-1.1/ioapi.c:83: warning: unused parameter ‘opaque’
minizip-1.1/ioapi.c: In function ‘fopen64_file_func’:
minizip-1.1/ioapi.c:115: warning: implicit declaration of function ‘fopen64’
minizip-1.1/ioapi.c:115: warning: assignment makes pointer from integer without a cast
minizip-1.1/ioapi.c: At top level:
minizip-1.1/ioapi.c:101: warning: unused parameter ‘opaque’
minizip-1.1/ioapi.c:120: warning: unused parameter ‘opaque’
minizip-1.1/ioapi.c:127: warning: unused parameter ‘opaque’
minizip-1.1/ioapi.c:134: warning: unused parameter ‘opaque’
minizip-1.1/ioapi.c: In function ‘ftell64_file_func’:
minizip-1.1/ioapi.c:145: warning: implicit declaration of function ‘ftello64’
minizip-1.1/ioapi.c: At top level:
minizip-1.1/ioapi.c:142: warning: unused parameter ‘opaque’
minizip-1.1/ioapi.c:149: warning: unused parameter ‘opaque’
minizip-1.1/ioapi.c: In function ‘fseek64_file_func’:
minizip-1.1/ioapi.c:191: warning: implicit declaration of function ‘fseeko64’
minizip-1.1/ioapi.c: At top level:
minizip-1.1/ioapi.c:172: warning: unused parameter ‘opaque’
minizip-1.1/ioapi.c:198: warning: unused parameter ‘opaque’
minizip-1.1/ioapi.c:205: warning: unused parameter ‘opaque’
gcc -o luna luna.o zip.o ioapi.o -lssl -lz -lcrypto
Undefined symbols for architecture x86_64:
  "_fopen64", referenced from:
      _fopen64_file_func in ioapi.o
     (maybe you meant: _fill_fopen64_filefunc)
  "_ftello64", referenced from:
      _ftell64_file_func in ioapi.o
  "_fseeko64", referenced from:
      _fseek64_file_func in ioapi.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [luna] Error 1
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: Luna 0.3 for OS 3.2 is here!
« Reply #6 on: June 25, 2012, 07:05:33 am »
You have to add -lcrypto in the LDFLAGS line in the Makefile.

GCC is apparently awesome enough to tell which library is missing, it was like, hey this function is undefined but you'll find it in this lib, so add it in LDFLAGS and it'll work :P
adding -lcrypto doesn't make me any diference since the output is pretty much the same and also the same as adriweb's...

Spoiler For Console Output for $ make dist:
renato@renato-laptop-ubuntu:~/luna-v0.3/src$ make dist
rm -rf *.o luna dist
gcc -W -Wall   -c -o luna.o luna.c
gcc -W -Wall   -c -o zip.o minizip-1.1/zip.c
In file included from minizip-1.1/zip.c:196:0:
minizip-1.1/crypt.h: In function ‘decrypt_byte’:
minizip-1.1/crypt.h:35:68: warning: unused parameter ‘pcrc_32_tab’ [-Wunused-parameter]
gcc -W -Wall   -c -o ioapi.o minizip-1.1/ioapi.c
minizip-1.1/ioapi.c: In function ‘fopen_file_func’:
minizip-1.1/ioapi.c:83:49: warning: unused parameter ‘opaque’ [-Wunused-parameter]
minizip-1.1/ioapi.c: In function ‘fopen64_file_func’:
minizip-1.1/ioapi.c:101:51: warning: unused parameter ‘opaque’ [-Wunused-parameter]
minizip-1.1/ioapi.c: In function ‘fread_file_func’:
minizip-1.1/ioapi.c:120:48: warning: unused parameter ‘opaque’ [-Wunused-parameter]
minizip-1.1/ioapi.c: In function ‘fwrite_file_func’:
minizip-1.1/ioapi.c:127:49: warning: unused parameter ‘opaque’ [-Wunused-parameter]
minizip-1.1/ioapi.c: In function ‘ftell_file_func’:
minizip-1.1/ioapi.c:134:47: warning: unused parameter ‘opaque’ [-Wunused-parameter]
minizip-1.1/ioapi.c: In function ‘ftell64_file_func’:
minizip-1.1/ioapi.c:142:53: warning: unused parameter ‘opaque’ [-Wunused-parameter]
minizip-1.1/ioapi.c: In function ‘fseek_file_func’:
minizip-1.1/ioapi.c:149:48: warning: unused parameter ‘opaque’ [-Wunused-parameter]
minizip-1.1/ioapi.c: In function ‘fseek64_file_func’:
minizip-1.1/ioapi.c:172:50: warning: unused parameter ‘opaque’ [-Wunused-parameter]
minizip-1.1/ioapi.c: In function ‘fclose_file_func’:
minizip-1.1/ioapi.c:198:47: warning: unused parameter ‘opaque’ [-Wunused-parameter]
minizip-1.1/ioapi.c: In function ‘ferror_file_func’:
minizip-1.1/ioapi.c:205:47: warning: unused parameter ‘opaque’ [-Wunused-parameter]
gcc -o luna luna.o zip.o ioapi.o -lssl -lz -lcrypt
luna.o: In function `doccrypt':
luna.c:(.text+0xa8c): undefined reference to `DES_set_key_checked'
luna.c:(.text+0xaab): undefined reference to `DES_set_key_checked'
luna.c:(.text+0xaca): undefined reference to `DES_set_key_checked'
luna.c:(.text+0xb77): undefined reference to `DES_ecb3_encrypt'
collect2: ld returned 1 exit status
make: *** [luna] Error 1
but this gives a smaller output...
Spoiler For Console Output for $ make all:
renato@renato-laptop-ubuntu:~/luna-v0.3/src$ make all
gcc -o luna luna.o zip.o ioapi.o -lssl -lz -lcrypt
luna.o: In function `doccrypt':
luna.c:(.text+0xa8c): undefined reference to `DES_set_key_checked'
luna.c:(.text+0xaab): undefined reference to `DES_set_key_checked'
luna.c:(.text+0xaca): undefined reference to `DES_set_key_checked'
luna.c:(.text+0xb77): undefined reference to `DES_ecb3_encrypt'
collect2: ld returned 1 exit status
make: *** [luna] Error 1
I written lcrypt instead of lcrypto.
Compiled with $ make all and it's working.
« Last Edit: June 25, 2012, 07:22:50 am by renatose »

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Luna 0.3 for OS 3.2 is here!
« Reply #7 on: June 25, 2012, 10:45:10 am »
Code: [Select]

miku:src julien$ make all
gcc -W -Wall   -c -o luna.o luna.c
luna.c:21:14: error: invalid suffix "b10000000" on integer constant
luna.c:25:13: error: invalid suffix "b11100000" on integer constant
luna.c:25:28: error: invalid suffix "b11000000" on integer constant
luna.c:26:15: error: invalid suffix "b00011111" on integer constant
luna.c:28:22: error: invalid suffix "b00111111" on integer constant
luna.c:31:13: error: invalid suffix "b111100000" on integer constant
luna.c:31:29: error: invalid suffix "b11100000" on integer constant
luna.c:32:15: error: invalid suffix "b00011111" on integer constant
luna.c:34:23: error: invalid suffix "b00111111" on integer constant
luna.c:36:22: error: invalid suffix "b00111111" on integer constant
luna.c:39:13: error: invalid suffix "b111110000" on integer constant
luna.c:39:29: error: invalid suffix "b11110000" on integer constant
luna.c:40:15: error: invalid suffix "b00011111" on integer constant
luna.c:42:23: error: invalid suffix "b00111111" on integer constant
luna.c:44:23: error: invalid suffix "b00111111" on integer constant
luna.c:46:22: error: invalid suffix "b00111111" on integer constant
luna.c:71:12: error: invalid suffix "b10000001" on integer constant
luna.c:75:12: error: invalid suffix "b00001000" on integer constant
make: *** [luna.o] Error 1

Seems I have a old version of GCC (4.2.1, shipped with Mac OS X 10.6.8 ) that doesn't support binary constants.
« Last Edit: June 25, 2012, 10:46:37 am by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Cuervo

  • LV2 Member (Next: 40)
  • **
  • Posts: 33
  • Rating: +2/-1
    • View Profile
Re: Luna 0.3 for OS 3.2 is here!
« Reply #8 on: June 25, 2012, 12:01:46 pm »
The trick is to compile it with GCC 4.7.1..^^

Download Luna v0.3 for Mac OS X (Binaries for x86 and x86_64, source and makefile):
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX03


Here are some older versions for Mac OS X:
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02b (0.2b)
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02a (0.2a)
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02 (0.2)
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX (0.1)

TIA
Cuervo

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Luna 0.3 for OS 3.2 is here!
« Reply #9 on: June 25, 2012, 12:03:07 pm »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Luna 0.3 for OS 3.2 is here!
« Reply #10 on: June 29, 2012, 09:25:08 pm »
Great news, can't wait to use this! :D