How to setup CLion IDE with custom libc++ and clang? - clion

CLion website says they support "libc++" but there is no information on how to set up CLlion to use libc++. I'm using Ubuntu 16 and downloaded libc++ source and built it. So I want to use this specific version.
Here's what I've tried so far:
So I have now libc++ binaries. Then I created simple hello world project and changed its CMakeLists.txt to use my custom libc++. However when I try to run the project, I get error:
/home/shitals/CLionProjects/JsonTest/cmake-build-debug/JsonTest: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory
Here's my project cmake to force using my custom libc++.
cmake_minimum_required(VERSION 3.8)
project(JsonTest)
set(CMAKE_CXX_STANDARD 14)
#libcxx which we will use with specific version of clang
SET(LIBCXX_INC_PATH /home/shitals/mylibc++/include/c++/v1)
SET(LIBCXX_LIB_PATH /home/shitals/mylibc++/lib)
set(CMAKE_C_COMPILER clang-3.9)
set(CMAKE_CXX_COMPILER clang++-3.9)
set(CMAKE_CXX_FLAGS "\
-std=c++14 -ggdb -Wall -Wextra -Wstrict-aliasing -Wunreachable-code -Wcast-qual -Wctor-dtor-privacy \
-Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-include-dirs -Wswitch-default \
-Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wstrict-overflow=5 -Wswitch-default -Wundef \
-Wno-variadic-macros -Wno-parentheses -Wno-unused-function -Wno-unused -Wno-documentation -fdiagnostics-show-option -ferror-limit=10 \
-pthread ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "\
-nostdinc++ -isystem ${LIBCXX_INC_PATH} \
-D__CLANG__ ${CMAKE_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "\
${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++ -lc++abi -lm -lc -lgcc_s -lgcc -ldl \
-L ${LIBCXX_LIB_PATH}")
set(SOURCE_FILES main.cpp)
add_executable(JsonTest ${SOURCE_FILES})
My compiled libc++ binaries does have libc++.so.1 file.

Ok... so below CMakeLists.txt in project root does seem to work:
cmake_minimum_required(VERSION 3.8)
project(JsonTest)
set(CMAKE_CXX_STANDARD 14)
#libcxx which we will use with specific version of clang
SET(LIBCXX_INC_PATH /home/shitals/GitHubSrc/AirSim/llvm-build/output/include/c++/v1)
SET(LIBCXX_LIB_PATH /home/shitals/GitHubSrc/AirSim/llvm-build/output/lib)
set(CMAKE_C_COMPILER clang-3.9)
set(CMAKE_CXX_COMPILER clang++-3.9)
set(CMAKE_CXX_FLAGS "\
-std=c++14 -ggdb -Wall -Wextra -Wstrict-aliasing -Wunreachable-code -Wcast-qual -Wctor-dtor-privacy \
-Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-include-dirs -Wswitch-default \
-Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wstrict-overflow=5 -Wswitch-default -Wundef \
-Wno-variadic-macros -Wno-parentheses -Wno-unused-function -Wno-unused -Wno-documentation -fdiagnostics-show-option -ferror-limit=10 \
-pthread ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "\
-nostdinc++ -isystem ${LIBCXX_INC_PATH} \
-D__CLANG__ ${CMAKE_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "\
${CMAKE_EXE_LINKER_FLAGS} -v -nodefaultlibs -lc++ -lc++abi -lm -lc -lgcc_s -lgcc -ldl \
-L ${LIBCXX_LIB_PATH}")
LINK_DIRECTORIES(${LIBCXX_LIB_PATH})
set(SOURCE_FILES main.cpp)
add_executable(JsonTest ${SOURCE_FILES})
TARGET_LINK_LIBRARIES(JsonTest c++ c++abi)

Related

'Cordova/CDV.h' file not found while building Simulator App version with xcodebuild

I have an app built with Phonegap that successfully builds and archives in Xcode IDE, but when i try to make a Simulator App version within console, build fails.
I have already tried to add "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" and "$(CORDOVALIB)/Classes" to Header Search Paths-s, also have tried to remove and add ios platform, tried to update all plugins - nothing worked for me.
Command that I try to execute: xcodebuild -arch i386 -sdk iphonesimulator13.2 (this SDK exists).
Xcode version - 11.3.1
Logs (not full because of stackoverflow chars limit, but there are all errors):
Build settings from command line:
ARCHS = i386
SDKROOT = iphonesimulator13.2
note: Using new build system
note: Planning build
note: Constructing build description
CreateBuildDirectory /Users/Mark/Documents/coins/ios/platforms/ios/build (in target 'Peero' from project 'Peero')
cd /Users/Mark/Documents/coins/ios/platforms/ios
builtin-create-build-directory /Users/Mark/Documents/coins/ios/platforms/ios/build
CreateBuildDirectory /Users/Mark/Documents/coins/ios/platforms/ios/CordovaLib/build (in target 'CordovaLib' from project 'CordovaLib')
cd /Users/Mark/Documents/coins/ios/platforms/ios/CordovaLib
builtin-create-build-directory /Users/Mark/Documents/coins/ios/platforms/ios/CordovaLib/build
MkDir /Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator/Peero.app (in target 'Peero' from project 'Peero')
cd /Users/Mark/Documents/coins/ios/platforms/ios
/bin/mkdir -p /Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator/Peero.app
MkDir /Users/Mark/Documents/coins/ios/platforms/ios/CordovaLib/build/Release-iphonesimulator/include/Cordova (in target 'CordovaLib' from project 'CordovaLib')
cd /Users/Mark/Documents/coins/ios/platforms/ios/CordovaLib
/bin/mkdir -p /Users/Mark/Documents/coins/ios/platforms/ios/CordovaLib/build/Release-iphonesimulator/include/Cordova
WriteAuxiliaryFile /Users/Mark/Documents/coins/ios/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphonesimulator/CordovaLib.build/all-product-headers.yaml (in target 'CordovaLib' from project 'CordovaLib')
cd /Users/Mark/Documents/coins/ios/platforms/ios/CordovaLib
write-file /Users/Mark/Documents/coins/ios/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphonesimulator/CordovaLib.build/all-product-headers.yaml
skipped ...
CompileC /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKWebViewEngine+FileXhrFix.o /Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebviewxhrfix/CDVWKWebViewEngine+FileXhrFix.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Peero' from project 'Peero')
cd /Users/Mark/Documents/coins/ios/platforms/ios
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target i386-apple-ios10.0-simulator -fmessage-length=114 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DWK_WEB_VIEW_ONLY=1 -DWK_WEB_VIEW_ONLY=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-generated-files.hmap -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-own-target-headers.hmap -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-all-target-headers.hmap -iquote /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-project-headers.hmap -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator/usr/local/lib/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/UninstalledProducts/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator -I/Users/Mark/Documents/coins/ios/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/ -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/DerivedSources-normal/i386 -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/DerivedSources/i386 -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/DerivedSources -F/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator -include /Users/Mark/Documents/coins/ios/platforms/ios/build/SharedPrecompiledHeaders/SharedPrecompiledHeaders/11945214074210215168/Peero-Prefix.pch -MMD -MT dependencies -MF /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKWebViewEngine+FileXhrFix.d --serialize-diagnostics /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKWebViewEngine+FileXhrFix.dia -c /Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebviewxhrfix/CDVWKWebViewEngine+FileXhrFix.m -o /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKWebViewEngine+FileXhrFix.o
In file included from /Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebviewxhrfix/CDVWKWebViewEngine+FileXhrFix.m:9:
In file included from /Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebviewxhrfix/CDVWKWebViewEngine+FileXhrFix.h:9:
/Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewEngine.h:21:9: fatal error:
'Cordova/CDV.h' file not found
#import <Cordova/CDV.h>
^~~~~~~~~~~~~~~
1 error generated.
CompileC /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKWebViewEngine.o /Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewEngine.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Peero' from project 'Peero')
cd /Users/Mark/Documents/coins/ios/platforms/ios
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target i386-apple-ios10.0-simulator -fmessage-length=114 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DWK_WEB_VIEW_ONLY=1 -DWK_WEB_VIEW_ONLY=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-generated-files.hmap -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-own-target-headers.hmap -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-all-target-headers.hmap -iquote /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-project-headers.hmap -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator/usr/local/lib/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/UninstalledProducts/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator -I/Users/Mark/Documents/coins/ios/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/ -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/DerivedSources-normal/i386 -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/DerivedSources/i386 -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/DerivedSources -F/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator -include /Users/Mark/Documents/coins/ios/platforms/ios/build/SharedPrecompiledHeaders/SharedPrecompiledHeaders/11945214074210215168/Peero-Prefix.pch -MMD -MT dependencies -MF /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKWebViewEngine.d --serialize-diagnostics /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKWebViewEngine.dia -c /Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewEngine.m -o /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKWebViewEngine.o
In file included from /Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewEngine.m:20:
/Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewEngine.h:21:9: fatal error:
'Cordova/CDV.h' file not found
#import <Cordova/CDV.h>
^~~~~~~~~~~~~~~
CompileC /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKProcessPoolFactory.o /Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebview-engine/CDVWKProcessPoolFactory.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Peero' from project 'Peero')
cd /Users/Mark/Documents/coins/ios/platforms/ios
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target i386-apple-ios10.0-simulator -fmessage-length=114 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DWK_WEB_VIEW_ONLY=1 -DWK_WEB_VIEW_ONLY=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-generated-files.hmap -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-own-target-headers.hmap -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-all-target-headers.hmap -iquote /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Peero-project-headers.hmap -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator/usr/local/lib/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/UninstalledProducts/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator -I/Users/Mark/Documents/coins/ios/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/ -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/DerivedSources-normal/i386 -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/DerivedSources/i386 -I/Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/DerivedSources -F/Users/Mark/Documents/coins/ios/platforms/ios/build/Release-iphonesimulator -include /Users/Mark/Documents/coins/ios/platforms/ios/build/SharedPrecompiledHeaders/SharedPrecompiledHeaders/11945214074210215168/Peero-Prefix.pch -MMD -MT dependencies -MF /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKProcessPoolFactory.d --serialize-diagnostics /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKProcessPoolFactory.dia -c /Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebview-engine/CDVWKProcessPoolFactory.m -o /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKProcessPoolFactory.o
** BUILD FAILED **
The following build commands failed:
CompileC /Users/Mark/Documents/coins/ios/platforms/ios/build/Peero.build/Release-iphonesimulator/Peero.build/Objects-normal/i386/CDVWKWebViewEngine+FileXhrFix.o /Users/Mark/Documents/coins/ios/platforms/ios/Peero/Plugins/cordova-plugin-wkwebviewxhrfix/CDVWKWebViewEngine+FileXhrFix.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
What am I doing wrong?
I have pasted "$(OBJROOT)" with recursive to both Debug and Release in both Project and Target Header Search Paths - and it works. Hope it might be useful to any.

Build webkit error on mac os x 10.9: 'WebKitSystemInterface.h' file not found

When i try to build webkit-r164553 on mac os x 10.9 (xcode 5.0.2), I encounter the following build error:
/Users/justyn/develop/project/webkit/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm:33:9:
fatal error: 'WebKitSystemInterface.h' file not found
I have set Products and Intermediates location to WebKitBuild in workspace settings.
Does anyone know why this error happened?
Here is the full log:
CompileC
/Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/Objects-normal/x86_64/NetscapePluginHostManager.o
mac/Plugins/Hosted/NetscapePluginHostManager.mm normal x86_64
objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/justyn/develop/project/webkit/Source/WebKit
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x objective-c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++11 -stdlib=libc++ -fobjc-gc -Wno-trigraphs -fno-exceptions -fno-rtti -fpascal-strings -O0 -Werror -Wno-missing-field-initializers -Wmissing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DDISABLE_THREAD_CHECK -DENABLE_WEBKIT_UNSET_DYLD_FRAMEWORK_PATH -DENABLE_3D_RENDERING -DENABLE_BLOB -DENABLE_CACHE_PARTITIONING -DENABLE_CANVAS_PATH -DENABLE_CHANNEL_MESSAGING -DENABLE_CSS_BOX_DECORATION_BREAK -DENABLE_CSS_COMPOSITING -DENABLE_CSS_EXCLUSIONS -DENABLE_CSS_FILTERS -DENABLE_CSS_REGIONS -DENABLE_CSS_SHAPES -DENABLE_CSS_SHAPE_INSIDE -DENABLE_CSS_STICKY_POSITION -DENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED -DENABLE_CURSOR_VISIBILITY -DENABLE_DASHBOARD_SUPPORT -DENABLE_DETAILS_ELEMENT -DENABLE_DOM4_EVENTS_CONSTRUCTOR -DENABLE_ENCRYPTED_MEDIA -DENABLE_ENCRYPTED_MEDIA_V2 -DENABLE_FILTERS -DENABLE_FULLSCREEN_API -DENABLE_GEOLOCATION -DENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING -DENABLE_ICONDATABASE -DENABLE_INDEXED_DATABASE -DENABLE_INDIE_UI -DENABLE_INPUT_TYPE_COLOR -DENABLE_INPUT_TYPE_COLOR_POPOVER -DENABLE_INSPECTOR -DENABLE_LEGACY_CSS_VENDOR_PREFIXES -DENABLE_LEGACY_NOTIFICATIONS -DENABLE_LEGACY_VENDOR_PREFIXES -DENABLE_LEGACY_WEB_AUDIO -DENABLE_MATHML -DENABLE_MEDIA_CONTROLS_SCRIPT -DENABLE_MEDIA_SOURCE -DENABLE_METER_ELEMENT -DENABLE_MOUSE_CURSOR_SCALE -DENABLE_NOTIFICATIONS -DENABLE_PAGE_VISIBILITY_API -DENABLE_PDFKIT_PLUGIN -DENABLE_PROGRESS_ELEMENT -DENABLE_PROMISES -DENABLE_PUBLIC_SUFFIX_LIST -DENABLE_REQUEST_ANIMATION_FRAME -DENABLE_REMOTE_INSPECTOR -DENABLE_SHARED_WORKERS -DENABLE_SPEECH_SYNTHESIS -DENABLE_SQL_DATABASE -DENABLE_SUBPIXEL_LAYOUT -DENABLE_SUBTLE_CRYPTO -DENABLE_SVG_FONTS -DENABLE_TEMPLATE_ELEMENT -DENABLE_USERSELECT_ALL -DENABLE_VIDEO -DENABLE_VIDEO_TRACK -DENABLE_WEBGL -DENABLE_WEB_ANIMATIONS -DENABLE_WEB_AUDIO -DENABLE_WEB_SOCKETS -DENABLE_WORKERS -DENABLE_XHR_TIMEOUT -DENABLE_XSLT -DFRAMEWORK_NAME=WebKit -DWEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
-fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.9 -g -fvisibility-inlines-hidden -fno-threadsafe-statics -Wno-sign-conversion -I/Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/WebKit.hmap
-I/Users/justyn/develop/project/webkit/WebKitBuild/Debug/include -I/Users/justyn/develop/project/webkit/WebKitBuild/Debug/usr/local/include
-I/Users/justyn/develop/project/webkit/WebKitBuild/Debug/WebCore.framework/PrivateHeaders/ForwardingHeaders
-I/Users/justyn/develop/project/webkit/WebKitBuild/Debug/WebCore.framework/PrivateHeaders/icu
-I/Users/justyn/develop/project/webkit/WebKitBuild/Debug/DerivedSources/WebKit
-I/Users/justyn/develop/project/webkit/WebKitBuild/Debug/usr/local/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-I/Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/DerivedSources/x86_64
-I/Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/DerivedSources
-Wall -Wextra -Wchar-subscripts -Wextra-tokens -Wformat-security -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare -Wimplicit-fallthrough -F/Users/justyn/develop/project/webkit/WebKitBuild/Debug -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks
-iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Carbon.framework/Frameworks
-iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Quartz.framework/Frameworks
-iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks
-iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/PrivateFrameworks
-include /Users/justyn/develop/project/webkit/WebKitBuild/PrecompiledHeaders/WebKitPrefix-aldduogwfpkmuvaozdblpomjxfqh/WebKitPrefix.h
-MMD -MT dependencies -MF /Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/Objects-normal/x86_64/NetscapePluginHostManager.d
--serialize-diagnostics /Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/Objects-normal/x86_64/NetscapePluginHostManager.dia
-c /Users/justyn/develop/project/webkit/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm
-o /Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/Objects-normal/x86_64/NetscapePluginHostManager.o
/Users/justyn/develop/project/webkit/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm:33:9:
fatal error: 'WebKitSystemInterface.h' file not found
import "WebKitSystemInterface.h"
^
1 error generated.
I would assume you are referring to the trunk branch. The strange thing is that the bots are green for the revision you have checked out. See it at Apple Mavericks Debug or Apple Mavericks Release.
However, after a bit of debugging, I found that the file WebKitSystemInterface.h is located in <webkit_root>/WebKitLibraries/WebKitSystemInterface.h. Now, during the build phase, this file gets copied over to <webkit_root>/WebKitBuild/<Configuration>/usr/local/include/WebKitSystemInterface.h
I found a hack that copying over the file manually to the target folder gets you past the error. You can try it if you like till an actual fix lands in or someone having a deeper insight into the code helps you.
Let me know if it works for you or not.
Thanks !

Building GLSDK on Mac - platform.h not found

I am trying to build GLSDK on mac.
I downloaded the source, did premake4 xcode3 which created all project files for xcode.
Now I am trying to build everything, managed to build glload,glimg,glutil,glmesh just fine, I've got freeglut working from XQuartz package so I guess I don't need to build the one included with glsdk.
Problems start when I try to build glfw:
Wojciechs-MacBook-Air:glfw wojciechmusialkiewicz$ xcodebuild
=== BUILD NATIVE TARGET glfw OF PROJECT glfw WITH THE DEFAULT CONFIGURATION (Debug) ===
Check dependencies
CompileC obj/Debug/glfw.build/Objects-normal/x86_64/enable.o lib/enable.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_LIB -D_DEBUG -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -iquote /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-generated-files.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-own-target-headers.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-all-target-headers.hmap -iquote /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-project-headers.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/library/include -Iinclude -Ilib -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/DerivedSources/x86_64 -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/DerivedSources -F/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/library -MMD -MT dependencies -MF /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/enable.d --serialize-diagnostics /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/enable.dia -c /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/lib/enable.c -o /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/enable.o
In file included from /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/lib/enable.c:31:
lib/internal.h:92:10: fatal error: 'platform.h' file not found
#include "platform.h"
^
1 error generated.
CompileC obj/Debug/glfw.build/Objects-normal/x86_64/glext.o lib/glext.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_LIB -D_DEBUG -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -iquote /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-generated-files.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-own-target-headers.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-all-target-headers.hmap -iquote /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-project-headers.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/library/include -Iinclude -Ilib -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/DerivedSources/x86_64 -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/DerivedSources -F/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/library -MMD -MT dependencies -MF /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/glext.d --serialize-diagnostics /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/glext.dia -c /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/lib/glext.c -o /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/glext.o
In file included from /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/lib/glext.c:31:
lib/internal.h:92:10: fatal error: 'platform.h' file not found
#include "platform.h"
^
1 error generated.
CompileC obj/Debug/glfw.build/Objects-normal/x86_64/image.o lib/image.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_LIB -D_DEBUG -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -iquote /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-generated-files.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-own-target-headers.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-all-target-headers.hmap -iquote /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-project-headers.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/library/include -Iinclude -Ilib -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/DerivedSources/x86_64 -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/DerivedSources -F/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/library -MMD -MT dependencies -MF /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/image.d --serialize-diagnostics /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/image.dia -c /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/lib/image.c -o /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/image.o
In file included from /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/lib/image.c:56:
lib/internal.h:92:10: fatal error: 'platform.h' file not found
#include "platform.h"
^
1 error generated.
CompileC obj/Debug/glfw.build/Objects-normal/x86_64/fullscreen.o lib/fullscreen.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_LIB -D_DEBUG -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -iquote /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-generated-files.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-own-target-headers.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-all-target-headers.hmap -iquote /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/glfwD-project-headers.hmap -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/library/include -Iinclude -Ilib -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/DerivedSources/x86_64 -I/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/DerivedSources -F/Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/library -MMD -MT dependencies -MF /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/fullscreen.d --serialize-diagnostics /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/fullscreen.dia -c /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/lib/fullscreen.c -o /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/obj/Debug/glfw.build/Objects-normal/x86_64/fullscreen.o
In file included from /Users/wojciechmusialkiewicz/glsdk_0.4.4/glfw/lib/fullscreen.c:31:
lib/internal.h:92:10: fatal error: 'platform.h' file not found
#include "platform.h"
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC obj/Debug/glfw.build/Objects-normal/x86_64/enable.o lib/enable.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
CompileC obj/Debug/glfw.build/Objects-normal/x86_64/glext.o lib/glext.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
CompileC obj/Debug/glfw.build/Objects-normal/x86_64/image.o lib/image.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
CompileC obj/Debug/glfw.build/Objects-normal/x86_64/fullscreen.o lib/fullscreen.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
(4 failures)
I've tried googling what this platform.h file is,but there is no clear answer, not even if it's present on MacOS - I can't find it on my computer so I guess that it isn't.
Does anybody know what's going on?
There is a glfw.lua file in the glfw folder. Open that up and make a configuration for "macosx" and then add the directory "lib/cocoa" to the include directories. I also defined _GLFW_COCOA, _GLFW_NSGL, and _GLFW_USE_OPENGL

Building Blender 2.6x on Mac OS 10.8: 3DconnexionClient/ConnexionClientAPI.h'

I am trying to play around with the sources of blender and try to follow the tutorial on http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Mac
I am using the CMake+Xcode method which works up to the step where it says "select install" as target and hit the run button. After 3-4 minutes I get this error:
CompileC /Users/Jan/blender-build/cmake/intern/ghost/Blender.build/Debug/bf_intern_ghost.build/Objects-normal/x86_64/GHOST_NDOFManagerCocoa.o intern/ghost/intern/GHOST_NDOFManagerCocoa.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/Jan/blender-build/blender
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch x86_64 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-arc-abi -Wno-c++11-extensions "-DCMAKE_INTDIR=\"Debug\"" -D__SSE__ -D__MMX__ -D__SSE2__ -D__LITTLE_ENDIAN__ -DOPJ_STATIC -DWITH_INPUT_NDOF -DDEBUG -D_DEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.5 -g -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -I/Users/Jan/blender-build/cmake/lib/Debug/include -I/Users/Jan/blender-build/blender/intern/ghost -I/Users/Jan/blender-build/blender/intern/string -I/Users/Jan/blender-build/blender/source/blender/imbuf -I/Users/Jan/blender-build/blender/source/blender/makesdna -I/Users/Jan/blender-build/blender/extern/glew/include -I/Users/Jan/blender-build/cmake/intern/ghost/Blender.build/Debug/bf_intern_ghost.build/DerivedSources/x86_64 -I/Users/Jan/blender-build/cmake/intern/ghost/Blender.build/Debug/bf_intern_ghost.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/Jan/blender-build/cmake/lib/Debug -msse2 -msse -pipe -funsigned-char -DGHOST_COCOA -DUSE_QTKIT -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wuninitialized -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -fno-strict-aliasing -MMD -MT dependencies -MF /Users/Jan/blender-build/cmake/intern/ghost/Blender.build/Debug/bf_intern_ghost.build/Objects-normal/x86_64/GHOST_NDOFManagerCocoa.d --serialize-diagnostics /Users/Jan/blender-build/cmake/intern/ghost/Blender.build/Debug/bf_intern_ghost.build/Objects-normal/x86_64/GHOST_NDOFManagerCocoa.dia -c /Users/Jan/blender-build/blender/intern/ghost/intern/GHOST_NDOFManagerCocoa.mm -o /Users/Jan/blender-build/cmake/intern/ghost/Blender.build/Debug/bf_intern_ghost.build/Objects-normal/x86_64/GHOST_NDOFManagerCocoa.o
/Users/Jan/blender-build/blender/intern/ghost/intern/GHOST_NDOFManagerCocoa.mm:30:11: fatal error: '3DconnexionClient/ConnexionClientAPI.h' file not found
#include <3DconnexionClient/ConnexionClientAPI.h>
^
1 error generated.
As I own a SpaceNavigator, the drivers are installed and they are definitely found under /Library/Frameworks/3DconnexionClient.framework and also the searched header file is available.
I also tried to add the header+library search paths but that doesn't work either.
Any help on that?
Thank you!

Xcode 4.3 : Clang LLVM 1.0 Error

I would like to use SDL in a project, so I create a Cocoa Project and I add all Framework needed, but XCode tells me this :
ProcessPCH /Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/PrecompiledHeaders/projetCS2-Prefix-auneaovyjutgotajcmkllwxdblci/projetCS2-Prefix.pch.pth projetCS2/projetCS2-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/aurelien/Documents/Programmation/projetC-S2/projetCS2
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.7 -g -Wno-conversion -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -I/Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/projetCS2.build/Debug/projetCS2.build/projetCS2.hmap -I/Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Products/Debug/include -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/SDL_image.framework/Headers -I/Library/Frameworks/SDL_ttf.framework/Headers -I/Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/projetCS2.build/Debug/projetCS2.build/DerivedSources/i386 -I/Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/projetCS2.build/Debug/projetCS2.build/DerivedSources -F/Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Products/Debug -F/Library/Frameworks --serialize-diagnostics /Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/PrecompiledHeaders/projetCS2-Prefix-auneaovyjutgotajcmkllwxdblci/projetCS2-Prefix.pch.dia -c /Users/aurelien/Documents/Programmation/projetC-S2/projetCS2/projetCS2/projetCS2-Prefix.pch -o /Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/PrecompiledHeaders/projetCS2-Prefix-auneaovyjutgotajcmkllwxdblci/projetCS2-Prefix.pch.pth -MMD -MT dependencies -MF /Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/PrecompiledHeaders/projetCS2-Prefix-auneaovyjutgotajcmkllwxdblci/projetCS2-Prefix.pch.d
error: -fobjc-arc is not supported with fragile abi
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
The error says you are using ARC (automatic reference counting) on your project, and that it's not supported using the fragile ABI (simulator).
You are surely building your app for 32-bits.
ARC is 64-bits only.
Try to update your projects settings, and build for 64-bits instead of 32 or universal.

Resources