Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Using mraa library on Eclipse IDE - Error Build (undefined reference to)
Using mraa library on Eclipse IDE - Error Build [message #1809224] Fri, 12 July 2019 02:08 Go to next message
Manh Ta Tuyen is currently offline Manh Ta TuyenFriend
Messages: 3
Registered: July 2019
Junior Member
Hi everyone,

I'm new to Eclipse IDE. I'm currently working on a example project which is hellomraa using mraa library as well as a cross - compiler to build an executable file on raspberry Pi 3. The problem I got is depicted in the following screenshot.

Hopefully anybody can help me solve this problem.

Thanks in advance.
  • Attachment: Capture.PNG
    (Size: 95.79KB, Downloaded 77 times)
Re: Using mraa library on Eclipse IDE - Error Build [message #1809279 is a reply to message #1809224] Fri, 12 July 2019 17:04 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You are missing the libray(ies) containg the code fo fcntl and glo
Since youare ctosscompilinh I don't know what they are.
You'll have to find out then add the to your link.

Probably named libgcc but could be anything.

Re: Using mraa library on Eclipse IDE - Error Build [message #1809312 is a reply to message #1809279] Sat, 13 July 2019 02:47 Go to previous messageGo to next message
Manh Ta Tuyen is currently offline Manh Ta TuyenFriend
Messages: 3
Registered: July 2019
Junior Member
Dear David Vavra,

Thanks for your reply.
I'm using GNU toolchain for Raspberry Pi GCC 4.6.3 from this link https://gnutoolchains.com/raspberry/

About the library I'm installing (building) into Raspberry Pi 3 platform following this link https://www.raspberrypi.org/forums/viewtopic.php?t=213363. After building library into shared object (.so file), I just copy all the files of the library to Windows laptop and deploy it.

And I've attached certain screenshots for what I config the project properties
https://i.stack.imgur.com/vOmDc.png
https://i.stack.imgur.com/2knAL.png
https://i.stack.imgur.com/hBMmP.png
https://i.stack.imgur.com/SeC25.png
https://i.stack.imgur.com/mRtBP.png

[Updated on: Sat, 13 July 2019 03:12]

Report message to a moderator

Re: Using mraa library on Eclipse IDE - Error Build [message #1809314 is a reply to message #1809312] Sat, 13 July 2019 05:04 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
I guessed you did somthing similar.
Anything to do with includes is irrelevant

Only the compiler cares about them.
The linker wants object files.
They can stand alone or be kept in a library.

As I said, you are missing the library or libtaries
containing the functions fctnl and glob

If you are asking what they are or where,
I don't kmow.

You might want to direct your question to a
site dedicated to the Raspberry
Ask how to link.

[Updated on: Sat, 13 July 2019 05:33]

Report message to a moderator

Re: Using mraa library on Eclipse IDE - Error Build [message #1809328 is a reply to message #1809314] Sat, 13 July 2019 08:38 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
The missing functions are in the Linux base runtime C library, libc.

It seems to me that the mraa shared library refers to versions in an obsolete libc version.


--

Tauno Voipio
Re: Using mraa library on Eclipse IDE - Error Build [message #1809342 is a reply to message #1809328] Sat, 13 July 2019 16:31 Go to previous message
Manh Ta Tuyen is currently offline Manh Ta TuyenFriend
Messages: 3
Registered: July 2019
Junior Member
@Tauno Voipio and David Vavra, the thing is the version of mraa I'm using (2.0.0) by does not work with the toolchain. I've tried the 1.7.0 one and it worked.
Previous Topic:High CPU usage and eventually out of memory
Next Topic:Help plug-in Arduino C++
Goto Forum:
  


Current Time: Fri Apr 19 11:29:14 GMT 2024

Powered by FUDForum. Page generated in 0.03045 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top