Atharex commented on issue #10222:
URL: https://github.com/apache/arrow/issues/10222#issuecomment-832486934


   Thanks @edponce this solved the c++ code building issues! 
   My mistake was also running download_dependencies.sh through the bash 
interpreter, so the exports were never saved in the current session.
   
   I did notice also that if I run cmake with 
`-DCMAKE_INSTALL_PREFIX=/usr/local/lib/arrow`
   Then I cannot later build the python wheel, as it complains it cannot find 
ARROW_INCLUDE_DIR and ARROW_LIB_DIR
   
   ```
   cd $ARROW_HOME/python
   export PYARROW_WITH_PARQUET=1
   export PYARROW_WITH_CUDA=1
   python3 setup.py build_ext -j 24 --build-type=release  --bundle-arrow-cpp 
bdist_wheel
   
   ```
   
   ```
   Call Stack (most recent call first):
     
/opt/cmake-3.20.1-linux-x86_64/share/cmake-3.20/Modules/FindPkgConfig.cmake:70 
(find_package_handle_standard_args)
     cmake_modules/FindArrow.cmake:39 (include)
     cmake_modules/FindArrowPython.cmake:46 (find_package)
     CMakeLists.txt:210 (find_package)
   This warning is for project developers.  Use -Wno-dev to suppress it.
   
   -- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1") 
   CMake Error at 
/opt/cmake-3.20.1-linux-x86_64/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230
 (message):
     Could NOT find Arrow (missing: ARROW_INCLUDE_DIR ARROW_LIB_DIR
     ARROW_FULL_SO_VERSION ARROW_SO_VERSION)
   Call Stack (most recent call first):
     
/opt/cmake-3.20.1-linux-x86_64/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594
 (_FPHSA_FAILURE_MESSAGE)
     cmake_modules/FindArrow.cmake:412 (find_package_handle_standard_args)
     cmake_modules/FindArrowPython.cmake:46 (find_package)
     CMakeLists.txt:210 (find_package)
   ```
   
   
   
   When I use `-DCMAKE_INSTALL_PREFIX=$ARROW_HOME` then the python wheel build 
finds all those variables and works normally. Any ideas why that would be the 
case?


-- 
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to