Community
cancel
Showing results for 
Search instead for 
Did you mean: 
BShah6
Novice
1,341 Views

Intel Studio IoT Edition issues with compiling C++ sample project

Hey Guys,

I am new to the intel IoT studio, I am using it on a MAC and trying to compile a sample code found on this github page

https://github.com/intel-iot-devkit/how-to-code-samples GitHub - intel-iot-devkit/how-to-code-samples

I have been following steps given on this page

https://software.intel.com/en-us/articles/how-to-intel-iot-code-samples-access-control-in-cpp IoT - How-To Intel® IoT Technology Code Samples: Access control in C++ | Intel® Developer Zone

Unfortunately, I am not able to build the project, and I get following error

/Applications/iss-iot-mac/devkit-x86/sysroots/i386-pokysdk-darwin/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.9.1/ld: cannot find -lboost_system

/Applications/iss-iot-mac/devkit-x86/sysroots/i386-pokysdk-darwin/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.9.1/ld: cannot find -lboost_thread

/Applications/iss-iot-mac/devkit-x86/sysroots/i386-pokysdk-darwin/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.9.1/ld: cannot find -lboost_filesystem

/Applications/iss-iot-mac/devkit-x86/sysroots/i386-pokysdk-darwin/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.9.1/ld: cannot find -lboost_date_time

To resolve this error, I go to project properties --> C/C++ Build --> Settings --> Cross G++ linker and add the following path

/Applications/iss-iot-mac/devkit-x86/sysroots/i586-poky-linux/usr/include

Build than finishes but, when I run the project it cannot detect the target, even if it is connected through SSH.

I made sure under Run configuration --> C++ remote application --> I have selected the listed edison board.

The funny part is even though it says, it cannot detect the target, it runs through and gives me this error on console

terminate called after throwing an instance of 'std::runtime_error'

what(): upm::Jhd1313m1::Jhd1313m1(int, int, int): Unable to initialise the LCD controller

Aborted

logout

Which I think is due to incomplete hardware. which is ok.

I am not sure what is that I am doing wrong or if I am missing any steps to build the project.

Can anyone help?

4 Replies
idata
Community Manager
96 Views

Hi,

 

 

Have you completed all steps from https://software.intel.com/en-us/articles/how-to-intel-iot-code-samples-access-control-in-cpp https://software.intel.com/en-us/articles/how-to-intel-iot-code-samples-access-control-in-cpp ? The guide also contains a section that suggests the Vcc switch on the Grove Base Shield V2 set to 5V. Make sure the LCD is receiving the 5V it needs it operate.

 

 

What image and mraa version are you using?

 

 

You can check image version with cat /etc/version and mraa/upm version opkg list-installed |grep mraa and opkg list-installed |grep upm.

 

 

Sergio

 

BShah6
Novice
96 Views

Hello Sergio,

I did follow the instruction on the page, I will have to get back to this over the weekend. I will post the version numbers and anything funky if I find it.

Thanks for the prompt response.

Thanks,

Bhaumik

BShah6
Novice
96 Views

Ok so I retraced my step and corrected my error.

I was copying libboost to wrong location, i got rid of those error but I got a new one.

/tmp/access-control: error while loading shared libraries: libmraa.so.0: cannot open shared object file: No such file or directory

with this error the run does not launch.

Any ideas?

idata
Community Manager
96 Views

I found a thread that discusses the same issue you're having, please look at /message/310612# 310612 https://communities.intel.com/message/310612# 310612 and the last couple of suggestions. You might find them helpful.

 

 

Sergio

 

Reply