-
Notifications
You must be signed in to change notification settings - Fork 811
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 generate_projects.sh problem on Arch Linux #39
Comments
Hmm looks like that CMAKE_LIBRARY_ARCHITECTURE is not set in your case. |
I'm not sure what all is necessary to properly fix this. But it seems to be working after the following hack (edit in response to comment: I've consistentized the casing): After line 234 of physx/buildtools/cmake_generate_projects.py, add
|
Thanks, @sapphous ! |
…d of guessing using the linker search path. This method works on Arch Linux and related distros that do not prefix their library paths. Fixes NVIDIAGameWorks#39.
got latest from git today (4.1) in a clean new folder and the same issue is still there. |
Facing this as well. No need to add the LinuxRegular.cmake file, just add one line after
elif self.compiler == 'clang':
+ outString = outString + ' -DCMAKE_LIBRARY_ARCHITECTURE=x86_64-linux-gnu'
|
After some research, using CMAKE_LIBRARY_ARCHITECTURE to detect the platform is wrong. That variable is engineered to work with Debian-derived distros, but not in general (i.e, not in RHEL, Arch, etc), see bug report mozilla and CMake docs. The solution is to use Will open a PR shortly. |
CMAKE_LIBRARY_ARCHITECTURE is engineered for Debian-derived linux, not for other distros such as RHEL-derived, Arch, etc. To detect compilers in GetCompilerAndPlatform, use instead `CMAKE_CXX_COMPILER_ID` and `CMAKE_CXX_COMPILER`, as it is used already for the `windows` case. Note that the arm version is untested, so a double check with COMPILER_ID and just COMPILER is in place. Fixes NVIDIAGameWorks#39
CMAKE_LIBRARY_ARCHITECTURE is engineered for Debian-derived linux, not for other distros such as RHEL-derived, Arch, etc. To detect compilers in GetCompilerAndPlatform, use instead `CMAKE_CXX_COMPILER_ID` and `CMAKE_CXX_COMPILER`, as it is used already for the `windows` case. Note that the arm version is untested, so a double check with COMPILER_ID and just COMPILER is in place. Fixes NVIDIAGameWorks#39 Signed-off-by: ns <[email protected]>
CMake 3.13.2
The text was updated successfully, but these errors were encountered: