Skip to content

Running tutorial 610 from example project #34

@MohamedMoussaTTW

Description

@MohamedMoussaTTW

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions