Comments (13)
Did a bunch of fixes for compilation for OSX/iOS targets. Will do additional platform updates soonish.
from foundation_lib.
foundation library compiles for both osx and ios now, additional updates for tests to be done
from foundation_lib.
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.
Could you post compilation output? I get no error on OSX or iOS
from foundation_lib.
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.
pushed another fix
from foundation_lib.
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.
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.
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.
Moved pwd.h to posix.h, should fix that issue
from foundation_lib.
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.
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.
OSX/iOS builds should now compile cleanly on XCode 5, including initial support for arm64
from foundation_lib.
Related Issues (20)
- Case insensible compare functions HOT 5
- Support for killing process HOT 4
- random32_range(0, 1) doesn't return 1 HOT 2
- Problems building foundation_lib using MSYS2 (MinGW) HOT 11
- What about closed/commercial project HOT 3
- build ? HOT 2
- Shared memory HOT 1
- Python3 compatibility HOT 6
- Lots of errors on Travis for macOS HOT 4
- Dead link HOT 1
- Thread Pool support HOT 1
- Consider remove PNaCl support HOT 6
- Why this library? Why C for game? HOT 2
- Maybe a bug in POSIX fs_is_file HOT 2
- Question: why use objectmap for refcount objects HOT 5
- tests crash on VS2013 when building as debug and release HOT 7
- CMake support? HOT 2
- Typo HOT 1
- Loading library from relative directory doesn't work HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foundation_lib.