SharkRF IP Connector Protocol server,

Tiger shrimp
Posts: 14
Joined: Thu Feb 16, 2017 12:24 am

SharkRF IP Connector Protocol server,

Post by Tiger shrimp »

I'm trying to make my own SharkRF IP Connector Protocol server, but it doesn't work. Are there any pages that can be understood by amateurs? I saw the forum, but I do not understand. help me. :?:

User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5021
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Protocol server,

Post by HA2NON »

What is the issue?
Norbert "Nonoo" Varga, HA2NON
SharkRF Team

Tiger shrimp
Posts: 14
Joined: Thu Feb 16, 2017 12:24 am

Re: SharkRF IP Connector Protocol server,

Post by Tiger shrimp »

Thank you for the response.
Compiling cd srf-ip-conn-srv / build as in https://github.com/sharkrf/srf-ip-conn-srv README.md works without any errors.

After processing SRF_IP_CONN_PATH = / path / to / srf-ip-conn JSMN_PATH = / path / to / jsmn ./build-release.sh, there are many errors. By the way, cmake is already installed.

User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5021
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Protocol server,

Post by HA2NON »

Please post every command you enter exactly in the form you've entered so we can see the issue.

Please make sure you've set the correct paths to srf-ip-conn and jsmn.
Norbert "Nonoo" Varga, HA2NON
SharkRF Team

Tiger shrimp
Posts: 14
Joined: Thu Feb 16, 2017 12:24 am

Re: SharkRF IP Connector Protocol server,

Post by Tiger shrimp »

The settings are made in the following procedure. An error is displayed with NO10.
1、sudo apt-get install -y cmake build-essential git
2、cd ~
3、mkdir sharkGIT
4、mkdir Sharkserver
5、cd sharkGIT
6、git clone https://github.com/sharkrf/srf-ip-conn-srv
7、git clone https://github.com/sharkrf/srf-ip-conn
8、git clone https://github.com/zserge/jsmn
9、cd ~/sharkGIT/srf-ip-conn-srv/build
10、SRF_IP_CONN_PATH=~/sharkGIT/srf-ip-conn JSMN_PATH=~/sharkGIT/jsmn ./build-release.sh
11、mv ~/sharkGIT/srf-ip-conn-srv/build/Release/* ~/Sharkserver
12、cp ~/sharkGIT/srf-ip-conn-srv/config-example.json ~/Sharkserver/
13、cp ~/Sharkserver/config-example.json ~/Sharkserver/config.json
14、sudo apt-get install -y nano
15、nano ~/Sharkserver/config.json
16、Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?
17、File Name to Write: config.json
18、hostname –I
19、curl ifconfig.me
20、sudo killall srf-ip-conn-srv
21、cd ~/Sharkserver
22、./srf-ip-conn-srv -f

User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5021
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Protocol server,

Post by HA2NON »

What is the error?
Norbert "Nonoo" Varga, HA2NON
SharkRF Team

Tiger shrimp
Posts: 14
Joined: Thu Feb 16, 2017 12:24 am

Re: SharkRF IP Connector Protocol server,

Post by Tiger shrimp »

pi@raspberrypi:~/sharkGIT/srf-ip-conn-srv/build $ SRF_IP_CONN_PATH=~/sharkGIT/srf-ip-conn JSMN_PATH=~/sharkGIT/jsmn ./build-release.sh
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- BUILD_TYPE: Release
-- Configuring done
CMake Error at CMakeLists.txt:65 (ADD_EXECUTABLE):
Cannot find source file:

/home/pi/sharkGIT/jsmn/jsmn.c

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx


CMake Error at CMakeLists.txt:65 (ADD_EXECUTABLE):
No SOURCES given to target: srf-ip-conn-srv


-- Build files have been written to: /home/pi/sharkGIT/srf-ip-conn-srv/build
make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止.

User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5021
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Protocol server,

Post by HA2NON »

Please enter the following:

cd ~/sharkGIT/jsmn
git checkout 732d283ee9a2e5c34c52af0e044850576888ab09

This prerequisite is also mentioned in the server's README.md.
Norbert "Nonoo" Varga, HA2NON
SharkRF Team

Tiger shrimp
Posts: 14
Joined: Thu Feb 16, 2017 12:24 am

Re: SharkRF IP Connector Protocol server,

Post by Tiger shrimp »

Thank you very much. The problem so far has been resolved and the server is up and running, but I can't see the dashboard. Please tell us how to display.

User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5021
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Protocol server,

Post by HA2NON »

What is the error displayed by your browser?
Norbert "Nonoo" Varga, HA2NON
SharkRF Team

Post Reply