You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "jtristano (via GitHub)" <gi...@apache.org> on 2024/11/02 14:27:59 UTC

[I] Dependency issue for cmake [arrow]

jtristano opened a new issue, #44623:
URL: https://github.com/apache/arrow/issues/44623

   ### Describe the usage question you have. Please include as many useful details as  possible.
   
   
   Hi,
   I'm trying to build arrow into my cmake c++ project.
   
   I installed all of the packages here --- https://arrow.apache.org/install/
   
   I followed the instructions on the build page for cmake but that wasnt enough....
   
   I had to do this
   
   ```
   # Add re2 package
   FetchContent_Declare(
     re2
     GIT_REPOSITORY https://github.com/google/re2.git
     GIT_TAG 2024-07-02
   )
   FetchContent_MakeAvailable(re2)
   ```
   
   Then cmake complained some more about abseil.. added this
   ```
   # Add Abseil
   FetchContent_Declare(
     abseil
     GIT_REPOSITORY https://github.com/abseil/abseil-cpp.git
     GIT_TAG        20230125.1
   )
   FetchContent_MakeAvailable(abseil)
   ```
   
   I also use nlohmann so I had to do this
   ```
   if(NOT TARGET nlohmann_json)
     FetchContent_Declare(
       json
       URL https://github.com/nlohmann/json/releases/download/v3.11.2/json.tar.xz
     )
     FetchContent_MakeAvailable(json)
   endif()
   ```
   Then I had to ask copilot for help in resolving all of this....
   
   ```
   -- Configuring done (12.8s)
   CMake Error: install(EXPORT "re2Targets" ...) includes target "re2" which requires target "absl_absl_check" that is not in any export set.
   CMake Error: install(EXPORT "re2Targets" ...) includes target "re2" which requires target "absl_absl_log" that is not in any export set.
   -- Generating done **(0.3s)**
   ```
   
   Not being a cmake expert, I'm stuck between removing this and getting re2 included twice.   Copilot is stuck here and so am I.
   
   Any help in being able to successfully link against developer packages.  I dont want to build from source if I dont have to.
   
   
   Some cmake info if it helps 
   
   ```
   -- The C compiler identification is Clang 14.0.0
   -- Detecting C compiler ABI info
   -- Detecting C compiler ABI info - done
   -- Check for working C compiler: /usr/bin/cc - skipped
   -- Detecting C compile features
   -- Detecting C compile features - done
   -- Using Conan toolchain: /home/xxx/xxx/Release/conan_toolchain.cmake
   -- The CUDA compiler identification is NVIDIA 12.2.140
   -- The CXX compiler identification is Clang 14.0.0
   -- Detecting CUDA compiler ABI info
   -- Detecting CUDA compiler ABI info - done
   -- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
   -- Detecting CUDA compile features
   -- Detecting CUDA compile features - done
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Check for working CXX compiler: /usr/bin/mpicxx - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   ```
   
   
   
   
   
   
   
   ### Component(s)
   
   C++, Continuous Integration, Developer Tools, Documentation, Packaging


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

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


Re: [I] [C++] Dependency issue for cmake [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #44623: [C++] Dependency issue for cmake
URL: https://github.com/apache/arrow/issues/44623


-- 
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: issues-unsubscribe@arrow.apache.org

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


Re: [I] [C++] Dependency issue for cmake [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #44623:
URL: https://github.com/apache/arrow/issues/44623#issuecomment-2455771942

   Could you answer all of my questions?
   I can't help you without them.


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [C++] Dependency issue for cmake [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #44623:
URL: https://github.com/apache/arrow/issues/44623#issuecomment-2458422903

   What is your platform?
   What packages were you installed?
   What is referred by "the min docker example"? https://github.com/apache/arrow/blob/main/cpp/examples/minimal_build/minimal.dockerfile ?


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [C++] Dependency issue for cmake [arrow]

Posted by "jtristano (via GitHub)" <gi...@apache.org>.
jtristano commented on issue #44623:
URL: https://github.com/apache/arrow/issues/44623#issuecomment-2454707630

   I have
   ```
   find_package(Arrow REQUIRED)
   ``` 
   in my cmake as well as all of the instructions found here:
   https://arrow.apache.org/docs/cpp/build_system.html


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [C++] Dependency issue for cmake [arrow]

Posted by "joetristano (via GitHub)" <gi...@apache.org>.
joetristano commented on issue #44623:
URL: https://github.com/apache/arrow/issues/44623#issuecomment-2455932162

   It seems that a combination of the minimal docker compose and the instructions on the build
   Page are getting me there.   I need to update my docker file from all of the manual edits that I made and will update this thread with the results.  The documentation may just need some updating. 


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [C++] Dependency issue for cmake [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #44623:
URL: https://github.com/apache/arrow/issues/44623#issuecomment-3521359277

   This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this usage question has evolved into a feature request or docs update, please remove the 'Type: usage' label and add the 'Type: enhancement' label instead.


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [C++] Dependency issue for cmake [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #44623:
URL: https://github.com/apache/arrow/issues/44623#issuecomment-2453262783

   > I installed all of the packages here --- https://arrow.apache.org/install/
   
   What is your environment? What packages were you installed?
   
   > I followed the instructions on the build page for cmake but that wasnt enough....
   
   Could you show the URL of "the build page for cmake"?
   
   Could you show what you did in your CMake configuration?
   It seems that you didn't use `find_package(Arrow REQUIRED)` or something. 
   


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [C++] Dependency issue for cmake [arrow]

Posted by "jtristano (via GitHub)" <gi...@apache.org>.
jtristano commented on issue #44623:
URL: https://github.com/apache/arrow/issues/44623#issuecomment-2457462700

   So I cobbled together the min docker example with the documentation from here https://arrow.apache.org/docs/cpp/build_system.html and I was able to build.   Can the documentation be updated to bring in the dependencies as well as the arrow libs?


-- 
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-unsubscribe@arrow.apache.org

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