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

Fix cmake configure on Linux #106

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix cmake configure on Linux #106

wants to merge 2 commits into from

Conversation

Tea23
Copy link

@Tea23 Tea23 commented Jan 19, 2023

Some of the Mac specific stuff is included in the CMake dependency lists (namely the directives in AddImportedTarget.cmake.

This does not build on Linux, but it gets us through being able to do the initial configure.

Removing double colons from packages also silences a few warnings.

Tea23 and others added 2 commits January 18, 2023 21:46
CMake still complains that there is no project() command. This commit was left over in my PR because of testing.
@@ -4,7 +4,7 @@
using namespace Sourcehold;
using namespace System;

static AVInputFormat *bink_input;
static AVInputFormat *bink_input const;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This throws an error:

/home/runner/work/Sourcehold/Sourcehold/src/FFMPEG/FFmpegUtil.cpp:7:33: error: expected ';' after top level declarator [clang-diagnostic-error]
static AVInputFormat *bink_input const;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove the const again?

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

Successfully merging this pull request may close these issues.

None yet

2 participants