Skip to content
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

use packaged "opencv" from OS #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marvin2k
Copy link
Contributor

previously, opencv-2.4.9 was downloaded and compiled from source. now use the precompiled, package version from the OS. this comes in:

Debian Testing (Jessie): 2.4.9
Debian Stable (Wheezy): 2.3.1 # quite old. Is Wheezy still supported? boostrap.sh fails if unmodified (--no-check-certificate)
Ubuntu 14.04 (Trusty): 2.4.8
Ubuntu 12.04 (Precise): 2.3.1 # 12.04 is not supported anymore?

there are more OS in the osdeps-file, where I just assume they bring similar packaged versions.

tested "image_processing/{frame_helper,stereo} in Jessie and Trusty. but obviously that shouldn't be it. which packages else?

Signed-off-by: Martin Zenzes [email protected]

previously, opencv-2.4.9 was downloaded and compiled from source. now use the precompiled, package version from the OS. this comes in:

Debian Testing (Jessie): 2.4.9
Debian Stable (Wheezy): 2.3.1  # quite old. but is Wheezy still supported? boostrap.sh fails unmodified
Ubuntu 14.04 (Trusty): 2.4.8
Ubuntu 12.04 (Precise): 2.3.1  # not supported anymore?

there are more OS in the osdeps-file, where I just assume they bring similar packaged versions.

tested "image_processing/{frame_helper,stereo} in Jessie and Trusty. but obviously that shouldn't be it. which packages else?

Signed-off-by: Martin Zenzes <[email protected]>
@D-Alex
Copy link
Member

D-Alex commented Dec 19, 2014

The idea of having extern/opencv was to be able to use newer version than the OS is providing (OpenCV 3.0 Beta for example). The best way would be therefore to track the git. But because of compatibly reasons some people refused to switch from archive to git. Therefore, I would also vote for removing it all together because right now you cannot even overwrite external/opencv with a git in your local installation without changing the package set.

👍

@jakobs
Copy link
Member

jakobs commented Jan 15, 2015

Is this still valid?

@doudou
Copy link
Member

doudou commented Jan 15, 2015

Therefore, I would also vote for removing it all together because right now you cannot even overwrite external/opencv with a git in your local installation without changing the package set.

At the time, a significant number of rock installs were building opencv "by hand" because older ubuntu versions only had very old opencv versions. The problem with changing archive to git then was that it would break "autoproj update" for all of them.

@D-Alex: why would you have to modify the package set ? (as opposed to using an override ?)

@D-Alex
Copy link
Member

D-Alex commented Jan 15, 2015

The last time I tried it was not possible to overwrite a tar with a git repository via overwrite.yml and I had to modify the package set

@jakobs
Copy link
Member

jakobs commented Jan 16, 2015

Seems like an issue with autoproj then.

@doudou
Copy link
Member

doudou commented Jan 16, 2015

Just tried it. It works as expected: the importer is updated to be a git importer, but import fails because the current checkout is not a git repository

@planthaber
Copy link
Member

So could you merge this request to get the bootstrapping working until the importer issue is fixed?

@doudou
Copy link
Member

doudou commented Feb 20, 2015

Sorry I missed something: how does this affect bootstrapping ?

@planthaber
Copy link
Member

Because the Debian definition points to the opencv source archive, inside this, the folder name changed: #19 so bootstrapping with a package set with a opencv dependency just fails.

As the apt-get package from debian has the same version, this PR is favorable over #19

This is not something exactly what should happen for a "supported OS", when "using it on a supported OS" can be broken vor over 2 months

@doudou
Copy link
Member

doudou commented Feb 24, 2015

This is not something exactly what should happen for a "supported OS", when "using it on a supported OS" can be broken vor over 2 months

Debian is not officially supported, so take a deep breath here.

There are basically two problems at hand:

  • Rock tries to build from source on jessie, while it should use the prepackaged opencv
  • the current OpenCV archive does not check out

Given that, removing the build-from-source definition is throwing the baby with the bathwater. Next time someone wants to build from source, he'll have to redo the work. I've cherry-picked and pushed the osdep commit. I would welcome changing the opencv source definition to use the git checkout (as suggested by @marvin2k) if someone is willing to do it, or I'll do it later on.

@planthaber
Copy link
Member

I would welcome changing the opencv source definition to use the git checkout (as suggested by @marvin2k) if someone is willing to do it, or I'll do it later on.

Alex already did that:
#14

You marked it "do not merge" because of an issue with the importer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants