Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++: all: add pigpio library #45

Merged
merged 4 commits into from
Aug 25, 2020

Conversation

corteccia
Copy link
Contributor

Hello again!

When I tried to cross-compile, I have another issue (except #44): fatal error: pigpio.h: No such file or directory. The main problem is that pigpio library can't be just easily installed using apt-get to host machine.

I suggest this change to fix it. Now you can cross-compile simply using export CXX=.

It is perfectly working as cross-compilation as native installation on RPi.

Please, check it.

@corteccia corteccia force-pushed the pr-cross-compilation-pigpio-fix branch 3 times, most recently from 530a8d7 to d22d9d4 Compare April 28, 2020 16:47
@corteccia corteccia force-pushed the pr-cross-compilation-pigpio-fix branch 5 times, most recently from 0e6ee08 to 021c545 Compare May 26, 2020 17:05
@corteccia corteccia force-pushed the pr-cross-compilation-pigpio-fix branch from 021c545 to 3d2f4c3 Compare May 28, 2020 14:33
Some C++ examples could not be cross-compiled for RPi because of
dependency on pigpio library. After this change, pigpio library was added as
submodule and can be used in cross-compilation.
@corteccia corteccia force-pushed the pr-cross-compilation-pigpio-fix branch 6 times, most recently from 87593fa to a0b6bc9 Compare June 4, 2020 09:54
@corteccia corteccia force-pushed the pr-cross-compilation-pigpio-fix branch from a0b6bc9 to 50f2500 Compare June 22, 2020 13:11
@corteccia corteccia force-pushed the pr-cross-compilation-pigpio-fix branch 2 times, most recently from e22ac01 to cd7f8a3 Compare July 15, 2020 10:07
Installation of dependencies, if it is necessary, was added. Now all
required dependencies (such as pigpio) can be installed independently.
Makefile's target for dependencies was added and all of the pigpio
relations in Makefiles were changed. Now it can be easily compiled or
cross-compiled with all dependencies by running only "make".
Add cross-compilation section.
@corteccia corteccia force-pushed the pr-cross-compilation-pigpio-fix branch from cd7f8a3 to 60da4f3 Compare August 24, 2020 09:16
@AlexeyBulatov AlexeyBulatov merged commit 0eb90b7 into emlid:master Aug 25, 2020
@corteccia corteccia deleted the pr-cross-compilation-pigpio-fix branch September 2, 2020 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants