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

Compile error on DietPi #18

Open
themagicm opened this issue Aug 10, 2022 · 1 comment
Open

Compile error on DietPi #18

themagicm opened this issue Aug 10, 2022 · 1 comment

Comments

@themagicm
Copy link

Having issues compiling this on latest DietPi on a RPI4. Anyone ran across this and resolved?

[ 85%] Building CXX object CMakeFiles/aasdk.dir/src/Channel/Control/ControlServiceChannel.cpp.o
In file included from /root/aasdk/include/f1x/aasdk/IO/PromiseLink.hpp:24,
from /root/aasdk/src/Channel/Control/ControlServiceChannel.cpp:22:
/root/aasdk/include/f1x/aasdk/IO/Promise.hpp:35:1: error: expected class-name before ‘{’ token
35 | {
| ^
/root/aasdk/include/f1x/aasdk/IO/Promise.hpp:117:1: error: expected class-name before ‘{’ token
117 | {
| ^
/root/aasdk/include/f1x/aasdk/IO/Promise.hpp:198:1: error: expected class-name before ‘{’ token
198 | {
| ^
/root/aasdk/include/f1x/aasdk/IO/Promise.hpp:278:1: error: expected class-name before ‘{’ token
278 | {
| ^
[ 85%] Building CXX object CMakeFiles/aasdk.dir/src/Channel/Input/InputServiceChannel.cpp.o
make[2]: *** [CMakeFiles/aasdk.dir/build.make:173: CMakeFiles/aasdk.dir/src/Channel/Control/ControlServiceChannel.cpp.o] Error 1

@mkummer225
Copy link

@themagicm you may be trying to build the master branch, switch to newdev

Also, in the newdev branch you may need to comment out currentMessageIndex_--; in aasdk/src/Messenger/MessageInStream.cpp to fix the following error:

aasdk/src/Messenger/MessageInStream.cpp:157:9: error: ‘currentMessageIndex_’ was not declared in this scope
  157 |         currentMessageIndex_--;
      |         ^~~~~~~~~~~~~~~~~~~~

Ref #16

This finally allowed me to build on Pi OS Bullseye, the errors you're getting are indicative of Bullseye's newer libboost version than what was used in developing master/the original aasdk.

NyAntsaA pushed a commit to NyAntsaA/aasdk that referenced this issue Oct 22, 2022
* package using cpack (opencardev#18)

Added build to .gitignore
Added vscode tasks to clean, build, package
Added CPack support for debian packages

* Added gitversion,cmake and last commit epoch as patch version

* Switched patch version to use commit hash instead of epoch

* Added CPACK_Version

* added message to output version

* added dockerbuild temp

* workflow fix

* fixed tabs

* fixed depends

* fixed typo

* typo in Dockerfile

* added upload artifact

* added deb_architecture

* added releases

* fixed checkout

* added tags

* fixed release gha

* Added versioning

* switch to use commit_timestamp
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

No branches or pull requests

2 participants