50ButtonsEach / fliclib-linux-hci

Flic SDK for Linux
305 stars 55 forks source link

simpleclient build fails on Raspberry Pi #108

Closed Sivivatu closed 1 year ago

Sivivatu commented 2 years ago

I'm trying to configure the SDK on an RPi 3 and when I try to run make on the simpleclient the make fails with a generic Error 1.

When executing make I do see numerous errors:

/usr/include/c++/10/new:135:42: error: expected initializer before ‘_GLIBCXX_USE_NOEXCEPT’
  135 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT

But I have no idea how I would diagnose these. Any assistance would be apprectiated

Emill commented 2 years ago

Please post the full output from the compilation.

Sivivatu commented 2 years ago

Please post the full output from the compilation.

What would be the best way to do that? Pipe the result into a text file?

Emill commented 2 years ago

Copy-paste from the terminal window?

Otherwise you should be able to use make &> log.txt.

Sivivatu commented 2 years ago

The printout is rather long so have attached it as a txt

log.txt

Emill commented 2 years ago

I wonder if something is messed up with your build system.

Can you compile a very simple c++ file containing only these lines with g++ file.cpp -c?

#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <poll.h>
#include <stdint.h>
#include <assert.h>

#include <string>
Sivivatu commented 2 years ago

looks like the same error to me but I have no experience with c++

test_log.txt

Emill commented 1 year ago

Closing for now since it seems to be an issue with your build setup. Feel free to reopen if necessary.