iostream et STL
Re: iostream et STL
You can use wine instead.
It is possible to install nLaunchy in the emulator, giving a permanent install of Ndless. First boot up the emulator with OS 3.6 and install Ndless the usual way. You can transfer the files for nLaunchy, phoenix.tns and nlaunch.tns. Then remove the directory /phoenix (this is why you need to install Ndless in the beginning). Then reboot, and when you get to the os install screen, transfer nLaunchy's fake OS update. There might be an easier way, but this is how I did it.
It is possible to install nLaunchy in the emulator, giving a permanent install of Ndless. First boot up the emulator with OS 3.6 and install Ndless the usual way. You can transfer the files for nLaunchy, phoenix.tns and nlaunch.tns. Then remove the directory /phoenix (this is why you need to install Ndless in the beginning). Then reboot, and when you get to the os install screen, transfer nLaunchy's fake OS update. There might be an easier way, but this is how I did it.
-
LegimetProgrammeur
Niveau 4: MC (Membre Confirmé)- Posts: 13
- Joined: 12 Dec 2013, 02:49
- Gender:
- Calculator(s):→ MyCalcs profile
Re: iostream et STL
Legimet wrote:Then remove the directory /phoenix (this is why you need to install Ndless in the beginning).
Go to maintenance menu and remove the OS. That's easier.

-
ExcaleAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 2955
- Images: 3
- Joined: 10 Sep 2010, 00:00
- Gender:
- Calculator(s):→ MyCalcs profile
Re: iostream et STL
Do you have an easy way of triggering the maintenance menu on the emulator, Excale ?
-
critorAdmin
Niveau 19: CU (Créateur Universel)- Posts: 42456
- Images: 17274
- Joined: 25 Oct 2008, 00:00
- Location: Montpellier
- Gender:
- Calculator(s):→ MyCalcs profile
- YouTube: critor3000
- Twitter: critor2000
- GitHub: critor
Re: iostream et STL
I've had no problem doing that simply :

In order to "hold" keys, just click on one and hold it while dragging the mouse cursur out of the key. Repeat with other keys.
Then, go to the menu bar and choose Reset CPU (Alt-R)
Edit by Excale: on classic keyboard,
![[P] :nsp:](./images/smilies/nspire/nsp.png)

In order to "hold" keys, just click on one and hold it while dragging the mouse cursur out of the key. Repeat with other keys.
Then, go to the menu bar and choose Reset CPU (Alt-R)
Edit by Excale: on classic keyboard,
![[home] :nsho:](./images/smilies/nspire/ns_ho.png)
![[enter] :nsen:](./images/smilies/nspire/ns_en.png)
![[P] :nsp:](./images/smilies/nspire/nsp.png)
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14857
- Images: 1211
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
Re: iostream et STL
Adriweb wrote:Then, go to the menu bar and choose Reset CPU
Then, press alt+R.

Edit Adriweb : oui oui

-
ExcaleAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 2955
- Images: 3
- Joined: 10 Sep 2010, 00:00
- Gender:
- Calculator(s):→ MyCalcs profile
Re: iostream et STL
Bon, j'ai reussi a compiler ustl apres l'avoir beaucoup charcute (dans les flux, en particulier fstream). ustl::string a l'air de passer. J'ai par contre eu beaucoup de problemes avec vector, et ca vient en fait d'un gros bug dans l'interface C++ de nspireio, il faut supprimer le ifdef BUILD_LIB dans console.hpp (et uart.hpp), sinon la variable de console a un champ qui est ecrase par toute autre variable, et ca fait tout planter, j'ai perdu toute l'apres-midi a cause de ca. J'ai mis une version qui marche la:
http://www-fourier.ujf-grenoble.fr/~parisse/calc/nspire-io.tar.bz2
Pour ustl, c'est la (mais pratiquement pas teste pour le moment, et seuls les containers et les algorithmes ont une chance de marcher, pas les io/fstream)
http://www-fourier.ujf-grenoble.fr/~parisse/calc/ustl.tar.bz2
Le pire devrait etre derriere maintenant, je vais bientot pouvoir me lancer dans la compilation de giac lui-meme.
http://www-fourier.ujf-grenoble.fr/~parisse/calc/nspire-io.tar.bz2
Pour ustl, c'est la (mais pratiquement pas teste pour le moment, et seuls les containers et les algorithmes ont une chance de marcher, pas les io/fstream)
http://www-fourier.ujf-grenoble.fr/~parisse/calc/ustl.tar.bz2
Le pire devrait etre derriere maintenant, je vais bientot pouvoir me lancer dans la compilation de giac lui-meme.
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3814
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile

Re: iostream et STL
Great 
ustl's reduced footprint should be a good thing, as long as it has sufficient functionality.
I've sent an English translation of your post to compu, among others.
Other people have looked deeper into porting newlib, reading documentation such as http://sourceware.org/newlib/libc.html#Stubs .

ustl's reduced footprint should be a good thing, as long as it has sufficient functionality.
I've sent an English translation of your post to compu, among others.
Other people have looked deeper into porting newlib, reading documentation such as http://sourceware.org/newlib/libc.html#Stubs .
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
-
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)- Posts: 6873
- Joined: 23 Dec 2009, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: -
- GitHub: debrouxl
Re: iostream et STL
Hi, thanks for fixing that bug!
About the missing float/double support: Nspireio relies on the Nspire's (vs)printf implementation which doesn't seem to support it.
About the missing float/double support: Nspireio relies on the Nspire's (vs)printf implementation which doesn't seem to support it.
-
compu
Niveau 0: MI (Membre Inactif)- Posts: 2
- Joined: 01 Jan 2013, 17:15
- Gender:
- Calculator(s):→ MyCalcs profile
Re: iostream et STL
compu wrote:About the missing float/double support: Nspireio relies on the Nspire's (vs)printf implementation which doesn't seem to support it.
All I can say is that OS 3.1 calls printf with some
%g
.Edit: with some
%f
too.-
ExcaleAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 2955
- Images: 3
- Joined: 10 Sep 2010, 00:00
- Gender:
- Calculator(s):→ MyCalcs profile
Re: iostream et STL
Of course, this will hopefully be solved once we port Newlib.
-
LegimetProgrammeur
Niveau 4: MC (Membre Confirmé)- Posts: 13
- Joined: 12 Dec 2013, 02:49
- Gender:
- Calculator(s):→ MyCalcs profile
Return to Native: Ndless, Linux, ...
Who is online
Users browsing this forum: ClaudeBot [spider] and 5 guests