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

Attempting to use cmake instead of make (example) #6749

Draft
wants to merge 153 commits into
base: develop
Choose a base branch
from

Conversation

Kreijstal
Copy link
Contributor

@Kreijstal Kreijstal commented Dec 26, 2024

I've managed to compile webots (core) on archlinux
#6743

cmake -GNinja -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -B build -DCMAKE_INSTALL_PREFIX=dummy
cmake --build build

The reason I did this is because I believe cmake can speed the compilation a lot... of course there is a lot to do, but I find the curren makefiles are a bit buggy and nonstandard so it's hard to package webots to a distro like debian or even msys2. This might help someone who wants to compile webots on nonubuntu distros and might even replace the current makefiles as they are. Enjoy

In msys2 you can try

pacboy -S ois:p sccache:p qt6:p stb:p pkgconf:p popt:p openvr:p dlfcn:p openal:p cc:p cmake:p --needed

@Kreijstal
Copy link
Contributor Author

I think for this to make sense the hardcoded paths on the binaries have to be removed, using msys2/mingw64 as path was never a good idea for windows. Not sure how the community will take doing these changes.

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

Successfully merging this pull request may close these issues.

1 participant