Author Topic: How to get input from user in ndless sdk ?  (Read 21583 times)

0 Members and 1 Guest are viewing this topic.

Offline Mohammed Elborolossy

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #15 on: November 19, 2014, 02:10:48 pm »
this is the last lines in the Terminal :
checking for library containing waddstr... no
configure: WARNING: no enhanced curses library found; disabling TUI
checking for library containing tgetent... no
configure: error: no termcap library found
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `/home/mohammed/Ndless/ndless-sdk/toolchain/build'
make: *** [all] Error 2

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #16 on: November 19, 2014, 02:14:12 pm »
It's called "libtinfo-dev" in Ubuntu.


PS: Please don't double-port, the Modify button is there for a reason.

Offline Mohammed Elborolossy

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #17 on: November 19, 2014, 02:31:55 pm »
It's called "libtinfo-dev" in Ubuntu.


PS: Please don't double-port, the Modify button is there for a reason.

I'm sorry for that.

The download complete and Done
What is the next?
I can't understand this code
when i write it in the terminal and change the path there no thing done
i skip to the next code "make"
the result is : "make: *** No targets specified and no makefile found.  Stop."
« Last Edit: November 19, 2014, 02:35:51 pm by Mohammed Elborolossy »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #18 on: November 19, 2014, 02:38:53 pm »
If you ran build_toolchain.sh successfully and set PATH, execute "make" in the ndless-sdk directory.

Offline Mohammed Elborolossy

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #19 on: November 19, 2014, 02:52:22 pm »
I'm sorry for disturbance
but with each step there a lot of errors
There is an Error with luna.o


the result after write "make" :

make all in ndless-sdk...
make[1]: Entering directory `/home/mohammed/Ndless/ndless-sdk'
make all in tools...
make[2]: Entering directory `/home/mohammed/Ndless/ndless-sdk/tools'
make all in luna...
make[3]: Entering directory `/home/mohammed/Ndless/ndless-sdk/tools/luna'
gcc -W -Wall -DUSE_FILE32API   -c -o luna.o luna.c
luna.c:1:33: fatal error: openssl/opensslconf.h: No such file or directory
 #include <openssl/opensslconf.h>
                                 ^
compilation terminated.
make[3]: *** [luna.o] Error 1
make[3]: Leaving directory `/home/mohammed/Ndless/ndless-sdk/tools/luna'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/home/mohammed/Ndless/ndless-sdk/tools'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/mohammed/Ndless/ndless-sdk'
make: *** [all] Error 1

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #20 on: November 19, 2014, 02:54:11 pm »
If openssl is missing, install openssl. It's likely libssl-dev.

Offline Mohammed Elborolossy

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #21 on: November 19, 2014, 04:16:16 pm »
Another Error  :/

make[1]: Leaving directory `/home/mohammed/Ndless/ndless-sdk/libsyscalls'
make all in libndls...
make[1]: Entering directory `/home/mohammed/Ndless/ndless-sdk/libndls'
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -c any_key_pressed.c
make[1]: nspire-gcc: Command not found
make[1]: *** [any_key_pressed.o] Error 127
make[1]: Leaving directory `/home/mohammed/Ndless/ndless-sdk/libndls'
make: *** [all] Error 1
« Last Edit: November 19, 2014, 04:24:15 pm by Mohammed Elborolossy »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #22 on: November 19, 2014, 04:52:42 pm »
You didn't set PATH correctly. It has to include ndless-sdk/bin.

Offline Mohammed Elborolossy

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #23 on: November 19, 2014, 04:57:10 pm »
You didn't set PATH correctly. It has to include ndless-sdk/bin.
How to include the path?
I write it like this :
mohammed@mohammed-HP:~$ export PATH="/home/mohammed/Ndless/ndless-sdk/toolchain/install/bin:/home/mohammed/Ndless/ndless-sdk/toolchain/bin:${PATH}"
I put the Ndless in Home file
/home/mohammed/Ndless/ndless-sdk

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #24 on: November 19, 2014, 04:58:29 pm »
Yeah, like that. The second path doesn't exist, though.

Offline Mohammed Elborolossy

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #25 on: November 19, 2014, 05:03:53 pm »
Yeah, like that. The second path doesn't exist, though.
I think it's solved now
I'm very thankful for your effort with me
The last question where I will write my code ( will I write a c++ on any ide or Terminal?)
« Last Edit: November 19, 2014, 05:15:33 pm by Mohammed Elborolossy »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #26 on: November 19, 2014, 05:25:21 pm »
That's your decision.
Most IDEs support plain Makefile projects. You only need to execute "nspire-tools new <program name>" and you can start coding in that directory.
Your IDE just has to run "make" to build the program. I know that the following IDEs definitely work:
  • Qt Creator
  • Eclipse
  • Vi
  • Code::Blocks
  • KDevelop
  • SciTE

Offline Mohammed Elborolossy

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #27 on: November 19, 2014, 06:59:32 pm »
I'm sorry to say that i can't run any program till now
i follow the tutorial as i said before
in the sample example the tns file obtained but not working on the emulator
When I try to make a prog. and write : nspire-tools new <main> "main is my program name that error appear

bash: syntax error near unexpected token `newline'
What is the problem ??
I write a code on codeblocks and eclipse but how to complete after that ?




Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #28 on: November 20, 2014, 05:04:12 am »
Quote
in the sample example the tns file obtained but not working on the emulator
Try the .prg.tns file.

Quote
When I try to make a prog. and write : nspire-tools new <main> "main is my program name that error appear
Leave the "<>" out.

Offline Mohammed Elborolossy

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: How to get input from user in ndless sdk ?
« Reply #29 on: November 20, 2014, 06:11:37 am »
Quote
Try the .prg.tns file.
Already try and it didn't open any thing.

Quote
Leave the "<>" out.
Can you write a helloworld prog in c++ and mention the steps from terminal or using an exist CPP file
I am very sorry about asking alot