limitless-engine icon indicating copy to clipboard operation
limitless-engine copied to clipboard

Build

Open ViPErCZ opened this issue 2 years ago • 13 comments

Please help, I wanted to try the app, but I can't build >

[100%] Linking C executable ../../../../bin/glewinfo /usr/bin/ld: CMakeFiles/glewinfo.dir///src/glewinfo.c.o: in function glewCreateContext': glewinfo.c:(.text+0x32209): undefined reference to glXQueryExtension'

demo build... but not execute

first error tesselation.tcs: 0:608(38): error: no matching function for call to `getVertexNormal(int)'; candidates are: 0:608(38): error: vec3 getVertexNormal(uint)

if i fix then,

error: Input block `_vertex_data' is not an output of the previous stage

Thanks.

PS: your build same fail > https://github.com/hotstreams/limitless-engine/runs/6991541476?check_suite_focus=true

ViPErCZ avatar Sep 03 '22 08:09 ViPErCZ

And today version has new error... limitless-engine/include/limitless/instances/instanced_instance.hpp:83:28: error: conflicting return type specified for ‘virtual Limitless::InstancedInstanceLimitless::ModelInstance* Limitless::InstancedInstanceLimitless::ModelInstance::clone()’ 83 | InstancedInstance* clone() noexcept override {

and tess_control_input.glsl has wrong on runtime error tesselation.tcs: 0:621(38): error: no matching function for call to `getVertexNormal(int)'; candidates are: 0:621(38): error: vec3 getVertexNormal(uint)

ViPErCZ avatar Jul 02 '23 15:07 ViPErCZ

Yeah, Sorry for that, definitely my bad.

tesselation.tcs: 0:621(38): error: no matching function for call to `getVertexNormal(int)'; candidates are: 0:621(38): error: vec3 getVertexNormal(uint)

There was something about implicit casts from int to uint, should be fixed now at f858540

hotstreams avatar Jul 02 '23 17:07 hotstreams

Not completed.... getVertexNormal must be to int type... by call _out_data[gl_InvocationID].normal = getVertexNormal(gl_InvocationID);

gl_InvocationID is int type

terminate called after throwing an instance of 'Limitless::ms::material_compilation_error' what(): tesselation_samplefailed to compile /home/viper/Plocha/limitless-engine/assets/../shaders/tesselation/tesselation.tcs: 0:621(38): error: no matching function for call to getVertexNormal(int)'; candidates are: 0:621(38): error: vec3 getVertexNormal(uint) 0:624(46): error: no matching function for call to getVertexPosition(int)'; candidates are: 0:624(46): error: vec3 getVertexPosition(uint) 0:625(34): error: no matching function for call to `getVertexUV(int)'; candidates are: 0:625(34): error: vec2 getVertexUV(uint)

ViPErCZ avatar Jul 02 '23 19:07 ViPErCZ

@ViPErCZ Hi, Can you run the project sucessfully?I find the demo does not include files "Textures"

DWR-CMQ avatar Feb 08 '24 06:02 DWR-CMQ

for example image image

DWR-CMQ avatar Feb 08 '24 06:02 DWR-CMQ

https://github.com/hotstreams/limitless-engine/commit/78b6d5a29158e527efe5d990dd8acf67f587fdd2

assets removed. I have old function commit e24fe45cf55a834b7bfd6283f796a5883df015a4 I have no head checkout. This is maybe bug. ;-)

ViPErCZ avatar Feb 08 '24 10:02 ViPErCZ

Thanks for your reply ,I have found from https://github.com/Tehsapper/graphics-engine

DWR-CMQ avatar Feb 08 '24 10:02 DWR-CMQ

Yes, using fork is solution... ;-)

ViPErCZ avatar Feb 08 '24 11:02 ViPErCZ

Not completed.... getVertexNormal must be to int type... by call _out_data[gl_InvocationID].normal = getVertexNormal(gl_InvocationID);

gl_InvocationID is int type

terminate called after throwing an instance of 'Limitless::ms::material_compilation_error' what(): tesselation_samplefailed to compile /home/viper/Plocha/limitless-engine/assets/../shaders/tesselation/tesselation.tcs: 0:621(38): error: no matching function for call to getVertexNormal(int)'; candidates are: 0:621(38): error: vec3 getVertexNormal(uint) 0:624(46): error: no matching function for call to getVertexPosition(int)'; candidates are: 0:624(46): error: vec3 getVertexPosition(uint) 0:625(34): error: no matching function for call to `getVertexUV(int)'; candidates are: 0:625(34): error: vec2 getVertexUV(uint)

@ViPErCZ hi, have you solved the issue,I encounter the same problem image

DWR-CMQ avatar Feb 08 '24 14:02 DWR-CMQ

yes... uint not match int in argument this getVertexUV func... you must fix... ideal when this bug fix owner this repository

ViPErCZ avatar Feb 09 '24 12:02 ViPErCZ

I took a shortcut and deleted the tcs file,I built it sucessfully finally,and run the project normally

DWR-CMQ avatar Feb 09 '24 13:02 DWR-CMQ

The video I take is https://www.bilibili.com/video/BV1wF4m1g7Rf/?spm_id_from=333.999.0.0&vd_source=c190caf289a70529fcd37e9d7dadedaf

DWR-CMQ avatar Feb 09 '24 13:02 DWR-CMQ

I want change it from glew to glad,and create a special effects library based on this

DWR-CMQ avatar Feb 09 '24 13:02 DWR-CMQ