π
<-

Problème Ndless 3.1 SDK ide

C, C++, ASM...

Problème Ndless 3.1 SDK ide

Unread postby pierreyves258 » 13 Oct 2012, 18:18

Bonjour j'ai télécharger le SDK Ndless 3.1 sur tiplanet. Tout marche bien j'arrive a compiler mais quand le fait "Build" Y me met:
Code: Select all
nspire-ld main.o -o somme.elf
make: nspire-ld: Command not found
make: *** [somme.tns] Error 127
Built.


Il n'y a pas un genre de réglage a faire dans msys ou je ne sais pas ?

Merci de votre aide, car ce logiciel semble l'outil idéal pour programmer en C pour NdLess 3.1, j'aimerais vraiment pouvoir l'utiliser

(PS: Mon fichier .c se trouve dans un dossier et ndless sdk dans un autre et tout les chemins sont SANS espaces)

EDIT: je sais pas ce que j'ai changer mais maintenant l'erreur est:
Code: Select all
nspire-ld main.o -o somme.elf
main.o: In function `main':
main.c:(.text+0x1c): undefined reference to `showSimpleDialogBox'
collect2: ld returned 1 exit status
make: *** [somme.tns] Error 1
Built.


la fonction n'est pas showSimpleDialogBox ?
User avatar
pierreyves258
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 25%
 
Posts: 35
Joined: 09 Oct 2012, 06:31
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Seconde

Re: Problème Ndless 3.1 SDK ide

Unread postby Levak » 13 Oct 2012, 18:54

la fonction n'est pas showSimpleDialogBox ?


non ? http://hackspire.unsads.com/wiki/index.php/Libndls#UI
Responsable design/graphique de TI-Planet
I do not get mad at people, I just want them to learn the way I learnt.
ImageTNOC [topic][DL]
nClock [topic][DL]
HideManager [topic][DL]
ZLock [topic][DL]
Theme Editor [topic][DL]
Mes programmes
User avatar
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 98.9%
 
Posts: 6414
Images: 22
Joined: 27 Nov 2008, 00:00
Location: 0x1AACC355
Gender: Male
Calculator(s):
MyCalcs profile
Class: BAC+5: Epita (ING3)

Re: Problème Ndless 3.1 SDK ide

Unread postby pierreyves258 » 13 Oct 2012, 19:15

Merci :) je cherchais justement une liste des fonctions :)
sauf que je veut afficher un int et ça ne marche pas ... dsl, ça fait longtemps que j'ai pas fait du C.

Mon programme est:
Code: Select all
#include <os.h>
#include <common.h>

int main(void) {
   int Somme;
   int i=1;
   for(i;i<100;i++)
   {
      Somme+=i;
   }
   show_msgbox("Hello Word", Somme);
   return 0;
}


C'est juste un petit programme simple pour comparer les temps d'execution de la même chose en TiBasic et en C.

Aussi si tu sait comment faire pour compiler en C99 elle est bienvenue :p (j'aimerais initialiser ma variable i dans le for
User avatar
pierreyves258
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 25%
 
Posts: 35
Joined: 09 Oct 2012, 06:31
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Seconde

Re: Problème Ndless 3.1 SDK ide

Unread postby Levak » 13 Oct 2012, 19:23

En C, le typage est fort.
En C, tu as des pointeurs.
En C, on est pas en Java.


Je sais que c'est "évident" ce que je viens de dire, mais relis ton code, ça fera peut être "tilt" dans ta tête :p.

Pour le c99, -std=c99 mais j'ai jamais essayé sur nspire.

Aussi : common.h, tu n'en as pas besoin directement, c'est os.h et libndls.h
Responsable design/graphique de TI-Planet
I do not get mad at people, I just want them to learn the way I learnt.
ImageTNOC [topic][DL]
nClock [topic][DL]
HideManager [topic][DL]
ZLock [topic][DL]
Theme Editor [topic][DL]
Mes programmes
User avatar
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 98.9%
 
Posts: 6414
Images: 22
Joined: 27 Nov 2008, 00:00
Location: 0x1AACC355
Gender: Male
Calculator(s):
MyCalcs profile
Class: BAC+5: Epita (ING3)

Re: Problème Ndless 3.1 SDK ide

Unread postby pierreyves258 » 13 Oct 2012, 21:50

Hum... Ah oui !!! c'est avec un %n ? , mais on ne peut mettre que 2 arguments dans show_msgbox donc ça ne marche pas ...
Je vois pas ... dsl (faut que je me remette au C moi :p)

Oui je sais que pour le c99 c'est -std=c99 mais je ne sais pas ou ajouter cette ligne (je me suis jamais très bien habitué au Makefiles) :p

Merci :)

PS: sinon pour demander une valeur c'est bien
Code: Select all
show_1numeric_input("Nombre: ", "", "Value: ", &Somme, 0, 100000);
?
Last edited by pierreyves258 on 13 Oct 2012, 21:57, edited 1 time in total.
User avatar
pierreyves258
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 25%
 
Posts: 35
Joined: 09 Oct 2012, 06:31
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Seconde

Re: Problème Ndless 3.1 SDK ide

Unread postby Levak » 13 Oct 2012, 21:55

Non, il faut convertir ton int en char *, avec sprintf(buf, "%d", n) par exemple dans un buffer à toi, puis le passer en argument à show_msgbox.

Edit:
Autre alternative :
Code: Select all
String str = string_new();
string_sprintf_utf16(str, "%\0d\0\0", n);    // les \0 c'est à cause de l'utf16
show_msgbox("Hello", string_to_ascii(str));
string_free(str);

http://hackspire.unsads.com/wiki/index. ... String_API
Responsable design/graphique de TI-Planet
I do not get mad at people, I just want them to learn the way I learnt.
ImageTNOC [topic][DL]
nClock [topic][DL]
HideManager [topic][DL]
ZLock [topic][DL]
Theme Editor [topic][DL]
Mes programmes
User avatar
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 98.9%
 
Posts: 6414
Images: 22
Joined: 27 Nov 2008, 00:00
Location: 0x1AACC355
Gender: Male
Calculator(s):
MyCalcs profile
Class: BAC+5: Epita (ING3)

Re: Problème Ndless 3.1 SDK ide

Unread postby pierreyves258 » 13 Oct 2012, 22:08

Je fait ça en faite ?

Code: Select all
#include <common.h>

int main(void) {
   int Somme;
   show_1numeric_input("Nombre: ", "", "Value: ", &Somme, 0, 100000);
   int i=1;
   for(i;i<100;i++)
   {
      Somme+=i;
   }
   String str = string_new();
   string_sprintf_utf16(str, "%\0d\0\0", Somme);    // les \0 c'est à cause de l'utf16
   show_msgbox("Hello", string_to_ascii(str));
   string_free(str);
   return 0;
}


Merci de ton aide ;)

... maintenant l'ide me met ça, y commence a me souler ...
Code: Select all
nspire-ld main.o -o somme.elf
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(_show_msgbox.o): Unknown mandatory EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(_show_msgbox.o)
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(clrscr.o): Unknown mandatory EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(clrscr.o)
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(hwtype.o): Unknown mandatory EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(hwtype.o)
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(lcd_incolor.o): Unknown mandatory EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(lcd_incolor.o)
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(lcd_ingray.o): Unknown mandatory EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(lcd_ingray.o)
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(lcd_isincolor.o): Unknown mandatory EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(lcd_isincolor.o)
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(show_1numeric_input.o): Unknown mandatory EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(show_1numeric_input.o)
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(_scrsize.o): Unknown mandatory EABI object attribute 44
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/PFfree/NdLessSDK/ndless/bin/../lib\libndls.a(_scrsize.o)
collect2: ld returned 1 exit status
make: *** [somme.tns] Error 1
Built.
User avatar
pierreyves258
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 25%
 
Posts: 35
Joined: 09 Oct 2012, 06:31
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Seconde

Re: Problème Ndless 3.1 SDK ide

Unread postby Levak » 13 Oct 2012, 22:16

#include <common.h>

Tu as fait l'inverse de ce que j'ai dit tout à l'heure. #include <common.h> est inutile, il te faut les deux autres, c'est à dire
#include <os.h>
#include <libndls.h>
Responsable design/graphique de TI-Planet
I do not get mad at people, I just want them to learn the way I learnt.
ImageTNOC [topic][DL]
nClock [topic][DL]
HideManager [topic][DL]
ZLock [topic][DL]
Theme Editor [topic][DL]
Mes programmes
User avatar
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 98.9%
 
Posts: 6414
Images: 22
Joined: 27 Nov 2008, 00:00
Location: 0x1AACC355
Gender: Male
Calculator(s):
MyCalcs profile
Class: BAC+5: Epita (ING3)

Re: Problème Ndless 3.1 SDK ide

Unread postby pierreyves258 » 13 Oct 2012, 22:20

Ah ok dsl, mais ça ne règle pas mon problème...
User avatar
pierreyves258
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 25%
 
Posts: 35
Joined: 09 Oct 2012, 06:31
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Seconde

Re: Problème Ndless 3.1 SDK ide

Unread postby Levak » 13 Oct 2012, 22:22

pierreyves258 wrote:Ah ok dsl, mais ça ne règle pas mon problème...

Ok ... intéressant.

Cette erreur vient de show_msgbox, string ou encore avant ?

Si je me souviens bien, tu n'as pas beoin de yagorto d'installé, or, tu en as visiblement un.
Peux-tu essayer de désinstaller yagorto et retenter ?
Responsable design/graphique de TI-Planet
I do not get mad at people, I just want them to learn the way I learnt.
ImageTNOC [topic][DL]
nClock [topic][DL]
HideManager [topic][DL]
ZLock [topic][DL]
Theme Editor [topic][DL]
Mes programmes
User avatar
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 98.9%
 
Posts: 6414
Images: 22
Joined: 27 Nov 2008, 00:00
Location: 0x1AACC355
Gender: Male
Calculator(s):
MyCalcs profile
Class: BAC+5: Epita (ING3)

Next

Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: ClaudeBot [spider] and 6 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1512 utilisateurs:
>1501 invités
>6 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)