GithubHelp home page GithubHelp logo

Comments (13)

mjansson avatar mjansson commented on May 28, 2024

Did a bunch of fixes for compilation for OSX/iOS targets. Will do additional platform updates soonish.

from foundation_lib.

mjansson avatar mjansson commented on May 28, 2024

foundation library compiles for both osx and ios now, additional updates for tests to be done

from foundation_lib.

JoeCreoterra avatar JoeCreoterra commented on May 28, 2024

I've been insanely busy crunching but checked it out again and the only build errors I receive on either OSX or iOS now are the redecl typedef of uuid_t

from foundation_lib.

mjansson avatar mjansson commented on May 28, 2024

Could you post compilation output? I get no error on OSX or iOS

from foundation_lib.

JoeCreoterra avatar JoeCreoterra commented on May 28, 2024

Out of curiosity which OSX/XCode version are you compiling against?

Compile environment.c

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/uuid/uuid.h:42:25: Typedef redefinition with different types ('__darwin_uuid_t' (aka 'unsigned char [16]') vs 'uint128_t')

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/uuid/uuid.h:64:6: Conflicting types for 'uuid_generate_random'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/uuid/uuid.h:65:6: Conflicting types for 'uuid_generate_time'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/uuid/uuid.h:67:5: Conflicting types for 'uuid_is_null'

from foundation_lib.

mjansson avatar mjansson commented on May 28, 2024

pushed another fix

from foundation_lib.

JoeCreoterra avatar JoeCreoterra commented on May 28, 2024

didn't get a chance to look into it yet, but I just grabbed latest and tried to compile for OSX/iOS, resulted in exact same errors

from foundation_lib.

mjansson avatar mjansson commented on May 28, 2024

Could you expand the build log to get the include hierarchy output as well? I'm stuck on a rather old XCode/SDK combo at the moment.

from foundation_lib.

JoeCreoterra avatar JoeCreoterra commented on May 28, 2024

I had some time to quickly look at it last night and found the issue in environment.c ... there is an #elif FOUNDATION_PLATFORM_POSIX that includes < pwd.h > and this is where the clash occurs. By omitting this for apple builds the library builds without error.

from foundation_lib.

mjansson avatar mjansson commented on May 28, 2024

Moved pwd.h to posix.h, should fix that issue

from foundation_lib.

JoeCreoterra avatar JoeCreoterra commented on May 28, 2024

Mac build now builds with zero errors. iOS down to 6 errors relating to the same issue in system.m regarding the UIKit/UIAlertView.h include.. unknown types/properties in apples headers such as UIGeometry.h / UITextField.h, etc. Haven't had time to look at it yet but I'm hoping to go over it tonight.

from foundation_lib.

mjansson avatar mjansson commented on May 28, 2024

Restructured includes a bit to fix this. Main problem is that system headers include Foundation/Foundation.h which maps to our (lowercase) foundation/foundation.h

from foundation_lib.

mjansson avatar mjansson commented on May 28, 2024

OSX/iOS builds should now compile cleanly on XCode 5, including initial support for arm64

from foundation_lib.

Related Issues (20)

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.