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. Qt Creator won't compile with boost [solved]
Forum Updated to NodeBB v4.3 + New Features

Qt Creator won't compile with boost [solved]

Scheduled Pinned Locked Moved Installation and Deployment
12 Posts 3 Posters 4.0k 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.
  • K Offline
    K Offline
    kimerafusion
    wrote on last edited by
    #3

    Yes it is. And i tried to include several other files/directories, and nothing worked

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sandy.martel
      wrote on last edited by
      #4

      Well, what I meant is, in c++, you cannot include a directory, only files.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kimerafusion
        wrote on last edited by
        #5

        Oh god i did not know that. I also tried to include <boost/serialization/serialization.hpp> and it kept saying that this file doesn't exist

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

          Hi,

          Are you doing something like:

          @INCLUDEPATH += /usr/include/boost@

          and

          @#include <boost/serialization/serialization.hpp>@

          ?

          If so, remove boost from your INCLUDEPATH line

          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
          • K Offline
            K Offline
            kimerafusion
            wrote on last edited by
            #7

            Well I'm on windows, and these are the two lines i'm adding to the .pro file
            @INCLUDEPATH += D:/boost_1_56_0/boost_1_56_0/boost
            LIBS += -LD:/boost_1_56_0/boost_1_56_0/stage/lib@

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

              What's the exact path to the include directory of boost ?

              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
              • K Offline
                K Offline
                kimerafusion
                wrote on last edited by
                #9

                This should be the include path of boost : D:/boost_1_56_0/boost_1_56_0/boost

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

                  Then what do you currently have in that directory ?

                  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
                  • K Offline
                    K Offline
                    kimerafusion
                    wrote on last edited by
                    #11

                    Oh, i solved the problem. I actually just had to add "-lboost_serialization" at the end of the LIB line... Thank you

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

                      Not exactly the error related to include paths :D

                      Anyway, nice you found out. Please update the thread title prepending [solved] so other forum users may know a solution has been found :)

                      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

                      • Login

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