Skip to content

{vis}[mixed] OpenCV 3.1.0 fix ippicv source download and library install (REVIEW)#4126

Merged
boegel merged 2 commits intoeasybuilders:developfrom
hajgato:opencv_ippicv
Feb 21, 2017
Merged

{vis}[mixed] OpenCV 3.1.0 fix ippicv source download and library install (REVIEW)#4126
boegel merged 2 commits intoeasybuilders:developfrom
hajgato:opencv_ippicv

Conversation

@hajgato
Copy link
Copy Markdown
Collaborator

@hajgato hajgato commented Feb 13, 2017

No description provided.

]

#The destination directory is "linux-<MD5>" see 3rdparty/ippicv/downloader.cmake
preconfigopts = 'mkdir -p {0} && cp -a ../*.tgz {0}. &&'.format("3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hajgato line is too long, how about this:

ippicv_dir = '3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/'
preconfigopts = "mkdir -p {0} && cp -a ../*.tgz {0} && ".format(ippicv_dir)

I'm not a big fan of using .format in easyconfigs, but admittedly this is not better:

preconfigopts = "mkdir -p %s && cp -a ../*.tgz %s && " % (ippicv_dir, ippicv_dir)

That does follow the easyconfigs style we usually go with though...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ boegel: OK


sources = [
'%(version)s.zip',
('ippicv_linux_20151201.tgz', 'cp %s %(builddir)s'),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hajgato does this actually work? Don't you need to use cp %s %%(builddir)s or cp %%s %(builddir)s (not sure which template is resolved first)?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@boegel Actually it worked for me. I have checked in the builddir, and the file was there.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, that's pretty strange actually...

>>> "%s %(builddir)s" % {'builddir': 'test'}
"{'builddir': 'test'} test"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, no, it makes sense, the resolve_template method is smart enough to translate %s into %%s by itself before resolving the named templates, so fine as is

configopts += '-DENABLE_SSE=ON -DENABLE_SSE2=ON -DENABLE_SSE3=ON '
configopts += '-DWITH_CUDA=OFF '

postinstallcmds = ["cp 3rdparty/ippicv/unpack/ippicv_lnx/lib/intel64/libippicv.* %(installdir)s/lib"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be reflected in sanity_check_paths? (also, remove the double space ;-))

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@boegel done

@boegel boegel added this to the 3.2.0 milestone Feb 16, 2017
@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 20, 2017

Test report by @boegel
SUCCESS
Build succeeded for 3 out of 3 (3 easyconfigs in this PR)
node2111.delcatty.os - Linux centos linux 7.3.1611, Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz, Python 2.7.5
See https://gist.github.com/2cb523d213aa688103c9e913d1eb80b5 for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 20, 2017

lgtm

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 20, 2017

Test report by @boegel
SUCCESS
Build succeeded for 3 out of 3 (3 easyconfigs in this PR)
node2625.swalot.os - Linux centos linux 7.3.1611, Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz, Python 2.7.5
See https://gist.github.com/d744f7d6927facad228dc770f35a9726 for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 21, 2017

Going in, thanks @hajgato!

@boegel boegel merged commit 34eca6b into easybuilders:develop Feb 21, 2017
@boegel boegel modified the milestones: 3.2.0, 3.1.1 Feb 28, 2017
@hajgato hajgato deleted the opencv_ippicv branch June 8, 2017 13:20
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.

2 participants