xwalter got a reaction from Tom_Neverwinter in WiringOP sudo su with orange pi plus 2
I solve this issue in this way .
In Netbeans , right click over the project and I add a new link to this library
/usr/lib/libwiringPi.so The files .so (shared object) are dinamic library such as the .dll in windows .
Now Netbeans compile well . To run the project I have to run Netbeans as sudo from the terminal
Otherwise I get an error in runtime
WiringPiSetup Must be root ( Did you forget sudo ?) The WiringPiSetup() is a function to set up the board .
I'm trying to do this ... I create a bash file
#! /bin/bash sudo /usr/bin/gdb $* and I link to this file in Netbeans "Debugger Command" under properties , but it doesn't run , it runs just if I am sudo ....ufffff
But anyway now I'm able to program my orangepi plus 2 in C/C++ by using Netbeans .Tomorroq I will connect some led's and resistors to see if true or not
xwalter got a reaction from Igor in Wifi Access Point
I did as you told me and follow the Igor post ....
I start my scanner on android phone and I see the wifi net , and also I'm able to connect it
The info are ....
Access Point : MySystemWifi MAC Address : the MAC of the wlan0 Device : FN-LINK TECHNOLOGY LIMITED Safety : [WPA2-PSK COMP] [ESS] Channel : 5 (as in the hostapd.conf) Signal : -26 dBm ( not so bad for the moment) Connection time : 72 Mbps TCP/IP Informations MAC ADDRESS : ********** IP : 192.168.1.5 Netmask : 255.255.255.0 Gateway : 192.168.1.1 DNS 1 : 192.168.1.1 DNS 2 : 0.0.0.0 Server DHCP : 192.168.1.1 What to say guys , first of all BIG THANKS TO ALL
The eth0 is connected and internet is running ,
Now I have to test the connections . Into the orange pi I will write a tcp server and in android or desktop I will write a client .
If the data exchange well I have resolved a lot of troubles .
xwalter got a reaction from Igor in WiringOP sudo su with orange pi plus 2
I want to contribute this forum and people that are working on it , with those two video tutorial where I explain how to use the GPIO in C/C++ and python languages
xwalter got a reaction from wildcat_paris in root permission
hi widcat , I have installed the WiringOP typing
git clone https://github.com/zhaolei/WiringOP.git -b h3 At the moment the gpio for C/C++ seems to work , just I want to start e new project in netbeans 8.1 and link to these .h header libraries