Author Topic: ndless sdk  (Read 57972 times)

0 Members and 1 Guest are viewing this topic.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #15 on: June 10, 2017, 06:32:02 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...
Spellcheck is your friend.
There may be some people with precompiled versions of the SDK on windows that might be willing to share with you. At this point unless someone who works on it comes forward with a solution, you may want to open an issue here: https://github.com/ndless-nspire/Ndless/issues/new

From what I can tell it's failing when attempting to determine what directory it's running in. @ExtendeD @Legimet or @Vogtinator do you have any idea what is going on here? It's failing on the following code
Code: [Select]
@r=`${PWD_COMMAND}`; export r; \
/e

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: ndless sdk
« Reply #16 on: June 10, 2017, 06:58:02 pm »
Can you list the dotfiles (files whose names start with .) in the directory containing build_toolchain.sh?

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 #17 on: June 11, 2017, 05:18:49 am »
I only see .gitmodules in there.
EDIT: Wrong folder.  :-[ Sorry. There are ".downloaded" and ".gitgnore".
« Last Edit: June 12, 2017, 01:55:44 pm by Jonson26 »

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: ndless sdk
« Reply #18 on: June 12, 2017, 02:01:21 pm »
So that means that it failed when building binutils.

Can you post the complete log of what happens when you run build_toolchain.sh?

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 #19 on: June 12, 2017, 03:30:15 pm »
Like this? I left the files created in the prievious run of build_toolchain.sh.

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 #20 on: June 14, 2017, 07:27:29 am »
Uhm... Now I start to wonder , if it was at the end all my fault...
You see, I didn't fix the genzehn thingie, because there was no such folder/file in the toolchain directory.
Maybe that is the problem?  :-[ Sorry for the trouble.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: ndless sdk
« Reply #21 on: June 16, 2017, 12:37:05 pm »
It has nothing to do with genzehn. Did you install gcc-g++ (the C++ compiler) in cygwin? I think that is the issue.

Make sure you have all of the dependencies in the list given on https://hackspire.org/index.php/C_and_assembly_development_introduction
Quote
php (5.6+), libboost-devel, libboost_program_options*, binutils, gcc-core, gcc-g++, git, mpfr, mpfr-devel, gmp, libgmp-devel, libmpc3, libmpc-devel, make, zlib-devel, wget
You can install these with the cygwin installer.

Also, you still need to fix the zehn.h symlink, but it is located in ndless-sdk/tools/genzehn. You need to replace it with the file in ndless-sdk/include.
« Last Edit: June 16, 2017, 12:44:30 pm by Legimet »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #22 on: June 16, 2017, 01:34:38 pm »
Also, you still need to fix the zehn.h symlink, but it is located in ndless-sdk/tools/genzehn. You need to replace it with the file in ndless-sdk/include.
Is this link done in a way that cygwin libraries can't handle?
/e

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: ndless sdk
« Reply #23 on: June 18, 2017, 01:41:41 pm »
Is this link done in a way that cygwin libraries can't handle?

Unfortunately, Git on Windows doesn't enable support for symlinks by default because of differences between Windows symlinks and POSIX symlinks: https://github.com/git-for-windows/git/wiki/Symbolic-Links

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #24 on: June 19, 2017, 03:34:06 pm »
Unfortunately, Git on Windows doesn't enable support for symlinks by default because of differences between Windows symlinks and POSIX symlinks: https://github.com/git-for-windows/git/wiki/Symbolic-Links
That's git on windows, from what I understand cygwin uses it's own build that should be able to handle symlinks.
In any case, the instructions for windows should be updated to reflect how to enable symlinks in git.
/e

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: ndless sdk
« Reply #25 on: June 19, 2017, 05:26:00 pm »
Perhaps it does. Someone with Windows would have to test it and update the instructions if necessary.

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 #26 on: July 12, 2017, 01:18:55 pm »
I still don't know why it does not work...
Maybe i could use a copy of someone's toolchain folder? Would this work?
Eems, you said some people had precompiled packages. Do you know how i could  reach those persons?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: ndless sdk
« Reply #27 on: July 12, 2017, 01:24:32 pm »
I still don't know why it does not work...
Maybe i could use a copy of someone's toolchain folder? Would this work?
Eems, you said some people had precompiled packages. Do you know how i could  reach those persons?
It's Eeems not Eems.
You still haven't answered @Legimet's questions.
Have you followed the steps he outlined here:
It has nothing to do with genzehn. Did you install gcc-g++ (the C++ compiler) in cygwin? I think that is the issue.

Make sure you have all of the dependencies in the list given on https://hackspire.org/index.php/C_and_assembly_development_introduction
Quote
php (5.6+), libboost-devel, libboost_program_options*, binutils, gcc-core, gcc-g++, git, mpfr, mpfr-devel, gmp, libgmp-devel, libmpc3, libmpc-devel, make, zlib-devel, wget
You can install these with the cygwin installer.

Also, you still need to fix the zehn.h symlink, but it is located in ndless-sdk/tools/genzehn. You need to replace it with the file in ndless-sdk/include.

As for the precompiled packages, I'm not sure who actually have them. You could create an issue asking for it here: https://github.com/ndless-nspire/Ndless/issues
It would still probably be best to just sort out the issues that @Legimet mentioned.
/e

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: ndless sdk
« Reply #28 on: July 12, 2017, 01:55:24 pm »
There are no up-to-date precompiled packages for any platform. Few of us use Windows, so it would be tough to provide one for Windows. That said, if someone wants to make one, feel free to do so!

Did you try installing g++? What happens if you try that?

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 #29 on: July 31, 2017, 04:35:50 pm »
1. Tried it on linux. Didn't work.
2. I already had gcc installed.
3. The binaries don't have to be as up-to-date. I only want the compiled stuff to work on my calculartor without crashing it.