Hello everyone, I am exploring usage of Apache Arrow specifically usage form Visual Studio (VS2019) compiled C++ programs on my Windows 10 machine.
I have Visual Studio 2019 installed already. I wanted to simply use pre-build binaries, so I installed <https://arrow.apache.org/install/>Arrow 9.0.0 using miniconda: *conda install arrow-cpp=9.0.* -c conda-forge*. (9.0.0 was the latest package I can find there). The install was successful. I now wanted to build the arrow minimal_build <https://arrow.apache.org/docs/9.0/cpp/examples/cmake_minimal_build.html> example & am failing at multiple attempts. Will gratefully accept any guidance to get this working! *C:\Repos\arrow\cpp\examples\minimal_build> cmake CMakeLists.txt* which immediately failed with: C:\Repos\arrow\cpp\examples\minimal_build>*cmake CMakeLists.txt* -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044. -- Arrow version: 9.0.0 -- Arrow SO version: 900.0.0 -- Configuring done CMake Error at CMakeLists.txt:40 (add_executable): *Target "arrow-example" links to target "Arrow::arrow_shared" but the target was not found*. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? I next activated arrow-dev as per Developing on Windows <https://arrow.apache.org/docs/developers/cpp/windows.html#using-conda-forge-for-build-dependencies> & ran the same command. conda create -y -n arrow-dev --file=ci\conda_env_cpp.txt ==> successful conda activate arrow-dev ==> successful *(arrow-dev) C:\Repos\arrow\cpp\examples\minimal_build>cmake cmakelists.txt* ==> failed -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044. -- The C compiler identification is MSVC 19.29.30143.0 -- The CXX compiler identification is MSVC 19.29.30143.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Arrow version: 9.0.0 -- Arrow SO version: 900.0.0 -- Configuring done CMake Error at CMakeLists.txt:43 (target_link_libraries): Target "arrow-example" links to: Arrow::arrow_shared but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing. Regards Prasad
