Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running tutorial 610 from example project #34

Open
MohamedMoussaTTW opened this issue Aug 24, 2022 · 0 comments
Open

Running tutorial 610 from example project #34

MohamedMoussaTTW opened this issue Aug 24, 2022 · 0 comments

Comments

@MohamedMoussaTTW
Copy link

I've changed the CMakeLists.txt file to the following:

cmake_minimum_required(VERSION 3.16)
project(example)

list(PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

# Libigl
SET(LIBIGL_GLFW ON CACHE BOOL "Build target igl::glfw" FORCE)
SET(LIBIGL_COPYLEFT_CGAL ON CACHE BOOL "Build target igl_copyleft::cgal" FORCE)
include(libigl)

# Add your project files
file(GLOB SRC_FILES *.cpp)
add_executable(${PROJECT_NAME} ${SRC_FILES})
target_link_libraries(${PROJECT_NAME} PUBLIC igl::core igl::glfw igl_copyleft::cgal)

This will fail with the classic Eigen error YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY all over the place.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant