Ask Your Question
0

Docs on various switches for building OpenCV 4 under Linux

asked 2019-09-01 14:52:55 -0600

Martian gravatar image

Previous post, I had inquired about specific switches for fast execution. But perhaps that is not well-traveled terrain.

So maybe the better question would be whether the multitude of CMake switches are documented anywhere. I'm just trying to gain some insight into which flags could be beneficial.

edit retag flag offensive close merge delete

Comments

If this is closed as a duplicate, isn't it normal practice to add a link to the original post that answers the question? I didn't see it in my searches. In fact, I searched for many of the OpenCV 4 flags that I was curious about, and they did not turn up.

Martian gravatar imageMartian ( 2019-09-02 04:13:45 -0600 )edit

I'd still like to know: This is a duplicate of -which- question?

Martian gravatar imageMartian ( 2019-09-02 17:45:54 -0600 )edit

That's the same question as previous one : you wrote it.

answer to your question : there is no doc on various switches for building OpenCV 4 under Linux

LBerger gravatar imageLBerger ( 2019-09-03 01:23:06 -0600 )edit

Nope. The previous question was specific to prerequisite libraries for improving runtime performance. It would entail settings of a small number of switches, not the whole confusing gamut of possible (and presumably undocumented switches). Please also note that I did get one reply to the previous inquiry, and though it was helpful, it related to only a couple of the compile options.

So I believe this question is valid. Cmake-Gui brings up a few pages of options that must be meaningful to those building OpenCV 4. It's hard to believe that there would be no documentation, given the effort that must have gone into generating the options. If this is re-opened, perhaps some could contribute information that would be valuable.

Martian gravatar imageMartian ( 2019-09-03 01:55:08 -0600 )edit
1

Are you using raspberry pi or pc?

supra56 gravatar imagesupra56 ( 2019-09-03 09:09:05 -0600 )edit

Setting up a couple Linux-based workstations for neural net development. Code is written in both C++ and Python. I've had a couple systems running OpenCV 3.x. The build process was tedious, and I didn't want to risk blowing up the previous development environments, so I've set up new workstations in order to move to OpenCV 4.

It seems logical that someone, somewhere, would have documented the options that are displayed by cmake-gui. I've done google searches for the names of individual options, but for the most part, I haven't found anything.

Martian gravatar imageMartian ( 2019-09-03 16:18:44 -0600 )edit

2 answers

Sort by » oldest newest most voted
2

answered 2019-09-04 10:46:48 -0600

LBerger gravatar image

I found something for you https://github.com/opencv/opencv/wiki...

hope its help

edit flag offensive delete link more

Comments

1

That is excellent, LB! Thanks. The doc relates primarily to CPU instruction set (SSE,AVX,etc) but may be very helpful with one of the other problems I was pondering: Whether an OpenCV-based Docker image would be truly transportable to other machines. That's a separate subject though.

Now if they'd only generate docs for the rest of the flags! :-)

Martian gravatar imageMartian ( 2019-09-05 02:05:56 -0600 )edit
1

answered 2019-09-24 20:11:06 -0600

Martian gravatar image

I found a couple references that may be helpful for others who are trying to figure this out:

For Windows: Installation of OpenCV 4.1.0 in Windows 10 from source https://cv-tricks.com/how-to/installa...

For Linux: Comprehensive guide to installing OpenCV 4.1.0 on Ubuntu 18.04 from source: https://cv-tricks.com/installation/op...

There is some overlap, but Linux programmers should check the Windows article, and vice versa. There are other helpful articles on that site. Many about deep learning. It's worth a look.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-09-01 14:52:55 -0600

Seen: 258 times

Last updated: Sep 24 '19