Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to install Boost library? How to add library to project?
Forum Updated to NodeBB v4.3 + New Features

How to install Boost library? How to add library to project?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
50 Posts 3 Posters 9.1k Views 2 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #41

    @aret777 said in How to install Boost library? How to add library to project?:

    libboost_program_options.so.1.81.0 => not found

    There's the culprit. Again, I'm a little out of my depth on this, but it appears as though you need to furnish a path to this library.

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

      Run ldd again with LD_LIBRARY_PATH updated to contain the path to the boost libraries.

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

      mzimmersM 1 Reply Last reply
      0
      • SGaistS SGaist

        Run ldd again with LD_LIBRARY_PATH updated to contain the path to the boost libraries.

        mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #43

        @SGaist if he's updated LD_LIBRARY_PATH within Creator, will the terminal in Creator pick up that addition, or does he need to modify LD_LIBRARY_PATH in the shell?

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

          @mzimmers Which shell are you referring to ?

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

          mzimmersM 1 Reply Last reply
          0
          • SGaistS SGaist

            @mzimmers Which shell are you referring to ?

            mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by
            #45

            @SGaist well, what I meant was, if he's modifying LD_LIBRARY_PATH in the run configuration, that change won't be reflected if he opens up a terminal window and runs ldd, will it?

            SGaistS 1 Reply Last reply
            0
            • mzimmersM mzimmers

              @SGaist well, what I meant was, if he's modifying LD_LIBRARY_PATH in the run configuration, that change won't be reflected if he opens up a terminal window and runs ldd, will it?

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #46

              @mzimmers correct, that's why I am asking to redo it with LD_LIBRARY_PATH modified.

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

              1 Reply Last reply
              0
              • mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on last edited by
                #47

                Yes, but...not just modified within Creator; he needs to export an updated path from the terminal window from which he'll then run ldd, correct?

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

                  Yes, that's correct

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

                  A 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Yes, that's correct

                    A Offline
                    A Offline
                    aret777
                    wrote on last edited by
                    #49

                    @SGaist But I already modified it here:
                    f75a5732-29ba-4820-ba6b-be9ebbdbc4a7.png
                    Also, how to export updated path?

                    1 Reply Last reply
                    0
                    • mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #50

                      You added the path in Qt Creator, so when you run your app from Creator, you should pick up libraries from that variable.

                      The scope of this environment variable is only within Creator.

                      So, now, from the same terminal session (shell) that you want to use for ldd, you need to do the same thing. Instructions on setting environment variables can be found anywhere on the web; here is one instance.

                      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