You can change `-ZSTD_BUILD_STATIC=ON` to `-DZSTD_BUILD_STATIC=ON` This is a bug which has been fixed in master branch. And as Ling said, it is recommanded to use docker dev image to build Doris from source.
-- 此致!Best Regards 陈明雨 Mingyu Chen Email: chenmin...@apache.org 在 2021-12-10 12:06:05,"王 铁" <wangtie_...@outlook.com> 写道: >Hi there > >I have downloaded source code of 0.15.0 . > >after setting up tools and env ,I have got an error when I was compiling doris > >here is the error info > >===== begin build zstd-1.5.0 >CMake Error: Unknown argument -ZSTD_BUILD_STATIC=ON >CMake Error: Run 'cmake --help' for all supported options. > >it seems an argument error when we compile zstd1.5.0 > >could you give me some information on this issue? thanks a lot > >获取 Outlook for iOS<https://aka.ms/o0ukef>