Giter Club home page Giter Club logo

tprpix's Issues

archlinux上构建

构建有错误

错误是非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
段错误 (核心已转储)

暂时就这样了~~

支持MSVC和GCC?

第三方库都是跨平台的,原则上是可以支持MSVC和GCC/MinGW-w64的,我改了一下都编译成功了。
还有glfw应该是源码级跨平台的,应该没有必要分成glfw-unix和glfw-win。

还有构建完成之后必要文件的拷贝可以用CMake提供的跨平台操作完成。

还有其实第三方库可以使用git的submodule来管理,至少我更倾向于使用submodule。使用submodule管理可以单独对每一个第三方库进行版本管理,还不会使整个代码库变得臃肿。

窗口显示超出屏幕大小

tprPix编译并运行在一台720p屏幕的设备上时(arm处理器64位,Ubuntu18.04 L4T),窗口超出了屏幕大小,且无法调整。

WechatIMG352
Screenshot from 2020-04-07 13-30-40
(实际上是switch😂)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.