intel / gits

API capture-replay tool for Vulkan, OpenCL, Intel oneAPI Level Zero and OpenGL
MIT License
39 stars 8 forks source link

Failed to compile the program. undefined reference to `gits::CMappedHandle::currentVersion_' #2

Closed B5paper closed 10 months ago

B5paper commented 10 months ago

I followed the building commands in BUILDING.md and got a compiling error:

...
[100%] Linking CXX executable gitsPlayer
[100%] Built target GitsRecorder
/usr/bin/ld: ../common/libcommon.a(argument.cpp.o): in function `gits::CMappedHandle::Read(gits::CBinIStream&)':
argument.cpp:(.text+0x19dd): undefined reference to `gits::CMappedHandle::currentVersion_'
collect2: error: ld returned 1 exit status
gmake[2]: *** [player/CMakeFiles/gitsPlayer.dir/build.make:178: player/gitsPlayer] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1065: player/CMakeFiles/gitsPlayer.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

System: Linux Ubuntu-2204 5.19.0-50-generic #50-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 10 18:24:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

git repo commit: f2e97348c54493746e4cd3012b38a9db9863b776

kszornak commented 10 months ago

Hi. Thanks for reporting this issue. We fixed it in this commit: 430d435936131811096920e3b207c7815c70e8e6 Could you try to check if it helps on your side?

Best Regards, Karol

B5paper commented 10 months ago

It works. Thank you very much. This issue can be closed.

Best regards, Liucheng

AI-LJ commented 6 months ago

good job