-
-
Notifications
You must be signed in to change notification settings - Fork 891
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
find_package(standardprojectsettings REQUIRED)
Fails in CMakeLists.txt
#2194
Comments
hello. I stuck with the same error, got any solution yet? |
It hasn't been solved yet, if you have a solution later, please reply to me, thank you |
I've ran into the same issue, I've been able to work around it to successfully build using "x64 Native Tools Command Prompt for VS 2022"; but not yet been able to get it to work in visual studio. 'x64 Native Tools' are typically found under Internally it seems to just seems to be a shortcut to run In the x64 Tools prompt you should be able to run the commands from your steps to reproduce, activating .bat instead of ps1. Followed by invoking cmake, in full that'll look like this:
NOTE: To build with tests in the latest versions you must use I was led to try using the approach above by the comments in the following related issue, especially the comment I've linked directly: |
I tried your approach, the difference is that I used Developer PowerShell for VS 2022 and of course cura_venv\Scripts\activate.ps1 to enter the virtual environment. I successfully built the release version, but an error occurred while running cmake --build --preset conan-debug. Do you know the possible cause? Of course, I used the x64 Native Tools Command Prompt for VS 2022 to generate errors
|
For those errors I simply commented out the lines with I've not spent any time looking into why these asset calls are failing the build, probably some missing import or compiler differences; but as they're not required for the code to function it's easiest to comment them out for now. Here's a diff of my changes:
|
@FreeFallingSnow 这个需要设置一下CMAKE_PREFIX_PATH |
Description:
I am trying to build the CuraEngine project using Visual Studio 2022 and CMake. During the configuration step, I encounter an error related to the
find_package(standardprojectsettings REQUIRED)
command inCMakeLists.txt
. The error indicates that thestandardprojectsettings
package cannot be found.Steps to Reproduce:
Set up the Conan environment:
Open the
CuraEngine
folder in Visual Studio 2022.Error are found:
Solve the problem in this way:
Expected Behavior:
The configuration should successfully locate and include the
standardprojectsettings
package.Actual Results
The following error is generated:
Environment:
Troubleshooting Steps Taken:
conan config install
andconan install
were completed successfully.standardprojectsettings
in the Conan cache.Request:
Could you provide guidance on resolving this issue? Is there an update or specific setup step required to correctly include the
standardprojectsettings
package in the build configuration?Additional Information:
The text was updated successfully, but these errors were encountered: