-
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 VTK/9.0.1 - help needed! #3280
Conversation
…framework. Before first time build trial
…HOOK errors. Package not tested yet.
…ssfully, test test_package successful (no HOOK errors/warnings)
…ind_package_multi" generators. Lnx not checked
atrelinski seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Not sure why CLA is pending while I've signed it (after fixing commit email address) |
All green in build 21 (
|
madebr, thank You for analysis! |
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. |
It looks like, I won't find more time to improve recipe :( For those who would like to improve VTK 9.0.1 recipe or use it here is link to it: |
I found that the 3rd-party libraries contained in VTK are modified special versions. The symbols are changed so that it should not conflict with the packages directly used by the user. Is it still necessary to use the cci version of those packages? |
Hi, @atrelinski I see the license/cla is pending. I feel like there is nothing we can do on our side if the notification from the license/app doesn't arrive... maybe the easiest way for you is to close this PR and open a new one with these same changes. |
# FIXME: Missing qt recipe. Qt recipe PR: https://github.com/conan-io/conan-center-index/pull/1759 | ||
# When qt available, "self.requires("qt/5.15.1")" should replace below line. | ||
raise ConanInvalidConfiguration("qt is not (yet) available on conan-center-index") |
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 was merged 🎉
if self.options.group_rendering: | ||
self.requires("opengl/system") | ||
if self.options.module_ioxdmf3: | ||
self.requires("boost/1.74.0") |
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.requires("boost/1.74.0") | |
self.requires("boost/1.75.0") |
self._cmake = CMake(self) | ||
self._cmake.definitions["BUILD_TESTING"] = "OFF" | ||
self._cmake.definitions["BUILD_EXAMPLES"] = "OFF" | ||
self._cmake.definitions["BUILD_SHARED_LIBS"] = "ON" if self.options.shared else "OFF" |
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.
Conan handles the translation
self._cmake.definitions["BUILD_SHARED_LIBS"] = "ON" if self.options.shared else "OFF" | |
self._cmake.definitions["BUILD_SHARED_LIBS"] = self.options.shared |
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 see elsewhere it's very strict... is that the case here?
for module in self._modules: | ||
# Defines shouldn't be left uninitalized, however VTK has so many _modules, that | ||
# it ends up as "The command line is too long." error on Windows. | ||
if self.options.get_safe("module_{}".format(module.lower()), default=False): |
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 self.options.get_safe("module_{}".format(module.lower()), default=False): | |
# FIXME: remove top level if | |
if self.options.get_safe("module_{}".format(module.lower()), default=False): |
def build(self): | ||
if self.options.group_qt: | ||
if self.options["qt"].shared == False: | ||
raise ConanInvalidConfiguration("VTK option 'group_qt' requires 'qt:shared=True'") | ||
if self.settings.os == "Linux": | ||
if self.options["qt"].qtx11extras == False: | ||
raise ConanInvalidConfiguration("VTK option 'group_qt' requires 'qt:qtx11extras=True'") |
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.
def build(self): | |
if self.options.group_qt: | |
if self.options["qt"].shared == False: | |
raise ConanInvalidConfiguration("VTK option 'group_qt' requires 'qt:shared=True'") | |
if self.settings.os == "Linux": | |
if self.options["qt"].qtx11extras == False: | |
raise ConanInvalidConfiguration("VTK option 'group_qt' requires 'qt:qtx11extras=True'") | |
def validate(self): | |
if self.options.group_qt: | |
if self.options["qt"].shared == False: | |
raise ConanInvalidConfiguration("VTK option 'group_qt' requires 'qt:shared=True'") | |
if self.settings.os == "Linux": | |
if self.options["qt"].qtx11extras == False: | |
raise ConanInvalidConfiguration("VTK option 'group_qt' requires 'qt:qtx11extras=True'") | |
def build(self): |
if self.settings.compiler != "gcc": | ||
return libs | ||
libs_ordered = [] | ||
print('VTK libs before sort: ' + (';'.join(libs))) |
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.
There is a self.output.info
for the conan-ization of print
|
||
if not self.options.shared and self.options.group_qt: | ||
if self.settings.os == 'Windows': | ||
self.cpp_info.system_libs.append('Ws2_32') # 'vtksys-9.0d.lib' require 'gethostbyname', 'gethostname', 'WSAStartup' and 'WSACleanup' which are in 'Ws2_32.lib' library |
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.system_libs.append('Ws2_32') # 'vtksys-9.0d.lib' require 'gethostbyname', 'gethostname', 'WSAStartup' and 'WSACleanup' which are in 'Ws2_32.lib' library | |
self.cpp_info.system_libs.append('ws2_32') # 'vtksys-9.0d.lib' require 'gethostbyname', 'gethostname', 'WSAStartup' and 'WSACleanup' which are in 'Ws2_32.lib' library |
version_split = self.version.split('.') | ||
short_version = "{}.{}".format(version_split[0], version_split[1]) |
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.
version_split = self.version.split('.') | |
short_version = "{}.{}".format(version_split[0], version_split[1]) | |
version = tools.Version(self.version) | |
short_version = "{}.{}".format(version.major, version.minor) |
# Why "vtknetcdf" and "vtknetcdfcpp" are treated exceptionally from all other _modules? | ||
# There are a lot of other *.h in subfolders, should they be directly exposed too | ||
# or maybe those two should be removed from below? |
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.
Is this how the CMake targets are exposed? Maybe put a link?
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.
There's at time some fuss about mixing '
and "
, being C++ developers there are strong preference for the double quote consistency.
There's a few items I listed above, can you please just make it consistent in your next commit?
You'll need to edit the commit authorship on all of commits to fix the CLA ( or just squash and force push ) There is no GitHub account associated to the email that the commits are being made against ( it needs to match the account you are using to open the PR ) |
Failure in build 22 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
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. |
I would like to continue work on VTK recipe. |
Please submit a PR ! |
Specify library name and version: vtk/9.0.1
conan-center hook activated.