I can't install OpenCV3.4.4 on macOS Ventura.
Such a mistake:
In file included from /Users/user/opencv/modules/highgui/src/window_QT.cpp:47: /Users/user/opencv/modules/highgui/src/window_QT.h:51:10: fatal error: 'QGLWidget' file not found #include <QGLWidget> ^~~~~~~~~~~ [ 35%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/flow_warp_layer.cpp.o 1 error generated. make[2]:
As I read on the Internet, the problem is in the QT version, because this version of OpenCV works with qt5.1.1, when I try to compile qt5.1.1 - this happens:
Failed to process makespec for platform 'macx-g++'
Please help me, I've been working on this problem for 2 days.
I used the qt5.1.1 installation instructions from this site - https://wiki.qt.io/Building_Qt_5_from_Git
Related
This is the error that shows up when I try to run "pip install PySide" on my Jetson Nano. Can someone please let me know how I can fix this error?
CMake Warning at /usr/share/cmake-3.10/Modules/FindQt4.cmake:620 (message):
/usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/aarch64-linux-gnu" but
QtCore could not be found there. Qt is NOT installed correctly for the
target build environment.
Call Stack (most recent call first):
CMakeLists.txt:9 (find_package)
-- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so (found suitable version "2.7.17", minimum required is "2.6")
-- Found LibXml2: /usr/lib/aarch64-linux-gnu/libxml2.so (found suitable version "2.9.4", minimum required is "2.6.32")
-- Could NOT find LibXslt (missing: LIBXSLT_LIBRARIES LIBXSLT_INCLUDE_DIR) (Required is at least version "1.1.19")
Qt QTGUI library not found.
Qt QTXML library not found.
Qt QTCORE library not found.
CMake Error at ApiExtractor/CMakeLists.txt:82 (qt4_add_resources):
Unknown CMake command "qt4_add_resources".
-- Configuring incomplete, errors occurred!
See also "/tmp/pip-build-mimaL7/PySide/pyside_build/py2.7-qt4.8.7-64bit-release/shiboken/CMakeFiles/CMakeOutput.log".
error: Error configuring shiboken
PySide does not have official release package for ARM systems. You have to build it yourself. All I can afford is this .whl, but keep in mind that it was built on Ubuntu 20.04 with JetPack 4 and Python 3.6 on board.
I am trying to install some R packages (devtools and tidyverse) but when I run the command:
install.packages("devtools")
I get several errors, the first of which states:
src/tests/soname.h:1:10: fatal error: 'openssl/opensslv.h' file not found
#include "openssl/opensslv.h"
I have installed via Conda the packages openssl and libssl, but nothing seems to work.
I have macOS BigSur and R version 4.0.3 installed.
I have also looked up the web, but as aforementioned I could not solve such riddle!
Giuseppe
I am trying to install Rgtk2 (dependency for rattle). I am using R thru Anaconda. I am getting the following error.
In file included from Rgtk.c:7:0:
/usr/include/gtk-2.0/gdk/gdkx.h:32:10: fatal error: X11/Xlib.h: No such file or directory
#include <X11/Xlib.h>
^~~~~~~~~~~~
I tried the following workarounds as found in StackOverflow and other blogs.
Installed libx11-dev, mesa-common-dev, libglu1-mesa-dev, libxrandr-dev, libxi-dev
Tried installing RGtk2_2.20.31 from source.
Every time I am getting the same error.
anaconda has its own environment, which by default usually lacks X11 headers(e.g libx11-dev, or whatever you call it). Try "conda install -c conda-forge xorg-libx11" . It worked for me when a certain R-package threw an error "X11/Xlib.h : No such file or directory".
I am making .deb package for the QT 5 .2.1 desktop app for ubuntu 14.04 64 bit. I have installed QT 5.2.1 on Ubuntu 14.04 and made a demo app for the testing purpose in which I have used quazip library. During making the .deb package of the app I am getting the below issue.
dpkg-shlibdeps: error: couldn’t find library libquazip.so.1 needed by debian/demoapp/usr/bin/DemoApp1 (ELF format: ‘elf64-x86-64’; RPATH: ‘’)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/demoapp/usr/bin/DemoApp1 was not linked against libz.so.1 (it uses none of the library’s symbols)
dpkg-shlibdeps: error: cannot continue due to the error above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to use -l.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/demoapp.substvars debian/demoapp/usr/bin/DemoApp1 returned exit code 2
make: * [binary-predeb-IMPL/demoapp] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc failed
When I copy the libquazip.so.1 at the path /usr/lib in my machine then I got the below issue .
dpkg-shlibdeps: error: no dependency information found for /usr/lib/libquazip.so.1 (used by debian/demoapp/usr/bin/DemoApp1)
dh_shlibdeps: dpkg-shlibdeps -Tdebian/demoapp.substvars debian/demoapp/usr/bin/DemoApp1 returned exit code 2
make: * [binary-predeb-IMPL/demoapp] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc failed
My cmakelist.txt file as per below.
cmake_minimum_required(VERSION 2.8.9)
project(DemoApp1)
set (CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} “;/opt/Qt5.2.1/5.2.1/gcc_64/lib/cmake;”)
find_package(Qt5Widgets REQUIRED)
include_directories(/home/manojpatidar/Manoj/Work/QT_WORK/Linux_Package/demoapp-1.0/lib/quazip-0.5.1/quazip)
link_directories(/home/manojpatidar/Manoj/Work/QT_WORK/Linux_Package/demoapp-1.0/lib/quazip-0.5.1)
add_executable(DemoApp1 main.cpp mainwindow.cpp moc_mainwindow.cpp mainwindow.ui)
target_link_libraries(DemoApp1 quazip z)
install(TARGETS DemoApp1 RUNTIME DESTINATION bin)
qt5_use_modules(DemoApp1 Widgets)
My Debian control file is as per below .
Source: demoapp
Section: games
Priority: extra
Maintainer: Manoj Patidar
Build-Depends: debhelper (>= 8.0.0), cmake, qtbase5-dev, cdbs
Standards-Version: 3.9.4
Package: demoapp
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Description
Description will come here
I think I need to add some dependencies for quazip at the line “Depends: ${shlibs:Depends}, ${misc:Depends}” . Is there anything I have missed ? . Please have look into the issue and let me know where I did wrong.
Thanks
I have Qt Creator 5.2.0 (MSVC 2010, 32 bit) with mingw48_32.
I am trying to make an installer for my app and i cant compile binarycreator.
I download source code from Official Link
When i run project, there show only files with .o and none .exe files. The following error is showing:
c:/qt/qt5.2.0/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -linstaller
After that, there are more errors, but i think if i fix this they will be fixed too. Here are what is following:
collect2.exe: error: ld returned 1 exit status
Makefile.Release:84: recipe for target 'bin\binarycreator.exe' failed
mingw32-make[1]: *** [bin\binarycreator.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/Qt/Installer/installer-framework-installer-framework/tools/build-binarycreator-Desktop_Qt_5_2_0_MinGW_32bit-Release'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
20:30:45: The process "C:\Qt\Qt5.2.0\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project binarycreator (kit: Desktop Qt 5.2.0 MinGW 32bit)
When executing step 'Make'
If any1 can help me, please.
To build an installer for your Application don't bother compile the installer-framework just use the pre-compiled one.
it contains the following files [ /bin ]:
archivegen.exe
binarycreator.exe
installerbase.exe
repogen.exe
also some examples, and here is the link to download the version 1.4.0
http://download.qt-project.org/official_releases/qt-installer-framework/1.4.0/