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

Guard against CMAKE_GENERATOR in the environment #5804

Open
JohannesKauffmann opened this issue Feb 25, 2024 · 0 comments
Open

Guard against CMAKE_GENERATOR in the environment #5804

JohannesKauffmann opened this issue Feb 25, 2024 · 0 comments

Comments

@JohannesKauffmann
Copy link

Problem Description

When building the SVT-AV1 contrib, I ran into an error because I had set CMAKE_GENERATOR=ninja in my environment (so that CMake generates ninja build files), but the Handbrake build script continued calling make, which obviously fails if no Makefile exists.

I've had this issue with SVT-AV1, but I assume the same issue exists for other CMake-based contribs.

I'm no Handbrake.git expert, but generally there are a couple ways to prevent this issue:

  • set CMAKE_GENERATOR="" or unset CMAKE_GENERATOR when configuring CMake projects, to guard against the environment
  • use cmake --build instead of make for CMake-based projects, so that the generator doesn't matter
  • pass -G "Unix Makefiles" to CMake, to always generate Makefiles

Activity Log, Crash Log or any other details

user@host:/HandBrake/build$ make
make -C ./contrib/svt-av1/SVT-AV1-v1.7.0/build clean
make[1]: Entering directory '/HandBrake/build/contrib/svt-av1/SVT-AV1-v1.7.0/build'
make[1]: *** No rule to make target 'clean'.  Stop.
make[1]: Leaving directory '/HandBrake/build/contrib/svt-av1/SVT-AV1-v1.7.0/build'
make: [../contrib/svt-av1/module.rules:2: contrib/svt-av1/.stamp.svt-av1.build] Error 2 (ignored)
/usr/bin/rm -f ./contrib/svt-av1/.stamp.svt-av1.build
make -C ./contrib/svt-av1/SVT-AV1-v1.7.0/build
make[1]: Entering directory '/HandBrake/build/contrib/svt-av1/SVT-AV1-v1.7.0/build'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory '/HandBrake/build/contrib/svt-av1/SVT-AV1-v1.7.0/build'
make: *** [../contrib/svt-av1/module.rules:3: contrib/svt-av1/.stamp.svt-av1.build] Error 2

What Operating System are you running?

Ubuntu 23.10

What version of HandBrake are you running?

1.7.3

Where did you download HandBrake from?

No response

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

No branches or pull requests

2 participants