ISCDtoolbox / Medit

22 stars 13 forks source link

Tried to build but failed #10

Open citystrawman opened 1 year ago

citystrawman commented 1 year ago

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 commented 5 months ago

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 commented 5 months ago

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!