Loading external libraries

More
3 months 2 weeks ago - 3 months 2 weeks ago #433 by Mirko Comparetti
Hello,
My German is a little rusty, so I'll go for English if this is not a problem.
I'm trying to load the external c/c++ libraries ( bitbucket.org/qbrobotics/qbdevice-api ) in a program I'm writing: I need to write a block that will use some of the methods provided in that lib. I can compile the lib in my windows machine (where I'm doing the development work) as well as on the revpi. I loaded the libraries as described here help.logicals.com/lco3docu/latest/user-d...bausteinen-einbinden and I get errors when compiling: it either "cannot find the library" or the "fatal error: bits/c++config.h: No such file or directory - location: c:\parthto\ide\lc3c\plugins\com.logicals.compiler.gcc.raspbian.win32_7.1.0.2\bin\armv6-logicals-linux-gnueabihf\armv6-logicals-linux-gnueabihf\include\c++\7.1.0\cstdlib"

I think this is due to the cross compilation of the libraries, which is not handled correctly. Did anybody have any help for that?

Thanks!
Attachments:
Last edit: 3 months 2 weeks ago by Mirko Comparetti. Reason: Added thanks and attachment

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #434 by Walter Zögernitz
Hello,

this is indeed a problem with the C++ Compiler-Toolchain for the Rasbperry Pi and the Revolution Pi. We will file a problem report for this issue.
In the meantime we can offer a workaround for the problem:


You have to copy all the files of the folder

[LC3_Installation_Folder]\plugins\com.logicals.compiler.gcc.raspbian.win32_7.1.0.2\bin\armv6-logicals-linux-gnueabihf\armv6-logicals-linux-gnueabihf\include\c++\7.1.0\armv6-logicals-linux-gnueabihf\bits

to this destination folder

[LC3_Installation_Folder]\plugins\com.logicals.compiler.gcc.raspbian.win32_7.1.0.2\bin\armv6-logicals-linux-gnueabihf\armv6-logicals-linux-gnueabihf\include\c++\7.1.0\bits


kind regards
Walter

Please Log in or Create an account to join the conversation.

LOGI.CALS AUSTRIA

Address

Europaplatz 7/1,
3100 St. Pölten

LOGI.CALS GERMANY

Address

Postfach 1306,
40738 Langenfeld
© 1987 - 2019 logi.cals GmbH