-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add freeimage 3.18.0 #2672
Add freeimage 3.18.0 #2672
Conversation
Some configurations of 'freeimage/3.18.0' failed in build 1 (
|
Some configurations of 'freeimage/3.18.0' failed in build 2 (
|
Some configurations of 'freeimage/3.18.0' failed in build 3 (
|
Some configurations of 'freeimage/3.18.0' failed in build 4 (
|
Some configurations of 'freeimage/3.18.0' failed in build 5 (
|
self.copy("license-gplv2.txt", dst="licenses", src=self._source_subfolder) | ||
|
||
def package_info(self): | ||
self.cpp_info.libs = tools.collect_libs(self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.cpp_info.libs = tools.collect_libs(self) | |
self.cpp_info.libs = ["freeimageplu", "freeimage"] |
self.cpp_info.names["cmake_find_package"] = "FreeImage" | ||
self.cpp_info.names["cmake_find_package_multi"] = "FreeImage" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These names are not official, aren't they?
self.cpp_info.names["cmake_find_package"] = "FreeImage" | |
self.cpp_info.names["cmake_find_package_multi"] = "FreeImage" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right. I just use the most popular pattern. (Ex: https://github.com/OGRECave/ogre/blob/master/CMake/Packages/FindFreeImage.cmake)
s_plugins->AddNode(InitRAS); | ||
s_plugins->AddNode(InitTARGA); | ||
+#if 0 | ||
s_plugins->AddNode(InitTIFF); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't our libtiff recipe working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FreeImage need a private copy of libtiff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too many modifications? Dammit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's painful. Look at vcpkg port, It's really annoying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://sourceforge.net/p/freeimage/discussion/36111/thread/c326f1be79/
So it's unlikely that something will be done to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really know how to fix it:
- Disabling some features and patching sources
or - Using embedded deps sources
Both have huge drawbacks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, if you're saying that it's a lot of work to make it truly use external dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that big patches to unvendor all these deps -like in the vcpkg port- are fine. The last version of freeimage is 2.5 years old.
s_plugins->AddNode(InitGIF); | ||
s_plugins->AddNode(InitHDR); | ||
+#if 0 | ||
s_plugins->AddNode(InitG3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What library are we missing?
Can you open an issue?
@@ -0,0 +1,155 @@ | |||
--- Source/FreeImage/J2KHelper.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's not too much trouble, can you upstream this patch?
I think the biggest trouble will be modifying all makefiles to add the include paths.
return self._cmake | ||
|
||
def build(self): | ||
# tools.rmdir(os.path.join(self._source_subfolder, "Source", "LibJPEG")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can libjpeg be removed? You're adding libjpeg to the requires list.
Same question for the Zlib directory.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions. |
Specify library name and version: freeimage/3.18.0
conan-center hook activated.