Closed podd0 closed 1 year ago
I followed the instructions: "mkdir build; cd build; cmake ..; cmake --build ." and got this error.:
/home/andrea/yocto-gl/libs/yocto/yocto_sceneio.cpp: In lambda function: /home/andrea/yocto-gl/libs/yocto/yocto_sceneio.cpp:228:25: error: ‘sleep_for’ is not a member of ‘std::this_thread’ 228 | std::this_thread::sleep_for(std::chrono::milliseconds(context.delay)); | ^~~~~~~~~ gmake[2]: *** [libs/yocto/CMakeFiles/yocto.dir/build.make:174: libs/yocto/CMakeFiles/yocto.dir/yocto_sceneio.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:510: libs/yocto/CMakeFiles/yocto.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2
I looked up the error online and tried putting #define _GLIBCXX_USE_NANOSLEEP at the start of yocto_sceneio.cpp, but still got the same error
try to include thread library in yocto_sceneio.cpp
it worked!
Ok, thanks. I'll push the fix on my end too.
I followed the instructions: "mkdir build; cd build; cmake ..; cmake --build ." and got this error.:
I looked up the error online and tried putting #define _GLIBCXX_USE_NANOSLEEP at the start of yocto_sceneio.cpp, but still got the same error