mkaczanowski / beagleboneblack-gpio Goto Github PK
View Code? Open in Web Editor NEWC++ GPIO library for BeagleBone Black development board
C++ GPIO library for BeagleBone Black development board
Example does not work correctly because a setEdge call is not made. I'm guessing this example worked originally, but when you removed re-initializing during polling in commit aaf0438 (Dec 21, 2014), a setEdge call is no longer made. As a result, the example just hangs and never returns.
Not a huge issue, but I was using your example to set up my own waitForEdge and didn't realize I needed to call setEdge first.
I am not shure if I am doing it right, but I can not compile the BeagleBoneBlack-GPIO.cpp example.
With the command
g++ BeagleBoneBlack-GPIO.cpp -o BeagleBoneBlack-GPIO
I get the following error messages:
/tmp/cccx0oPi.o: In function main': BeagleBoneBlack-GPIO.cpp:(.text+0xc): undefined reference to
GPIO::GPIOManager::getInstance()'
BeagleBoneBlack-GPIO.cpp:(.text+0x18): undefined reference to GPIO::GPIOConst::getInstance()' BeagleBoneBlack-GPIO.cpp:(.text+0x28): undefined reference to
GPIO::GPIOConst::getGpioByKey(char const*)'
BeagleBoneBlack-GPIO.cpp:(.text+0x44): undefined reference to `GPIO::GPIOManager::waitForEdge(unsigned int, GPIO::EDGE_VALUE)
My BeagleBone Black (rev 000C S/N 3114BBBK1759) runs on the newest Angstrom Distribution (BeagleBone Black - 2GB eMMC) 2013-09-04.
Please contact me via [email protected].
Hi I am running debian-buster 10 linux image on the beaglebone black
On cloning the project and compiling it as it is, I get
$ g++ -std=c++17 -lstdc++fs gpio/*.cpp gpio/*.h main.cpp -o example
/usr/bin/ld: /tmp/ccHkfeR1.o: in function `beagle::gpio::GPIOManager::GPIOManager()':
manager.cpp:(.text+0x138): undefined reference to `std::filesystem::__cxx11::directory_iterator::operator*() const'
/usr/bin/ld: manager.cpp:(.text+0x20c): undefined reference to `std::filesystem::__cxx11::directory_iterator::operator++()'
/usr/bin/ld: /tmp/ccHkfeR1.o: in function `std::filesystem::__cxx11::directory_iterator::directory_iterator(std::filesystem::__cxx11::path const&)':
manager.cpp:(.text._ZNSt10filesystem7__cxx1118directory_iteratorC2ERKNS0_4pathE[_ZNSt10filesystem7__cxx1118directory_iteratorC5ERKNS0_4pathE]+0x12): undefined reference to `std::filesystem::__cxx11::directory_iterator::directory_iterator(std::filesystem::__cxx11::path const&, std::filesystem::directory_options, std::error_code*)'
/usr/bin/ld: /tmp/ccHkfeR1.o: in function `std::filesystem::__cxx11::path::path<char [16], std::filesystem::__cxx11::path>(char const (&) [16], std::filesystem::__cxx11::path::format)':
manager.cpp:(.text._ZNSt10filesystem7__cxx114pathC2IA16_cS1_EERKT_NS1_6formatE[_ZNSt10filesystem7__cxx114pathC5IA16_cS1_EERKT_NS1_6formatE]+0x3a): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
collect2: error: ld returned 1 exit status
Any help please ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.