Re: Formal way of using Nuttx-Posix libraries

2021-07-04 Thread murat tologlu
I wish there was an easier way to configure the Nuttx; it is really hard! The application I wrote with the :netnsh configuration was compiled without any problems. However I want to use /dev/ttyUSBx as >nsh console. I'm trying to compare nsh and netnsh .config files to do something, but it's re

Re: Formal way of using Nuttx-Posix libraries

2021-07-04 Thread Nathan Hartman
On Sat, Jul 3, 2021 at 5:36 AM murat tologlu wrote: > > Of-course I can modify the c file, Makefile, I can move or copy library > files to appropriate locations to resolve the problem, but I would like to > learn the formal (preferred) way of resolving this issue on Nuttx > because the same code

Re: Formal way of using Nuttx-Posix libraries

2021-07-04 Thread Alan Carvalho de Assis
Hi Murat, Just use the netnsh config and follow my video tutorial explaining how to use USB Console. It is easy when you know which options to look at on menuconfig. It is important to get used to menuconfig, otherwise it always will be like a maze. BR, Alan On Sunday, July 4, 2021, murat tolo

Re: Formal way of using Nuttx-Posix libraries

2021-07-04 Thread Nathan Hartman
> On Sunday, July 4, 2021, murat tologlu wrote: > > > netlib_setifstatus.c: In function 'netlib_ifup': > > > netlib_setifstatus.c:67:27: error: 'NETLIB_SOCK_TYPE' undeclared (first > > use in this function); did you mean 'NETLIB_SOCK_FAMILY'? > > >67 | NETLIB_SOCK_TYP

Re: Formal way of using Nuttx-Posix libraries

2021-07-04 Thread murat tologlu
Thanks for your kind answers and help, I always appreciate. @Alan OK I will try using USB console according to your tutorial to continue my experiments. @Nathan yes I already removed #include and I don't have problem in Ubuntu, my code compiles and runs as expected. I am also aware of that th

Re: Formal way of using Nuttx-Posix libraries

2021-07-04 Thread murat tologlu
Hi Alan, I did. This way I could compile and run my code on Nuttx but I now get "Socketpair creation error" from my program. As far as I know socketpair fucnction was includded in Nuttx 10.1 but I can't see its reference in the latest Network documentation here: https://nuttx.apache.org/doc