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

Tried to build but failed #10

Open
citystrawman opened this issue Apr 24, 2023 · 2 comments
Open

Tried to build but failed #10

citystrawman opened this issue Apr 24, 2023 · 2 comments

Comments

@citystrawman
Copy link

I followed the steps but failed in executing cmake .., the console shows messages as follows:

CMake Warning (dev) at CMakeLists.txt:88 (target_link_libraries):
  Cannot specify link libraries for target "Medit3D" which is not built by
  this project.

  CMake does not support this but it used to work accidentally and is being
  allowed for compatibility.

  Policy CMP0016 is not set: target_link_libraries() reports error if its
  only argument is not a target.  Run "cmake --help-policy CMP0016" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

and then if I continue execute make command I got errors as follows:

-- Configuring done
-- Generating done
-- Build files have been written to: D:/Work/202304/20230425/Medit/build
[ 50%] Building C object CMakeFiles/medit.dir/src/medit.c.obj
In file included from D:\Work\202304\20230425\Medit\src\medit.c:6:
D:\Work\202304\20230425\Medit\src\medit.h:25:10: fatal error: GL/glut.h: No such file or directory
   25 | #include <GL/glut.h>
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles\medit.dir\build.make:75: CMakeFiles/medit.dir/src/medit.c.obj] Error 1
make[1]: *** [CMakeFiles\Makefile2:82: CMakeFiles/medit.dir/all] Error 2
make: *** [makefile:135: all] Error 2

I used Windows 10 as my OS, should I find and include <GL/glut.h>?

@ffeppon
Copy link

ffeppon commented Jun 3, 2024

Dear citystrawman,

I encountered similar problems. I solved them on Ubuntu using the patch here:
https://gitlab.com/florian.feppon/software-recipes/-/blob/53ad69dfe5dc42a63c4bacc8918736a1ea095191/patches/patch_medit.patch

I am too lazy to do a pull request, but maybe the developpers could integrate this fix.

Best
Florian Feppon

@citystrawman
Copy link
Author

Dear citystrawman,

I encountered similar problems. I solved them on Ubuntu using the patch here: https://gitlab.com/florian.feppon/software-recipes/-/blob/53ad69dfe5dc42a63c4bacc8918736a1ea095191/patches/patch_medit.patch

I am too lazy to do a pull request, but maybe the developpers could integrate this fix.

Best Florian Feppon

Thank you!

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