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. Build Issue(s) with Boost Library
Forum Update on Tuesday, May 27th 2025

Build Issue(s) with Boost Library

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.4k 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 Offline
    B Offline
    btb125
    wrote on last edited by
    #1

    Hello all,

    I found out about Qt whilst doing research into C++ GUI Libraries - after a lot of research (YT Videos & Qt Books), I installed the Qt Creator. Qt itself seems to be working fine.

    I need to use the Boost Libraries for my application, and used the following guide to install it:
    http://cpp-qt-mac-win.blogspot.in/2011/10/qt-boost-for-beginners-step-by-step.html
    The quick test provided at the above website, shows Boost & Qt working together.

    When implementing the boost::serialization functions and trying to run the program I get the following errors:

    With:
    @
    INCLUDEPATH += C:/boost/boost_1_53_0
    LIBS += -LC:/boost_lib/boost/bin.v2/libs
    @

    I get "66 Issues" starting with:
    @
    " C:\boost\boost_1_53_0\boost\archive\text_oarchive.hpp:100: error: undefined reference to `boost::archive::text_oarchive_implboost::archive::text_oarchive::text_oarchive_impl(std::ostream&, unsigned int)' "
    @

    ^ Compile output starts:
    @
    debug/main.o: In function ZN5boost7archive13text_oarchiveC1ERSoj': C:\Users\<dir>\Application\build-UCLDataManagement_v002-Desktop_Qt_5_0_2_MinGW_32bit-Debug/../../../../../../boost/boost_1_53_0/boost/archive/text_oarchive.hpp:100: undefined reference to boost::archive::text_oarchive_implboost::archive::text_oarchive::text_oarchive_impl(std::ostream&, unsigned int)'
    @

    With:
    @
    INCLUDEPATH += C:/boost/boost_1_53_0
    LIBS += C:/boost_lib/boost/bin.v2/libs
    @

    I get "2 Issues":
    @
    :-1: error: cannot find C:/boost_lib/boost/bin.v2/libs: Permission denied
    collect2.exe:-1: error: error: ld returned 1 exit status
    ^ Compile output:
    ...../../i686-w64-mingw32/bin/ld.exe: cannot find C:/boost_lib/boost/bin.v2/libs: Permission denied
    @

    [code wrappings updated, koahnig]

    I've been trolling the internet for almost 2 days now trying to find a solution. Any help/suggestions/requests would be appreciated. Thank you for your time in advance.

    -B

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      As noted above I have added "code wrappings.":http://qt-project.org/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01

      I never worked with serialization, but apparently this is one of the boost parts which is not only template based.

      You have added already the path to where the boost libs are (should be "C:/boost_lib/boost/bin.v2/libs"), but you need to specify the name of the lib as well.
      This "example":http://qt-project.org/doc/qt-4.8/qmake-project-files.html#declaring-other-libraries declares for instance:
      the path of the libs through "-L" to be : /usr/local/lib
      and the lib is through "-l" : math
      This is a linux example, but can use the same for windows. E.g.
      the path of the libs through "-L" to be : c:/user/local/lib
      and the lib is through "-l" : math

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

      1 Reply Last reply
      0
      • B Offline
        B Offline
        btb125
        wrote on last edited by
        #3

        Working now, Thanks

        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