Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

enable static libraries for openjpeg #49483

Closed
wants to merge 1 commit into from
Closed

enable static libraries for openjpeg #49483

wants to merge 1 commit into from

Conversation

jeroen
Copy link
Contributor

@jeroen jeroen commented Feb 24, 2016

This includes the static library libopenjpeg.a. Should have no further side effects.

system "cmake", ".", *std_cmake_args
args = std_cmake_args
system "cmake", ".", *args
system "make", "install"
Copy link
Contributor

Choose a reason for hiding this comment

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

You're running make install twice; is that intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it first installs the dynamic build and then the static one. I don't think you can do them both simultaneously although I didn't try.

Copy link
Member

Choose a reason for hiding this comment

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

Having to run make install twice kind of makes me want to say this should be an option 😕.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mmm I'd really like to grab the static libraries from the bottles. I can try to run make twice and make install only once?

Copy link
Member

Choose a reason for hiding this comment

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

It's more that not everyone will want/need the static library, and making them go through the build process twice for it feels a bit heavy-handed. I don't know. I'll let the other maintainers chime in.

Copy link
Contributor

Choose a reason for hiding this comment

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

If you ask the developers to modify their make/CMake scripts to build both with a single install, I'd be happy to have it on by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that would be difficult for the openjpeg developers to implement in a way that works on all platforms. They would probably suggest the current solution of building the static and shared library separately as most distributions currently do.

Copy link
Member

Choose a reason for hiding this comment

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

I've done enough CMake to know it's not actually very hard.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've opened an issue upstream: uclouvain/openjpeg#717. I'll update this PR to make it optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK I updated the PR to make this optional now. Thanks for the help.

@jeroen
Copy link
Contributor Author

jeroen commented Feb 25, 2016

Updated this PR to make the static library optional. This should be completely harmless?

@DomT4
Copy link
Member

DomT4 commented Feb 25, 2016

You added some unnecessary whitespacing on the empty lines I'm afraid 😢 -

openjpeg:
 * 18: Trailing whitespace was found
 * 20: Trailing whitespace was found
 * 28: Trailing whitespace was found

@jeroen
Copy link
Contributor Author

jeroen commented Feb 25, 2016

OK sorry about that, should be removed now.

@DomT4
Copy link
Member

DomT4 commented Feb 25, 2016

Merged in 5b7d569. Thank you for another contribution to Homebrew @jeroenooms! 😃.

If you can get upstream to fix the requirement for a double build process we'd be happy to bottle the static library here.

@DomT4 DomT4 closed this in 5b7d569 Feb 25, 2016
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants