Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved libsocketcan not found in 5.14.1

    General and Desktop
    qcanbusdevice serialbus 5.14
    3
    4
    1644
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rejuce last edited by

      i upgraded the toolchain from 5.12.3 to 5.14.1 to get the additonal functionalities of the QCanBusDevice.

      under 5.12.3 everything works

      now under 5.14.1 upon creating the device with
      device = QCanBus::instance()->createDevice(
      QStringLiteral("socketcan"), QStringLiteral("can0"), &errorString);

      i get following runtime errors: (compilin and linking is all fine)
      qt.canbus.plugins.socketcan: Cannot load library socketcan: (socketcan: cannot open shared object file: No such file or directory)
      qt.canbus.plugins.socketcan: Cannot load library libsocketcan, some functionality will not be available.
      Cannot load library socketcan: (socketcan: cannot open shared object file: No such file or directory)

      i am a bit lost now on how to debug this...esp bec if i compile for 5.12.3 it does not happend
      any pointers fpor me?

      1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

        Install libsocketcan package

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 2
        • jsulm
          jsulm Lifetime Qt Champion last edited by

          Install libsocketcan package

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 2
          • R
            rejuce last edited by

            thanks i did not see that its an external library that has to be installed separetely and 5.14 depends on it while 5.12 does not

            aha_1980 1 Reply Last reply Reply Quote 0
            • aha_1980
              aha_1980 Lifetime Qt Champion @rejuce last edited by

              @rejuce

              Libsocketcan is still optional, but gives additional functions, as stated here: https://doc.qt.io/qt-5/qtserialbus-socketcan-overview.html

              If you don't use that, you can safely ignore the warning. But if you install the libsocketcan library, that's fine too.

              Regards

              Qt has to stay free or it will die.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post