Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build vk_video_encoder fail (multiple rules generate) #106

Open
Carter-chao opened this issue Nov 5, 2024 · 3 comments
Open

build vk_video_encoder fail (multiple rules generate) #106

Carter-chao opened this issue Nov 5, 2024 · 3 comments

Comments

@Carter-chao
Copy link

I installed the environment dependencies according to the instructions in build.md and successfully ran the update_external_sources.sh script.
Manually or using vscode + cmake-tools, building vk_video_decoder works without any issues.
Manually building vk_video_encoder works without any issues,
but when trying to build vk_video_encoder using vscode + cmake-tools, I get the following error: CMake Error:
Running

'/usr/local/bin/ninja' '-C' '/home/user/vk_video_samples/vk_video_encoder/vsbuild' '-t' 'recompact'

failed with:

ninja: error: build.ninja:2158: multiple rules generate /home/user/vk_video_samples/common/libs/VkCodecUtils/HelpersDispatchTable.cpp

The build command generated by Visual Studio Code is:
/usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ --no-warn-unused-cli -S/home/user/vk_video_samples/vk_video_encoder -B/home/user/vk_video_samples/vk_video_encoder/vsbuild -G Ninja

@dabrain34
Copy link
Contributor

Can you give a try to #107 ?

@Carter-chao
Copy link
Author

Great! It's working normally now.

@dabrain34
Copy link
Contributor

#107 has been merged, this issue can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants