tried moving libpack to freecad/lib to no avail. I didn't see instructions to put it there. Where would it find this? I have a libpack variable but it is not set to /freecad. Found libpack env variable: D:/opensource/freecad Then I could examine the source to trace what it expects. It would be nice if the error gave a source line, as you see Qt below does. Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -SD:/opensource/freecad -Bd:/opensource/freecad/build -G "Visual Studio 17 2022" -T host=圆4 -A 圆4 Very confusing output: (My comments interspersed) Set(FREECAD_LIBPACK_DIR "D:/opensource/LibPack-OCC76-V2-6") Could you please share the link/ document that you followed to build Media SDK using cmake on windows / steps to. The top two entries are the source code and binary directories. A GUI will appear similar to what is shown below. Then I tried adding this line to CMakeLists.txt Run cmake-gui.exe, which should be in your Start menu under Program Files, there may also be a shortcut on your desktop, or if you built from source, it will be in the build directory. Okay I tried adding FREECAD_LIBPACK_DIR to environment variables. Patch Windows SDK path from C:\Program Files (x86)\Windows Kits\10\bin\圆4 to C:\Program Files (x86)\Windows Kits\10\bin\1.0\圆4 for D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat In VS2019, in the CMakeSettings.json file If i set CMake generator to Visual StuWin64 CMake cache generation succeeds and i’m able to build and run. The command: "C:\Program Files\CMake\bin\cmake.exe" -no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -SD:/opensource/freecad -Bd:/opensource/freecad/build -G "Visual Studio 17 2022" -T host=圆4 -A 圆4 exited with code: 1 Usage os:windows, lang:c rco August 17, 2021, 5:58pm 1 Hi, Long story short, I’ve been struggling with a project in both VS2017 and VS2019, with both CMake 3.18 and CMake 3.21.1. Configuring incomplete, errors occurred! CMakeLists.txt:41 (InitializeFreeCADBuildOptions) cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake:65 (ChooseQtVersion) CMake Error at cMake/FreeCAD_Helpers/ChooseQtVersion.cmake:79 (message): Using Qt5 directory from LibPack in D:/opensource/freecad/lib/cmake/Qt5 If you intend to use a Windows libpack, set the FREECAD_LIBPACK_DIR to the libpack directory. Selecting Windows SDK version 1.0 to target Windows 5. One may set a CMAKEWINDOWSKITS10DIR environment variable to an absolute path to tell CMake to look for Windows 10 SDKs in a custom location. Not searching for unused variables given on the command line. Executing command: "C:\Program Files\CMake\bin\cmake.exe" -no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -SD:/opensource/freecad -Bd:/opensource/freecad/build -G "Visual Studio 17 2022" -T host=圆4 -A 圆4
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |