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. Add library to cross compile RPi4
Forum Updated to NodeBB v4.3 + New Features

Add library to cross compile RPi4

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 635 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.
  • C Offline
    C Offline
    Creatorczyk
    wrote on last edited by
    #1

    I downloaded from GitHub and built "realsense" library directly on raspberry pi 4. I noticed that the library has built itself in the "build" folder. I found in it, among others:
    librealsense2.so
    librealsense2.so.2.39
    librealsense2.so.2.39.0

    Do I want to be able to use these libraries when cross compiling it is enough if I just move these three libraries to the "usr / lib" folder on raspberry and then run rsync on my ubuntu?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      The usual way is to call "make install" after a successful build.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        The usual way is to call "make install" after a successful build.

        C Offline
        C Offline
        Creatorczyk
        wrote on last edited by
        #3

        @SGaist I already did "make install" and it didn't add librealsense2.so to the "usr / lib" path

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          When calling that you usually see in the terminal where it has been installed.

          Since it's a custom library I would guess it went to /usr/local/lib

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          C 1 Reply Last reply
          2
          • SGaistS SGaist

            When calling that you usually see in the terminal where it has been installed.

            Since it's a custom library I would guess it went to /usr/local/lib

            C Offline
            C Offline
            Creatorczyk
            wrote on last edited by
            #5

            @SGaist You're right. I found these libraries in "/usr/local/lib". Now how do I move these libraries to my sysroot on ubuntu? When at the beginning of setting up the environment, folder sync I did:

            rsync -avz pi@raspberrypi_ip:/lib sysroot
            rsync -avz pi@raspberrypi_ip:/usr/include sysroot/usr
            rsync -avz pi@raspberrypi_ip:/usr/lib sysroot/usr
            rsync -avz pi@raspberrypi_ip:/opt/vc sysroot/opt
            

            but there is no "/usr/local/lib" path here. Is it enough if I make a new folder and sync it? e.g

            rsync -avz pi@raspberrypi_ip:/usr/local/lib sysroot/local/lib
            
            jsulmJ 1 Reply Last reply
            0
            • C Creatorczyk

              @SGaist You're right. I found these libraries in "/usr/local/lib". Now how do I move these libraries to my sysroot on ubuntu? When at the beginning of setting up the environment, folder sync I did:

              rsync -avz pi@raspberrypi_ip:/lib sysroot
              rsync -avz pi@raspberrypi_ip:/usr/include sysroot/usr
              rsync -avz pi@raspberrypi_ip:/usr/lib sysroot/usr
              rsync -avz pi@raspberrypi_ip:/opt/vc sysroot/opt
              

              but there is no "/usr/local/lib" path here. Is it enough if I make a new folder and sync it? e.g

              rsync -avz pi@raspberrypi_ip:/usr/local/lib sysroot/local/lib
              
              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by jsulm
              #6

              @Creatorczyk said in Add library to cross compile RPi4:

              Is it enough if I make a new folder and sync it? e.g

              Should be. Did you try?
              But you should change to:

              rsync -avz pi@raspberrypi_ip:/usr/local/lib sysroot/usr/local
              

              You also should sync /usr/local/include to be able to cross compile.

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

              1 Reply Last reply
              2

              • Login

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