-
Notifications
You must be signed in to change notification settings - Fork 14
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
Always build OpenCV with CMAKE_BUILD_TYPE=Release (fix #14) #15
Always build OpenCV with CMAKE_BUILD_TYPE=Release (fix #14) #15
Conversation
See ros-gbp#14 for details.
The binary Debian package build from this branch solved to problem described in #14 for us (in Ubuntu Xenial using ROS kinetic): Steps to build the package locally (for any supported Ubuntu/Debian version, requires cd /tmp
git clone https://github.com/meyerj/opencv3-release.git
cd opencv3-release
git-bloom-generate -y rosdebian --prefix release/kinetic kinetic -i 2
# This may take a while and eventually bloom will ask you for the version to be released (3.3.1)...
# Then checkout the newly created or updated tag, e.g.
git checkout debian/ros-kinetic-opencv3_3.3.1-2_xenial
# ... and finally build the package with
debuild -us -uc -b The deb file will be created in the parent folder. The same approach should also work for Any chance to have this merged soon and trigger another release for the ROS build farm? I assume the upstream version can stay the same. |
Thanks for the ping @meyerj . @vrabaud I saw you were working on a new release but rolled it back. ros/rosdistro#16773 Will you have a chance to look at this soon? Otherwise I can look at rolling a new version. |
Bumping to see if we can finally get a working version distributed. |
After the next Kinetic sync I plan to test deploying it with this patch. @vrabaud Since it seems you're busy these days do you have any notes from your previous releases that I could follow since I know you use a slightly non-standard release mechanism? |
WIth the fix from: ros-gbp/opencv3-release#15
Related: ros-perception/vision_opencv#193 |
* opencv3 3.3.1-3 for kinetic With the fix from: ros-gbp/opencv3-release#15
Ok, after several tries I believe that this patched version of opencv3 is now in kinetic 3.3.1-5 ros/rosdistro#17136 There was a bunch of learning and some forced updates required. Right now that version has landed in the testing repo for amd64 builds and should be in the arm builds by the morning. @pbeeson @meyerj could you try it out to verify it's resolved? |
After pulling opencv3 and cv-bridge from the Shadow Repository, my code compiles without needing any special CMake magic to work around the previous bug. Great! |
Seems to work for me, too, but I noticed that with 3.3.1-5 the OpenCV libraries are installed to |
Thanks, I think that path is ok as that's a standard using the GNUInstallDirs and is the layout that the system installation uses as well. And found that the full path for the libraries are correctly embedded in the /opt/ros/kinetic/share/OpenCV-3.3.1-dev/OpenCVModules-release.cmake file. I checked that the find_package calls all work.
|
Ah, I was not aware of ros/catkin#624. |
Including ros-gbp/opencv3-release#15 The same as Kinetic update: #17136
Including ros-gbp/opencv3-release#15 The same as Kinetic update: #17136
Including ros-gbp/opencv3-release#15 The same as Kinetic update: ros#17136
... to fix
RelWithDebInfo
builds of derived packages.There might be several other options to fix the problem, e.g. by patching upstream OpenCV.
I verified that bloom properly exports the patch and reapplies it for each new release (in kinetic) once this pull request would be merged. The same patch should be applied to
debian/lunar/opencv3
, which has the same version and is probably also affected.