faithfracture / Apple-Boost-BuildScript

Script for building Boost for Apple platforms (iOS, iOS Simulator, tvOS, tvOS Simulator, OS X)
279 stars 111 forks source link

Undefined symbols for architecture arm64 #9

Closed ygx2011 closed 7 years ago

ygx2011 commented 7 years ago

Hello,

I got a problem like this,

Undefined symbols for architecture arm64: "typeinfo for boost::archive::detail::basic_pointer_oserializer", referenced from:

and I used serialization libraries with LLVM 8.0 - c++, any solutions for this?

Thank you.

faithfracture commented 7 years ago

Can you post the parameters you are using when running the script?

The serialization library is not built with this script by default. You need to be sure to override the default libraries by passing serialization option to the --boost-libs (along with whatever other libraries you need built), or by manually editing the BOOST_LIBS variable at the top of the script.

ygx2011 commented 7 years ago

Thank you, I found that yesterday, and I added serialization option to the script, it worked.

faithfracture commented 7 years ago

Awesome!

velthune commented 5 years ago

I had same problem with boost thread library, I run the script in this way and all works great:

./boost.sh -ios --boost-version 1.70.0 --boost-libs thread

@faithfracture you should improve README file a little bit, btw great job man!