-
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
qwt 6.1.6 #5887
qwt 6.1.6 #5887
Conversation
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
This reverts commit 7aa4fc3.
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
I detected other pull requests that are modifying qwt/all recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
This comment has been minimized.
This comment has been minimized.
recipes/qwt/all/conanfile.py
Outdated
self.run("{} && qmake {}".format(vcvars, self._source_subfolder), run_environment=True) | ||
self.run("{} && nmake".format(vcvars)) | ||
else: | ||
self.run("qmake {}".format(self._source_subfolder), run_environment=True) | ||
self.run("make -j {}".format(tools.cpu_count())) |
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 it robust?
What about MinGW?
Cross compilation? (qt is not in build requirements, I guess qmake comes from qt recipe).
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.
yes you are right: qmake comes from qt recipe.
Can a recipe be both a requirement and a build_requirement at the same time ?
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.
yes, it works like a charm with 2 profiles. It also works with 1 profile, but it breaks quickly when versions are different in requirements and build requirements.
AFAIR, conan plans to change 1 profile so that it behaves like 2 profiles.
Until it's implemented, you can do:
def requirements(self):
self.requires("qt/5.15.2")
def build_requirements(self):
if tools.cross_building(self.settings):
self.build_requires("qt/5.15.2")
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.
qmake is always intended to run on the build platform, so it should be fine without this change right ?
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 v2 will always work as if there were two profiles defined. Here in CCI we are now adding our first cross-building scenario (we are fighting with M1) and the plan is to start using two profiles for all the builds (for native ones) at some point in time. We need to check that they work as expected, specially regarding the computation of package IDs.
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 think it's required to have things like MinGW and cross-compilation in the first iteration.
having recipe what works only for native builds is still better than having no recipes, and it would probably satisfy ~90% of users.
things like MinGW and cross-building could be added on demand.
@@ -0,0 +1,4 @@ | |||
sources: | |||
"6.1.6": | |||
url: "https://sourceforge.net/projects/qwt/files/qwt/6.1.6/qwt-6.1.6.zip" |
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.
tar.gz?
"thermometers, wheels and knobs to control or display values, arrays, or ranges of type double." | ||
) | ||
settings = "os", "compiler", "build_type", "arch" | ||
options = { |
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.
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
RIP I've never seen that 🤯 |
probbaly it is better to use Ninja instead of nmake, also it may make sense to enable ninja response file. (CMAKE_NINJA_FORCE_RESPONSE_FILE) |
All green in build 3 (
|
* added recipe for qwt 6.1.6 * Update recipes/qwt/all/conanfile.py Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> * Update recipes/qwt/all/conanfile.py Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> * fixed conan test * Update recipes/qwt/all/conanfile.py Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * Update recipes/qwt/all/conanfile.py Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * del self.options.fPIC for test package * del self.options.fPIC for test package * use get_safe to check fPIC option * set target_compile_options to -fPIC * fix debug lib name for non windows system * Update recipes/qwt/all/conanfile.py Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> * Update recipes/qwt/all/test_package/CMakeLists.txt Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> * Revert "Update recipes/qwt/all/test_package/CMakeLists.txt" This reverts commit 7aa4fc3. * Update recipes/qwt/all/conanfile.py Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> * Update recipes/qwt/all/conanfile.py Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> * specify required_conan_version * Apply suggestions from code review Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> * use jom instead of nmake Co-authored-by: Walid Boussaffa <boussaffa.walid@outlook.com> Co-authored-by: Chris Mc <prince.chrismc@gmail.com> Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
Specify library name and version: qwt/6.1.6
all the work has be done by @boussaffawalid , kudos to him !
closes #4528
conan-center hook activated.