Skip to content

Failure to make on Ubuntu 20.04 #9

Description

@ingjae

Hello ,
I 'm trying to install at Ubuntu 20.04
qmake -qt=qt5 was fine
make didn't work

here is error message

driver/SocketCanDriver/SocketCanInterface.cpp:411:6: error: no declaration matches ‘bool SocketCanInterface::readMessage(CanMessage&, unsigned int)’
  411 | bool SocketCanInterface::readMessage(CanMessage &msg, unsigned int timeout_ms) {
      |      ^~~~~~~~~~~~~~~~~~
In file included from driver/SocketCanDriver/SocketCanInterface.cpp:22:
driver/SocketCanDriver/SocketCanInterface.h:79:18: note: candidate is: ‘virtual bool SocketCanInterface::readMessage(QList<CanMessage>&, unsigned int)’
   79 |     virtual bool readMessage(QList<CanMessage> &msglist, unsigned int timeout_ms);
      |                  ^~~~~~~~~~~
driver/SocketCanDriver/SocketCanInterface.h:52:7: note: ‘class SocketCanInterface’ defined here
   52 | class SocketCanInterface: public CanInterface {
      |       ^~~~~~~~~~~~~~~~~~
driver/SocketCanDriver/SocketCanInterface.cpp: In member function ‘virtual void SocketCanInterface::sendMessage(const CanMessage&)’:
driver/SocketCanDriver/SocketCanInterface.cpp:408:9: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
  408 |  ::write(_fd, &frame, sizeof(struct can_frame));
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:1383: ../build/o/unix/SocketCanInterface.o] Error 1
make[1]: Leaving directory '/home/injae/work/cangaroo/src'
make: *** [Makefile:47: sub-src-make_first-ordered] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions