lukedg97 commented on issue #45642:
URL: https://github.com/apache/arrow/issues/45642#issuecomment-2711935905

   @amoeba thank you for your response and sorry for the late reply. Your 
changes and a bit of tinkering got us to a build. thank you.
   
   I am now using this initial cmake:
   ```
   cmake \
       -S arrow/cpp \
       -B arrow/cpp/build \
       -GNinja \
       -DCMAKE_BUILD_TYPE=Release \
       -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \
       -DARROW_BUILD_STATIC=ON \
       -DARROW_CUDA=OFF \
       -DARROW_FLIGHT=ON \
       -DARROW_PARQUET=ON \
       -DARROW_CSV=ON \
       -DARROW_JSON=ON \
       -DARROW_FILESYSTEM=ON \
       -DARROW_MIMALLOC=OFF \
       -DPARQUET_REQUIRE_ENCRYPTION=OFF
   ```
   
   however we are now running into an issue at runtime:
   ```
   PythonKit/Python.swift:707: Fatal error: 'try!' expression unexpectedly 
raised an error: Python exception: 
dlopen(/Users/.../Xcode/DerivedData/.../Build/Products/Debug/myapp.app/Contents/Resources/app_packages/pyarrow/lib.cpython-313-darwin.so,
 0x0002): Library not loaded: /opt/homebrew/opt/re2/lib/libre2.11.dylib
     Referenced from: <B9D8AAD9-F0C1-3F50-915C-118638A08BFE> 
/Users/.../Xcode/DerivedData/.../Build/Products/Debug/myapp.app/Contents/Resources/app_packages/pyarrow/libarrow.2000.dylib
     Reason: tried: 
'/Users/.../Xcode/DerivedData/.../Build/Products/Debug/libre2.11.dylib' (no 
such file), '/usr/lib/system/introspection/libre2.11.dylib' (no such file, not 
in dyld cache), '/opt/homebrew/opt/re2/lib/libre2.11.dylib' (file system 
sandbox blocked open()), 
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/re2/lib/libre2.11.dylib' 
(no such file), '/opt/homebrew/opt/re2/lib/libre2.11.dylib' (file system 
sandbox blocked open())
   Traceback:
     File 
"/Users/.../Xcode/DerivedData/.../Build/Products/Debug/myapp.app/Contents/Resources/app/server.py",
 line 7, in <module>
       import pyarrow.flight as flight
     File 
"/Users/.../Xcode/DerivedData/.../Build/Products/Debug/myapp.app/Contents/Resources/app_packages/pyarrow/__init__.py",
 line 61, in <module>
       import pyarrow.lib as _lib
   ```
   
   I expect I need to package the built arrow dist into my app as well and I 
will be investigating that tomorrow. 
   
   Again thank you for your help and let me know if you have any insight here.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to