Giter Club home page Giter Club logo

Comments (5)

mgrebenets avatar mgrebenets commented on August 20, 2024

I'm not using thread library in my projects, so I don't know if there're problems when linking framework into the project, but I know that it builds with thread. If by any chance you don't use thread library, then it's safe to remove it from the list of libs (BOOST_LIBS).

I've built is successfully both on OSX 10.8 and 10.9 using Xcode 5.
In my case, the Xcode installs were "clean", meaning I never had Xcode older that version 4 on any of those machines. I suspect the way they used to install Xcode 3 might cause some strange behavior. Some people have had successful build just by trying it on another machine.

I just tried to build the framework for 1.54.0 with serialization, system and thread libraries and c++11 flags.
I have seen same "No such file or directory" message for libboost_thread, however, I took the framework and plugged it into the demo project and tried some threading code. It works fine, I tried it on iPad simulator (i386), then on iPad Retina simulator (x86_64), and finally on the iPad Mini device (armv7s) running iOS 7.

Probably there are some important linker settings in Xcode project to make it work.
Have a look at the demo project, hope it helps.

from boost-xcode5-iosx.

dread-pirate-bob avatar dread-pirate-bob commented on August 20, 2024

Thanks @mgrebenets for the awesome script and your quick debugging! Unfortunately I'm stuck with a 3rd party library that depends on boost_thread and boost_system. Not sure if this helps but I can cure the "no symbols found for architecture armv7/armv7s" error by changing Build Settings->C++ Standard Library to "libstdc++(GNU C++ standard library) but then I get a lexical preprocessor issue: file not found.

From what I've read, cinttypes is a strange beast and has been bundled with some C++ libraries but in other C++ libraries they are packaged in the /tr1 directory. Here's my latest log:

$ ./boost.sh --version 1.53.0 --with-c++11
-----

BOOST_VERSION:     1.53.0
BOOST_VERSION_SFX: 1_53_0
BOOST_LIBS:         thread system
SRCDIR:            /Users/george/desktop/ruby-framework-scripts/boost-xcode5-iosx/src
BOOST_SRC:         /Users/george/desktop/ruby-framework-scripts/boost-xcode5-iosx/src/boost_1_53_0
IOSBUILDDIR:       /Users/george/desktop/ruby-framework-scripts/boost-xcode5-iosx/ios/build
OSXBUILDDIR:       /Users/george/desktop/ruby-framework-scripts/boost-xcode5-iosx/osx/build
PREFIXDIR:         /Users/george/desktop/ruby-framework-scripts/boost-xcode5-iosx/ios/prefix
IOSFRAMEWORKDIR:   /Users/george/desktop/ruby-framework-scripts/boost-xcode5-iosx/ios/framework
OSXFRAMEWORKDIR:   /Users/george/desktop/ruby-framework-scripts/boost-xcode5-iosx/osx/framework
IPHONE_SDKVERSION: 7.0
XCODE_ROOT:        /Applications/Xcode.app/Contents/Developer
COMPILER:          clang++
CXX_FLAGS:         -std=c++11 -stdlib=libc++
CXX_LINK_FLAGS:    -stdlib=libc++
CLEAN:             0
BUILD_IOS:         1
BUILD_OSX:         1

from boost-xcode5-iosx.

mgrebenets avatar mgrebenets commented on August 20, 2024

Right, if you build boost with --with-c++11, then you'll have to set same flags in Xcode.
It's in Troubleshooting section of README (https://github.com/mgrebenets/boost-xcode5-iosx).

If you depend some 3rd party libs, those might be built without c++11 flags, in that case you'd better not use c++11 flags.
Try to build boost with no --with-c++11 and remove all c++11 settings in Xcode (just change clang compiler settings to defaults), that might work.

from boost-xcode5-iosx.

dread-pirate-bob avatar dread-pirate-bob commented on August 20, 2024

You're definitely on to something, the 3rd party library is almost a year old now. I'll try a fresh checkout and some "legacy" settings to see if it will get along with my project. What do you think a good setup would be?

Compiler: clang
C++ Std lib: ???
CXX or Linker Flags?
iOS Version: 6.1 (I compiled a working copy in XCode 4 originally but do you think it matters?)

Sorry I opened an issue for this, I had it as a question at first but a restart of the browser went back to the default and I didn't notice until I posted it.

from boost-xcode5-iosx.

mgrebenets avatar mgrebenets commented on August 20, 2024

I'd look into Xcode's "Apple LLVM 5.0 - Language - C++" section in project Build Settings.
Have a look at the options available for language dialect (CLANG_CXX_LANGUAGE_STANDARD) and standard library (CLANG_CXX_LIBRARY). Maybe your 3rd party code was built with gnu compiler, then one of the GNU options would work. I believe you can modify boost.sh and set CXX_FLAGS and CXX_LINK_FLAGS to things like gnu++98, c++98 or use no flags at all (Compiler Default).

from boost-xcode5-iosx.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.