opencv with non default python executable

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

opencv with non default python executable

opencv-users mailing list
Hello

 Following the manual of opencv-3.2 http://docs.opencv.org/trunk/d7/d9f/tutorial_linux_install.html, I used the following command
 cmake -D CMAKE_BUILD_TYPE=Release \\ -D CMAKE_INSTALL_PREFIX=/opt/opencv-3.2.0/built/ \\ -D PYTHON2\(3\)_EXECUTABLE=/opt/python/bin/python3.3 \\ .. I expect that the compiler uses python 3.3, however, the output of the cmake command shows
 -- Python 2: -- Interpreter: /usr/bin/python2 (ver 2.6.6) -- -- Python 3: -- Interpreter: NO -- -- Python (for build): /usr/bin/python2 What did I miss in the command line?
 
 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: opencv with non default python executable [1 Attachment]

opencv-users mailing list
Hi all,
I'm trying to install OpenCV on Ubuntu 16.10
But I'm getting the following attached error while executing the command$ make -j4
Can anyone please suggest a solution for the same?The error screen-shot has been attached.
Regards,Prathamesh Pattar


    On Monday, May 29, 2017 10:03 PM, "[hidden email] [OpenCV]" <[hidden email]> wrote:
 

     Hello
Following the manual of opencv-3.2, I used the following commandcmake -D CMAKE_BUILD_TYPE=Release \\
-D CMAKE_INSTALL_PREFIX=/opt/opencv-3.2.0/built/ \\
-D PYTHON2\(3\)_EXECUTABLE=/opt/python/bin/python3.3  \\
..I expect that the compiler uses python 3.3, however, the output of the cmake command shows --   Python 2:
--     Interpreter:                 /usr/bin/python2 (ver 2.6.6)
--
--   Python 3:
--     Interpreter:                 NO
--
--   Python (for build):            /usr/bin/python2What did I miss in the command line?
  #yiv5363047945 #yiv5363047945 -- #yiv5363047945ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv5363047945 #yiv5363047945ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv5363047945 #yiv5363047945ygrp-mkp #yiv5363047945hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv5363047945 #yiv5363047945ygrp-mkp #yiv5363047945ads {margin-bottom:10px;}#yiv5363047945 #yiv5363047945ygrp-mkp .yiv5363047945ad {padding:0 0;}#yiv5363047945 #yiv5363047945ygrp-mkp .yiv5363047945ad p {margin:0;}#yiv5363047945 #yiv5363047945ygrp-mkp .yiv5363047945ad a {color:#0000ff;text-decoration:none;}#yiv5363047945 #yiv5363047945ygrp-sponsor #yiv5363047945ygrp-lc {font-family:Arial;}#yiv5363047945 #yiv5363047945ygrp-sponsor #yiv5363047945ygrp-lc #yiv5363047945hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv5363047945 #yiv5363047945ygrp-sponsor #yiv5363047945ygrp-lc .yiv5363047945ad {margin-bottom:10px;padding:0 0;}#yiv5363047945 #yiv5363047945actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv5363047945 #yiv5363047945activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv5363047945 #yiv5363047945activity span {font-weight:700;}#yiv5363047945 #yiv5363047945activity span:first-child {text-transform:uppercase;}#yiv5363047945 #yiv5363047945activity span a {color:#5085b6;text-decoration:none;}#yiv5363047945 #yiv5363047945activity span span {color:#ff7900;}#yiv5363047945 #yiv5363047945activity span .yiv5363047945underline {text-decoration:underline;}#yiv5363047945 .yiv5363047945attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv5363047945 .yiv5363047945attach div a {text-decoration:none;}#yiv5363047945 .yiv5363047945attach img {border:none;padding-right:5px;}#yiv5363047945 .yiv5363047945attach label {display:block;margin-bottom:5px;}#yiv5363047945 .yiv5363047945attach label a {text-decoration:none;}#yiv5363047945 blockquote {margin:0 0 0 4px;}#yiv5363047945 .yiv5363047945bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv5363047945 .yiv5363047945bold a {text-decoration:none;}#yiv5363047945 dd.yiv5363047945last p a {font-family:Verdana;font-weight:700;}#yiv5363047945 dd.yiv5363047945last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv5363047945 dd.yiv5363047945last p span.yiv5363047945yshortcuts {margin-right:0;}#yiv5363047945 div.yiv5363047945attach-table div div a {text-decoration:none;}#yiv5363047945 div.yiv5363047945attach-table {width:400px;}#yiv5363047945 div.yiv5363047945file-title a, #yiv5363047945 div.yiv5363047945file-title a:active, #yiv5363047945 div.yiv5363047945file-title a:hover, #yiv5363047945 div.yiv5363047945file-title a:visited {text-decoration:none;}#yiv5363047945 div.yiv5363047945photo-title a, #yiv5363047945 div.yiv5363047945photo-title a:active, #yiv5363047945 div.yiv5363047945photo-title a:hover, #yiv5363047945 div.yiv5363047945photo-title a:visited {text-decoration:none;}#yiv5363047945 div#yiv5363047945ygrp-mlmsg #yiv5363047945ygrp-msg p a span.yiv5363047945yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv5363047945 .yiv5363047945green {color:#628c2a;}#yiv5363047945 .yiv5363047945MsoNormal {margin:0 0 0 0;}#yiv5363047945 o {font-size:0;}#yiv5363047945 #yiv5363047945photos div {float:left;width:72px;}#yiv5363047945 #yiv5363047945photos div div {border:1px solid #666666;min-height:62px;overflow:hidden;width:62px;}#yiv5363047945 #yiv5363047945photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv5363047945 #yiv5363047945reco-category {font-size:77%;}#yiv5363047945 #yiv5363047945reco-desc {font-size:77%;}#yiv5363047945 .yiv5363047945replbq {margin:4px;}#yiv5363047945 #yiv5363047945ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv5363047945 #yiv5363047945ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv5363047945 #yiv5363047945ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv5363047945 #yiv5363047945ygrp-mlmsg select, #yiv5363047945 input, #yiv5363047945 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv5363047945 #yiv5363047945ygrp-mlmsg pre, #yiv5363047945 code {font:115% monospace;}#yiv5363047945 #yiv5363047945ygrp-mlmsg * {line-height:1.22em;}#yiv5363047945 #yiv5363047945ygrp-mlmsg #yiv5363047945logo {padding-bottom:10px;}#yiv5363047945 #yiv5363047945ygrp-msg p a {font-family:Verdana;}#yiv5363047945 #yiv5363047945ygrp-msg p#yiv5363047945attach-count span {color:#1E66AE;font-weight:700;}#yiv5363047945 #yiv5363047945ygrp-reco #yiv5363047945reco-head {color:#ff7900;font-weight:700;}#yiv5363047945 #yiv5363047945ygrp-reco {margin-bottom:20px;padding:0px;}#yiv5363047945 #yiv5363047945ygrp-sponsor #yiv5363047945ov li a {font-size:130%;text-decoration:none;}#yiv5363047945 #yiv5363047945ygrp-sponsor #yiv5363047945ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv5363047945 #yiv5363047945ygrp-sponsor #yiv5363047945ov ul {margin:0;padding:0 0 0 8px;}#yiv5363047945 #yiv5363047945ygrp-text {font-family:Georgia;}#yiv5363047945 #yiv5363047945ygrp-text p {margin:0 0 1em 0;}#yiv5363047945 #yiv5363047945ygrp-text tt {font-size:120%;}#yiv5363047945 #yiv5363047945ygrp-vital ul li:last-child {border-right:none !important;}#yiv5363047945

   
Loading...