Skip to content

Build Failed because no suck file or directory ( /nxcmpat, /dynamicbase, /guard:cf ) #31

@01bkpdrive-pixel

Description

@01bkpdrive-pixel

Hi, how are you?

I'm receiving the following error below after running the last part of the guide with the command
cmake --build .
I'll also leave the screen logs below when I run the command.

I'm using a VM with Windows 10 Pro
but I also received the same message when running it on a VM with Windows 11 Pro.

Thanks

C:\build-folder>cmake --build .
[1/592] Creating generated files from customstateprovider.idl
FAILED: [code=1005] src/libsync/vfs/cfapi/shellext/Generated/CustomStateProvider.g.h C:/build-folder/src/libsync/vfs/cfapi/shellext/Generated/CustomStateProvider.g.h
C:\Windows\system32\cmd.exe /C "cd /D C:\build-folder\src\libsync\vfs\cfapi\shellext && "C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\midl.exe" /winrt /h nul /tlb C:/build-folder/src/libsync/vfs/cfapi/shellext\Generated\CustomStateProvider.tlb /winmd C:/build-folder/src/libsync/vfs/cfapi/shellext\Generated\CustomStateProvider.winmd /metadata_dir "C:\Program Files (x86)\Windows Kits\10\References\10.0.26100.0\Windows.Foundation.FoundationContract\4.0.0.0" /nomidl /reference "C:\Program Files (x86)\Windows Kits\10\References\10.0.26100.0\Windows.Foundation.FoundationContract\4.0.0.0\Windows.Foundation.FoundationContract.winmd" /reference "C:\Program Files (x86)\Windows Kits\10\References\10.0.26100.0\Windows.Storage.Provider.CloudFilesContract\7.0.0.0\Windows.Storage.Provider.CloudFilesContract.winmd" /I C:\desktop\src\libsync\vfs\cfapi\shellext customstateprovider.idl && "C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\cppwinrt.exe" -in C:/build-folder/src/libsync/vfs/cfapi/shellext\Generated\CustomStateProvider.winmd -comp C:/build-folder/src/libsync/vfs/cfapi/shellext\Generated -pch pch.h -ref "C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.26100.0" -out C:/build-folder/src/libsync/vfs/cfapi/shellext\Generated -verbose"
Microsoft (R) 32b/64b MIDLRT Compiler Engine Version 10.00.0231
Copyright (c) Microsoft Corporation. All rights reserved.
64 bit MIDLRT Processing C:\desktop\src\libsync\vfs\cfapi\shellext\customstateprovider.idl
midlrt : error MIDL1005 : [msg]cannot find C preprocessor [context]cl.exe
[2/592] Linking CXX shared library bin\nextcloud_csync.dll
FAILED: [code=1] bin/nextcloud_csync.dll lib/nextcloud_csync.lib
C:\Windows\system32\cmd.exe /C "cd . && C:\CraftRoot\bin\clang++.exe -nostartfiles -nostdlib -Wall -Wextra -pedantic -Wno-long-long -Wno-gnu-zero-variadic-macro-arguments -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -DNDEBUG -g -Xclang -gcodeview -D_DLL -D_MT -Xclang --dependent-lib=msvcrt  /nxcompat /dynamicbase /guard:cf   -fuse-ld=lld-link -shared -o bin\nextcloud_csync.dll  -Xlinker /MANIFEST:EMBED -Xlinker /implib:lib\nextcloud_csync.lib -Xlinker /pdb:bin\nextcloud_csync.pdb -Xlinker /version:4.0 src/csync/CMakeFiles/nextcloud_csync.dir/nextcloud_csync_autogen/mocs_compilation.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/checksums.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/checksumcalculator.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/filesystembase.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/ownsql.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/preparedsqlquerymanager.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/syncjournaldb.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/syncjournalfilerecord.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/utility.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/remotepermissions.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/vfs.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/pinstate.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/plugin.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/syncfilestatus.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/syncitemenums.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/__/common/utility_win.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/csync.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/csync_exclude.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/std/c_time.cpp.obj src/csync/CMakeFiles/nextcloud_csync.dir/vio/csync_vio_local_win.cpp.obj  -lpsapi.lib  -lkernel32.lib  -lRstrtmgr.lib  C:/CraftRoot/lib/Qt6Concurrent.lib  C:/CraftRoot/lib/zlib.lib  C:/CraftRoot/lib/sqlite3.lib  C:/CraftRoot/lib/Qt6Core.lib  -lmpr.lib  -luserenv.lib  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 -loldnames  && cd ."
clang++: error: no such file or directory: '/nxcompat'
clang++: error: no such file or directory: '/dynamicbase'
clang++: error: no such file or directory: '/guard:cf'
ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions