You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by Hatem Helal <Ha...@mathworks.co.uk> on 2019/01/04 11:49:19 UTC

Building arrow using Xcode on Mac OS

Hi all,

I wonder if anyone on this list has tried building arrow using Xcode on Mac OS?  I've used "cmake -G Xcode" to generate a project but calling xcodebuild fails.  I've copied the syndrome below in case anyone has seen this before.  Another observation is that the dylib's aren't generated by the build but the object files are.  I wonder if there is a missing target?  I'm new to using cmake so I'm not sure if there are some additional options that might be useful.

Thanks,

Hatem

PhaseScriptExecution CMake\ PostBuild\ Rules xcode-build/src/arrow/arrow.build/Debug/arrow_shared.build/Script-9AFD4DDD88034C5F965570DF.sh
    cd /Users/hhelal/Documents/code/arrow/cpp
    /bin/sh -c /Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/arrow/arrow.build/Debug/arrow_shared.build/Script-9AFD4DDD88034C5F965570DF.sh
echo "Creating symlinks"
Creating symlinks
/usr/local/Cellar/cmake/3.12.4/bin/cmake -E cmake_symlink_library /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.12.0.0.dylib /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.12.dylib /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.dylib
CMake Error: cmake_symlink_library: System Error: No such file or directory
CMake Error: cmake_symlink_library: System Error: No such file or directory
make: *** [arrow_shared_buildpart_0] Error 1

** BUILD FAILED **


Re: Building arrow using Xcode on Mac OS

Posted by Hatem Helal <Ha...@mathworks.co.uk>.
Thanks Uwe!

I created the following issue:

https://issues.apache.org/jira/browse/ARROW-4156

Unfortunately, my terminal history buffer was too small for the entire output but I'm running it again now and will upload a text file with the entire history for you to debug.  Let me know if there is anything I can try on my laptop too.

Hatem




On 04/01/2019, 12:00, "Uwe L. Korn" <uw...@xhochy.com> wrote:

    Hello Hatem,
    
    I don't know of anyone that has used Xcode to build Arrow yet. We're normally using `-GNinja` or the default make generator to build it. As I have a Mac, I'll have a look at this but "cmake -G Xcode" is not running for me at the moment. To help us debug this, can you open a JIRA on https://issues.apache.org/jira/projects/ARROW and post your "cmake -G Xcode" output there. The JIRA will be helpful for other people that also run into this issue.
    
    Uwe
    
    On Fri, Jan 4, 2019, at 12:49 PM, Hatem Helal wrote:
    > Hi all,
    > 
    > I wonder if anyone on this list has tried building arrow using Xcode on 
    > Mac OS?  I've used "cmake -G Xcode" to generate a project but calling 
    > xcodebuild fails.  I've copied the syndrome below in case anyone has 
    > seen this before.  Another observation is that the dylib's aren't 
    > generated by the build but the object files are.  I wonder if there is a 
    > missing target?  I'm new to using cmake so I'm not sure if there are 
    > some additional options that might be useful.
    > 
    > Thanks,
    > 
    > Hatem
    > 
    > PhaseScriptExecution CMake\ PostBuild\ Rules xcode-build/src/arrow/
    > arrow.build/Debug/arrow_shared.build/Script-9AFD4DDD88034C5F965570DF.sh
    >     cd /Users/hhelal/Documents/code/arrow/cpp
    >     /bin/sh -c /Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/
    > arrow/arrow.build/Debug/arrow_shared.build/
    > Script-9AFD4DDD88034C5F965570DF.sh
    > echo "Creating symlinks"
    > Creating symlinks
    > /usr/local/Cellar/cmake/3.12.4/bin/cmake -E cmake_symlink_library /
    > Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.
    > 12.0.0.dylib /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/
    > Debug/libarrow.12.dylib /Users/hhelal/Documents/code/arrow/cpp/xcode-
    > build/debug/Debug/libarrow.dylib
    > CMake Error: cmake_symlink_library: System Error: No such file or 
    > directory
    > CMake Error: cmake_symlink_library: System Error: No such file or 
    > directory
    > make: *** [arrow_shared_buildpart_0] Error 1
    > 
    > ** BUILD FAILED **
    > 
    


Re: Building arrow using Xcode on Mac OS

Posted by "Uwe L. Korn" <uw...@xhochy.com>.
Hello Hatem,

I don't know of anyone that has used Xcode to build Arrow yet. We're normally using `-GNinja` or the default make generator to build it. As I have a Mac, I'll have a look at this but "cmake -G Xcode" is not running for me at the moment. To help us debug this, can you open a JIRA on https://issues.apache.org/jira/projects/ARROW and post your "cmake -G Xcode" output there. The JIRA will be helpful for other people that also run into this issue.

Uwe

On Fri, Jan 4, 2019, at 12:49 PM, Hatem Helal wrote:
> Hi all,
> 
> I wonder if anyone on this list has tried building arrow using Xcode on 
> Mac OS?  I've used "cmake -G Xcode" to generate a project but calling 
> xcodebuild fails.  I've copied the syndrome below in case anyone has 
> seen this before.  Another observation is that the dylib's aren't 
> generated by the build but the object files are.  I wonder if there is a 
> missing target?  I'm new to using cmake so I'm not sure if there are 
> some additional options that might be useful.
> 
> Thanks,
> 
> Hatem
> 
> PhaseScriptExecution CMake\ PostBuild\ Rules xcode-build/src/arrow/
> arrow.build/Debug/arrow_shared.build/Script-9AFD4DDD88034C5F965570DF.sh
>     cd /Users/hhelal/Documents/code/arrow/cpp
>     /bin/sh -c /Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/
> arrow/arrow.build/Debug/arrow_shared.build/
> Script-9AFD4DDD88034C5F965570DF.sh
> echo "Creating symlinks"
> Creating symlinks
> /usr/local/Cellar/cmake/3.12.4/bin/cmake -E cmake_symlink_library /
> Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.
> 12.0.0.dylib /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/
> Debug/libarrow.12.dylib /Users/hhelal/Documents/code/arrow/cpp/xcode-
> build/debug/Debug/libarrow.dylib
> CMake Error: cmake_symlink_library: System Error: No such file or 
> directory
> CMake Error: cmake_symlink_library: System Error: No such file or 
> directory
> make: *** [arrow_shared_buildpart_0] Error 1
> 
> ** BUILD FAILED **
> 

Re: Building arrow using Xcode on Mac OS

Posted by "Uwe L. Korn" <ma...@uwekorn.com>.
Hello Hatem,

I don't know of anyone that has used Xcode to build Arrow yet. We're normally using `-GNinja` or the default make generator to build it. As I have a Mac, I'll have a look at this but "cmake -G Xcode" is not running for me at the moment. To help us debug this, can you open a JIRA on https://issues.apache.org/jira/projects/ARROW and post your "cmake -G Xcode" output there. The JIRA will be helpful for other people that also run into this issue.

Uwe

On Fri, Jan 4, 2019, at 12:49 PM, Hatem Helal wrote:
> Hi all,
> 
> I wonder if anyone on this list has tried building arrow using Xcode on 
> Mac OS?  I've used "cmake -G Xcode" to generate a project but calling 
> xcodebuild fails.  I've copied the syndrome below in case anyone has 
> seen this before.  Another observation is that the dylib's aren't 
> generated by the build but the object files are.  I wonder if there is a 
> missing target?  I'm new to using cmake so I'm not sure if there are 
> some additional options that might be useful.
> 
> Thanks,
> 
> Hatem
> 
> PhaseScriptExecution CMake\ PostBuild\ Rules xcode-build/src/arrow/
> arrow.build/Debug/arrow_shared.build/Script-9AFD4DDD88034C5F965570DF.sh
>     cd /Users/hhelal/Documents/code/arrow/cpp
>     /bin/sh -c /Users/hhelal/Documents/code/arrow/cpp/xcode-build/src/
> arrow/arrow.build/Debug/arrow_shared.build/
> Script-9AFD4DDD88034C5F965570DF.sh
> echo "Creating symlinks"
> Creating symlinks
> /usr/local/Cellar/cmake/3.12.4/bin/cmake -E cmake_symlink_library /
> Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/Debug/libarrow.
> 12.0.0.dylib /Users/hhelal/Documents/code/arrow/cpp/xcode-build/debug/
> Debug/libarrow.12.dylib /Users/hhelal/Documents/code/arrow/cpp/xcode-
> build/debug/Debug/libarrow.dylib
> CMake Error: cmake_symlink_library: System Error: No such file or 
> directory
> CMake Error: cmake_symlink_library: System Error: No such file or 
> directory
> make: *** [arrow_shared_buildpart_0] Error 1
> 
> ** BUILD FAILED **
>