Author Topic: ndless sdk  (Read 59857 times)

0 Members and 1 Guest are viewing this topic.

Offline Jonson26

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +1/-0
  • Follow cat! Do what cat! Into tree! Now!
    • View Profile
ndless sdk
« on: June 07, 2017, 12:09:09 pm »
Well...
I tried to install the ndless sdk and now i,m totally confused.
There are two totally different instructions on ndlessly. But:
1. The links to the files in the one that seems easier are both dead.
2. The more complicated one: Why the heck do i need PHP, openssl and all that stuff to make a compiler running!?  ???   :banghead:
    Come on! It's a program that translates C language into assembly! Why do i need all that stuff complicated even to
    make a "Hello world!" example? I saw TIGCC, and it has a simple, minimalistic and understandable .exe installer.
    Shouldn't there be something similar for the nspire?
I'l gratefully apprieciate any help.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #1 on: June 07, 2017, 12:53:41 pm »
1. The links to the files in the one that seems easier are both dead.
You may find this useful: https://github.com/ndless-nspire/Ndless/wiki/Ndless-SDK:-C-and-assembly-development-introduction
2. The more complicated one: Why the heck do i need PHP, openssl and all that stuff to make a compiler running!?  ???   :banghead:
    Come on! It's a program that translates C language into assembly! Why do i need all that stuff complicated even to
    make a "Hello world!" example? I saw TIGCC, and it has a simple, minimalistic and understandable .exe installer.
    Shouldn't there be something similar for the nspire?
Welcome to the world of open source. Where things require a little knowhow, are very rarely polished, and most developers aren't paid for their time.
/e

Offline Jonson26

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +1/-0
  • Follow cat! Do what cat! Into tree! Now!
    • View Profile
Re: ndless sdk
« Reply #2 on: June 07, 2017, 03:14:38 pm »
Wow. Quick response! Thank you Eeems, really.
Do you also know where to find those things?
Quote
php (5.6+), libboost-devel, libboost_program_options*, binutils, gcc-core, gcc-g++, git, mpfr, mpfr-devel, gmp, libgmp-devel, libmpc3, libmpc-devel, openssl-dev, make, texinfo, zlib-devel, wget
I didnt even manage to find php... :( I,m on windows 7 btw.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #3 on: June 07, 2017, 03:25:00 pm »
Quote
Install Cygwin (32bit, x86) and the following dependencies
You will install them as part of installing Cygwin. You'd find them on this screen:

Offline Jonson26

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +1/-0
  • Follow cat! Do what cat! Into tree! Now!
    • View Profile
Re: ndless sdk
« Reply #4 on: June 07, 2017, 03:55:42 pm »
 O.O So THAT was the thing!
Thank you very much!



Ok. I don,t get it.  :banghead:
I go to the toolchain folder using cygwin and do ./build_toolchain.sh and i get this:
Quote
$ ./build_toolchain.sh
Building and installing to '/cygdrive/c/users/lioł/ndless/ndless-sdk/toolchain/install'...
./build_toolchain.sh: linia 47: gcc: nie znaleziono polecenia
GMP (gmp-devel/libgmp-dev) dependency seems to be missing!
./build_toolchain.sh: linia 48: gcc: nie znaleziono polecenia
MPFR (mpfr-devel/libmpfr-dev) dependency seems to be missing!
./build_toolchain.sh: linia 49: gcc: nie znaleziono polecenia
MPC (mpc-devel/libmpc-dev) dependency seems to be missing!
./build_toolchain.sh: linia 50: gcc: nie znaleziono polecenia
zlib (zlib-devel/zlib1g-dev) dependency seems to be missing!
./build_toolchain.sh: linia 51: gcc: nie znaleziono polecenia
libpython2.7 (python-devel/python2.7-dev) dependency seems to be missing!
"nie znaleziono polecenia" means "command not found" in polish.
What did i do wrong?



Edit (Eeems): Merged double post
« Last Edit: June 07, 2017, 04:41:18 pm by Eeems »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #5 on: June 07, 2017, 04:42:31 pm »
Ok. I don,t get it.  :banghead:
I go to the toolchain folder using cygwin and do ./build_toolchain.sh and i get this:
Quote
$ ./build_toolchain.sh
Building and installing to '/cygdrive/c/users/lioł/ndless/ndless-sdk/toolchain/install'...
./build_toolchain.sh: linia 47: gcc: nie znaleziono polecenia
GMP (gmp-devel/libgmp-dev) dependency seems to be missing!
./build_toolchain.sh: linia 48: gcc: nie znaleziono polecenia
MPFR (mpfr-devel/libmpfr-dev) dependency seems to be missing!
./build_toolchain.sh: linia 49: gcc: nie znaleziono polecenia
MPC (mpc-devel/libmpc-dev) dependency seems to be missing!
./build_toolchain.sh: linia 50: gcc: nie znaleziono polecenia
zlib (zlib-devel/zlib1g-dev) dependency seems to be missing!
./build_toolchain.sh: linia 51: gcc: nie znaleziono polecenia
libpython2.7 (python-devel/python2.7-dev) dependency seems to be missing!
"nie znaleziono polecenia" means "command not found" in polish.
What did i do wrong?
Are you running this from cygwin or from the windows command line?
Did you also install gcc and the other dependencies or just php?
/e

Offline Jonson26

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +1/-0
  • Follow cat! Do what cat! Into tree! Now!
    • View Profile
Re: ndless sdk
« Reply #6 on: June 07, 2017, 04:58:41 pm »
I'm doing it from cygwin, but maybe i don't know how to install dependencies...



...so what do i do to install dependencies?



Ok. I figured it out myself.
I can only hope, i selected the right packages.

Edit(Eeems): Merged triple post
« Last Edit: June 07, 2017, 05:29:12 pm by Eeems »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #7 on: June 07, 2017, 05:32:02 pm »
I'm doing it from cygwin, but maybe i don't know how to install dependencies...



...so what do i do to install dependencies?



Ok. I figured it out myself.
I can only hope, i selected the right packages.

You have to select the packages that are required. According to the documentation on the page I linked you to, you need to select the following packages: php (5.6+), libboost-devel, libboost_program_options*, binutils, gcc-core, gcc-g++, git, mpfr, mpfr-devel, gmp, libgmp-devel, libmpc3, libmpc-devel, openssl-dev, make, texinfo, zlib-devel, wget


Please stop double/triple posting. Instead use the edit button on your previous post.
/e

Offline Jonson26

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +1/-0
  • Follow cat! Do what cat! Into tree! Now!
    • View Profile
Re: ndless sdk
« Reply #8 on: June 08, 2017, 04:31:18 pm »
Please stop double/triple posting. Instead use the edit button on your previous post.
Sorry. I won't do it again.

Btw, do you have an idea what this might be?
make: *** [Makefile:854: all] Błąd 2
"Błąd" --> "Error"

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #9 on: June 08, 2017, 05:57:51 pm »
Btw, do you have an idea what this might be?
make: *** [Makefile:854: all] Błąd 2
"Błąd" --> "Error"
Not really, it seems to be a generic error. What exactly are you running? Maybe include some more of the output so that I can understand the context.
/e

Offline Jonson26

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +1/-0
  • Follow cat! Do what cat! Into tree! Now!
    • View Profile
Re: ndless sdk
« Reply #10 on: June 09, 2017, 07:07:13 am »
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating bfd-in3.h
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[1]: Opuszczenie katalogu '/cygdrive/c/users/lioł/ndless/ndless-sdk/toolchain/build'
make: *** [Makefile:854: all] Błąd 2

"Opuszczenie katalogu" --> "Leaving catalog"
"Błąd" --> "Error"

Do You think I should simply replace the polish words, or do it as now?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #11 on: June 09, 2017, 11:46:19 am »
Replacing the polish words would be nice :)

That said, what are you running to get this to happen?. I would suggest taking a look at one of the makefiles it mentions and looking at line 854 and see if that helps you understand what might be going wrong.
/e

Offline Jonson26

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +1/-0
  • Follow cat! Do what cat! Into tree! Now!
    • View Profile
Re: ndless sdk
« Reply #12 on: June 09, 2017, 03:25:20 pm »
Well...
There's the problem.
I'm still running build_toolchain.sh, and it only has lihe 87 lines or so...

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #13 on: June 09, 2017, 03:49:32 pm »
Well...
There's the problem.
I'm still running build_toolchain.sh, and it only has lihe 87 lines or so...
I would suggest taking a look at one of the makefiles it mentions and looking at line 854 and see if that helps you understand what might be going wrong.
So look at the output you just gave me:
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating bfd-in3.h
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[1]: Opuszczenie katalogu '/cygdrive/c/users/lioł/ndless/ndless-sdk/toolchain/build'
make: *** [Makefile:854: all] Błąd 2
It mentions a couple Makefiles, look at them. Or look into what this default commands thing is.
/e

Offline Jonson26

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +1/-0
  • Follow cat! Do what cat! Into tree! Now!
    • View Profile
Re: ndless sdk
« Reply #14 on: June 10, 2017, 05:59:28 pm »
 :( I found the makefile it was executing, but i have no idea what the problem might be...
Aren't there any precompiled versions of this sdk? It would work for me, if tey wuldn't be
terribly outdatet...
I'll send the makefile, if it helps. It was located at <ndless directory>\ndless-sdk\toolchain\build .
Unfortunatley i have no idea what those default commands might be...