Skip to content
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 Configuration Error: INTERFACE_INCLUDE_DIRECTORIES path is incorrectly prefixed with source directory #55

Open
beatlesforever opened this issue Dec 28, 2024 · 4 comments

Comments

@beatlesforever
Copy link
Contributor

I encountered an error while trying to build SimAI using ./scripts/build.sh -c analytical .The CMake configuration step fails with the following error:

-- Configuring done
CMake Error in src/applications/CMakeLists.txt:
  Target "libapplications" INTERFACE_INCLUDE_DIRECTORIES property contains
  path:

    "/home/zhr/Desktop/SimAI/astra-sim-alibabacloud/extern/network_backend/ns3-interface/simulation/src/applications"

  which is prefixed in the source directory.

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

@Huoyuan100861
Copy link
Collaborator

I encountered an error while trying to build SimAI using ./scripts/build.sh -c analytical .The CMake configuration step fails with the following error:

-- Configuring done
CMake Error in src/applications/CMakeLists.txt:
  Target "libapplications" INTERFACE_INCLUDE_DIRECTORIES property contains
  path:

    "/home/zhr/Desktop/SimAI/astra-sim-alibabacloud/extern/network_backend/ns3-interface/simulation/src/applications"

  which is prefixed in the source directory.

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

Could you please provide the detailed information about your machine, such as the OS version, the cmake version, and the gcc/g++ version? Additionally, we'd like to know if you can successfully compile the code on a standard Ubuntu 20.04 system (or higher) or within an NGC container (which we have tested)?

@beatlesforever
Copy link
Contributor Author

Thank you for your response! Here are the details of my machine environment:

  1. Operating System:
PRETTY_NAME="Ubuntu 22.04.5 LTS"
  1. CMake Version:
cmake version 3.16.3
  1. GCC/G++ Version:
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0  
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0  

Although I encountered the INTERFACE_INCLUDE_DIRECTORIES error during the build process, I was able to successfully compile and run the provided examples afterward. This suggests that the issue might not significantly affect the functionality of the compiled code.

Thank you! 🙏

@Huoyuan100861
Copy link
Collaborator

Thank you for your response! Here are the details of my machine environment:

  1. Operating System:
PRETTY_NAME="Ubuntu 22.04.5 LTS"
  1. CMake Version:
cmake version 3.16.3
  1. GCC/G++ Version:
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0  
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0  

Although I encountered the INTERFACE_INCLUDE_DIRECTORIES error during the build process, I was able to successfully compile and run the provided examples afterward. This suggests that the issue might not significantly affect the functionality of the compiled code.

Thank you! 🙏

Yes, u r right. (Make sure the compilation environment does not include Ninja)

@riteme
Copy link

riteme commented Dec 31, 2024

I encountered the same issue with CMake 3.30. The compilation stops and complains about ninja. So I removed ninja then re-execute this command and it continues to compile although this error persists.

Requiring ninja not installed is weird. Will it be improved in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants