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

Need some help building SDK for Fedora 34 #448

Closed
TheDonsky opened this issue Jul 9, 2021 · 2 comments
Closed

Need some help building SDK for Fedora 34 #448

TheDonsky opened this issue Jul 9, 2021 · 2 comments

Comments

@TheDonsky
Copy link

TheDonsky commented Jul 9, 2021

Hello, we are having trouble building the repository on Fedora; We've successfully built and used on Debian (Ubuntu) and Windows.
Here are the usual steps we've taken so far:

  1. pull the repository;
  2. cd physx;
  3. ./generate_projects.sh (with 'linux' option);
  4. cd compiler/linux-checked;
  5. make

Here are a few errors I'm getting from make:

/home/Donsky/Documents/PhysX/physx/include/task/PxTask.h:114:10: error: '~PxTask' overrides a destructor but is not marked 'override' [-Werror,-Wsuggest-destructor-override]

        virtual ~PxTask() {}

                ^

/home/Donsky/Documents/PhysX/physx/include/task/PxTask.h:48:10: note: overridden virtual function is here

        virtual ~PxBaseTask() {}

                ^

/home/Donsky/Documents/PhysX/physx/include/task/PxTask.h:117:18: error: 'release' overrides a member function but is not marked 'override' [-Werror,-Wsuggest-override]

    virtual void release()

                 ^

/home/Donsky/Documents/PhysX/physx/include/task/PxTask.h:80:19: note: overridden virtual function is here

    virtual void                release() = 0;

(there are more like these, but all of them will likely go away if we find cflags and add something like -Wno-inconsistent-missing-destructor-override; Problem is, we don't know how where to make the changes)

Also, a few weeks back we managed to alter the cmake file so that there errors were gone, but forgot how and even after that we were getting some errors regarding CMAKE_LIBRARY_ARCHITECTURE missing...

Can you help us out?

@TheDonsky TheDonsky changed the title Need some help building SDK on arch-linux (Fedora 23) Need some help building SDK for arch-linux (Fedora 23) Jul 9, 2021
@TheDonsky TheDonsky changed the title Need some help building SDK for arch-linux (Fedora 23) Need some help building SDK for Fedora 23 Jul 9, 2021
@TheDonsky TheDonsky changed the title Need some help building SDK for Fedora 23 Need some help building SDK for Fedora Jul 9, 2021
@TheDonsky TheDonsky changed the title Need some help building SDK for Fedora Need some help building SDK for Fedora 34 Jul 9, 2021
@ayoub-belarbi
Copy link
Contributor

Hi @TheDonsky,
Compiler flags for Linux can be added in physx\source\compiler\cmake\linux\CMakeLists.txt.

Please note that CMAKE_LIBRARY_ARCHITECTURE will only work for Debian probably, please check: #215 and #39

and check also: https://github.com/NVIDIAGameWorks/PhysX/blob/4.1/externals/cmakemodules/GetCompilerAndPlatform.cmake

Thanks

@TheDonsky
Copy link
Author

Hello @ayoub-belarbi ,
Thanks a lot!

Adding "-Wno-suggest-override -Wno-suggest-destructor-override -Wno-dtor-name" to CLANG_WARNINGS at line 31 helped and we did not get any additional errors this time.

We can make make a pull request if you think it'll be useful

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