GLFX CMakeList Error


#1

I tryed to use the glfx example from SciterSDK,but when i cmake the CMakeList , it told me this error:

[root@localhost examples]# cmake CMakeLists.txt
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.9)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run “cmake –help-policy CMP0000”.
This warning is for project developers. Use -Wno-dev to suppress it.

— Configuring done
CMake Error at CMakeLists.txt:36 (add_executable):
Cannot find source file:

/deps/glad/glad.h

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

CMake Error at CMakeLists.txt:34 (add_executable):
Cannot find source file:

/deps/tinycthread.h

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

CMake Error: CMake can not determine linker language for target: splitview
CMake Error: Cannot determine link language for target “splitview”.
CMake Error: CMake can not determine linker language for target: simple
CMake Error: Cannot determine link language for target “simple”.
CMake Error: CMake can not determine linker language for target: wave
CMake Error: Cannot determine link language for target “wave”.
CMake Error: CMake can not determine linker language for target: particles
CMake Error: Cannot determine link language for target “particles”.
CMake Error: CMake can not determine linker language for target: heightmap
CMake Error: Cannot determine link language for target “heightmap”.
CMake Error: CMake can not determine linker language for target: gears
CMake Error: Cannot determine link language for target “gears”.
CMake Error: CMake can not determine linker language for target: boing
CMake Error: Cannot determine link language for target “boing”.
— Generating done
— Build files have been written to: /usr/local/GLFX/glfw-3.2.1/examples

so how should i do? Please help me ,thank you.


#2

I don’t know anything about the SciterSDK, however you can get a source package from the GLFW download page and then build the source and examples using the instructions in the GLFW compile guide.


#3

thank you very much!