Skip to content

Lots of difficulties installing M3T - especially GLEW #73

Description

@GFenn-AltenUK

Hi all,

I don't usually like posting about install issues because it clutters things, but the Build section of the readme.md in M3T doesn't explain a lot of steps e.g. how do we use CMake? How do we install Eigen 3, GLEW GLFW 3 and OpenCV 4. The links they point do don't really explain much either.

Where I am: I've gitcloned all the above, and can get to line 28 of CMakeLists.txt (find_package(Eigen3 3.3.2 REQUIRED)). This works fine, but I cannot figure out how to get further with GLEW:

PS ....\3DObjectTracking\M3T> cmake -S . -B ./build-dir -DCMAKE_BUILD_TYPE=Release -DUSE_AZURE_KINECT=FALSE -D CMAKE_C_COMPILER="C:\msys64\mingw64\bin\gcc.exe" -D CMAKE_CXX_COMPILER="C:\msys64\mingw64\bin\g++.exe"  -G "MSYS Makefiles" -D Eigen3_DIR="C:\Tools\eigen-3.4.0\build" -D GLEW_INCLUDE_DIRS="C:\Tools\glew-2.1.0\include" -D GLEW_LIBRARIES="C:\Tools\glew-2.1.0\lib"
CMake Error at C:/Program Files/CMake/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.31/Modules/FindGLEW.cmake:245 (find_package_handle_standard_args)
  CMakeLists.txt:29 (find_package)


-- Configuring incomplete, errors occurred!
....\3DObjectTracking\M3T>

Notice that the error mentions missing GLEW_INCLUDE_DIRS GLEW_LIBRARIES, which is not true at all, I've clearly defined those two symbols in the command line:

-D GLEW_INCLUDE_DIRS="C:\Tools\glew-2.1.0\include" -D GLEW_LIBRARIES="C:\Tools\glew-2.1.0\lib"

I would guess we set GLEW_INCLUDE_DIRS to C:\Tools\glew-2.1.0\include\GL (where the GLEW header files live) and I'd guess we set GLEW_LIBRARIES to C:\Tools\glew-2.1.0\lib\Release\x64, but again this did not work either. Same error as above.

Any help appreciated please.

~Greg

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions