Closed UdonDa closed 2 years ago
I found the difference of C++ version caused the error. Sorry.
I found the difference of C++ version caused the error. Sorry.
Hello, I am having the same problem.. Could you please share how you solve the problem? I have tried gcc-7, gcc-8, and gcc-9 and none of them solved the problem.
I solved the problem by changing the cmakelist.txt file. All I did are these 3 things and the whole cmakelist file is as follows.
1) There is no cpp file, so changed it to cc 2) C++ version from 14 to 17 3) Change the execution file name from simple_mesh to simple_mesh_exe
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
cmake_policy(VERSION 3.12.0)
project(OpenVolumeMeshExamples)
if (NOT TARGET OpenVolumeMesh::OpenVolumeMesh)
find_package(OpenVolumeMesh REQUIRED)
endif()
# Add target for first example
add_executable(simple_mesh_exe simple_mesh/simple_mesh.cc)
target_link_libraries(simple_mesh_exe OpenVolumeMesh::OpenVolumeMesh)
set(OVM_CXX_STANDARD 17 CACHE STRING "C++ standard version to use")
set_property(CACHE OVM_CXX_STANDARD PROPERTY STRINGS 17 20)
set_target_properties (simple_mesh_exe PROPERTIES
CXX_STANDARD ${OVM_CXX_STANDARD}
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO
)
Hi, @FrozenSilent . Thank you for sharing your wonderful work. Now I try to reproduce your results.
But, I encounter an error when I build simple_mesh. Did you encounter the error?
I use cmake 3.24.1.
I use the following command.