Where did you see a command like that?
The correct notation should be:
sudo ./blynk
Where did you see a command like that?
The correct notation should be:
sudo ./blynk
Dear Costas,
I have tried the same notation that You have suggested.
Yet, the same problem.
can you send me the console output of the build process?
Here is the console output as requested. I have removed the token.
pi@raspberrypi:~ $ git clone https://github.com/blynkkk/blynk-library.git
Cloning into ‘blynk-library’…
remote: Counting objects: 9513, done.
remote: Compressing objects: 100% (481/481), done.
remote: Total 9513 (delta 290), reused 0 (delta 0), pack-reused 8908
Receiving objects: 100% (9513/9513), 8.88 MiB | 74.00 KiB/s, done.
Resolving deltas: 100% (5797/5797), done.
Checking connectivity… done.
pi@raspberrypi:~ $ cd blynk-library/linux
pi@raspberrypi:~/blynk-library/linux $ ls
BlynkApiLinux.h BlynkDebug.cpp BlynkSocket.h main.cpp README.md
BlynkApiWiringPi.h BlynkOptionsParser.h build.sh Makefile
pi@raspberrypi:~/blynk-library/linux $
pi@raspberrypi:~/blynk-library/linux $ make clean all target=raspberry
rm main.o BlynkDebug.o …/src/utility/BlynkHandlers.o …/src/utility/BlynkTimer.o blynk
rm: cannot remove ‘main.o’: No such file or directory
rm: cannot remove ‘BlynkDebug.o’: No such file or directory
rm: cannot remove ‘…/src/utility/BlynkHandlers.o’: No such file or directory
rm: cannot remove ‘…/src/utility/BlynkTimer.o’: No such file or directory
rm: cannot remove ‘blynk’: No such file or directory
Makefile:64: recipe for target ‘clean’ failed
make: [clean] Error 1 (ignored)
g++ -I …/src/ -I ./ -DLINUX -c -O3 -w -DRASPBERRY main.cpp -o main.o
g++ -I …/src/ -I ./ -DLINUX -c -O3 -w -DRASPBERRY BlynkDebug.cpp -o BlynkDebug.o
g++ -I …/src/ -I ./ -DLINUX -c -O3 -w -DRASPBERRY …/src/utility/BlynkHandlers.cpp -o …/src/utility/BlynkHandlers.o
g++ -I …/src/ -I ./ -DLINUX -c -O3 -w -DRASPBERRY …/src/utility/BlynkTimer.cpp -o …/src/utility/BlynkTimer.o
…/src/utility/BlynkTimer.cpp: In function ‘long unsigned int elapsed()’:
…/src/utility/BlynkTimer.cpp:32:55: error: ‘millis’ was not declared in this scope
static inline unsigned long elapsed() { return millis(); }
^
Makefile:70: recipe for target ‘…/src/utility/BlynkTimer.o’ failed
make: *** […/src/utility/BlynkTimer.o] Error 1
pi@raspberrypi:~/blynk-library/linux $ sudo ./blynk --token=
sudo: ./blynk: command not found
pi@raspberrypi:~/blynk-library/linux $ ls
BlynkApiLinux.h BlynkDebug.o build.sh Makefile
BlynkApiWiringPi.h BlynkOptionsParser.h main.cpp README.md
BlynkDebug.cpp BlynkSocket.h main.o
@MicHenriques now that you have the correct notation to call Blynk you just need to include your token in the call, so:
sudo ./blynk --token=WHATEVER_YOUR_TOKEN_IS
Dear Costas,
I had included the token while typing the command in the terminal. I omitted it when I pasted the console output here. Just being on the safer side.
Looks like your make failed as show in the log.
Thank You for your help.
Is there anything else I need to provide??
UPDATE —
@Costas - As verified from the file /blynk-library/library.properties, the version is 0.4.6
Can you confirm which library version you are trying to build.
Firs of all, you’re trying to build from master - which is not always supported.
We’re currently doing some changes so it’s a inconsistent state.
If master doesn’t work - please use latest release.
I did as you suggested. I cloned the latest release using the following command
git clone --depth=1 https://github.com/blynkkk/blynk-library.git
I followed the remaining steps to the T. The issue still remains.
I finally got it.
I downloaded the zip file from github.
I extracted the zip and placed the files from libraries into libraries and tools into tools.
I then changed the path to libraries/blynk/linux
and then followed the commands listed above.
It is working fine.now.
You were right. It was a problem with building from the master.
Thank You and @Costas very much for your help.
Great. Mostly, we try to keep master operational as well, but sometimes it might be broken (for short periods).
sorry i have an request if possible when i want to download jdk-8u131-linux-arm32-vfp-hflt.tar_8 the link on jdk-8u131-linux-arm32-vfp-hflt.tar.gz corrupted(broken) and i cant to download them from where can i download that(mirror link). can you upload there?
this is Oracle Java SE Embedded Version 8 Update 131 that is the java version for raspberry pi to install or i should to download jdk version?
I just Googled the file you were asking about.
It has been awhile since I installed my Local Server, but I think the commands in the GitHub instructions should get you the latest version. https://github.com/blynkkk/blynk-server#install-java-for-ubuntu
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
what should i do after editing this…??