xcode5 build problem

123 views
Skip to first unread message

philippe mondon

unread,
Oct 28, 2013, 6:57:08 PM10/28/13
to lib...@googlegroups.com
hi,
i just downloaded libkml code and tried to build the static and dynamic libraries with xcode 5 on mavericks and i get the following errors :


--------------

...etc


CompileC /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/Objects-normal/x86_64/file_posix.o /Users/Macphil1/Documents/Developpement/suunto/libkml-1.2.0/src/kml/base/file_posix.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

    cd /Users/Macphil1/Documents/Developpement/suunto/libkml-1.2.0/xcode/LibKML

    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 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -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-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.9 -g -fvisibility-inlines-hidden -Wno-sign-conversion -iquote /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/LibKML-generated-files.hmap -I/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/LibKML-own-target-headers.hmap -I/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/LibKML-all-target-headers.hmap -iquote /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/LibKML-project-headers.hmap -I/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Products/Debug/include -I../../src -I../../third_party/boost_1_34_1 -I../../third_party/uriparser-0.7.5/include -I../../third_party/zlib-1.2.3/contrib -I../../src -I../../third_party/boost_1_34_1 -I../../third_party/uriparser-0.7.5/include -I../../third_party/zlib-1.2.3/contrib -I/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/DerivedSources/x86_64 -I/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/DerivedSources -F/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Products/Debug -MMD -MT dependencies -MF /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/Objects-normal/x86_64/file_posix.d --serialize-diagnostics /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/Objects-normal/x86_64/file_posix.dia -c /Users/Macphil1/Documents/Developpement/suunto/libkml-1.2.0/src/kml/base/file_posix.cc -o /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/Objects-normal/x86_64/file_posix.o


/Users/Macphil1/Documents/Developpement/suunto/libkml-1.2.0/src/kml/base/file_posix.cc:57:10: error: use of undeclared identifier 'unlink'; did you mean 'inline'?

  return unlink(filepath.c_str()) == 0;

         ^

/Users/Macphil1/Documents/Developpement/suunto/libkml-1.2.0/src/kml/base/file_posix.cc:69:3: error: use of undeclared identifier 'close'

  close(fd);

  ^

2 errors generated.


CompileC /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/Objects-normal/x86_64/find.o /Users/Macphil1/Documents/Developpement/suunto/libkml-1.2.0/src/kml/engine/find.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

    cd /Users/Macphil1/Documents/Developpement/suunto/libkml-1.2.0/xcode/LibKML

    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 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -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-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.9 -g -fvisibility-inlines-hidden -Wno-sign-conversion -iquote /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/LibKML-generated-files.hmap -I/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/LibKML-own-target-headers.hmap -I/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/LibKML-all-target-headers.hmap -iquote /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/LibKML-project-headers.hmap -I/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Products/Debug/include -I../../src -I../../third_party/boost_1_34_1 -I../../third_party/uriparser-0.7.5/include -I../../third_party/zlib-1.2.3/contrib -I../../src -I../../third_party/boost_1_34_1 -I../../third_party/uriparser-0.7.5/include -I../../third_party/zlib-1.2.3/contrib -I/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/DerivedSources/x86_64 -I/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/DerivedSources -F/Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Products/Debug -MMD -MT dependencies -MF /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/Objects-normal/x86_64/find.d --serialize-diagnostics /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/Objects-normal/x86_64/find.dia -c /Users/Macphil1/Documents/Developpement/suunto/libkml-1.2.0/src/kml/engine/find.cc -o /Users/Macphil1/Library/Developer/Xcode/DerivedData/LibKML-arrpvuxybcxpxmeeklelbllchlyd/Build/Intermediates/LibKML.build/Debug/LibKML.build/Objects-normal/x86_64/find.o

 ---------------

does anyone has an idea about that.


Thanks,

regards,

Philippe

Yuchen Zhong

unread,
Jan 5, 2015, 10:03:31 AM1/5/15
to lib...@googlegroups.com
I have the same issue trying to compile libkml on Mac Yosemite. 
I installed libKML with homebrew by the end. 

You could give it a try as well.

brew install libkml
 
Yuchen
Reply all
Reply to author
Forward
0 new messages