我是VisualGMQ,一个游戏开发新手
- 🔭 目前在中国杭州,从事游戏开发相关工作
- 🌱 会一些Vulkan。沉浸于游戏引擎开发和游戏开发
- 💻 用的最多的语言是
,这里是我的一些项目:
- gecs:C++17 ECS框架,源码借鉴EnTT,API设计借鉴Bevy
- mirrow:C++17 模板元编程框架,含有静态/动态反射和自动序列化功能
- rs-cpurenderer:使用rust编写的软渲染
- NickelEngine:C++17,基于ECS的游戏引擎(施工中)
a game engine based on ECS
License: MIT License
我是VisualGMQ,一个游戏开发新手
根据这个 PR 可以成功构建 #2
但是无法成功运行,第一次运行报错无法找到配置文件 nickel-config.toml
,于是我创建一个空文件再次运行,还是无法成功启动
> ./cmake-build/editor/editor
[Info][/Users/jayson/Projects/myproj/NickelEngine/nickel/src/nickel.cpp][main][20][Nickel]:Running dir: "/Users/jayson/Projects/myproj/NickelEngine". Full path: ./cmake-build/editor/editor
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Vertex shader compile failed:
ERROR: 0:1: '' : version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' : #version required and missing.
ERROR: 0:2: '0' : syntax error: integers in layouts require GLSL 140 or later
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Fragment shader compile failed:
ERROR: 0:1: '' : version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' : #version required and missing.
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Shader][264][GL]:shader link failed:
ERROR: One or more attached shaders not successfully compiled
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Vertex shader compile failed:
ERROR: 0:1: '' : version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' : #version required and missing.
ERROR: 0:2: '0' : syntax error: integers in layouts require GLSL 140 or later
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Fragment shader compile failed:
ERROR: 0:1: '' : version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' : #version required and missing.
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Shader][264][GL]:shader link failed:
ERROR: One or more attached shaders not successfully compiled
[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Use][273][GL]:GL_INVALID_OPERATION
[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][operator()][299][GL]:GL_INVALID_OPERATION
[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][SetInt][301][GL]:don't has uniform image
[Warning][/Users/jayson/Projects/myproj/NickelEngine/nickel/src/input/input.cpp][InputSystemInit][85][Config]:parse nickel-config.toml failed, use default actions.
Error: File could not be opened for reading
(error occurred at line 0, column 0 of './nickel-config.toml')
[1] 22022 segmentation fault ./cmake-build/editor/editor
nickel-config.toml
启动> ./cmake-build/editor/editor
[Info][/Users/jayson/Projects/myproj/NickelEngine/nickel/src/nickel.cpp][main][20][Nickel]:Running dir: "/Users/jayson/Projects/myproj/NickelEngine". Full path: ./cmake-build/editor/editor
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Vertex shader compile failed:
ERROR: 0:1: '' : version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' : #version required and missing.
ERROR: 0:2: '0' : syntax error: integers in layouts require GLSL 140 or later
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Fragment shader compile failed:
ERROR: 0:1: '' : version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' : #version required and missing.
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Shader][264][GL]:shader link failed:
ERROR: One or more attached shaders not successfully compiled
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Vertex shader compile failed:
ERROR: 0:1: '' : version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' : #version required and missing.
ERROR: 0:2: '0' : syntax error: integers in layouts require GLSL 140 or later
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Fragment shader compile failed:
ERROR: 0:1: '' : version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' : #version required and missing.
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Shader][264][GL]:shader link failed:
ERROR: One or more attached shaders not successfully compiled
[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Use][273][GL]:GL_INVALID_OPERATION
[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][operator()][299][GL]:GL_INVALID_OPERATION
[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][SetInt][301][GL]:don't has uniform image
[Warning][/Users/jayson/Projects/myproj/NickelEngine/nickel/src/input/input.cpp][InputSystemInit][90][Config]:"input-action" table not exists, use default actions
[1] 23139 segmentation fault ./cmake-build/editor/editor
日志[nickel\src\renderer\renderer2d.cpp][initShader][189][Renderer]
路径是相对build目录的,改为"../../nickel/shader/vertex.shader"
解决
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.