-
Notifications
You must be signed in to change notification settings - Fork 120
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
cmake configure fails -- can not find ...DatatypeEnum.cpp #70
Comments
Could you check if the git submodules were initialized?
|
Yes, my oversight. After git subm, I can configure and it built something. Given that you are automating most of the packages with hunter, consider continuing that automation by running the git subm update within the cmake. Doing one without the other might lead to errors like mine. |
Thanks for the idea. Just brought it up internally. I don't know enough to comment one way or another on it. |
@diablodale Can you check whether CMake detected Git on your system.
I do agree that adding the actual call to Will take a stab at it in the upcoming days. Thanks |
Hi.
ResultSame error as OP. Notice towards the beginning that git is found.
|
@diablodale I think the issue arises because you are configuring outside the cloned repository. Can you retest by moving current directory inside the repository? |
Personally, I use vscode. cmake reports a cwd outside the project. I tested by adding into the top level cmakefiles.txt...
On configure of the clean repo directly above it is...
If some part of your cmake code needs the cwd to be within the top level project or some other subdirectory, I recommend you use the vars made for that like CMAKE_SOURCE_DIR or CMAKE_CURRENT_SOURCE_DIR. Commands like execute_process() accept a WORKING_DIRECTORY param so that you can control from which directory you want to run. |
Issued a fix. |
verified via On cmake configure, I correctly received the error
I then ran that git command. Then cmake configure again. The configure succeeded. I'll open separate issue for build warnings. |
Awesome thanks @diablodale ! (Also, on a completely new subject: Thank you for using the same Github handle and Discord handle... makes it so easy to track the conversation back/forth!) |
Initial run of cmake configure fails with error
Cannot find source file: C:/njs/depthai-core/shared/depthai-shared/src/datatype/DatatypeEnum.cpp
Setup
Repro
C:\Program Files\CMake\bin\cmake.exe" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -Hc:/njs/depthai-core -Bc:/njs/depthai-core/build -G Ninja
Result
The directory
/njs/depthai-core/shared/depthai-shared
is empty. No files or directories within.Expected
cmake configure to complete with no errors. I first need a clean config and generate before I can build.
Workaround
None known. Running configure a second time results in same error.
The text was updated successfully, but these errors were encountered: