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. Help precompiled boost library

Help precompiled boost library

Scheduled Pinned Locked Moved Solved General and Desktop
24 Posts 3 Posters 6.9k 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.
  • J Offline
    J Offline
    Jeronimo
    wrote on last edited by
    #1

    Hi i am using one project open source with boost libraries but i must to include it. So i was searching i found one site with boost precompiled:
    http://www.npcglib.org/~stathis/blog/precompiled-boost/#comment-71476

    In my case i use vs2013 and qt 5.7. I must to include these libraries like always or i need to do something more? Bye and thx

    K 1 Reply Last reply
    0
    • J Jeronimo

      Hi i am using one project open source with boost libraries but i must to include it. So i was searching i found one site with boost precompiled:
      http://www.npcglib.org/~stathis/blog/precompiled-boost/#comment-71476

      In my case i use vs2013 and qt 5.7. I must to include these libraries like always or i need to do something more? Bye and thx

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Jeronimo

      Did you ever had a look to the boost webpage?
      There are quite a number of different parts of boost or different boost libs. Some of them are simply template libraries which do not require precompilation respectively you cannot compile separately.

      Therefore, it would be good for you to check up-front, which part of the boost libs you need. Possibly you do not need any of those.
      If you require a section boost libs with compilable cpp-source file, then you can pick the correct one for your compiler and check, if the memory and all fits your needs.

      Vote the answer(s) that helped you to solve your issue(s)

      J 2 Replies Last reply
      2
      • K koahnig

        @Jeronimo

        Did you ever had a look to the boost webpage?
        There are quite a number of different parts of boost or different boost libs. Some of them are simply template libraries which do not require precompilation respectively you cannot compile separately.

        Therefore, it would be good for you to check up-front, which part of the boost libs you need. Possibly you do not need any of those.
        If you require a section boost libs with compilable cpp-source file, then you can pick the correct one for your compiler and check, if the memory and all fits your needs.

        J Offline
        J Offline
        Jeronimo
        wrote on last edited by
        #3

        @koahnig i need these:
        #include <boost/bind.hpp>
        #include <boost/algorithm/string.hpp>
        #include <boost/bind.hpp>
        #include <boost/function.hpp>
        #include <boost/random/discrete_distribution.hpp>
        #include <boost/random/exponential_distribution.hpp>
        #include <boost/random/mersenne_twister.hpp>
        #include <boost/random/random_number_generator.hpp>
        #include <boost/random/uniform_int_distribution.hpp>
        #include <boost/random/uniform_real_distribution.hpp>
        #include <boost/random/variate_generator.hpp>
        #include <boost/program_options.hpp>
        #include <boost/thread.hpp>

        1 Reply Last reply
        0
        • K koahnig

          @Jeronimo

          Did you ever had a look to the boost webpage?
          There are quite a number of different parts of boost or different boost libs. Some of them are simply template libraries which do not require precompilation respectively you cannot compile separately.

          Therefore, it would be good for you to check up-front, which part of the boost libs you need. Possibly you do not need any of those.
          If you require a section boost libs with compilable cpp-source file, then you can pick the correct one for your compiler and check, if the memory and all fits your needs.

          J Offline
          J Offline
          Jeronimo
          wrote on last edited by
          #4

          @koahnig I never took boost or nothing like this. I listened about can be installed with vs2013 anyways i couldn't ..

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

            Hi,

            What couldn't you ?

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

            J 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              What couldn't you ?

              J Offline
              J Offline
              Jeronimo
              wrote on last edited by
              #6

              @SGaist Hi i cant use boost libraries with vs2013 i need to include them. I was trying with precompiled boost:
              http://www.npcglib.org/~stathis/blog/precompiled-boost/#comment-71476
              But anyways i dont know if i need to include the reference to these libraries. I'm little lost .

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

                What have you tried ?
                What error did you get ?

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

                J 1 Reply Last reply
                0
                • SGaistS SGaist

                  What have you tried ?
                  What error did you get ?

                  J Offline
                  J Offline
                  Jeronimo
                  wrote on last edited by
                  #8

                  @SGaist i only included these libraries:
                  #include <boost/bind.hpp>
                  #include <boost/algorithm/string.hpp>
                  #include <boost/bind.hpp>
                  #include <boost/function.hpp>
                  #include <boost/random/discrete_distribution.hpp>
                  #include <boost/random/exponential_distribution.hpp>
                  #include <boost/random/mersenne_twister.hpp>
                  #include <boost/random/random_number_generator.hpp>
                  #include <boost/random/uniform_int_distribution.hpp>
                  #include <boost/random/uniform_real_distribution.hpp>
                  #include <boost/random/variate_generator.hpp>
                  #include <boost/program_options.hpp>
                  #include <boost/thread.hpp>

                  And trying to guess how to include the compiled library only tried that.

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

                    Did you update your .pro file to add the path where the boost includes can be found to INCLUDEPATH ?
                    Did you update your .pro file to add the path where the boost .lib files can found to LIBS ?
                    Did you update your .pro file to add the boost libraries matching your include to link to ?

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

                    J 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Did you update your .pro file to add the path where the boost includes can be found to INCLUDEPATH ?
                      Did you update your .pro file to add the path where the boost .lib files can found to LIBS ?
                      Did you update your .pro file to add the boost libraries matching your include to link to ?

                      J Offline
                      J Offline
                      Jeronimo
                      wrote on last edited by
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        Yes, you should add the base path to the include in INCLUDEPATH otherwise your includes won't work.

                        You have "C:\Users\moh\Desktop\boost-1.60.0-x64-vs2013\boost64-1.60.0-vs2013\include\boost-1_60\boost\random", all your includes start with boost and not all your includes comes from boost/random. So remove these two folders from the path.

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

                        J 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Yes, you should add the base path to the include in INCLUDEPATH otherwise your includes won't work.

                          You have "C:\Users\moh\Desktop\boost-1.60.0-x64-vs2013\boost64-1.60.0-vs2013\include\boost-1_60\boost\random", all your includes start with boost and not all your includes comes from boost/random. So remove these two folders from the path.

                          J Offline
                          J Offline
                          Jeronimo
                          wrote on last edited by
                          #12

                          @SGaist I tried with boost but i think the library i need to include other?
                          i tried this:
                          LIBS += -boost_random-vc120-mt-gd-1_60 -LC:/Users/moh/Desktop/boost-1.60.0-x64-vs2013/boost64-1.60.0-vs2013/lib
                          INCLUDEPATH += "C:\Users\moh\Desktop\boost-1.60.0-x64-vs2013\boost64-1.60.0-vs2013\include\boost-1_60\boost"

                          Sorry again a lot!

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

                            Again, all your includes start with boost so that folder must not appear in your INCLUDEPATH statement.

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

                            J 1 Reply Last reply
                            1
                            • SGaistS SGaist

                              Again, all your includes start with boost so that folder must not appear in your INCLUDEPATH statement.

                              J Offline
                              J Offline
                              Jeronimo
                              wrote on last edited by
                              #14

                              @SGaist Ok sorry you are right the issue solved. But one details about the project that i use boost:
                              Ok i included libraries boost but now i am trying to run one easy example but when i try i get this message:
                              C:\Users\moh\Documents\intento\scheduler.cpp:-1: error: C1041: no puede abrir la base de datos de programa 'c:\users\moh\documents\build-intento-qt_5_7_0_msvc2013_static-debug\debug\intento.pdb'. Si varios CL.EXE escriben en el mismo archivo .PDB, use /FS.

                              You know about this or can me take some advice?

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

                                With the text in english it will be easier to help.

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

                                J 2 Replies Last reply
                                0
                                • SGaistS SGaist

                                  With the text in english it will be easier to help.

                                  J Offline
                                  J Offline
                                  Jeronimo
                                  wrote on last edited by
                                  #16

                                  @SGaist Ok the text is:
                                  C:\Users\moh\Documents\intento\scheduler.cpp:-1: error: C1041: can't open the data bases of the program 'c:\users\moh\documents\build-intento-qt_5_7_0_msvc2013_static-debug\debug\intento.pdb'. If several cl.exe write in the same file .PDB, use /FS

                                  1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    With the text in english it will be easier to help.

                                    J Offline
                                    J Offline
                                    Jeronimo
                                    wrote on last edited by
                                    #17

                                    @SGaist And when i try to compile with vs2013 i get this:
                                    i put nmake
                                    and show me:
                                    cl .\main.cpp .\scheduler.cpp

                                    cl : Línea de comandos warning D9002 : se omite la opción desconocida '-std=c++11'
                                    main.cpp
                                    c:\users\moh\documents\intento\scheduler.h(5) : fatal error C1014: hay demasiados archivos de inclusión : nivel = 1024
                                    scheduler.cpp
                                    c:\users\moh\documents\intento\scheduler.h(5) : fatal error C1014: hay demasiados archivos de inclusión : nivel = 1024
                                    Generando código...
                                    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BIN\cl.EXE"' : código devuelto '0x2'
                                    Stop.
                                    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : código devuelto '0x2'
                                    Stop.

                                    1 Reply Last reply
                                    0
                                    • J Offline
                                      J Offline
                                      Jeronimo
                                      wrote on last edited by
                                      #18

                                      the project is: https://github.com/gavinandresen/bitcoin_miningsim

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

                                        Are you trying to build that project with a static self-built Qt ?

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

                                        J 1 Reply Last reply
                                        0
                                        • SGaistS SGaist

                                          Are you trying to build that project with a static self-built Qt ?

                                          J Offline
                                          J Offline
                                          Jeronimo
                                          wrote on last edited by Jeronimo
                                          #20

                                          @SGaist yes static built. I use static and show me this: C:\Users\moh\Documents\intento\main.cpp:-1: error: C1041: no puede abrir la base de datos de programa 'c:\users\moh\documents\build-intento-qt_5_7_0_msvc2013_static-debug\debug\intento.pdb'. Si varios CL.EXE escriben en el mismo archivo .PDB, use /FS. But i think maybe is other reason not build? some suggestion?

                                          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