Git Product home page Git Product logo

beagleboneblack-gpio's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

beagleboneblack-gpio's Issues

BeagleBoneBlack-GPIO.cpp does not set edge

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.

Can't compile BeagleBoneBlack-GPIO.cpp example

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 toGPIO::GPIOManager::getInstance()'
BeagleBoneBlack-GPIO.cpp:(.text+0x18): undefined reference to GPIO::GPIOConst::getInstance()' BeagleBoneBlack-GPIO.cpp:(.text+0x28): undefined reference toGPIO::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].

Can't compile example on Beaglebone black

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.