I can't find any concrete pointers on the qt.io site how to actually build qt5.6 together with qtwebkit, so any hint is appreciated.
I can build qt5.6.0 flawlessly from the git repo in dev mode, however I don't know the further steps to re add qtwebkit.
Somebody out there who did it already?
I'm also trying to build Qt webkit together with 5.6.0, I got the source not from git but from the community release directory: http://download.qt.io/community_releases/5.6/5.6.0/
I put the content of the .tar.gz in qtwebkit submodule next to qtbase, it's trying to build it but then I have an error:
.pch/debug/QtWebKitWidgets_debug/c++.pch
../include/QtWebKitWidgets/QtWebKitWidgetsDepends:7:10: fatal error: 'QtWebKit/QtWebKit' file not found
#include <QtWebKit/QtWebKit>
^
1 error generated.
make[4]: *** [.pch/debug/QtWebKitWidgets_debug/c++.pch] Error 1
make[3]: *** [debug-all] Error 2
make[2]: *** [sub-widgetsapi-pri-make_first-ordered] Error 2
make[1]: *** [sub-Source-QtWebKit-pro-make_first-ordered] Error 2
make: *** [module-qtwebkit-make_first] Error 2
QWebKit is deprecated as of 5.6.0 (https://wiki.qt.io/New_Features_in_Qt_5.6) however it is still buildable for Qt 5.6 (but you should consider migrating at some point).
The easiest way to do it is to clone the git repository into the same source directory and build it like a normal Qt project. If you want to do it the ultra standard way you can add it as a submodule and follow the same steps they perform in the init-repository script but it's not necessary.
Related
I downloaded a Qt source from the official site.
I extracted it in home directory and try to build it using commands:
./configure -developer-build
cmake --build .
But I get this error:
[ 48%] Running moc --collect-json for target tst_qmlsplitlib
Error opening /home/yas/Qt-6.3.1/qtdeclarative/tests/auto/qml/qmlsplitlib/tst_qmlsplitlib_autogen/include/moc_tst_qmlsplitlib_library_tst_qmlsplitlib.cpp.json for reading
gmake[2]: *** [qtdeclarative/tests/auto/qml/qmlsplitlib/CMakeFiles/tst_qmlsplitlib.dir/build.make:75: qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_debug_metatypes.json.gen] Error 1
gmake[2]: *** Deleting file 'qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_debug_metatypes.json.gen'
gmake1: *** [CMakeFiles/Makefile2:141639: qtdeclarative/tests/auto/qml/qmlsplitlib/CMakeFiles/tst_qmlsplitlib.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
'''
I have MacBook Pro 2012 and with Debian 11.
Any help would be appreciated.
Building Qt6 with make is not really supported. There should be a CMake warning about that in the configure output.
Please install ninja and try to configure again. The configure script will detect ninja's presence and use CMake's ninja generator.
You didn't share the CMake version you're using. Please use a recent CMake, best something > 3.22.
If you don't plan to run the autotests, configure with -nomake tests.
Lastly, please report such build problems at https://bugreports.qt.io/ - that's a better place to reach us.
I have cross compiled gRPC (v1.27.3) for QNX 7 (ARM) platform. I am using the protobuf which was already available for our system (QNX ARM v3.11.4).
I used following cmake command to build gRPC for compilation process
cmake -DCMAKE_CROSSCOMPILING=1 -DgRPC_BUILD_TESTS=OFF -DgRPC_PROTOBUF_PROVIDER=package -DgRPC_SSL_PROVIDER=package -DgRPC_ZLIB_PROVIDER=package -DOPENSSL_CRYPTO_LIBRARY=$QNX_TARGET/aarch64le/usr/lib/libcrypto.a -DOPENSSL_SSL_LIBRARY=$TARGET/aarch64le/usr/lib/libssl.a -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/tmp/qnxarm/toolchain.cmake -DCMAKE_INSTALL_PREFIX=/tmp/qnxarm/inst ../..
make plugins
make -j4
sudo make install
After compiling, I am able to see the binaries in /tmp/qnxarm/inst folder.
I copied those binaries in our code to compile the application for QNX.
While compiling I am getting this issue:
<local_directory>/grpc/aarch64/qnx/bin/grpc_cpp_plugin: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc_out: protoc-gen-grpc: Plugin failed with status code 1.
lib/qmonitor/proto/CMakeFiles/QMonitorProto.dir/build.make:105: recipe for target 'lib/qmonitor/proto/QAicMonitorInternal.grpc.pb.cc' failed
make[2]: *** [lib/qmonitor/proto/QAicMonitorInternal.grpc.pb.cc] Error 1
Please help me to know what is wrong? or what should be done to solve this.
Do we need to add the PATH in gRPCTargets.cmake file which is generated in lib folder?
You've compiled the gRPC tools for your QNX ARM system -- so the version of grpc_cpp_plugin you made is expecting to be run on your QNX system, not your build host.
The usual approach for this sort of thing is to make a second copy of gRPC compiled for your build host, and then instruct your application build to link the libraries from the cross build, but call the grpc_cpp_plugin compiled for the build host.
I'm trying to build my qt project after macOS 10.15 Catalina update. Always get en error:
:-1: error: No rule to make target 'AircraftAlgorithmPack'. Stop.
And recommendations:
make: *** No rule to make target 'AircraftAlgorithmPack'. Stop.
The platform SDK has been changed from version 10.14 to version 10.15.
This requires a fresh build. Please wipe the build directory completely,
including any .qmake.stash and .qmake.cache files generated by qmake.
/Users/arseniyspiridonov/Qt/5.13.1/clang_64/mkspecs/features/mac/sdk.mk:22: *** ^. Stop.
19:01:49: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project AircraftAlgorithmPack (kit: Desktop Qt 5.13.1 clang 64bit)
When executing step "qmake"
I've already checked that my SDK version is 10.15.
I've tried to clean project, to delete build directory, to rerun qmake, to make context change in make file (from 10.14 to 10.15), to write some mantras not to check SDK version. All advices from google.
Nothing happens.
Make sure to erase all .qmake.stash files - they might also be located in your project's folder. Completely delete your build directory. The .qmake.stash files are hidden from Finder, so you might need to use the command shell to locate them.
Highgui module build fails keeping appearing in the build process
Hi everyone, I've been quite frustrated and desperate to find the way to fix this really bizarre error about the task of linking OpenCV to QT SDK using CMake-gui. I've already tried to fix this problem for a week straight, but I kept having this following build error Basically saying that opencv_highgui not be able to build its target with the QT option.
[26%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui_pch_dephelp.dir/opencv_highgui_pch_dephelp.cxx.obj
Linking CXX static library ....\lib\libopencv_highgui_pch_dephelpd.a
[ 26%] Built target opencv_highgui_pch_dephelp
[ 26%] Generating precomp.hpp.gch/opencv_highgui_Debug.gch
[ 26%] Built target pch_Generate_opencv_highgui
mingw32-make2: *** No rule to make target 'C:/opencv2.4.12/opencv/sources/modules/highgui/', needed by 'modules/highgui/qrc_window_QT.cpp'. Stop.
CMakeFiles\Makefile2:1982: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
mingw32-make1: * [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
makefile:145: recipe for target 'all' failed
mingw32-make: * [all] Error 2
I was able to fix a bunch of major and minor issues for the configuration process, but couldn't get over this build error when compiling MinGW 32 with the command mingw32-make.
I followed the instruction recommended here Instruction for building OpenCV for QT SDK. One of my friend got it worked before, but I don't know why it keeps getting build errors for me.
I'm really looking for the correct fix soon since I couldn't make any progress with this one.
I created an application using Imagemagick library with Qt on Mac.
Now that I want to deploy the application for windows:
I installed the imagemagick library
on my pc,
I installed the SDK version of QT 4.7
I added my include and lib paths
And when I go run the application I'm getting errors that I think they are related to mingw32.
here are the build issues:
and here is the compile output:
Can someone Identify the error ?
What do I have to do to deploy the application for windows?
I also tried to use a Mingw32 version of my library but again, It didnt work:
When I put -lmagick after the lib it says file lmagick cannot ne found
and when I try to build unticking the shadow build checkbox in the build settings, it give me the errors in the first screenshoot. Thank you
See the answer to this question.