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

Build error on ubuntu: no such include directory: 'PhysX/physx/source/Common/src/linux' #42

Open
Wxwind opened this issue Dec 27, 2024 · 3 comments

Comments

@Wxwind
Copy link

Wxwind commented Dec 27, 2024

Try to build in ubuntu 24.04.1 fllowing README.md but get this error.
image
It's may related to the includes_CXX.rsp that generated by cmake and reference by emscripten-release/sdk_source_bin/CMakeFiles/xxxx/build.make, while compiling orinal phsyx sdk in linux does't generate .rsp and works well.
So I set CMAKE_CXX_USE_RESPONSE_FILE_FOR_XXXXS OFF in physx/source/compiler/cmake/CMakeLists.txt but it doesn't avoid the generation of .rsp file.

Has anyone encountered the same situation?

@Wxwind
Copy link
Author

Wxwind commented Dec 27, 2024

Force cmake to generate .rsp for linux and get no compile error as well in original physx
image

@fabmax
Copy link
Owner

fabmax commented Dec 27, 2024

Hmm first thing: the common dir in the path exists but is spelled with a lower case c and on Linux paths are of course case-sensitive, which is why you get the no such file or directory error.

However, I'm using Linux as well to build the lib and don't get that errors, so it might be something in your configuration?

@Wxwind
Copy link
Author

Wxwind commented Dec 30, 2024

Hmm first thing: the common dir in the path exists but is spelled with a lower case c and on Linux paths are of course case-sensitive, which is why you get the no such file or directory error.

However, I'm using Linux as well to build the lib and don't get that errors, so it might be something in your configuration?

In PhysXCommon.cmake is common/src/linux with lower case c.

But when it's been included in LowLevel.cmake and PhysxExtensions.cmake, it is Common/src/linux with upper case c.

I guess that's where the Common/src/linux comes from, but i see the cmake file is almost the copy of source/compiler/cmake/linux. That's wierd.

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

2 participants