Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. deploy
    Log in to post

    • SOLVED Building on OSX Catalina and deploying on Monterey with dynamic libs
      Tools • macos deploy macdeployqt dynamic • • Yergin  

      2
      0
      Votes
      2
      Posts
      94
      Views

      I've managed to deploy a test app from Monterey which works on Catalina and Monterey and given up on building on Catalina after spending a few days trying to fix the result of macdeployqt using otool and install_name_tool. It seems that the CMake qt_generate_deploy_app_script method doesn't work when run from Monterey either. Running the macdeployqt utility almost works out of the box, it just leaves the plugins' RPATH pointing to a nonexistent 'lib' folder where it expects Qt frameworks to be. Rather than fix the RPATH's in each of those plugin libs, adding a 'lib' symlink pointing to the Frameworks folder seems to do the trick. In case it's useful to anyone, I've made a template repository on GitHub with this solution. The template allows you to deploy apps with LGPL Qt on Mac and Windows and use VSCode as an IDE rather than QtCreator: https://github.com/yergin/qt-cmake-vscode
    • SOLVED QT Deploy QPSQL Plugin
      Installation and Deployment • c++ windows plugin deploy postgresql • • thaidy  

      7
      0
      Votes
      7
      Posts
      215
      Views

      @thaidy said in QT Deploy QPSQL Plugin: @hskoglund said in QT Deploy QPSQL Plugin: what happens if you move the declaration into for example your MainWindow.h class: QSqlDatabase DB; DB = QSqlDatabase::addDatabase("QPSQL"): IT WAS THAT, THANK YOU VERY MUCH!! Glad this has solved problem, certainly better than some static variable. However, this is still not right/advised. Per https://doc.qt.io/qt-5/qsqldatabase.html#details, red box warning: Warning: It is highly recommended that you do not keep a copy of the QSqlDatabase around as a member of a class, as this will prevent the instance from being correctly cleaned up on shutdown. If you need to access an existing QSqlDatabase, it should be accessed with database(). If you chose to have a QSqlDatabase member variable, this needs to be deleted before the QCoreApplication instance is deleted, otherwise it may lead to undefined behavior. Qt asks you to simply call static QSqlDatabase QSqlDatabase::database(const QString &connectionName = QLatin1String(defaultConnection), bool open = true) whenever you need to access a QSqlDatabase, and not to keep even a member variable QSqlDatabase around. You don't need it.
    • SOLVED After QT5 -> QT6 porting: No package identifier when getting name for resource number 0x00000000 - Problem with Manifest?
      Mobile and Embedded • android mobile deploy manifest • • Hitokage  

      2
      0
      Votes
      2
      Posts
      311
      Views

      I have found a solution! I did multiple things: Used newer template files for Android from Qt/6.2.3/android_arm64_v8a/src/android/templates/ (res/values/libs.xml - overwritten, build.gradle - overwritten, AndroidManifest.xml - copy and paste and then edited the content and added the missing things from my old one) Used newer gradle files from /Qt/6.2.3/android_arm64_v8a/src/3rdparty/gradle/gradle/wrapper/ - overwritten Upgrade of Qt Creator, Qt 6.2.2 -> 6.2.3, Android SDK, Android NDK My current Manifest: <?xml version="1.0"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.dontpanic" android:installLocation="auto" android:versionCode="20000" android:versionName="2.0"> <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="31"/> <!-- The comment below will be replaced with dependencies permissions upon deployment. Remove the comment if you do not require these default permissions. --> <!-- %%INSERT_PERMISSIONS --> <!-- The comment below will be replaced with dependencies permissions upon deployment. Remove the comment if you do not require these default features. --> <!-- %%INSERT_FEATURES --> <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" /> <application android:name="org.qtproject.qt.android.bindings.QtApplication" android:extractNativeLibs="true" android:hardwareAccelerated="true" android:label="@string/app_name" android:icon="@drawable/icon" android:requestLegacyExternalStorage="true"> <activity android:name="org.qtproject.qt.android.bindings.QtActivity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:label="@string/app_name" android:launchMode="singleTop" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> <!-- Application arguments --> <meta-data android:name="android.app.arguments" android:value="-- %%INSERT_APP_ARGUMENTS%% --" /> <!-- Application arguments --> <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --" /> <!-- Background running --> <!-- Warning: changing this value to true may cause unexpected crashes if the application still try to draw after "applicationStateChanged(Qt::ApplicationSuspended)" signal is sent! --> <meta-data android:name="android.app.background_running" android:value="false" /> <!-- Background running --> <!-- extract android style --> <!-- available android:values : * default - In most cases this will be the same as "full", but it can also be * something else if needed, e.g., for compatibility reasons * full - useful QWidget & Quick Controls 1 apps * minimal - useful for Quick Controls 2 apps, it is much faster than "full" * none - useful for apps that don't use any of the above Qt modules --> <meta-data android:name="android.app.extract_android_style" android:value="minimal" /> <!-- extract android style --> </activity> <service android:name="org.dontpanic.NotificationService"> <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/> </service> <receiver android:name="org.dontpanic.NotificationReceiver" android:enabled="true" android:exported="true"/> <receiver android:name="org.dontpanic.RebootReceiver" android:enabled="true" android:exported="true"> <intent-filter> <action android:name="android.intent.action.BOOT"/> <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/> <action android:name="android.intent.action.BOOT_COMPLETED"/> <action android:name="android.intent.action.QUICKBOOT_POWERON"/> <action android:name="android.intent.action.REBOOT"/> <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/> <action android:name="android.intent.action.USER_PRESENT"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </receiver> </application> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> </manifest>
    • UNSOLVED Appimage creation of Qt applications
      General and Desktop • deployment deploy appimage • • surajj4837  

      3
      0
      Votes
      3
      Posts
      1489
      Views

      The reason linuxdeployqt does not support your latest ubuntu is not, that its not up to date, but it is on purpose. If you build your appimage on a new linux and then want to run it on an older installation it might not work there since e.g. the libc version on the older system does not support new features that have been added. And running on any system is the whole point of the appimage.
    • SOLVED QSQLITE app no connect to database after deploy
      General and Desktop • database deploy qsqlite • • Piotrek102  

      13
      0
      Votes
      13
      Posts
      479
      Views

      @Piotrek102 said in QSQLITE app no connect to database after deploy: But what I sent you is not the main application file. It's part of the class I wrote It doesn't matter. What @JonB wrote applies.
    • UNSOLVED Aplikacja SQL
      Polish • sql dll deploy • • Piotrek102  

      1
      0
      Votes
      1
      Posts
      304
      Views

      No one has replied

    • UNSOLVED Testing developed BLE App for Linux
      General and Desktop • linux deployment deploy ble • • TUStudi  

      3
      0
      Votes
      3
      Posts
      298
      Views

      Hi @TUStudi, This virtual maschine need to support Bluetooth Low Energy. If you have an USB bluetooth dongle/adapter, than you can most likely inject this dongle into the virtual machine and use it there. Note that even bluetooth adapters built into your laptop may be an USB devices and could work that way. So I'd say it depends on a test. Regards
    • UNSOLVED Is it possible to compile once, run everywhere for windows.
      Installation and Deployment • deploy compile commercial platform • • ramzy  

      4
      0
      Votes
      4
      Posts
      277
      Views

      Hi and welcome to the forums Yes it should run on most other windows 10 64 bit. Maybe even win 7. But there is no guarantee as such with brand new mega patches. A license would give you many benefits but it's not better to deploy as such.
    • UNSOLVED qt.qpa.xcb: could not connect to display AND Failed to create OpenGL context for format QSurfaceFormat
      Installation and Deployment • deploy qt 5 • • johnyboy  

      8
      0
      Votes
      8
      Posts
      2929
      Views

      if you dont have any windows manager running then it will be an issue for xcb. Yes, it looks like @mrjj is right here. However, you could still run the Qt app in the RPi device and make it display on another machine if you connect via SSH with X Forwarding enabled. $ ssh -X user@RPi /path/to/your/Qt/app -platform xcb
    • UNSOLVED Deploy to remote and run in terminal (as root!)?
      General and Desktop • cross compile raspberry pi deploy root term • • pauledd  

      2
      0
      Votes
      2
      Posts
      679
      Views

      I somehow workaround it. On the RaspberryPi I created a bash script in /usr/bin: /usr/bin/x5 #!/bin/bash xhost +local: sudo /home/pi/adas0002 --platform xcb I made it executable and then on my Desktop-Pc in Qt-Creator I have "/usr/bin/x5" in "Alternate executable on device". Now my application starts with root even without invoking any terminal. I know this is very bad in security point of view but I dont care on my little offline Raspi...
    • SOLVED How can I create the application bundle in Linux?
      General and Desktop • linux deploy ubuntu 18.04 bundle rpath • • Yash001  

      6
      0
      Votes
      6
      Posts
      957
      Views

      Hi, I am able to open the application by double click. I made change in Icon and Exec path. Exec=APP_PACKAGE_PATH/SquidStat.sh Icon=APP_PACKAGE_PATH/Squidstat.png
    • SOLVED Non crea più eseguibile ma libreria condivisa
      Italian • deploy • • Stecco  

      2
      0
      Votes
      2
      Posts
      319
      Views

      @stecco ok. Ho impostato clang come compilatore c++
    • UNSOLVED Develop on Windows, deploy to Linux?
      Installation and Deployment • linux cross compile deploy cppwebframework • • PaulR  

      5
      0
      Votes
      5
      Posts
      1064
      Views

      @SGaist Ahh, okay I see it. Clone Build Config -> Delete Build Steps -> add Custom Process Step Thanks for the inspiration!
    • UNSOLVED How to deploy an application created with Qt 5.12.0 under GLIBC 2.27 (Linux Mint 19.1 - Tessa - Ubuntu Bionic) for older GNU C Library versions?
      Installation and Deployment • linux deploy glibc-2.27 • • cvitagliano  

      2
      0
      Votes
      2
      Posts
      881
      Views

      Hi, You have to build your application on the oldest Linux distribution you have to support.
    • UNSOLVED Android build and deploy. 64bit, Clang, new app store developer console rules [2018 & 2019]
      Installation and Deployment • android build deploy clang ndk • • BINALECTRUM  

      3
      0
      Votes
      3
      Posts
      951
      Views

      @BINALECTRUM said in Android build and deploy. 64bit, Clang, new app store developer console rules [2018 & 2019]: Is Qt going more in embedded/car side and just slowly drops Android/mobile platform? In Roadmap 2018 there is nothing new about mobile platform. i heavily doubt that. I guess the reason is more because Qt runs more or less stable on Android. There are no bigger features which need to be implemented, mostly bug fixing. What is your move Qt team on new app store rules in developer console: minimal platform-26 in August 2018 and 64-bit apk in 2019? Some new changes in build and deploy area? i asked this at the beginning of the year, but unfortunately haven't received an answer.
    • UNSOLVED QML deployment issue
      Installation and Deployment • qml deploy windows 7 • • Mark81  

      4
      0
      Votes
      4
      Posts
      998
      Views

      Latest drivers ?
    • UNSOLVED QML files not deployed/found on Android
      Mobile and Embedded • qml android deploy • • torpeanders  

      5
      0
      Votes
      5
      Posts
      2291
      Views

      @torpeanders I always use just one resource file per project, and although not completely sure, it looks like having RESOURCES += ... is intended for just one resource file. I'm not sure if you need two resource files, I'd ask what is your use case for that, please remember that you can have subfolders to split just in case; i.e. I usually have a subfolder images for the icons and a subfolder translations and then it's a question of using the proper path QIcon(":/images/cut.png") So if even this trick cannot avoid you having two resource files, please have a look at the documentation as it explains how to create/deal with external resource files (it'll be your 2nd one).
    • UNSOLVED Cross compiling and deploying Valgrind
      Installation and Deployment • cross compile arm deploy valgrind • • mtangy  

      4
      0
      Votes
      4
      Posts
      2601
      Views

      I haven't played with that system recently but AFAIR, you should be able to build the sysroot for your system on your desktop machine. Then you could use scp to copy the bits you need over to your device. Doesn't your system provide a possibility to start from another device like a SD card or even a nfs ?
    • UNSOLVED Still can't figure out how to make my project standalone.
      General and Desktop • deploy exe send standalone • • JTrocks55  

      4
      0
      Votes
      4
      Posts
      1047
      Views

      Oh ok, thanks to both of you! I think I am just going to make videos on it and show that without actually sending it. Thanks though!
    • UNSOLVED Build non-QT C++ static library using QT
      Installation and Deployment • android ios deploy static library • • julianoes  

      11
      0
      Votes
      11
      Posts
      6592
      Views

      Then there might be something I'm missing about your current setup. In any case, take a look at this excellent blog article about that subject. That should give you the clues needed to solve your situation.
    • Install Qt + qml on windows XP SP3? Which version/which files?
      Installation and Deployment • qml deploy install windows xp • • deleted323  

      1
      0
      Votes
      1
      Posts
      652
      Views

      No one has replied

    • SOLVED Required minimum Qt 5.7 shared libraries (.so) for Linux deployment
      Installation and Deployment • linux qt 5.7 deploy shared library • • lindevs  

      7
      0
      Votes
      7
      Posts
      2738
      Views

      @lindevs said: libqxcb.so libqxcb.so depends on these .so files: libQt5XcbQpa.so.5 libQt5DBus.so.5 So in my case project structure looks: myapp myapp.sh platforms\libqxcb.so libQt5Core.so.5 libQt5Gui.so.5 libQt5Widgets.so.5 libicudata.so.56 libicui18n.so.56 libicuuc.so.56 libQt5XcbQpa.so.5 libQt5DBus.so.5
    • UNSOLVED Error no file at “/usr/lib/<libs>” when executing macdeployqt
      General and Desktop • deploy mac os • • Amott  

      11
      0
      Votes
      11
      Posts
      3840
      Views

      If you mean that macdeployqt still gives you the same error, then that's normal. We run it before modifying these libraries. If you want macdeployqt to not scream at these libraries, you can change the original files and put the whole path to them with -change.
    • UNSOLVED how to deploy 32 bit version of app on qt 64 bit and windows 8.1 64 bit
      General and Desktop • deploy 64bit 32bit • • mjzarrin  

      4
      0
      Votes
      4
      Posts
      3030
      Views

      thank you @yuvaram and @jsulm i will try your solution.
    • SOLVED QSqlDatabase: QPSQL driver not loaded once again!
      Installation and Deployment • deploy postgresql qsql deploying qpsql • • mbnoimi  

      18
      0
      Votes
      18
      Posts
      11622
      Views

      Thank you very much @SGaist and @raven-worx for helping me out. I fixed this issue by using runtime libraries from this project: https://sourceforge.net/projects/postgresql-mingw-w64/
    • UNSOLVED Failed to deploy Qt application on virtual android AVD device
      Mobile and Embedded • android qt5.5 creator deploy avd • • zyend  

      3
      0
      Votes
      3
      Posts
      2239
      Views

      It is: Qualcomm Snapdragon 805 You should either create another virtual device with x86 CPU or use Qt for Android ARM.
    • UNSOLVED Deploying Qt Quick Desktop Application
      QML and Qt Quick • qml deployment quick deploy deploying • • Marco B  

      1
      0
      Votes
      1
      Posts
      895
      Views

      No one has replied

    • UNSOLVED Qt (QML) android black screen when I run app on device
      Mobile and Embedded • android deploy qt 5 • • musimbate  

      3
      0
      Votes
      3
      Posts
      2721
      Views

      Thanks for the reply ,will certainly try the QtSpalshScreen thing when I get on the machine with the proper environment.I have noticed that when you start a new android project with Qt creator the project just runs fine. It is only when I import an external project in my instance of Qt Creator that the problem occurs.I decided to just learn a few basics on android native development ,deal with problems in the native environment ,and hopefuly it will be easier to deal with these on the Qt side of things.
    • UNSOLVED [SOLVED]driver not loaded issue
      Mobile and Embedded • android mysql database deploy • • HPCTECH  

      16
      0
      Votes
      16
      Posts
      5346
      Views

      The problem solved and I updated the wiki page to include the solution: https://wiki.qt.io/Build_Qt_5_MySQL_Plugin_for_Android#Using_mariadbclient_.28Option_2.29
    • [SOLVED]Unable to deploy under Linux (MySQL plugin issue)
      General and Desktop • mysql database deploy qmysql • • HPCTECH  

      16
      0
      Votes
      16
      Posts
      6304
      Views

      @SGaist said: You are missing the openssl libraries It's not related to my issue because it points to "libqsqlmysql.so" which is not needed in my application (the needed one is libqsqlmysql.so) Any way, I fixed the problem (thanks to Hamish Moffatt from Qt mailing list) by removing "libqsqlmysql.so" (the old plugin original file shipped by Qt Installer) outside sqldrivers folder
    • Compile PyQt program into a stadarlone exacutable for Linux
      General and Desktop • deploy pyqt4 standalone exam • • Nick96  

      1
      0
      Votes
      1
      Posts
      650
      Views

      No one has replied

    • To Deploy an app in Windows Embedded Standard SP3
      Installation and Deployment • qml deploy windows embedde • • kmara  

      1
      0
      Votes
      1
      Posts
      619
      Views

      No one has replied

    • [Solved] What's the equivalent of macdeployqt's -qmldir=... option for iOS builds?
      Mobile and Embedded • qml ios deploy • • timday  

      5
      0
      Votes
      5
      Posts
      2370
      Views

      @timday said in [Solved] What's the equivalent of macdeployqt's -qmldir=... option for iOS builds?: so I created an imports.qml in the subdirectory referencing the imports I wanted... and all seems well again 100 upvotes if I had them to give. 5 years later and this imports.qml trick still solved my iOS issue. thank you!
    • [solved] Deploy app with QtMultimedia on Windows
      Installation and Deployment • windows video multimedia audio deploy • • helenebro  

      7
      0
      Votes
      7
      Posts
      3937
      Views

      Good ! Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
    • On Redhat 6.6, execute standalone made by QT5.4 causing black screen
      General and Desktop • deploy redhat 6 black screen • • willykaze  

      1
      0
      Votes
      1
      Posts
      733
      Views

      No one has replied

    • Android Build Doesn't Finish
      Mobile and Embedded • android build deploy qt 5.4.2 5.4.2 • • Niranjan Jayanth  

      1
      0
      Votes
      1
      Posts
      814
      Views

      No one has replied

    • Running a app - Error
      General and Desktop • qt creator deploy make • • Lays147  

      7
      0
      Votes
      7
      Posts
      2359
      Views

      @JKSH This img of qt version: http://i62.tinypic.com/dhaiqb.png I'm use the qt creator and qt version 5.4.2 downloaded of qt.io
    • Which DLLs needed when we deploy QT "HelloWorld" application on WINCE7 ?
      Mobile and Embedded • deploy wince7 • • jacky_1981  

      2
      0
      Votes
      2
      Posts
      688
      Views

      Maybe this guide will help on Windows CE: http://wiki.qt.io/Deploy_an_Application_on_Windows What error message do you get when you try to start the application?
    • [solved] Microsoft Visual C++ Runtime Library says error
      General and Desktop • gui deploy runtime • • Giorgi  

      13
      0
      Votes
      13
      Posts
      9453
      Views

      @SGaist ok. thanks
    • QMovie, gif and QRC
      General and Desktop • windows deploy qrc gif qmovie • • quniq  

      6
      0
      Votes
      6
      Posts
      5567
      Views

      And that's the information I missed. I found that qgif should be in 'plugins' folder, but it seems to work in qt4 only. qfgif.dll has to be stored in 'imageformats' subfolder. Thanks a lot!