turesnake / tprpix Goto Github PK
View Code? Open in Web Editor NEWa Cross-Platform, 2D Survival Sandbox Game Project. Based on C++17/cmake/OpenGL/SQLite3.
License: BSD 3-Clause "New" or "Revised" License
a Cross-Platform, 2D Survival Sandbox Game Project. Based on C++17/cmake/OpenGL/SQLite3.
License: BSD 3-Clause "New" or "Revised" License
第三方库都是跨平台的,原则上是可以支持MSVC和GCC/MinGW-w64的,我改了一下都编译成功了。
还有glfw应该是源码级跨平台的,应该没有必要分成glfw-unix和glfw-win。
还有构建完成之后必要文件的拷贝可以用CMake提供的跨平台操作完成。
还有其实第三方库可以使用git的submodule来管理,至少我更倾向于使用submodule。使用submodule管理可以单独对每一个第三方库进行版本管理,还不会使整个代码库变得臃肿。
错误是非constexpr函数声明,例如:
/home/anarchy-lts/github/tprPix/src/Engine/tools/IntVec.h: 在函数‘constexpr IntVec2 operator+(IntVec2, IntVec2)’中:
/home/anarchy-lts/github/tprPix/src/Engine/tools/IntVec.h:134:1: 错误:call to non-‘constexpr’ function ‘IntVec2::IntVec2(int, int)’
我把这些constexpr去掉后编译通过了
可能是文件名不正确,或者缺少文件,报错:
----- parse_goJsonFile: start -----
Is_path_valid: ERROR. errno = 2 No such file or directory
path_: /home/anarchy-lts/github/tprPix/build/publish/gameObjDatas/grass/_regulars/flower_highWhite/_afs.json
file_load(): get_file_size(3):
Open: ERROR. return -1.errno = 2 No such file or directory
file_load(): get_file_size(3):
Lseek: ERROR. return -1.errno = 9 Bad file descriptor
file_load(): get_file_size(1):
Lseek: ERROR. return -1.errno = 9 Bad file descriptor
file_load(): get_file_size(1):
Lseek: ERROR. return -1.errno = 9 Bad file descriptor
file_load(): get_file_size(1):
Close: ERROR. return -1.fd = -1
errno = 9 Bad file descriptor
file_load(): get_file_size(3):
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_replace_aux
已放弃 (核心已转储)
我去把_asm.json
改成_afs.json
,又出现下面错误:
Linux
TPR_OS_LINUX_
path_cwd = /home/anarchy-lts/github/tprPix/build/publish
----- parse_windowConfigJsonFile: start -----
----- parse_windowConfigJsonFile: end -----
ViewingBox:
=== windowSZ: 1920, 1200; === gameSZ: 1920, 1200;
OpenGL: 4. 5
out: -25.719040386848363, -73.571700601676
out: -96.01586866703762, 19.70569724480808
out: 96.01586866703762, -19.70569724480808
out: 25.719040386848363, 73.571700601676
----- parse_goJsonFile: start -----
ERROR: name_ = afsName
段错误 (核心已转储)
暂时就这样了~~
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.