Build QxOrm 1.3.2 on OSX 10.10 error

Forum for posting problems using QxOrm library

Build QxOrm 1.3.2 on OSX 10.10 error

Postby freddy311082 » Thu Apr 09, 2015 4:40 pm

Hi everyone...

I'm trying to compile QxOrm 1.3.2 on OSX Yosemite... I have installed boost 1.57, and when I compile the library in the Qt Creator I had the following error:

Code: Select all
Undefined symbols for architecture x86_64:
  "boost::archive::xml_iarchive_impl<boost::archive::xml_iarchive>::load(std::string&)", referenced from:
      void boost::archive::load_access::load_primitive<boost::archive::xml_iarchive, std::string>(boost::archive::xml_iarchive&, std::string&) in QxSerialize_QByteArray.o
      void boost::archive::load_access::load_primitive<boost::archive::xml_iarchive, std::string>(boost::archive::xml_iarchive&, std::string&) in QxSerialize_QObject.o
      void boost::archive::load_access::load_primitive<boost::archive::xml_iarchive, std::string>(boost::archive::xml_iarchive&, std::string&) in QxSerialize_QString.o
  "boost::archive::xml_iarchive_impl<boost::archive::xml_iarchive>::xml_iarchive_impl(std::istream&, unsigned int)", referenced from:
      boost::archive::xml_iarchive::xml_iarchive(std::istream&, unsigned int) in QxTools.o
  "boost::archive::xml_oarchive_impl<boost::archive::xml_oarchive>::save(std::string const&)", referenced from:
      void boost::archive::save_access::save_primitive<boost::archive::xml_oarchive, std::string>(boost::archive::xml_oarchive&, std::string const&) in QxSerialize_QByteArray.o
      void boost::archive::save_access::save_primitive<boost::archive::xml_oarchive, std::string>(boost::archive::xml_oarchive&, std::string const&) in QxSerialize_QObject.o
      void boost::archive::save_access::save_primitive<boost::archive::xml_oarchive, std::string>(boost::archive::xml_oarchive&, std::string const&) in QxSerialize_QString.o
  "boost::archive::xml_oarchive_impl<boost::archive::xml_oarchive>::xml_oarchive_impl(std::ostream&, unsigned int)", referenced from:
      boost::archive::xml_oarchive::xml_oarchive(std::ostream&, unsigned int) in QxTools.o
  "boost::archive::basic_text_oprimitive<std::ostream>::~basic_text_oprimitive()", referenced from:
      boost::archive::xml_oarchive_impl<boost::archive::xml_oarchive>::~xml_oarchive_impl() in QxTools.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[1]: *** [lib/libQxOrmd.1.3.2.dylib] Error 1
make: *** [debug] Error 2
13:21:20: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project QxOrm (kit: Desktop Qt 5.4.1 clang 64bit)
When executing step "Make"


i know that this is a linker problem, but I had try with some boost's libraries and nothing...

can someone help me ??

best regards for all

freddy
freddy311082
 
Posts: 2
Joined: Sat Oct 20, 2012 2:27 pm

Re: Build QxOrm 1.3.2 on OSX 10.10 error

Postby qxorm » Fri Apr 10, 2015 9:12 am

Hello,

I think the solution is here : http://www.qxorm.com/forum/phpbb/viewto ... 86d72530a7

Thanks to another user (Lamont Peterson), it seems that you can find the solution here : http://qt-project.org/forums/viewthread/35646
So you should add this line in your *.pro file (or in the QxOrm.pri file) : QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
And maybe this line too : macx:QMAKE_MAC_SDK=macosx10.9
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am

Re: Build QxOrm 1.3.2 on OSX 10.10 error

Postby hempnall » Thu Aug 20, 2015 11:21 am

Hello all,

I am also having trouble building the QxOrm (1.3.2) on Mac 10.10.

I've tried building against boost installed from
* macports
* brew (1.56)
* source downloads for 1.53,1.55,1.57 (built using ./bootstrap.sh and then ./b2)

In every case, I get the same linker error from above:
Code: Select all
Undefined symbols for architecture x86_64:
  "boost::archive::xml_iarchive_impl<boost::archive::xml_iarchive>::load(std::string&)", referenced from:
      void boost::archive::load_access::load_primitive<boost::archive::xml_iarchive, std::string>(boost::archive::xml_iarchive&, std::string&) in QxSerialize_QByteArray.o
      void boost::archive::load_access::load_primitive<boost::archive::xml_iarchive, std::string>(boost::archive::xml_iarchive&, std::string&) in QxSerialize_QObject.o
      void boost::archive::load_access::load_primitive<boost::archive::xml_iarchive, std::string>(boost::archive::xml_iarchive&, std::string&) in QxSerialize_QString.o
  "boost::archive::xml_iarchive_impl<boost::archive::xml_iarchive>::xml_iarchive_impl(std::istream&, unsigned int)", referenced from:
      boost::archive::xml_iarchive::xml_iarchive(std::istream&, unsigned int) in QxTools.o
  "boost::archive::xml_oarchive_impl<boost::archive::xml_oarchive>::save(std::string const&)", referenced from:
      void boost::archive::save_access::save_primitive<boost::archive::xml_oarchive, std::string>(boost::archive::xml_oarchive&, std::string const&) in QxSerialize_QByteArray.o
      void boost::archive::save_access::save_primitive<boost::archive::xml_oarchive, std::string>(boost::archive::xml_oarchive&, std::string const&) in QxSerialize_QObject.o
      void boost::archive::save_access::save_primitive<boost::archive::xml_oarchive, std::string>(boost::archive::xml_oarchive&, std::string const&) in QxSerialize_QString.o
  "boost::archive::xml_oarchive_impl<boost::archive::xml_oarchive>::xml_oarchive_impl(std::ostream&, unsigned int)", referenced from:
      boost::archive::xml_oarchive::xml_oarchive(std::ostream&, unsigned int) in QxTools.o
  "boost::archive::basic_text_oprimitive<std::ostream>::~basic_text_oprimitive()", referenced from:
      boost::archive::xml_oarchive_impl<boost::archive::xml_oarchive>::~xml_oarchive_impl() in QxTools.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[1]: *** [lib/libQxOrmd.1.3.2.dylib] Error 1
make: *** [debug] Error 2
12:07:49: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project QxOrm (kit: Desktop Qt 5.4.1 clang 64bit)
When executing step "Make"


I'm unable to access the forum discussion on the qt forums (https://qt-project.org/forums/viewthread/35646) because of some DDoS protection

I'm wondering if I've built boost properly - or whether my Qt Creator set up is a bit screwy (using QtCreator 3.3.2 with Qt 5.4.1). One page I've read suggested tweaking the boost build process to include compiler/linker flag --stdlib=libc++, I'm not certain this helped

Setting QMAKE_MACOSX_DEPLOYMENT_TARGET and macx:QMAKE_MAC_SDK qmake variables introduces more linker errors (unable to find function references in the standard library)

Hope somebody can help

TIA
hempnall
 
Posts: 1
Joined: Wed Aug 19, 2015 9:06 am

Re: Build QxOrm 1.3.2 on OSX 10.10 error

Postby qxorm » Thu Aug 20, 2015 7:19 pm

I'm unable to access the forum discussion on the qt forums (https://qt-project.org/forums/viewthread/35646) because of some DDoS protection

Try this link : http://forum.qt.io/topic/35065/solved-q ... ure-x86_64
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am


Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 6 guests

cron