Ask Your Question
0

compile opencv withough gui

asked 2014-08-30 11:31:31 -0600

curtis newton gravatar image

hello,

as I cant compile opencv on ubuntu 14.04/arm platform (highgui has errors)

(my previous unresolved thread here http://answers.opencv.org/question/40348/error-compiling-245-on-ubuntu/)

I wanted to know if I could add a compile flag not to use highgui

I use my own anyway

thanks

edit retag flag offensive close merge delete

Comments

you could add -DBUILD_opencv_highgui=OFF to your cmake flags

but that would probably render some other modules (dependant on) that unavailable

berak gravatar imageberak ( 2014-08-30 14:16:14 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-22 07:16:35 -0600

I believe you should remove the portions of code using the highgui, and then compile for ARM. (without the -lopencv_highgui command)
For example: functions with imshow() or imread() make use of highgui libraries. So you must remove them if you dont want to use the gui.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-08-30 11:31:31 -0600

Seen: 242 times

Last updated: Feb 22 '17