Question: I am looking to make use of an underwater acoustics toolbox called Bellhopcxx. I have run the steps for installation but have never used CMake before (which the instructions for Bellhopcxx require). When I reach the final step of the instructions I hit an error, although in the step before there were warnings which likely led to this problem. I have copied the code block in below.
Working: Below are the commands and results I have seen. All works well until the second last command (CMake ..) which returns warnings, and the last command (CMake --build .) which returns the outright error. Any help with this installation would be greatly appreciated.
I apologise if this is a lot of code. To break it down, I clone from Github. Then change directory to the clone. Then make a directory 'build' in the clone and change directory to it.
I then try to use CMake. I receive warnings and the next step fails. It seems I am missing something in CMake. I have Visual Studio Code.
Microsoft Windows [Version 10.0.26100.8390]
(c) Microsoft Corporation. All rights reserved.
C:\Users\s1447548>git clone https://github.com/A-New-BellHope/bellhopcuda.git
Cloning into 'bellhopcuda'...
remote: Enumerating objects: 4650, done.
remote: Counting objects: 100% (423/423), done.
remote: Compressing objects: 100% (231/231), done.
remote: Total 4650 (delta 245), reused 252 (delta 186), pack-reused 4227 (from 2)
Receiving objects: 100% (4650/4650), 10.45 MiB | 7.85 MiB/s, done.
Resolving deltas: 100% (3555/3555), done.
C:\Users\s1447548>cd bellhopcuda/
C:\Users\s1447548\bellhopcuda>git submodule update --init --recursive
Submodule 'glm' (https://github.com/g-truc/glm) registered for path 'glm'
Cloning into 'C:/Users/s1447548/bellhopcuda/glm'...
Submodule path 'glm': checked out '6ad79aae3eb5bf809c30bf1168171e9e55857e45'
C:\Users\s1447548\bellhopcuda>mkdir build
C:\Users\s1447548\bellhopcuda>cd build/
C:\Users\s1447548\bellhopcuda\build>cmake ..
-- Building for: Visual Studio 18 2026
CMake Warning at config/CMakeLists.txt:21 (message):
clang-format pre-commit hook not found, installing
-- The CXX compiler identification is MSVC 19.51.36244.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.51.36231/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Not GCC or clang, assuming Windows format compile flags
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- The CUDA compiler identification is NVIDIA 13.3.33 with host compiler MSVC 19.51.36244.0
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.3/bin/nvcc.exe - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Not GCC or clang, assuming Windows format compile flags
-- CUDA extra flags: -Xcudafe --diag_warning=local_variable_hidden -Xcudafe --diag_warning=decl_hides_catch_parameter -Xcudafe --diag_warning=decl_hides_function_parameter -Xcudafe --diag_warning=decl_hides_template_parameter -Xcudafe --diag_warning=for_init_hides_declaration -Xcudafe --diag_warning=declaration_hides_for_init -Xcudafe --diag_suppress=esa_on_defaulted_function_ignored -ftz=true --expt-relaxed-constexpr
-- Full CUDA flags: -Xcompiler=/W4 -Xcompiler=/wd4244 -Xcudafe --diag_warning=local_variable_hidden -Xcudafe --diag_warning=decl_hides_catch_parameter -Xcudafe --diag_warning=decl_hides_function_parameter -Xcudafe --diag_warning=decl_hides_template_parameter -Xcudafe --diag_warning=for_init_hides_declaration -Xcudafe --diag_warning=declaration_hides_for_init -Xcudafe --diag_suppress=esa_on_defaulted_function_ignored -ftz=true --expt-relaxed-constexpr
-- Not GCC or clang, assuming Windows format compile flags
-- Configuring done (8.2s)
-- Generating done (0.3s)
-- Build files have been written to: C:/Users/s1447548/bellhopcuda/build
C:\Users\s1447548\bellhopcuda\build>cmake --build .
MSBuild version 18.6.3+84d3e95b4 for .NET Framework
C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Microsoft\VC\v180\Microsoft.CppBuild.targets(468,5): erro
r MSB8013: This project doesn't contain the Configuration and Platform combination of Debug|x64. [C:\Users\s1447548\bel
lhopcuda\build\ZERO_CHECK.vcxproj]
C:\Users\s1447548\bellhopcuda\build>
I am happy to amend this post if needed, as I am new to C++ and also to the Bellhop toolbox.