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 to execute complex project on RPi Linux
Forum Updated to NodeBB v4.3 + New Features

How to execute complex project on RPi Linux

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 454 Views
  • 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.
  • G Offline
    G Offline
    GregWilsonLindberg
    wrote on last edited by
    #1

    I have a complex project where sub portions of the project are done as .so files with the directory structure like this

    MainDir
        build-dir
            MainProj
            sub1
            sub2
            sub3
            ...
        ProjectDir
            MainProj
            sub1
            sub2
            sub3
            ...
    

    In the .pro file for the main project the .so's are included with:
    INCLUDEPATH += $PWD/../sub1
    DEPENDPATH += $PWD/../sub1

    I can't figure out how to get the project to execute from the command line. If I change to the build directory for the main executable and try to run it there I get an error:
    ./MainProj: error while loading shared libraries: libSub1.so.1: cannot shared object file: No such file or directory
    I've tried executing from the directory that MainProj is built in, I tried copying the MainProj executable and all of the .so's to a single directory an I get the same error.
    Can anybody help me figure how to execute this project from the command line, it runs properly from inside Qt Creator.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      GregWilsonLindberg
      wrote on last edited by
      #2

      I talked to some QT people at SigGraph and they suggested that I dump the environment variables which turned out to be a good suggestion. QtCreator builds a LD_LIBRARY_PATH variable that includes paths to all of the libraries for the sub projects.

      1 Reply Last reply
      1

      • Login

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