Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build cpp-console sample run the buildArm32Linux.sh on raspberry 3B #518

Open
zhoujiazhao opened this issue Sep 18, 2020 · 1 comment

Comments

@zhoujiazhao
Copy link

Cannot build the sample run the following script on raspberry 3B

Cognitive-Services-Voice-Assistant/clients/cpp-console/scripts/linux/buildArm32Linux.sh

pi@raspberrypi:~/Cognitive-Services-Voice-Assistant/clients/cpp-console/scripts/linux $ uname -a
Linux raspberrypi 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 armv7l GNU/Linux
Cleaning up libs and include directories that we will overwrite
rm: cannot remove './lib/*': No such file or directory
rm: cannot remove './include/c_api': No such file or directory
rm: cannot remove './include/cxx_api': No such file or directory
Downloading Speech SDK binaries
--2020-09-18 09:21:27--  https://aka.ms/csspeech/linuxbinary
Resolving aka.ms (aka.ms)... 23.15.248.154
Connecting to aka.ms (aka.ms)|23.15.248.154|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://csspeechstorage.blob.core.windows.net/drop/1.13.0/SpeechSDK-Linux-1.13.0.tar.gz [following]
--2020-09-18 09:21:29--  https://csspeechstorage.blob.core.windows.net/drop/1.13.0/SpeechSDK-Linux-1.13.0.tar.gz
Resolving csspeechstorage.blob.core.windows.net (csspeechstorage.blob.core.windows.net)... 13.77.184.64
Connecting to csspeechstorage.blob.core.windows.net (csspeechstorage.blob.core.windows.net)|13.77.184.64|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11585364 (11M) [application/x-tar]
Saving to: ‘STDOUT’

-                                                                   100%[=================================================================================================================================================================>]  11.05M   139KB/s    in 83s

2020-09-18 09:22:53 (136 KB/s) - written to stdout [11585364/11585364]

Copying SDK binaries to lib folder and headers to include
Building Linux Arm32 sample ...
/usr/bin/ld: /tmp/ccEoqeW7.o: in function `void __gnu_cxx::new_allocator<AudioPlayer::AudioPlayerStreamImpl>::construct<AudioPlayer::AudioPlayerStreamImpl, std::shared_ptr<Microsoft::CognitiveServices::Speech::Audio::PullAudioOutputStream>&>(AudioPlayer::AudioPlayerStreamImpl*, std::shared_ptr<Microsoft::CognitiveServices::Speech::Audio::PullAudioOutputStream>&)':
DialogManager.cpp:(.text._ZN9__gnu_cxx13new_allocatorIN11AudioPlayer21AudioPlayerStreamImplEE9constructIS2_JRSt10shared_ptrIN9Microsoft17CognitiveServices6Speech5Audio21PullAudioOutputStreamEEEEEvPT_DpOT0_[_ZN9__gnu_cxx13new_allocatorIN11AudioPlayer21AudioPlayerStreamImplEE9constructIS2_JRSt10shared_ptrIN9Microsoft17CognitiveServices6Speech5Audio21PullAudioOutputStreamEEEEEvPT_DpOT0_]+0x54): undefined reference to `AudioPlayer::AudioPlayerStreamImpl::AudioPlayerStreamImpl(std::shared_ptr<Microsoft::CognitiveServices::Speech::Audio::PullAudioOutputStream>)'
/usr/bin/ld: /tmp/ccEoqeW7.o: in function `AudioPlayer::AudioPlayerStreamImpl::~AudioPlayerStreamImpl()':
DialogManager.cpp:(.text._ZN11AudioPlayer21AudioPlayerStreamImplD2Ev[_ZN11AudioPlayer21AudioPlayerStreamImplD5Ev]+0x4c): undefined reference to `vtable for AudioPlayer::AudioPlayerStreamImpl'
collect2: error: ld returned 1 exit status
Cleaning up downloaded files
Done. To start the demo execute:
cd ../../out
export LD_LIBRARY_PATH=../lib/arm32
./sample.exe [path_to_configFile]
@dargilco
Copy link
Member

Thank you @zhoujiazhao for reporting this issue!

Even though the build error does not look like it's related to Speech SDK, please be aware that Speech SDK is not supported on Raspberry PI 32-bit OS. I have not tried to run it on that OS. We know Speech SDK works on the following:

  • Ubuntu 32bit (including 20.04 LTS)
  • Ubuntu 64bit (including 20.04 LTS)
  • Raspberry Pi OS 64 bit

I have a RPi4 with Ubuntu 64bit right now and will make sure there is no regression, and it compiles fine there.

Darren

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

No branches or pull requests

2 participants