Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. error while adding libraries
Forum Updated to NodeBB v4.3 + New Features

error while adding libraries

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 2 Posters 2.5k 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.
  • B Bharth

    i downloaded the boost libraries and i added that libraries to project although im getting error

    mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #4

    @Bharth
    So you made sure the .pro file and the location of boost matches up?

    CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build/lib/Release/ -lsioclient
    else:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../build/lib/Debug/ -lsioclient
    
    
    CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build/lib/Release/ -lboost_random
    else:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../build/lib/Debug/ -lboost_random
    
    CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build/lib/Release/ -lboost_system
    else:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../build/lib/Debug/ -lboost_system
    
    CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build/lib/Release/ -lboost_date_time
    else:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../build/lib/Debug/ -lboost_date_time
    
    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bharth
      wrote on last edited by
      #5

      i included this path INCLUDEPATH += boost

      mrjjM 1 Reply Last reply
      0
      • B Bharth

        i included this path INCLUDEPATH += boost

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #6

        @Bharth
        but that is not a path.
        where did u put the boost folder ?

        1 Reply Last reply
        1
        • B Offline
          B Offline
          Bharth
          wrote on last edited by Bharth
          #7

          in project folder C:\Users\inno\Desktop\QT\SioChatDemo\boost

          mrjjM 1 Reply Last reply
          0
          • B Bharth

            in project folder C:\Users\inno\Desktop\QT\SioChatDemo\boost

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #8

            @Bharth
            ok then try with
            INCLUDEPATH += $$PWD/boost
            and rerun qmake from menu

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bharth
              wrote on last edited by
              #9

              if i run qmake its not showing any errors but if i click on run button it showing same error.....want i install boost to command prompt???

              mrjjM 1 Reply Last reply
              0
              • B Bharth

                if i run qmake its not showing any errors but if i click on run button it showing same error.....want i install boost to command prompt???

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #10

                @Bharth
                but is boost compiled ?
                does that folder contains the
                lboost_random
                lboost_system
                lboost_date_time
                dlls ?

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  Bharth
                  wrote on last edited by
                  #11

                  no ...Building Boost.Build engine
                  'cl' is not recognized as an internal or external command,
                  operable program or batch file.

                  Failed to build Boost.Build engine.
                  Please consult bootstrap.log for further diagnostics.
                  showing like this....

                  boost folder has system,random,date_time,dlls....etc

                  mrjjM 1 Reply Last reply
                  0
                  • B Bharth

                    no ...Building Boost.Build engine
                    'cl' is not recognized as an internal or external command,
                    operable program or batch file.

                    Failed to build Boost.Build engine.
                    Please consult bootstrap.log for further diagnostics.
                    showing like this....

                    boost folder has system,random,date_time,dlls....etc

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #12

                    @Bharth

                    sounds like its looking for visual studio compiler.

                    1 Reply Last reply
                    2
                    • B Offline
                      B Offline
                      Bharth
                      wrote on last edited by
                      #13

                      C:\Users\inno\Desktop\QT\SioChatDemo\lib\websocketpp\websocketpp\transport\asio\connection.hpp:426:
                      error: no matching function for call to 'make_shared(const boost::reference_wrapperboost::asio::io_context)'
                      lib::ref(*io_service));
                      ^

                      i added these paths in pro file

                      INCLUDEPATH += $$PWD/lib/rapidjson/include
                      INCLUDEPATH += $$PWD/lib/websocketpp
                      INCLUDEPATH += $$PWD/boost

                      thanks in advance

                      mrjjM 1 Reply Last reply
                      0
                      • B Bharth

                        C:\Users\inno\Desktop\QT\SioChatDemo\lib\websocketpp\websocketpp\transport\asio\connection.hpp:426:
                        error: no matching function for call to 'make_shared(const boost::reference_wrapperboost::asio::io_context)'
                        lib::ref(*io_service));
                        ^

                        i added these paths in pro file

                        INCLUDEPATH += $$PWD/lib/rapidjson/include
                        INCLUDEPATH += $$PWD/lib/websocketpp
                        INCLUDEPATH += $$PWD/boost

                        thanks in advance

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #14

                        @Bharth
                        well it dont know
                        boost::reference_wrapperboost::asio::io_context
                        try to see if u can find out where it lives

                        so is that the ONLY error ?
                        might be something else than not linking boost then.
                        unless there is boost error all over.

                        1 Reply Last reply
                        1
                        • B Offline
                          B Offline
                          Bharth
                          wrote on last edited by
                          #15

                          then how to install boost libraries through command prompt
                          im new to qt please give some guidence

                          mrjjM 1 Reply Last reply
                          0
                          • B Bharth

                            then how to install boost libraries through command prompt
                            im new to qt please give some guidence

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #16

                            @Bharth
                            Hi
                            Well boost is not related to Qt at all.
                            But you did not answer the question.
                            Is that only boost related error u get or
                            do you have many ?

                            Its hard to give you a tut as it depends on what you really downloaded from boost,
                            what compiler you have and overall how boost is being used in that project.

                            1 Reply Last reply
                            0
                            • B Offline
                              B Offline
                              Bharth
                              wrote on last edited by
                              #17

                              boost related error only one error im getting

                              mrjjM 1 Reply Last reply
                              0
                              • B Bharth

                                boost related error only one error im getting

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #18

                                @Bharth
                                ok so boost might be installed correctly.
                                im sorry i cannot guess why it gives error.
                                maybe asio is seperate install.

                                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