Omnimaga

Omnimaga => News => Topic started by: Juju on June 24, 2012, 04:58:09 pm

Title: Luna 0.3 for OS 3.2 is here!
Post by: Juju on June 24, 2012, 04:58:09 pm
ExtendeD finally updated (http://ndlessly.wordpress.com/2012/06/24/luna-updated-compatibility-with-os-v3-2-and-special-characters/) his Lua to TNS tool, Luna, with support of Nspire OS 3.2 and its new API and full UTF-8 support.

Download (http://www.unsads.com/projects/nsptools/downloader/download/release/3)
Title: Re: Luna 0.3 for OS 3.2 is here!
Post by: DJ Omnimaga 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?
Title: Re: Luna 0.3 for OS 3.2 is here!
Post by: Jim Bauwens 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.
Title: Re: Luna 0.3 for OS 3.2 is here!
Post by: renatose on June 24, 2012, 09:36:15 pm
If anyone is successful compiling this in linux please report in.
Title: Re: Luna 0.3 for OS 3.2 is here!
Post by: Juju 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
Title: Re: Luna 0.3 for OS 3.2 is here!
Post by: Adriweb 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
Title: Re: Luna 0.3 for OS 3.2 is here!
Post by: renatose 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.
Title: Re: Luna 0.3 for OS 3.2 is here!
Post by: Juju 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.
Title: Re: Luna 0.3 for OS 3.2 is here!
Post by: Cuervo 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 (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 (http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02b) (0.2b)
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02a (http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02a) (0.2a)
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02 (http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02) (0.2)
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX (http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX) (0.1)

TIA
Cuervo
Title: Re: Luna 0.3 for OS 3.2 is here!
Post by: Adriweb on June 25, 2012, 12:03:07 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 (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 (http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02b) (0.2b)
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02a (http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02a) (0.2a)
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02 (http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX02) (0.2)
http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX (http://www.fanofblitzbasic.de/download.php?dlid=LunaMacOSX) (0.1)

TIA
Cuervo

Thanks :)
Title: Re: Luna 0.3 for OS 3.2 is here!
Post by: apcalc on June 29, 2012, 09:25:08 pm
Great news, can't wait to use this! :D