Author Topic: How to create a C program for Nspire CX CAS?  (Read 18008 times)

0 Members and 2 Guests are viewing this topic.

Offline APoloG13

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +0/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #15 on: December 23, 2016, 06:20:12 pm »
pc@   /cygdrive/f/Ndless/ndless-sdk/toolchain
$ make all-gcc
make: *** No hay ninguna regla para construir el objetivo 'all-gcc'.  Alto.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #16 on: December 23, 2016, 06:20:43 pm »
cd to build before running that.

Offline APoloG13

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +0/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #17 on: December 23, 2016, 06:24:37 pm »
The same

pc@ /cygdrive/f/Ndless/ndless-sdk/toolchain/build
$ make all-gc
make: *** No hay ninguna regla para construir el objetivo 'all-gc'.  Alto.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #18 on: December 23, 2016, 06:25:27 pm »
all-gcc, not all-gc

Offline APoloG13

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +0/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #19 on: December 23, 2016, 06:58:30 pm »
Ok, all-gcc ended with:

6.2.0/gcc/doc/gccint.texi; \
fi
if [ xinfo = xinfo ]; then \
        makeinfo --split-size=5000000 --no-split -I ../../gcc-6.2.0/gcc/doc \
                -I ../../gcc-6.2.0/gcc/doc/include -o doc/gccinstall.info ../../                 gcc-6.2.0/gcc/doc/install.texi; \
fi
if [ xinfo = xinfo ]; then \
        makeinfo --split-size=5000000 --no-split -I . -I ../../gcc-6.2.0/gcc/doc                  \
                -I ../../gcc-6.2.0/gcc/doc/include -o doc/cppinternals.info ../.                 ./gcc-6.2.0/gcc/doc/cppinternals.texi; \
fi
echo timestamp > gcc.pod
perl ../../gcc-6.2.0/gcc/../contrib/texi2pod.pl ../../gcc-6.2.0/gcc/doc/invoke.t                 exi > gcc.pod
echo timestamp > doc/gcc.1
(pod2man --center="GNU" --release="gcc-6.2.0" --date=2016-08-22 --section=1 gcc.                 pod > doc/gcc.1.T$$ && \
        mv -f doc/gcc.1.T$$ doc/gcc.1) || \
        (rm -f doc/gcc.1.T$$ && exit 1)
cp doc/gcc.1 doc/g++.1
rm gcc.pod
make[1]: se sale del directorio '/cygdrive/f/Ndless/ndless-sdk/toolchain/build/g                 cc'

now?

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #20 on: December 23, 2016, 07:01:21 pm »
Run make install-gcc && cd .. && rm -rf build/* && touch .built_gcc_step1.

Then go to the toolchain directory and run ./build_toolchain.sh

Offline APoloG13

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +0/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #21 on: December 23, 2016, 07:05:39 pm »
pc@ /cygdrive/f/Ndless/ndless-sdk/toolchain/build
$ install-gcc && cd .. && rm -rf build/* && touch .built_gcc_step1
-bash: install-gcc: no se encontrĂ³ la orden

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #22 on: December 23, 2016, 07:08:03 pm »
Code: [Select]
make install-gcc && cd .. && rm -rf build/* && touch .built_gcc_step1
You forgot the make.

Offline APoloG13

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +0/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #23 on: December 23, 2016, 07:13:48 pm »
Done. What's next? after runing ./build_toolchain.sh (you will end killing me jajaja)
« Last Edit: December 23, 2016, 07:17:03 pm by APoloG13 »

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #24 on: December 23, 2016, 07:18:36 pm »
Did build_toolchain.sh finish successfully? I doubt it finished that quickly.

Offline APoloG13

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +0/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #25 on: December 23, 2016, 07:42:35 pm »
It ended with two blue screen the two time i did it XD

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #26 on: December 23, 2016, 07:56:51 pm »
I have never done this on Windows myself, so I don't know what to do if you get a BSOD from running that script.
This stuff is very easy to configure on GNU/Linux, if you have an installation somewhere.

Offline APoloG13

  • LV2 Member (Next: 40)
  • **
  • Posts: 32
  • Rating: +0/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #27 on: December 23, 2016, 08:00:01 pm »
Only have W10... so I will try for the 3rd time hope no more BSOD...

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #28 on: December 23, 2016, 08:03:09 pm »
You can file an issue at https://github.com/ndless-nspire/Ndless/issues. I think @Vogtinator has an actual Windows machine, so he might be able to help you better than I can.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: How to create a C program for Nspire CX CAS?
« Reply #29 on: December 24, 2016, 07:10:58 am »
I don't have a windows VM anymore, but you could try running WSL: https://msdn.microsoft.com/de-de/commandline/wsl/install_guide