Re: [Tizen IVI 3.0] Compile Opencv with Qt
On Thu, May 22, 2014 at 1:19 PM, VanCutsem, Geoffroy < geoffroy.vancut...@intel.com> wrote: > Hi Mikko, > > (sorry for top-posting) > > Is there any interdependency between the two options (it does not look > like it at first glance)? > It means you'd need to build Qt bits using WITH_OPENGL=OFF. ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
RE: [Tizen IVI 3.0] Compile Opencv with Qt
Hi Mikko, (sorry for top-posting) Is there any interdependency between the two options (it does not look like it at first glance)? Thanks, Geoffroy From: Ylinen, Mikko [mailto:mikko.yli...@intel.com] Sent: Thursday, May 22, 2014 11:55 AM To: VanCutsem, Geoffroy Cc: Rees, Kevron M; Philippe Coval; ivi@lists.tizen.org Subject: Re: [Tizen IVI 3.0] Compile Opencv with Qt On Wed, May 21, 2014 at 4:32 PM, VanCutsem, Geoffroy mailto:geoffroy.vancut...@intel.com>> wrote: +1 on enabling the Qt-OpenCV bits. Just be aware of https://review.tizen.org/gerrit/#/c/20121/ Intel Corporation NV/SA Kings Square, Veldkant 31 2550 Kontich RPM (Bruxelles) 0415.497.718. Citibank, Brussels, account 570/1031255/09 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
On Wed, May 21, 2014 at 4:32 PM, VanCutsem, Geoffroy < geoffroy.vancut...@intel.com> wrote: > +1 on enabling the Qt-OpenCV bits. > > Just be aware of https://review.tizen.org/gerrit/#/c/20121/ ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
RE: [Tizen IVI 3.0] Compile Opencv with Qt
+1 on enabling the Qt-OpenCV bits. > -Original Message- > From: IVI [mailto:ivi-boun...@lists.tizen.org] On Behalf Of Rees, Kevron > Sent: Thursday, May 15, 2014 6:40 PM > To: Philippe Coval > Cc: ivi@lists.tizen.org > Subject: Re: [Tizen IVI 3.0] Compile Opencv with Qt > > Any update on this? I just pushed the new version of opencv 2.4.9 to > IVI. I wonder if I should enable the Qt-opencv bits. > > -Kevron > > On Mon, May 12, 2014 at 5:38 AM, Philippe Coval > wrote: > > On 05/12/2014 01:01 PM, Tomasz Olszak wrote: > >> > >> 2014-05-12 10:53 GMT+02:00 Orti Senderos > : > >>> > >>> Hello, > >>> > >>> Thanks for your help. Now I can show the window with the image using > >>> opencv > >>> with Qt. But it is not stable for me. I can show it twice out of 5 > >>> attempts. > >>> The other 3 times the terminal gets block. I get this two warnings every > >>> time, even when the image is shown. > >>> > >>> This plugin does not support propagatesizehints() > > > > [...] > > > >>> Yes, > >>> On latest IVI images Qt applications, especially widget based, are not > >>> stable (weston crashes). I know that guys from Tizen:Common used > >>> wayland without any issues. Is weston in IVI very different from the > >>> one in Common? > >>> > > Hi, > > > > Well I've been playing with qtwayland lately on Tizen:Common > > > > and I can say qt is there but I am not that sure it's fully supported > > > > ie, try to install qt5-qttools-qtdesigner > > /usr/lib64/qt5/bin/designer > > hit menu/ Quit > > weston crashes ... > > > > At least this happened to me last week > > > > On the otherside qtquick/qml seems ok even with xdg support > > as reported there : > > https://www.youtube.com/watch?v=pY_XXvKc_0E > > > > For now I am focusing on how to get latest qt integrated > > in Tizen:Common image > > > > and maybe will raise some bugs and produce some traces > > > > Regards and see you online #qt-tizen if needed > > > > -- > > mailto:philippe.co...@eurogiciel.fr -- gpg:0x467094BC > > xmpp:philippe.coval@gmail.com > > https://dockr.eurogiciel.fr/blogs/embedded/author/pcl/ > > > >. > > > > ___ > > IVI mailing list > > IVI@lists.tizen.org > > https://lists.tizen.org/listinfo/ivi > ___ > IVI mailing list > IVI@lists.tizen.org > https://lists.tizen.org/listinfo/ivi Intel Corporation NV/SA Kings Square, Veldkant 31 2550 Kontich RPM (Bruxelles) 0415.497.718. Citibank, Brussels, account 570/1031255/09 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
Any update on this? I just pushed the new version of opencv 2.4.9 to IVI. I wonder if I should enable the Qt-opencv bits. -Kevron On Mon, May 12, 2014 at 5:38 AM, Philippe Coval wrote: > On 05/12/2014 01:01 PM, Tomasz Olszak wrote: >> >> 2014-05-12 10:53 GMT+02:00 Orti Senderos : >>> >>> Hello, >>> >>> Thanks for your help. Now I can show the window with the image using >>> opencv >>> with Qt. But it is not stable for me. I can show it twice out of 5 >>> attempts. >>> The other 3 times the terminal gets block. I get this two warnings every >>> time, even when the image is shown. >>> >>> This plugin does not support propagatesizehints() > > [...] > >>> Yes, >>> On latest IVI images Qt applications, especially widget based, are not >>> stable (weston crashes). I know that guys from Tizen:Common used >>> wayland without any issues. Is weston in IVI very different from the >>> one in Common? >>> > Hi, > > Well I've been playing with qtwayland lately on Tizen:Common > > and I can say qt is there but I am not that sure it's fully supported > > ie, try to install qt5-qttools-qtdesigner > /usr/lib64/qt5/bin/designer > hit menu/ Quit > weston crashes ... > > At least this happened to me last week > > On the otherside qtquick/qml seems ok even with xdg support > as reported there : > https://www.youtube.com/watch?v=pY_XXvKc_0E > > For now I am focusing on how to get latest qt integrated > in Tizen:Common image > > and maybe will raise some bugs and produce some traces > > Regards and see you online #qt-tizen if needed > > -- > mailto:philippe.co...@eurogiciel.fr -- gpg:0x467094BC > xmpp:philippe.coval@gmail.com > https://dockr.eurogiciel.fr/blogs/embedded/author/pcl/ > >. > > ___ > IVI mailing list > IVI@lists.tizen.org > https://lists.tizen.org/listinfo/ivi ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
On 05/12/2014 01:01 PM, Tomasz Olszak wrote: 2014-05-12 10:53 GMT+02:00 Orti Senderos : Hello, Thanks for your help. Now I can show the window with the image using opencv with Qt. But it is not stable for me. I can show it twice out of 5 attempts. The other 3 times the terminal gets block. I get this two warnings every time, even when the image is shown. This plugin does not support propagatesizehints() [...] Yes, On latest IVI images Qt applications, especially widget based, are not stable (weston crashes). I know that guys from Tizen:Common used wayland without any issues. Is weston in IVI very different from the one in Common? Hi, Well I've been playing with qtwayland lately on Tizen:Common and I can say qt is there but I am not that sure it's fully supported ie, try to install qt5-qttools-qtdesigner /usr/lib64/qt5/bin/designer hit menu/ Quit weston crashes ... At least this happened to me last week On the otherside qtquick/qml seems ok even with xdg support as reported there : https://www.youtube.com/watch?v=pY_XXvKc_0E For now I am focusing on how to get latest qt integrated in Tizen:Common image and maybe will raise some bugs and produce some traces Regards and see you online #qt-tizen if needed -- mailto:philippe.co...@eurogiciel.fr -- gpg:0x467094BC xmpp:philippe.coval@gmail.com https://dockr.eurogiciel.fr/blogs/embedded/author/pcl/ . ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
2014-05-12 10:53 GMT+02:00 Orti Senderos : > Hello, > > Thanks for your help. Now I can show the window with the image using opencv > with Qt. But it is not stable for me. I can show it twice out of 5 attempts. > The other 3 times the terminal gets block. I get this two warnings every > time, even when the image is shown. > >This plugin does not support propagatesizehints() >This plugin does not support propagatesizehints() >Libpng warning: Application was built with libpng-1.2.50. but > running with 1.5.12 >Libpng warning: Application was built with libpng-1.2.50. but > running with 1.5.12 >Lib...(10 times) > > The second warning is confusing me because I have installed only > libpng-1.2.50 on tizen. And I compile opencv with that one. But those two do > not seem to be the problem because they are also displayed when the image > window is shown. > > So twice it run ok. But there are 3 that the terminal gets block and when I > type "control+C" it says: > >[1]+ StoppedXDG_RUNTIME_DIR=/run/user/5000 > ./DisplayImage XYZ.jpg > > Does it happen to anyone else? Yes, On latest IVI images Qt applications, especially widget based, are not stable (weston crashes). I know that guys from Tizen:Common used wayland without any issues. Is weston in IVI very different from the one in Common? -- regards, Tomasz Olszak Qt for Tizen | http://qt-project.org/wiki/Tizen ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
Hello, Thanks for your help. Now I can show the window with the image using opencv with Qt. But it is not stable for me. I can show it twice out of 5 attempts. The other 3 times the terminal gets block. I get this two warnings every time, even when the image is shown. This plugin does not support propagatesizehints() This plugin does not support propagatesizehints() Libpng warning: Application was built with libpng-1.2.50. but running with 1.5.12 Libpng warning: Application was built with libpng-1.2.50. but running with 1.5.12 Lib...(10 times) The second warning is confusing me because I have installed only libpng-1.2.50 on tizen. And I compile opencv with that one. But those two do not seem to be the problem because they are also displayed when the image window is shown. So twice it run ok. But there are 3 that the terminal gets block and when I type "control+C" it says: [1]+ Stopped XDG_RUNTIME_DIR=/run/user/5000 ./DisplayImage XYZ.jpg Does it happen to anyone else? 2014-05-09 14:51 GMT+02:00 Ylinen, Mikko : > > > > On Fri, May 9, 2014 at 2:26 PM, Orti Senderos wrote: > >> I do not understand what you mean when you say if weston is running. >> >> But I think the weston-wayland is running because the desktop is shown >> correctly. >> > > # su app > $ XDG_RUNTIME_DIR=/run/user/5000 ./DisplayImage XYZ.jpg > > (make sure your binary is executable by user) > > or run your binary in wayland-terminal. > > -- Mikko > ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
On Fri, May 9, 2014 at 2:26 PM, Orti Senderos wrote: > I do not understand what you mean when you say if weston is running. > > But I think the weston-wayland is running because the desktop is shown > correctly. > # su app $ XDG_RUNTIME_DIR=/run/user/5000 ./DisplayImage XYZ.jpg (make sure your binary is executable by user) or run your binary in wayland-terminal. -- Mikko ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
2014-05-09 13:26 GMT+02:00 Orti Senderos : > I do not understand what you mean when you say if weston is running. > > But I think the weston-wayland is running because the desktop is shown > correctly. > Which version of Tizen:IVI do you use? are you able to turn off smack? I updated Qt with smack manifest a few days ago so it is highly possible that smack has something to do with it(I think that there is even no Tizen:IVI snaphot with updated libraries - only Tizen:Common) -- regards, Tomasz Olszak Qt for Tizen | http://qt-project.org/wiki/Tizen ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
I do not understand what you mean when you say if weston is running. But I think the weston-wayland is running because the desktop is shown correctly. 2014-05-09 12:47 GMT+02:00 Tomasz Olszak : > 2014-05-09 12:30 GMT+02:00 Orti Senderos : > > Hello, > > > > Thank you, Tomasz, for your help, I could succesfully compile Opencv with > > Qt. But when I try to execute this simple example: > > > > #include > > #include > > #include > > > > using namespace cv; > > using namespace std; > > > > int main( int argc, char** argv ) > > { > > if( argc != 2) > > { > > cout <<" Usage: display_image ImageToLoadAndDisplay" << endl; > > return -1; > > } > > > > Mat image; > > image = imread(argv[1], CV_LOAD_IMAGE_COLOR); // Read the file > > > > if(! image.data ) // Check for invalid > > input > > { > > cout << "Could not open or find the image" << std::endl ; > > return -1; > > } > > > > namedWindow( "Display window", WINDOW_AUTOSIZE );// Create a window > for > > display. > > imshow( "Display window", image ); // Show our > image > > inside it. > > > > waitKey(0); // Wait for a > > keystroke in the window > > return 0; > > } > > > > command line: > >tizen$ ./DisplayImage XYZ.jpg > > > > I get this Error: > > Failed to create display (No such file or directory) > > > > And if i try to execute it as root with this command line: > > > >tizen$ sudo ./DisplayImage XYZ.jpg > > > > I get one more error: > > > > error: XDG_RUNTIME_DIR not set in the environment. > > > > Failed to create display (No such file or directory) > > > > > > Does anyone know how could I solve this problem? > > > It seems that the error comes from > > https://qt.gitorious.org/qt/qtwayland/source/35b4950c045da3d7cb4b684221e2182a2120f555:src/client/qwaylandeventthread.cpp#L46 > > Is it possible that weston didn't run? > > -- > regards, > Tomasz Olszak > Qt for Tizen | http://qt-project.org/wiki/Tizen > ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
2014-05-09 12:30 GMT+02:00 Orti Senderos : > Hello, > > Thank you, Tomasz, for your help, I could succesfully compile Opencv with > Qt. But when I try to execute this simple example: > > #include > #include > #include > > using namespace cv; > using namespace std; > > int main( int argc, char** argv ) > { > if( argc != 2) > { > cout <<" Usage: display_image ImageToLoadAndDisplay" << endl; > return -1; > } > > Mat image; > image = imread(argv[1], CV_LOAD_IMAGE_COLOR); // Read the file > > if(! image.data ) // Check for invalid > input > { > cout << "Could not open or find the image" << std::endl ; > return -1; > } > > namedWindow( "Display window", WINDOW_AUTOSIZE );// Create a window for > display. > imshow( "Display window", image ); // Show our image > inside it. > > waitKey(0); // Wait for a > keystroke in the window > return 0; > } > > command line: >tizen$ ./DisplayImage XYZ.jpg > > I get this Error: > Failed to create display (No such file or directory) > > And if i try to execute it as root with this command line: > >tizen$ sudo ./DisplayImage XYZ.jpg > > I get one more error: > > error: XDG_RUNTIME_DIR not set in the environment. > > Failed to create display (No such file or directory) > > > Does anyone know how could I solve this problem? > It seems that the error comes from https://qt.gitorious.org/qt/qtwayland/source/35b4950c045da3d7cb4b684221e2182a2120f555:src/client/qwaylandeventthread.cpp#L46 Is it possible that weston didn't run? -- regards, Tomasz Olszak Qt for Tizen | http://qt-project.org/wiki/Tizen ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
Hello, Thank you, Tomasz, for your help, I could succesfully compile Opencv with Qt. But when I try to execute this simple example: #include #include #include using namespace cv;using namespace std; int main( int argc, char** argv ){ if( argc != 2) { cout <<" Usage: display_image ImageToLoadAndDisplay" << endl; return -1; } Mat image; image = imread(argv[1], CV_LOAD_IMAGE_COLOR); // Read the file if(! image.data ) // Check for invalid input { cout << "Could not open or find the image" << std::endl ; return -1; } namedWindow( "Display window", WINDOW_AUTOSIZE );// Create a window for display. imshow( "Display window", image ); // Show our image inside it. waitKey(0); // Wait for a keystroke in the window return 0;} command line: tizen$ ./DisplayImage XYZ.jpg I get this Error: Failed to create display (No such file or directory) And if i try to execute it as root with this command line: tizen$ sudo ./DisplayImage XYZ.jpg I get one more error: error: XDG_RUNTIME_DIR not set in the environment. Failed to create display (No such file or directory) Does anyone know how could I solve this problem? Thanks in advance Orti Senderos 2014-05-09 9:04 GMT+02:00 Tomasz Olszak : > 2014-05-09 8:32 GMT+02:00 Ylinen, Mikko : > > Hi Tomasz, > > > > On Thu, May 8, 2014 at 3:31 PM, Tomasz Olszak > > wrote: > >> > >> Qt make files are currently provided with qtcore-devel package. So > >> some other dependencies are not checked. > >> According to your log you need > >> qt5-plugin-platform-xcb-5.2.2-1.43.i686.rpm. > >> But I suggest to install all Qt packages except debug ones. > > > > > > Could you distribute the .cmake files in their respective -devel > packages? > > Further, the individual -devel packages should then depend on the > > libs/plugins they need. > > > > -- Mikko > > Hi, > Unfortunately It is not one hour work... > Tizen spec files base on spec files from Mer. Therefore the "issue" > was "inherited". > > I can prepare qt and qt-devel patterns in a week or two. Splitting > cmake files is bigger task and currently I'm not able to take on this > task. > -- > regards, > Tomasz Olszak > Qt for Tizen | http://qt-project.org/wiki/Tizen > ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
2014-05-09 8:32 GMT+02:00 Ylinen, Mikko : > Hi Tomasz, > > On Thu, May 8, 2014 at 3:31 PM, Tomasz Olszak > wrote: >> >> Qt make files are currently provided with qtcore-devel package. So >> some other dependencies are not checked. >> According to your log you need >> qt5-plugin-platform-xcb-5.2.2-1.43.i686.rpm. >> But I suggest to install all Qt packages except debug ones. > > > Could you distribute the .cmake files in their respective -devel packages? > Further, the individual -devel packages should then depend on the > libs/plugins they need. > > -- Mikko Hi, Unfortunately It is not one hour work... Tizen spec files base on spec files from Mer. Therefore the "issue" was "inherited". I can prepare qt and qt-devel patterns in a week or two. Splitting cmake files is bigger task and currently I'm not able to take on this task. -- regards, Tomasz Olszak Qt for Tizen | http://qt-project.org/wiki/Tizen ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
Hi Tomasz, On Thu, May 8, 2014 at 3:31 PM, Tomasz Olszak wrote: > Qt make files are currently provided with qtcore-devel package. So > some other dependencies are not checked. > According to your log you need qt5-plugin-platform-xcb-5.2.2-1.43.i686.rpm. > But I suggest to install all Qt packages except debug ones. > Could you distribute the .cmake files in their respective -devel packages? Further, the individual -devel packages should then depend on the libs/plugins they need. -- Mikko ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
Of course > Qt make files are currently provided with qtcore-devel package. So Qt *cmake* files... ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
Re: [Tizen IVI 3.0] Compile Opencv with Qt
2014-05-08 13:52 GMT+02:00 Orti Senderos : > Hello, > > > I have upgrade my system to new milestone preview: > https://wiki.tizen.org/wiki/IVI/Tizen-IVI_3.0-M2-March2014. > > > > I installed Qt directly in this latest image using the following command: > ‘zypper in –t pattern qt’, and OpenCV 2.4.4: ‘zypper in opencv’ to install > it and ‘zypper in opencv-devel’ to install the development libraries and > headers). > > > Then I tried to compile (in Tizen) an example application to prove that it > works properly. But I realized that the installed opencv was not compile > with Qt5. > > > So I try compile Opencv from source with Qt5. But CMAKE could not find > Qt5-GUI. So I install the following packages: > > > zypper in qt5-declarative-devel-tools > zypper in qt5-qtcore-devel > zypper in qt5-qtgui-devel > > But I still have the same error, see attached cmake_error.doc > > Does anyone know how can I compile OpenCV with QT5 support in Tizen? > > Thanks in advance, > > Orti Senderos > > > > ___ > IVI mailing list > IVI@lists.tizen.org > https://lists.tizen.org/listinfo/ivi > Hi, Qt make files are currently provided with qtcore-devel package. So some other dependencies are not checked. According to your log you need qt5-plugin-platform-xcb-5.2.2-1.43.i686.rpm. But I suggest to install all Qt packages except debug ones. zypper in qt* In the releases after second milestone the xcb plugin does not exist in ivi. -- regards, Tomasz Olszak Qt for Tizen | http://qt-project.org/wiki/Tizen ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi
[Tizen IVI 3.0] Compile Opencv with Qt
Hello, I have upgrade my system to new milestone preview: https://wiki.tizen.org/wiki/IVI/Tizen-IVI_3.0-M2-March2014. I installed Qt directly in this latest image using the following command: ‘zypper in –t pattern qt’, and OpenCV 2.4.4: ‘zypper in opencv’ to install it and ‘zypper in opencv-devel’ to install the development libraries and headers). Then I tried to compile (in Tizen) an example application to prove that it works properly. But I realized that the installed opencv was not compile with Qt5. So I try compile Opencv from source with Qt5. But CMAKE could not find Qt5-GUI. So I install the following packages: zypper in qt5-declarative-devel-tools zypper in qt5-qtcore-devel zypper in qt5-qtgui-devel But I still have the same error, see attached cmake_error.doc Does anyone know how can I compile OpenCV with QT5 support in Tizen? Thanks in advance, Orti Senderos cmake_error.doc Description: MS-Word document ___ IVI mailing list IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi