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

Lots of difficulties installing M3T - especially GLEW #73

Open
GFenn-AltenUK opened this issue Dec 6, 2024 · 2 comments
Open

Lots of difficulties installing M3T - especially GLEW #73

GFenn-AltenUK opened this issue Dec 6, 2024 · 2 comments

Comments

@GFenn-AltenUK
Copy link

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

@CVtracker
Copy link

Having similar difficulties with what seems like basic stuff. Probably need to learn more about cmake and dependencies...

Maybe someone can recommend a good source for learning?

@CVtracker
Copy link

CVtracker commented Dec 16, 2024

Was able to successfully build the M3T library! I recommend installing all the dependencies with vcpkg (working on Windows 11).

Used mainly chatGPT to solve my problems error after error since I am not a developer.

Hope that helps!

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

2 participants