QT—程式打包問題(1)
今天忽然想將寫的一個多文件編譯器的程式打包,然後......
問題出現了
This application failed to start because it could not find or load the Qt platform plugin "windows".
Reinstalling the application may fix this problem.
經過對各種對庫函式的折騰,終於找到了解決辦法.
除了Release版本 的exe檔案所新增必要的庫函式之外,我們還需要把 platforms資料夾放到與exe檔案的同級目錄下.如上圖所示
該資料夾在 QT\5.4\mingw491_32\plugins\platforms
相關推薦
初學Qt——程式打包(環境vs2012+qt5.1.0)
說來可笑,網上那麼多的教程,偏偏結尾的時候就沒有一個能詳細的講下關於程式的釋出。開發Qt是這樣,剛開始做web也是這樣,因為是自學的,所以都沒人可以教下,結果到了專案完成的最後總是要花費成噸的時間去查資料,瞭解怎麼釋出打包這些,好了,廢話不多說,進入正題吧。
QT—程式打包問題(1)
今天忽然想將寫的一個多文件編譯器的程式打包,然後...... 問題出現了 This application failed to start because it could not find or load the Qt platfor
Qt程式打包——教你做一個可安裝的執行程式
很多人都會編寫程式碼,但是生成可安裝執行程式,可能有很多人不知道生成的辦法。 那麼,現在我們一起來學習一下吧。 1、我們首先將Qt程式碼編譯處release版本,並通過去生成可執行程式。(這裡就不詳細介紹了,想要知道可點選一下連結https://blog.csdn.net/qq_160933
Qt 程式打包釋出總結
1. 概述 當我們用QT寫好了一個軟體,要把你的程式分享出去的時候,不可能把編譯的目錄拷貝給別人去執行。編譯好的程式應該是一個主程式,加一些資原始檔,再加一些動態連結庫,高大上一些的還可以做一個安裝檔案。 QT開發的程式釋出的時候經常採用兩種方式: l 靜態編譯,可
如何解決Qt程式在其他電腦上無法執行的問題(Qt程式打包釋出)
這幾天在研究Qt,首先嚐試用Qt Creator編寫一些小程式來練練手。但是,在這個過程中卻遇到了一個問題:使用Qt Creator編寫的exe程式,只能在本機執行,跑到別的電腦上就無法運行了,提示缺少各種各樣的庫。這個問題,我之前在搞VS-MFC的程式設計時,也遇到過,無非就是一些執行時庫的問題
Windows下Qt程式打包成
打包目的: QT寫的程式可執行檔案需要拷貝到其他沒有QT環境的windows裝置上執行。 第一步:構建 工具:QT+qmake+MinGW 我的QT程式是qmake寫的,在專案—>編輯構建配置選擇Release模式,然後構建執行,確認程式沒有錯誤。 第二步:依賴
Linux 下qt 程式打包釋出(使用linuxdelpoyqt ,shell 指令碼)
linux qt 程式打包釋出 1.linuxdeployqt 安裝 最簡單的方法直接下載編譯好的 linuxdeployqt-x86_64.AppImage檔案,將其改名字為linuxdeployqt,並chmod a+x,然後複製到 /usr/loc
QT學習——qt程式在不同電腦上成功執行(Qt程式打包釋出)
這幾天在研究Qt,首先嚐試用Qt Creator編寫一些小程式來練練手。但是,在這個過程中卻遇到了一個問題:使用Qt Creator編寫的exe程式,只能在本機執行,跑到別的電腦上就無法運行了,提示缺少各種各樣的庫。這個問題,我之前在搞VS-MFC的程式設計時,也遇到過,無非
QT程式打包出錯:缺少dll或者應用程式無法啟動
在打包QT開發的應用程式時,遇到兩個錯誤, 缺少dll或者應用程式無法啟動,第一個錯誤肯定是沒有將應用程式的依賴dll包含完全; 第二個錯誤重點說一下: (1)要將qwindows.dll放在platforms資料夾中,然後再將其和其他 依賴dll放在
Qt程式打包(封包)
一.使用單檔案封包工具 單檔案封包工具,顧名思義就是將可執行檔案及其相關依賴打包成單個可執行檔案的工具。 這裡推薦兩個單檔案封包工具:Enigma Virtual Box和BoxedApp Packe
Qt程式打包釋出方法(使用官方提供的windeployqt工具)
版權宣告:本文為博主原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處連結和本宣告。 本文連結:https:/
linux Qt程式打包(linuxdeployqt工具的使用)
linux Qt程式打包(linuxdeployqt工具的使用) 官方提供的最新版本基於Qt5.8的,使用者可根據需要從原始碼編譯
基於VS如何打包qt程式為.exe檔案(qt類似)
在此以我的一個程式為示例,我這個程式涉及qt和OpenCV,平臺是vs2017 進入自己的專案.exe資料夾執行會出現以下錯誤: 意思是缺少qt平臺在Windows中的外掛,那麼簡單,我們把對應的外掛新增進來看看行不行呢。 ①進入qt資料夾中msvc2017_64\plugins\
Qt程式各個平臺打包釋出及安裝程式大全
Linux:需要解決依賴庫的問題, 我們使用linuxdeployqt GitHub地址: linuxdeployqt 下載原始碼 並解壓使用Qt Creator編譯Release版本即可, 生成的應用程式拷貝到bin目錄下 sudo mv linuxdeployqt /usr/local/bi
Qt 下程式打包釋出
環境 QT 5.4.0 VS2015 1 QT在release版本下執行,生成exe檔案 2 新建一個資料夾,將生成的exe檔案拷貝到其中 3 在開始程式中開啟 QT5.4.0 for Desktop 4 開啟之後是一個命令列工具 5 進入新建的資料夾目錄
4-QT的程式打包釋出(將QT5的工程專案打包成一個exe程式)
https://blog.csdn.net/windsnow1/article/details/78004265 最近,在學習QT5的過程中,想嘗試著把自己寫的工程程式給打包釋出出來,在任何一臺windows系統都能執行,這樣就不會限於電腦需不需要安裝QT安裝包了。 首先,先介紹自己使用的環境。
樹莓派系統的精簡與打包qt程式
1.樹莓派系統精簡的整個過程: 筆者這裡只演示如何在linux下打包免安裝程式,程式名稱為giptables, 0、找個地方,比如桌面,建立空資料夾Giptables,這個將用來存放gip
Windows應用程式打包成exe檔案(1)- 工具簡單總結
最近有對一個Windows應用程式少許維護和修改。修改之後要釋出新的exe安裝檔案,打包exe檔案時,遇到了很頭疼的問題,還好最後解決了,記錄一下。 Visual Studio版本:Visual Studio 2017 Visual Studio 201
Linux下Qt程式的打包釋出
程式以test為例: 1. QtCreate使用Release版本編譯 2. 從可執行程式的檔案中拿出可執行檔案,例:test 3. 終端下使用ldd命令檢視需要的連線庫,例:ldd test
QT程式開發學習(1)
對QT早有耳聞,前同事用QT開發的一些小程式介面看著相當漂亮,用MFC做出來效果就是不如QT好,所以決定深入學習一下QT。 我下載的是5.11.2版本,qt各個版本下載地址:http://download.qt.io/archive/qt/ 對於編譯器我只安