wgtmac commented on issue #36026:
URL: https://github.com/apache/arrow/issues/36026#issuecomment-1997904079

   I tried to reproduce it on my Windows PC following the guide 
https://arrow.apache.org/docs/developers/python.html#building-on-windows
   
   Following commands were executed successfully and arrow cpp library was 
installed.
   ```
   "E:\Program Files\Microsoft Visual 
Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
   
   conda create -y -n pyarrow-dev -c conda-forge ^
         --file arrow\ci\conda_env_cpp.txt ^
         --file arrow\ci\conda_env_python.txt ^
         --file arrow\ci\conda_env_gandiva.txt ^
         python=3.12
   conda activate pyarrow-dev
   
   pushd arrow\cpp\build
   set ARROW_HOME=%CONDA_PREFIX%\Library
   cmake -G "Visual Studio 17 2022" -A x64 ^
         -DCMAKE_INSTALL_PREFIX=%ARROW_HOME% ^
         -DCMAKE_UNITY_BUILD=ON ^
         -DARROW_CXXFLAGS="/WX /MP" ^
         -DARROW_ORC=ON ^
         ..
   cmake --build . --target install --config Release
   popd
   ```
   
   However, when I tried to build pyarrow as below, 
   ```
   pushd arrow\python
   set CONDA_DLL_SEARCH_MODIFICATION_ENABLE=1
   set PYARROW_CMAKE_GENERATOR=Visual Studio 17 2022
   set PYARROW_CXXFLAGS="-A x64"
   set PYARROW_WITH_ORC=1
   python setup.py build_ext --inplace
   popd
   ```
   it complained for missing LZ4:
   ```
   -- Found Protobuf: 
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/lib/libprotobuf.lib (found 
version "3.21.12")
   -- Found ZLIB: C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/lib/z.lib 
(found version "1.2.13")
   CMake Warning at 
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/lib/cmake/Arrow/Findlz4Alt.cmake:29
 (find_package):
     By not providing "Findlz4.cmake" in CMAKE_MODULE_PATH this project has
     asked CMake to find a package configuration file provided by "lz4", but
     CMake did not find one.
   
     Could not find a package configuration file provided by "lz4" with any of
     the following names:
   
       lz4Config.cmake
       lz4-config.cmake
   
     Add the installation prefix of "lz4" to CMAKE_PREFIX_PATH or set "lz4_DIR"
     to a directory containing one of the above files.  If "lz4" provides a
     separate development package or SDK, be sure it has been installed.
   Call Stack (most recent call first):
     
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/share/cmake-3.28/Modules/CMakeFindDependencyMacro.cmake:76
 (find_package)
     
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/lib/cmake/Arrow/ArrowConfig.cmake:99
 (find_dependency)
     
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/lib/cmake/Arrow/ArrowConfig.cmake:122
 (arrow_find_dependencies)
     CMakeLists.txt:271 (find_package)
   
   -- Checking for module 'liblz4'
   --   No package 'liblz4' found
   CMake Error at 
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230
 (message):
     Could NOT find lz4Alt (missing: LZ4_LIB)
   Call Stack (most recent call first):
     
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600
 (_FPHSA_FAILURE_MESSAGE)
     
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/lib/cmake/Arrow/Findlz4Alt.cmake:97
 (find_package_handle_standard_args)
     
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/share/cmake-3.28/Modules/CMakeFindDependencyMacro.cmake:76
 (find_package)
     
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/lib/cmake/Arrow/ArrowConfig.cmake:99
 (find_dependency)
     
C:/Users/wgtmac/.conda/envs/pyarrow-dev/Library/lib/cmake/Arrow/ArrowConfig.cmake:122
 (arrow_find_dependencies)
     CMakeLists.txt:271 (find_package)
   
   -- Configuring incomplete, errors occurred!
   ```
   
   I can confirm that the file 
`C:\Users\wgtmac\.conda\envs\pyarrow-dev\Library\lib\liblz4.lib` exists. And I 
tried to explicitly disable ARROW_WITH_LZ4 but it seems to be turned on anyway.
   
   Do you have any idea? @h-vetinari @raulcd 
   


-- 
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: github-unsubscr...@arrow.apache.org

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

Reply via email to