Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sammyMaX

Pages: 1 ... 3 4 [5] 6 7 ... 14
61
News / Re: Ndless v3.1 beta for OS v3.1 with TI-Nspire CX support released
« on: February 26, 2012, 06:53:51 pm »
Try saying yvel = yvel + rmov instead, and see if that works.

62
News / Re: Ndless v3.1 beta for OS v3.1 with TI-Nspire CX support released
« on: February 26, 2012, 06:32:18 pm »
I don't know about that... full code please?

63
News / Re: Ndless v3.1 beta for OS v3.1 with TI-Nspire CX support released
« on: February 26, 2012, 05:28:23 pm »
Here's another potential bug (or maybe it's just me?)
When building my program in Ndless r557, the console gives me these errors:
Code: [Select]
In file included from main.c:4:0:
/home/philip/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/string.h: At top level:
/home/philip/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/string.h:35:9: error: conflicting types for ‘strlen’
/home/philip/Downloads/ndless-r557/sdk/bin/../include/os.h:243:1: note: previous definition of ‘strlen’ was here

I find that "strlen" was defined in line 47 of syscalls.h. Is there a conflict between this and something already defined in gcc?

64
Calculator C / Re: Noob Questions about Porting
« on: February 26, 2012, 11:23:23 am »
Lua and GMP would be interesting, and it's a shame that TI doesn't open up to third-party development, because it could help them tremendously...

Anyways, I try to build my little program and it now gives me these errors:
Code: [Select]
hello.o: In function `main':
hello.c:(.text.startup+0x18): undefined reference to `__gmpz_init'
hello.c:(.text.startup+0x2c): undefined reference to `__gmpz_set_str'
hello.c:(.text.startup+0x34): undefined reference to `__gmpz_init'
hello.c:(.text.startup+0x44): undefined reference to `__gmpz_pow_ui'
hello.c:(.text.startup+0x54): undefined reference to `__gmp_printf'
collect2: ld returned 1 exit status
make: *** [hello.tns] Error 1
Could this be because it is trying to use the wrong version of GMP (an i386 one) or is it still a problem in my makefile?
Here are my builder and linker flags:
Code: [Select]
GCCFLAGS = -I/home/philip/gmp/prefix/include -Os -nostdlib -Wall -W -marm
LDFLAGS = -L/home/philip/gmp/prefix/lib -lgmp -nostdlib

65
TI-Nspire / Re: BigNumNum Cruncher
« on: February 26, 2012, 09:46:22 am »
I made a custom radical sign character :)
It currently replaces the "1" character, so that's why the version number is so funny. :P

Meanwhile, I removed the memory usage indicator because it would be hard to program and useless, and I'm also working on porting GMP so I don't have to use my silly slow math algorithms. If that turns out successful, I will stop using my own math functions and just focus on programming a GUI.

66
News / Re: 2 years of Axe Parser
« on: February 25, 2012, 08:47:17 pm »
I second that  :P

67
Calculator C / Re: Noob Questions about Porting
« on: February 25, 2012, 06:25:42 pm »
It finds the library and header now, but gives off these errors:
Code: [Select]
osstub.c:6:18: error: conflicting types for ‘_ssize_t’
/home/philip/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/sys/_types.h:56:13: note: previous declaration of ‘_ssize_t’ was here
osstub.c:8:18: error: conflicting types for ‘_off_t’
/home/philip/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/sys/_types.h:16:14: note: previous declaration of ‘_off_t’ was here
make[1]: *** [osstub.o] Error 1
make: *** [hello.tns] Error 2
What are _ssize_t and _off_t?

Edit: I don't think these errors are related to GMP at all - compiling the normal Hello.c gives me the same errors. Any help?

68
Calculator C / Re: Noob Questions about Porting
« on: February 25, 2012, 03:44:53 pm »
It compiles :)

I tried making a program, and it can never find gmp.h. I modified the Hello World sample a bit, and the only line I changed was LDFLAGS, which I changed to this:
Code: [Select]
LDFLAGS = -L /home/philip/gmp/prefix/ -lgmp -nostdlibAnd the compiler tells me that it can't find gmp.h. Are the -L and -lgmp flags supposed to be in GCCFLAGS, or LDFLAGS?

69
Calculator C / Re: Noob Questions about Porting
« on: February 25, 2012, 10:36:03 am »
In order to use GMP in my code, would I just say:
Code: [Select]
#include <gmp.h> // Would the compiler find the library it points to and use it?
And I would still have to port GMP right? (I can't just use the GMP already built for Linux because it's not for the right architecture?)
       If I do have to port GMP, I would have both an i386 and an ARM version, so how would the compiler know which version to use?

70
Art / Re: leafy's art
« on: February 24, 2012, 03:58:29 pm »
You mean like cel-shading, but more exaggerated?

Edit: I was responding to something on the first page, herp derp...

71
Calculator C / Noob Questions about Porting
« on: February 24, 2012, 02:20:42 pm »
I would like to use GMP in an Nspire program. I've experimented with building it a bit, but I really don't know what I am doing. Hopefully these questions don't sound too stupid:
1. If I compile a library and use it in my program, and build my program using nspire-gcc, would the library have to be in a special format so it can be used on Nspires?

2. What do libraries even compile into (in Linux)? I would think that if you included the header file of a library, then when you build your own project, the compiler will see the other files from the library included in it, and compile those as well.

3. If GMP compiles, would it even be in a form that is usable for Nspire applications?

72
News / Re: Native Lua Extensions thanks to the latest Ndless update !
« on: February 22, 2012, 10:13:45 am »
Can we use Lua in our C code (mostly C, a little Lua)? I would like to be able to use the pretty font Lua has in my C programs.

73
TI-Nspire / Re: BigNumNum Cruncher
« on: February 21, 2012, 05:03:36 pm »
Version 0.17a now with sum of digits completed. Unfortunately, this function won't be very useful until I program it so that the other input lines can be used (right now you can only type in line A) Also, I changed it so each input line is identified by number instead of letter.

74
Casio Calculators / Re: Free PRIZM's and ClassPad's
« on: February 21, 2012, 02:56:03 pm »
Mine is on the way! Thanks for telling me about this!

75
Casio Calculators / Re: Free PRIZM's and ClassPad's
« on: February 20, 2012, 06:49:10 pm »
Thanks so much for telling me about this! It's still going on, right?

I can't wait to see the look on my parents faces when a graphing calculator randomly arrives in the mail :)

Pages: 1 ... 3 4 [5] 6 7 ... 14