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/
Related
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
Getting following error while building ownclient project
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
CMake Error at admin/osx/CMakeLists.txt:14 (find_package):
Could not find a configuration file for package "Qt5" that is compatible with the requested version "5.6".
The following configuration files were considered but not accepted:
C:/Qt/Qt5.5.1/5.5/mingw492_32/lib/cmake/Qt5/Qt5Config.cmake, version: 5.5.1
And if I compile this project using a version above 5.5 then this error occurs
C:\Qt\Qt5.13.2\5.13.2\mingw73_32\lib\cmake\Qt5WebKitWidgets\Qt5WebKitWidgetsConfig.cmake:15:
error: The imported target "Qt5::WebKitWidgets" references the file "C:/Qt/Qt5.13.2/5.13.2/mingw73_32/include/QtWebKitWidgets" but this file does not exist.
Past few weeks I have been trying to setup Qt native build environment on Raspberry Pi.
I followed steps mentioned in Native Build of Qt 5.4.1.
Since I do not use USB Hard Disk, I omitted following steps:
Unpacking source to an external USB HDD
Increasing available RAM for concurrent compilation
Instead I extracted to moved to path: cd ~/opt/qt-everywhere-opensource-src-5.4.1
and for compilation I ran: make 2>&1 | tee make.out
I tried Qt 5.4.1 to build on Jessie version of Raspbian OS, but it failed. I found similar error someone posted and tried to reply but no response at the end.
And now I tried Qt 5.4.1 on Wheezy version, and I get different error:
/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore//libJavaScriptCore.a: member /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore//.obj/dfg/DFGThunks.o in archive is not an object
collect2: ld returned 1 exit status
Makefile.jsc:98: recipe for target '../../bin/jsc' failed
make[3]: *** [../../bin/jsc] Error 1
make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore'
Makefile.JavaScriptCore:126: recipe for target 'sub-jsc-pro-make_first-ordered' failed
make[2]: *** [sub-jsc-pro-make_first-ordered] Error 2
make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore'
Makefile:93: recipe for target 'sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered' failed
make[1]: *** [sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit'
Makefile:485: recipe for target 'module-qtwebkit-make_first' failed
make: *** [module-qtwebkit-make_first] Error 2
Can someone tell me why this occurs? Is this Qt code issue? Is there a way to resolve this?
So I was trying to build qtcreator from source, I compiled all the dependencies and moved on to compile qtcreator. I got this weird error when i ran qmake
Project ERROR: Unknown module(s) in QT: script
I did a little googling and found since I've built QT from git I gotto run make module-qtscript. Bt my question is where do run it. It doesn't run in qtbase or in the qt-creator source.
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