Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-31445

can't build QtLocation qtquick plugin on Mac with Qt3D

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Some future release
    • 5.0.0
    • Location
    • None
    • Mac OS X 10.8.3, looks like Windows and Linux don't have this issue.
    • macOS
    • 9590ffd0ec7f3e45af52fe12e911bca762637f9b

    Description

      qt 5.1 stable branch, qt3d master, qtlocation master 781b5807ded3426d510d0b0215c5af5cc083f6db.

      I tried to build qtlocation qtquick plugin both -debug and -release, failed when linking, error like:

      $ make
      rm -f libdeclarative_location.dylib
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -stdlib=libc++ -mmacosx-version-min=10.7 -single_module -dynamiclib -o libdeclarative_location.dylib .obj/release-shared/qdeclarativeposition.o .obj/release-shared/location.o .obj/release-shared/qdeclarativepositionsource.o .obj/release-shared/qdeclarativecoordinate.o .obj/release-shared/qdeclarativegeolocation.o .obj/release-shared/qdeclarativegeomapitemview.o .obj/release-shared/qdeclarativegeomapmouseevent.o .obj/release-shared/qdeclarativegeomapmousearea.o .obj/release-shared/qdeclarativegeoserviceprovider.o .obj/release-shared/qdeclarativegeoaddress.o .obj/release-shared/qdeclarativegeoshape.o .obj/release-shared/qdeclarativegeorectangle.o .obj/release-shared/qdeclarativegeocircle.o .obj/release-shared/qdeclarativegeocodemodel.o .obj/release-shared/qdeclarativegeoroutemodel.o .obj/release-shared/qdeclarativegeoroute.o .obj/release-shared/qdeclarativegeoroutesegment.o .obj/release-shared/qdeclarativegeomaneuver.o .obj/release-shared/qdeclarativegeomap.o .obj/release-shared/qdeclarativegeomaptype.o .obj/release-shared/qdeclarativegeomapitembase.o .obj/release-shared/qdeclarativegeomapquickitem.o .obj/release-shared/mapnode.o .obj/release-shared/qdeclarativecirclemapitem.o .obj/release-shared/qdeclarativerectanglemapitem.o .obj/release-shared/qdeclarativepolygonmapitem.o .obj/release-shared/qdeclarativepolylinemapitem.o .obj/release-shared/qdeclarativeroutemapitem.o .obj/release-shared/qgeomapitemgeometry.o .obj/release-shared/qdeclarativegeomapcopyrightsnotice.o .obj/release-shared/qdeclarativegeomapgesturearea.o .obj/release-shared/error_messages.o .obj/release-shared/locationvaluetypeprovider.o .obj/release-shared/locationsingleton.o .obj/release-shared/qdeclarativeplacecontentmodel.o .obj/release-shared/qdeclarativesupportedcategoriesmodel.o .obj/release-shared/qdeclarativesearchsuggestionmodel.o .obj/release-shared/qdeclarativesearchresultmodel.o .obj/release-shared/qdeclarativereviewmodel.o .obj/release-shared/qdeclarativeplaceimagemodel.o .obj/release-shared/qdeclarativeplaceeditorialmodel.o .obj/release-shared/qdeclarativecontactdetail.o .obj/release-shared/qdeclarativecategory.o .obj/release-shared/qdeclarativeplace.o .obj/release-shared/qdeclarativeplaceattribute.o .obj/release-shared/qdeclarativeplaceicon.o .obj/release-shared/qdeclarativeplaceuser.o .obj/release-shared/qdeclarativeratings.o .obj/release-shared/qdeclarativesupplier.o .obj/release-shared/qdeclarativesearchmodelbase.o .obj/release-shared/moc_qdeclarativegeolocation_p.o .obj/release-shared/moc_qdeclarativegeoshape.o .obj/release-shared/moc_qdeclarativecirclemapitem_p.o .obj/release-shared/moc_qdeclarativerectanglemapitem_p.o .obj/release-shared/moc_qdeclarativepolygonmapitem_p.o .obj/release-shared/moc_qdeclarativepolylinemapitem_p.o .obj/release-shared/moc_qdeclarativeroutemapitem_p.o .obj/release-shared/moc_qgeomapitemgeometry_p.o .obj/release-shared/moc_qdeclarativegeomapcopyrightsnotice_p.o .obj/release-shared/moc_locationsingleton.o .obj/release-shared/moc_qdeclarativeplacecontentmodel.o .obj/release-shared/moc_qdeclarativesupportedcategoriesmodel_p.o .obj/release-shared/moc_qdeclarativesearchsuggestionmodel_p.o .obj/release-shared/moc_qdeclarativesearchresultmodel_p.o .obj/release-shared/moc_qdeclarativereviewmodel_p.o .obj/release-shared/moc_qdeclarativeplaceimagemodel_p.o .obj/release-shared/moc_qdeclarativeplaceeditorialmodel.o .obj/release-shared/moc_qdeclarativecontactdetail_p.o .obj/release-shared/moc_qdeclarativecategory_p.o .obj/release-shared/moc_qdeclarativeplace_p.o .obj/release-shared/moc_qdeclarativeplaceattribute_p.o .obj/release-shared/moc_qdeclarativeplaceicon_p.o .obj/release-shared/moc_qdeclarativeplaceuser_p.o .obj/release-shared/moc_qdeclarativeratings_p.o .obj/release-shared/moc_qdeclarativesupplier_p.o .obj/release-shared/moc_qdeclarativesearchmodelbase.o  -L/Users/liangqi/build/qt5-2/qtlocation/src/imports/location/../../3rdparty/poly2tri -lpoly2tri -L/Users/liangqi/build/qt5-2/qtbase/lib -lQt53D -lQt5Quick -lQt5OpenGL -lQt5Qml -lQt5Widgets -lQt0Location -lQt5Network -lQt5Gui -lQt5V8 -lQt5Core -framework OpenGL -framework AGL  
      Undefined symbols for architecture x86_64:
        "p2t::CDT::AddHole(std::__1::vector<p2t::Point*, std::__1::allocator<p2t::Point*> >)", referenced from:
            QGeoMapCircleGeometry::updateScreenPointsInvert(QGeoMap const&) in qdeclarativecirclemapitem.o
        "p2t::CDT::CDT(std::__1::vector<p2t::Point*, std::__1::allocator<p2t::Point*> >)", referenced from:
            QGeoMapCircleGeometry::updateScreenPointsInvert(QGeoMap const&) in qdeclarativecirclemapitem.o
            QGeoMapPolygonGeometry::updateScreenPoints(QGeoMap const&) in qdeclarativepolygonmapitem.o
        "std::basic_ios<char, std::char_traits<char> >::widen(char) const", referenced from:
            p2t::Triangle::DebugPrint() in libpoly2tri.a(shapes.o)
        "std::ostream::put(char)", referenced from:
            p2t::Triangle::DebugPrint() in libpoly2tri.a(shapes.o)
        "std::ostream::flush()", referenced from:
            p2t::Triangle::DebugPrint() in libpoly2tri.a(shapes.o)
        "std::ostream& std::ostream::_M_insert<double>(double)", referenced from:
            p2t::Triangle::DebugPrint() in libpoly2tri.a(shapes.o)
        "std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from:
            p2t::Sweep::EdgeEvent(p2t::SweepContext&, p2t::Point&, p2t::Point&, p2t::Triangle*, p2t::Point&) in libpoly2tri.a(sweep.o)
        "std::string::_Rep::_S_empty_rep_storage", referenced from:
            p2t::Sweep::EdgeEvent(p2t::SweepContext&, p2t::Point&, p2t::Point&, p2t::Triangle*, p2t::Point&) in libpoly2tri.a(sweep.o)
        "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)", referenced from:
            p2t::Sweep::EdgeEvent(p2t::SweepContext&, p2t::Point&, p2t::Point&, p2t::Triangle*, p2t::Point&) in libpoly2tri.a(sweep.o)
        "std::runtime_error::runtime_error(std::string const&)", referenced from:
            p2t::Sweep::EdgeEvent(p2t::SweepContext&, p2t::Point&, p2t::Point&, p2t::Triangle*, p2t::Point&) in libpoly2tri.a(sweep.o)
        "std::_List_node_base::hook(std::_List_node_base*)", referenced from:
            p2t::SweepContext::GetMap() in libpoly2tri.a(sweep_context.o)
            p2t::SweepContext::AddToMap(p2t::Triangle*) in libpoly2tri.a(sweep_context.o)
            p2t::SweepContext::CreateAdvancingFront(std::vector<p2t::Node*, std::allocator<p2t::Node*> >) in libpoly2tri.a(sweep_context.o)
        "std::_List_node_base::unhook()", referenced from:
            p2t::SweepContext::RemoveFromMap(p2t::Triangle*) in libpoly2tri.a(sweep_context.o)
        "std::ios_base::Init::Init()", referenced from:
            __GLOBAL__I_a in libpoly2tri.a(shapes.o)
        "std::ios_base::Init::~Init()", referenced from:
            __GLOBAL__I_a in libpoly2tri.a(shapes.o)
        "std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)", referenced from:
            p2t::Triangle::DebugPrint() in libpoly2tri.a(shapes.o)
        "std::__throw_length_error(char const*)", referenced from:
            std::vector<p2t::Triangle*, std::allocator<p2t::Triangle*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<p2t::Triangle**, std::vector<p2t::Triangle*, std::allocator<p2t::Triangle*> > >, p2t::Triangle* const&) in libpoly2tri.a(sweep_context.o)
            std::vector<p2t::Point*, std::allocator<p2t::Point*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<p2t::Point**, std::vector<p2t::Point*, std::allocator<p2t::Point*> > >, p2t::Point* const&) in libpoly2tri.a(sweep_context.o)
            std::vector<p2t::Edge*, std::allocator<p2t::Edge*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<p2t::Edge**, std::vector<p2t::Edge*, std::allocator<p2t::Edge*> > >, p2t::Edge* const&) in libpoly2tri.a(sweep_context.o)
            std::vector<p2t::Node*, std::allocator<p2t::Node*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<p2t::Node**, std::vector<p2t::Node*, std::allocator<p2t::Node*> > >, p2t::Node* const&) in libpoly2tri.a(sweep.o)
        "std::cout", referenced from:
            p2t::Triangle::DebugPrint() in libpoly2tri.a(shapes.o)
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make: *** [/Users/liangqi/build/qt5-2/qtbase/qml/QtLocation/libdeclarative_location.dylib] Error 1
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              liaqi Liang Qi
              liaqi Liang Qi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes