-
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/ignition math #4045
Add/ignition math #4045
Conversation
Failure in build 1 (
|
An unexpected error happened and has been reported. Help is on its way! 🏇 |
All green in build 3 (
|
self.requires("eigen/3.3.7") | ||
|
||
def build_requirements(self): | ||
self.build_requires("pkgconf/1.7.3") |
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.
Why is it required?
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 in the original PR 🤷♂️ it worked so I didn't ask 🙈
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.
Seems to be useless. eigen is the only dependency, and I would be surprised that underlying build files of ignition-math use pkg-config to consume eigen in a CMake based project.
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.
Good catch.. I'll test it locally since I have a few PR to follow up =)
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
All green in build 5 (
|
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.
cosmetic suggestion: move source()
before build()
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
All green in build 6 (
|
- static const std::regex time_regex( | ||
+ static const char* time_regex_str = |
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's wrong with creating std::regex here?
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.
Excellent questions....
From the original author #3215 (comment)
After a lot of pain, I was able to solve the segfault error that was happening. The problem was the static initialization of a std::regex variable: https://github.com/ignitionrobotics/ign-math/blob/51eb0640a0c7454c36fef1a3007d3db37fe9165f/include/ignition/math/Helpers.hh#L873, which I solved by creating a raw static char* and using that to initialize a local static (static inside the function) std::regex variable: https://github.com/conan-io/conan-center-index/pull/3215/files#diff-e2f831892c4567a7388d8d62242576015a59f008af8dd34c946996d15f6991e9
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 see what problem it fixes and how, but good to know it fixes something :)
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 agree... I just didn't want to waste the time we put in so I wanted to keep it but I have no clue what this project is or does.
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.
Ok, works for me 👍
Specify library name and version: ignition-math/6.7.0
conan-center hook activated.
This is to save all the hard work we put in #3215