Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How do I deploy in-tree qt library to Raspberry Pi?
Forum Updated to NodeBB v4.3 + New Features

How do I deploy in-tree qt library to Raspberry Pi?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 907 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    sly110
    wrote on last edited by
    #1

    All,
    I have a library that I have build for the raspberry pi 3 using Qt5.8. It is built in-tree as a sub project. What is the best method to deploy this to rpi so that my main rpi qt app can use it. I have been manually copying it to lib directory.
    This is the pro setup:

    
    QT       += network
    QT       += serialport
    
    QT       -= gui
    
    TARGET = rpi-utils
    TEMPLATE = lib
    
    DEFINES += RPIUTILS_LIBRARY
    
    SOURCES += rpiutils.cpp \
               PIgpio.cpp \
               IOserial.cpp
    
    HEADERS += rpiutils.h\
            rpi-utils_global.h \
            PIgpio.h \
            IOserial.h \
            acs_hfo_comm_intf.h
    
    unix {
        target.path = /usr/lib
        INSTALLS += target
    }
    

    Thank you for any help.

    1 Reply Last reply
    0
    • A ambershark

      I usually have a lib directory in my application distribution tar/gz. I would put my supporting libs there.

      I have bash scripts that build my tar/gz distribution. Also in that script I have a start script which sets the LD_LIBRARY_PATH so it can use the local lib directory rather than one at a system level.

      S Offline
      S Offline
      sly110
      wrote on last edited by sly110
      #3

      @ambershark
      Thank you ambershark!
      I will use that method and mark as solved.

      A 1 Reply Last reply
      0
      • A Offline
        A Offline
        ambershark
        wrote on last edited by
        #2

        I usually have a lib directory in my application distribution tar/gz. I would put my supporting libs there.

        I have bash scripts that build my tar/gz distribution. Also in that script I have a start script which sets the LD_LIBRARY_PATH so it can use the local lib directory rather than one at a system level.

        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

        S 1 Reply Last reply
        1
        • A ambershark

          I usually have a lib directory in my application distribution tar/gz. I would put my supporting libs there.

          I have bash scripts that build my tar/gz distribution. Also in that script I have a start script which sets the LD_LIBRARY_PATH so it can use the local lib directory rather than one at a system level.

          S Offline
          S Offline
          sly110
          wrote on last edited by sly110
          #3

          @ambershark
          Thank you ambershark!
          I will use that method and mark as solved.

          A 1 Reply Last reply
          0
          • S sly110

            @ambershark
            Thank you ambershark!
            I will use that method and mark as solved.

            A Offline
            A Offline
            ambershark
            wrote on last edited by
            #4

            @sly110 No problem, if you'd like some examples of my set up let me know and I can post one here.

            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved