Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Raspberry Pi device installation with script fails at 95% mark #622

Closed
sriranjanr opened this issue Apr 18, 2018 · 12 comments
Closed

Raspberry Pi device installation with script fails at 95% mark #622

sriranjanr opened this issue Apr 18, 2018 · 12 comments

Comments

@sriranjanr
Copy link

I am working with a raspberry pi zero w. I have followed the instructions given in raspberry pi avs sdk quick start guide. I tried compilation with the script sudo bash setup.sh config.txt . My compilation fails when it reaches 95% at sampleapplication.cpp.o

@dhpp
Copy link
Contributor

dhpp commented Apr 18, 2018

Hi @sriranjanr, could you please post the compiler error output? This will allow us to better understand the issue you're encountering.

@sriranjanr
Copy link
Author

I did not capture the compile error output earlier..now I have run it once again. This appears to be taking more than an hour.I will post the error shortly.

@dhpp
Copy link
Contributor

dhpp commented Apr 18, 2018

Thanks!

@sriranjanr
Copy link
Author

sriranjanr commented Apr 18, 2018

c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-6/README.Bugs for instructions.
SampleApp/src/CMakeFiles/SampleApp.dir/build.make:134: recipe for target 'SampleApp/src/CMakeFiles/SampleApp.dir/InteractionManager.cpp.o' failed
make[3]: *** [SampleApp/src/CMakeFiles/SampleApp.dir/InteractionManager.cpp.o] Error 4
make[3]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:8088: recipe for target 'SampleApp/src/CMakeFiles/SampleApp.dir/all' failed
make[2]: *** [SampleApp/src/CMakeFiles/SampleApp.dir/all] Error 2
CMakeFiles/Makefile2:8100: recipe for target 'SampleApp/src/CMakeFiles/SampleApp.dir/rule' failed
make[1]: *** [SampleApp/src/CMakeFiles/SampleApp.dir/rule] Error 2
Makefile:2084: recipe for target 'SampleApp' failed
make: *** [SampleApp] Error 2

@sriranjanr
Copy link
Author

Is this a swap memory issue? Should I and how can I increase swap memory on raspberry pi zero?

@sriranjanr
Copy link
Author

sriranjanr commented Apr 18, 2018

I increased the swap size to 1024 and it compiled fine. But now I am stuck at the next step. I am running raspberrypi zero w in headless mode through putty. In the quick start guide it is written to open the link http://localhost:3000/ in the browser.And I am guessing the browser in raspberrypi. Now in headless mode since there is no gui, how shall I execute this step?

pi@raspberrypi:~ $ sudo bash startauth.sh
The refresh request failed with the response code 400. This might be due to a bad refresh token or bad client data. We will continue with getting a refresh token, discarding the one in the file.

@marath007
Copy link

v1.7 behave differently

@sriranjanr
Copy link
Author

Ok I installed VNC to go to the amazon AVS login. But I am getting amazon 400 bad request. It says the redirect URLs are not whitelisted.
allowed url
But I have already mentioned the URLs in my web settings in the AVS portal.

@marath007
Copy link

https://github.com/alexa/avs-device-sdk/wiki/Raspberry-Pi-Quick-Start-Guide-with-Script

View the v1.7 new registration process.

And you have 2 https allowed return

@sriranjanr
Copy link
Author

sriranjanr commented Apr 19, 2018

That is solved now but when I try to run the sample application I get this error

Failed to initialize SampleApplication
2018-04-19 02:22:33.456 [ 1] 9 MediaPlayer:~MediaPlayerCalled
2018-04-19 02:22:33.459 [ 1] 9 MediaPlayer:resetPipeline
2018-04-19 02:22:33.461 [ 1] 9 MediaPlayer:~MediaPlayerCalled
2018-04-19 02:22:33.465 [ 1] 9 MediaPlayer:resetPipeline
2018-04-19 02:22:33.467 [ 1] 9 MediaPlayer:~MediaPlayerCalled
2018-04-19 02:22:33.470 [ 1] 9 MediaPlayer:resetPipeline
2018-04-19 02:22:33.472 [ 1] 9 MediaPlayer:MediaPlayerCalled
2018-04-19 02:22:33.475 [ 1] 9 MediaPlayer:resetPipeline
Failed to create to SampleApplication!
pi@raspberrypi:
$

I get error failed to initialize/create Sampleapplication

and my SDK version is 1.6

@dhpp
Copy link
Contributor

dhpp commented Apr 19, 2018

I believe this main question of this post is solved (install), and let's continue the runtime issue in the other post you opened, #625. I'll close this thread out. Thanks.

@DP0077bruh
Copy link

help me
same the alexa setup stops at 95%
im using raspberry pi 3

greetings from USA

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants