Skip to content

Tried to build but failed #10

@citystrawman

Description

@citystrawman

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>?

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