Quantcast
Channel: Installation and Deployment
Viewing all 22112 articles
Browse latest View live

Unsolved ERROR: Feature 'xcb' was enabled, but the pre-condition 'libs.xcb' failed

$
0
0

Hi There,
i am facing this issue while building Qt Sources version 5.9.7 statically.
i want know why error occurred and how to resolve this issue?

i tried to install X11 Requirement then also configured it but still facing the same issue.?

please help with this issue

Thanks in Advance


Unsolved Cant deploy simple app

$
0
0

Hi
I have a simple hello world qml app and want to test deployment.
I have followed instructions given here but when I run the app I get no output or errors.
What has gone wrong?
Here is a picture of my deployment folder
0_1554476971875_4406b983-21df-46ca-852c-8dbefb98be87-image.png

Unsolved On Travis CI 'make' command not generating .a file for static library which is used by another project.

$
0
0

hi , i am trying to run a static library project which is used by another linked project , it is working fine on the local systems both on windows as well as Ubuntu on VM .. however it always fails on Travis CI and it does not generates the files of that static library .
this is the script i'm using :

language: cpp
os: linux
group: stable
dist: xenial

install:

  • sudo aptitude install debian-keyring debian-archive-keyring
  • sudo add-apt-repository -y ppa:beineri/opt-qt-5.11.3-xenial
  • sudo apt-get update
  • sudo apt-get install build-essential g++
  • sudo apt install qt511-meta-full
  • sudo apt-get install qt5-default qt5-qmake qtbase5-dev-tools
  • sudo apt-get install mingw-w64

script:

  • echo -e "/opt/qt511/bin\n/opt/qt511/lib" > default.conf
  • sudo rm /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf
  • sudo mv default.conf /usr/lib/x86_64-linux-gnu/qtchooser/
  • cd SimPlatform
  • qmake SimPlatform.pro
  • make
  • pwd
  • ls -l
  • cd ../Prototype01
  • qmake -project "QT = core widgets"
  • qmake Prototype01.pro
  • make

following is the failed log on travis CI : log
0_1554555307863_1.PNG
0_1554555314760_2.PNG

Unsolved Using Qt Quick UI (Qt Creator 4.8.0, Qt 5.12.0), for native build on Raspberry PI, will not run

$
0
0

I'm fairly new to Qt. I am running Qt 5.12.0 on Qt Creator 4.8.0 on the Raspberry Pi 3 B+. I have ran the code correctly on the PC, but on the Raspberry Pi it is giving an error with running the program. Am I missing a compiler or a kit or something else? Here is the error message I'm getting:

Starting /usr/bin/arm-linux/gnueabihf-g++-6...
arm-linux-gnueabihf-g++-6: fatal error: no input files
compilation terminated.
/usr/bin/arm-linux-gnueabihf-g++-6 exited with code 1

Unsolved how to prepare the development environment in macOS

$
0
0

I am new user and want to learn Qt. My development environment is a macOS (Mojave). I read the Documentation, but I could not understand how to configure QPSQL for connection to PostgreSQL database and other details about.

Unsolved "Cannot create file", "Cannot save session" - unknown error, macOS

$
0
0

Hi,

I'm having a hard time
with my qt creator that I've tried googling the error message with no avail.

error message:
Cannot create file /Users/"username"/.config/QtProject/qtcreator/devices.xml: Unknown error

which is weird because the functionality of the creator works fine, and I am able push the create
project button and start making windows with the build working successfully. The error message will
just pop up multiple times in a row all the time and sometimes the message will say the same thing but instead
of "cannot create file", it will say "cannot save session" which makes me wonder if I need to change
my file path config. I've already tried sudo mkdir -p /Users/"username"/... in the terminal
I've also found the Qt creator files in finder-->go-->go to files-->"username"directory and I'm not sure what I'm looking for with all of the installed files so I haven't done anything to those.

Thank you for any advice

Unsolved Access SQL database server from Qt-WASM application

Unsolved Absolute paths to EGL library in libQt5Gui.so since Qt 5.12.1

$
0
0

I cross compile Qt for a custom device (TI AM335x). It uses eglfs as a platform, and therefore needs to link to libEGL, libGLESv2, etc.

The configuration step apparently has been changed in Qt 5.12.1, such that libraries found at configuration time are stored with absolute paths. See Issue #72903.

https://bugreports.qt.io/browse/QTBUG-72903

Now I have the problem that Qt shared objects which link to opengl libraries have absolute paths as dependencies in them.

Here is the output from readelf -d libQt5Gui.so

 0x00000001 (NEEDED)                     Shared library: [libQt5Core.so.5]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [/home/work/sdk/sysroot/usr/lib/libEGL.so]
 0x00000001 (NEEDED)                     Shared library: [/home/work/sdk/sysroot/usr/lib/libIMGegl.so]
 0x00000001 (NEEDED)                     Shared library: [/home/work/sdk/sysroot/usr/lib/libsrv_um.so]
 0x00000001 (NEEDED)                     Shared library: [/home/work/sdk/sysroot/usr/lib/libGLESv2.so]
 0x00000001 (NEEDED)                     Shared library: [/home/work/sdk/sysroot/usr/lib/libGLES_CM.so]
 0x00000001 (NEEDED)                     Shared library: [/home/work/sdk/sysroot/usr/lib/libusc.so]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libQt5Gui.so.5]

The relevant part in my mkspecs/qmake.conf file is as follows

QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/usr/lib
QMAKE_LIBDIR_EGL        = $$QMAKE_LIBDIR_OPENGL_ES2

QMAKE_INCDIR_EGL        = $$[QT_SYSROOT]/usr/include
QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}

QMAKE_LIBS_OPENGL_ES2   = -lEGL -lIMGegl -lsrv_um -lGLESv2 -lGLES_CM -lusc
QMAKE_LIBS_EGL          = $${QMAKE_LIBS_OPENGL_ES2}

When I install the shared objects on the target device, the libraries are not found, because the path does not exist there.

From the linked issue above, It is not clear to me how I can fix this issue. Does anybody know how to resolve this?

Thanks for reading. Any suggestions are much appreciated.


Unsolved No valid kits found

$
0
0

@rahul1234 I guess you mean QtQuick Stacked/Scroll applications?
What Qt version do you use and how did you install it?
If you go to your Kits - are there any warnings/errors?

Unsolved Qt Installer Framework, error while testing repository

$
0
0

Hello everyone! I wonder, why there is such lack of information about QtIFM?
So, basically I have successfully created offline installer, but now have some problem with online one.
Here is my script for making repo:

D:\Qt\QtIFW-3.0.6\bin\repogen.exe -p client\packages client\clientRepository

This is for making installer:

D:\Qt\QtIFW-3.0.6\bin\binarycreator.exe --online-only -c client\config\config_online.xml -p client\packages client\OnlineInstaller.exe

The config_online.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Installer>
    <Name>4x4Basic name</Name>
    <Version>1.0.0</Version>
    <Title>4x4Basic title</Title>
    <Publisher>The AlexLPN Company</Publisher>
    <StartMenuDir>Board4x4</StartMenuDir>
    <TargetDir>@HomeDir@/Board4x4/Basic4x4</TargetDir>

    <RemoteRepositories>
         <Repository>
             <Url>http://github.com/alexlyapin/Basic4x4/clientRepository</Url>
             <Enabled>1</Enabled>
             <DisplayName>Example repository</DisplayName>
         </Repository>
    </RemoteRepositories>
</Installer>

The updates.xml:

<?xml version="1.0" encoding="utf-8" ?> 
<Updates>
 <ApplicationName>{Basic4x4}</ApplicationName>
 <ApplicationVersion>1.0.0</ApplicationVersion>
 <Checksum>true</Checksum>
 <PackageUpdate>
  <Name>Basic4x4</Name>
  <DisplayName>Basic4x4 component</DisplayName>
  <Description>This component is uncheckable.</Description>
  <Version>1.0.0</Version>
  <ReleaseDate>2015-12-01</ReleaseDate>
  <SortingPriority>40</SortingPriority>
  <Checkable>false</Checkable>
  <UpdateFile UncompressedSize="56605917" CompressedSize="15509593" OS="Any"/>
  <DownloadableArchives>iconengines.7z,imageformats.7z,platforms.7z,styles.7z,translations.7z,content.7z</DownloadableArchives>
  <Licenses>
   <License name="License agreement" file="license.txt"/>
  </Licenses>
  <SHA1>3ef56b443d43c3d49ee983d7d1f5e6cd6280e30b</SHA1>
 </PackageUpdate>
</Updates>

The package is uploaded to GitHub repository as "https://github.com/alexlyapin/Basic4x4/tree/master/clientRepository"
right there are located Basic4x4 folder, Updates.xml and license.txt

When I make the installer and try to test the repo, I get the error:
Updates.xml: error occurred while parsing element

So, either the location is wrong or some xml lines. Can someone please check or advice me something?
Thank you!

Unsolved Qt5 Android static application

$
0
0

Hello, been trying to run STATIC qt application on Android for a week or so. Qt itself has been built with ndk at STATIC mode for sure. Been trying both androiddeployqt and manual way, no luck. Shared version works out of the box, androiddeployqt is capable to use shared plugins only (android platform plugin at least).
It appears there are quite a lot of bug reports and issues over internets from guys who could not figure that out.
Is there a chance to run it? Has jni calls overlaying from core and plugins been ever resolved?
I would be greatly appreciated if anyone could tell me merely either "possible" or "impossible".

Unsolved Qt WebAssembly: Porting Current Qt C++ project to web assembly

$
0
0

Hi,

Did you already tried to build your project with a Qt version built for WebAssembly ?

Unsolved Compile Qt source for Android

Unsolved create a final directories With Qt installer framework

$
0
0

Hi

i am newbie in Qt installer framework and i don't thing how to create a final directories come to the final directory describe below on mode online for the OS Linux Ubuntu.

could you give me an example of use for resolve me problems.
to remind the person who will install the software will not have to make any order on Ubuntu all command make it's automatique.

for my second problem I try in the installer mode to save some file as well as the directory
example reinstalling the software over the existing one but keeping the data files.

Thanks a lots Cordially Dyonisos34.

0_1554980515765_Example.png

Unsolved Cannot find missing dependency when starting qt-unified-windows-x86-3.0.4-online.exe

$
0
0

I finally found a solution for this problem. First you have to start the installer again. Wait till the error message appers. Then you have to close the message. Don't close the installer! Go to settings and uncheck everything. Add this link (http://download.qt-project.org/online/qt5/windows/x86/online_repository/) to the sources. Make sure that just this new created source is checked. Try to install qt again without closing the installer.


Unsolved Qt5.11.3 build fails for QtWebEngine on MSVC 2017 64bit

$
0
0

I returned to the problem, called qmake directly for qtwebengine and got the following:

... [1/1] Regenerating ninja files ... [1/1] Regenerating ninja files ninja: error: manifest 'build.ninja' still dirty after 100 tries Command '[ 'C:/temp/qt-build/build_qtwebengine/src/3rdparty/ninja/ninja.exe', '-C', 'C:\\temp\\qt-build\\build_qtwebengine\\src\\3rdparty\\chromium\\tools\\gn\\out\\Release', '-w', 'dupbuilder=err', 'gn']' returned non-zero exit status 1 Building gn manually in a temporary directory for bootstrapping... Building gn using itself to out\Release... Project ERROR: GN build error! jom: C:\temp\qt-build\build_qtwebengine\src\buildtools\Makefile [sub-gn-pro-make_first] Error 3 jom: C:\temp\qt-build\build_qtwebengine\src\Makefile [sub-buildtools-make_first] Error 2 jom: C:\temp\qt-build\build_qtwebengine\Makefile [sub-src-make_first] Error 2

Does it tell more now?

Unsolved Trying to build Qt 5.5.1 on Ubuntu 18.04

$
0
0

Hello everyone.

Sorry for the over-abused question but I'm not able to successfully build Qt 5.5.1 on my Ubuntu 18.04 laptop (I need this specific version because of dependencies with other software).

System configuration:

  • Ubuntu 18.04.2 LTS bionic
  • gcc 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
  • GNU Make 4.1 built for x86_64-pc-linux-gnu
  • Postgres 9.6.2 (libs)
  • Qt 5.5.1
  • OpenSSL 1.0.2r
  • No leveldb folder under qtwebkit/Tools/qmake/config.tests
  • Using make -j5

Configure settings:

./configure -opensource -confirm-license -qt-sql-psql -qt-sql-sqlite -qt-zlib -qt-libpng -qt-libjpeg -release -nomake examples -nomake tests -openssl -I /usr/local/ssl/include -L /usr/local/ssl/lib -I /usr/local/postgres/9.6.12/include -L /usr/local/postgres/9.6.12/lib -qt-xcb -no-use-gold-linker

Error:

API/JSStringRef.cpp: In function ‘OpaqueJSString* JSStringCreateWithCharacters(const JSChar*, size_t)’:
API/JSStringRef.cpp:40:50: error: invalid conversion from ‘const JSChar* {aka const short unsigned int*}’ to ‘const UChar* {aka const char16_t*}’ [-fpermissive]
     return OpaqueJSString::create(chars, numChars).leakRef();
                                                  ^
In file included from API/JSStringRef.cpp:31:0:
API/OpaqueJSString.h:49:39: note:   initializing argument 1 of ‘static WTF::PassRefPtr<OpaqueJSString> OpaqueJSString::create(const UChar*, unsigned int)’
     static PassRefPtr<OpaqueJSString> create(const UChar* characters, unsigned length)
                                       ^~~~~~
API/JSStringRef.cpp: In function ‘OpaqueJSString* JSStringCreateWithCharactersNoCopy(const JSChar*, size_t)’:
API/JSStringRef.cpp:65:125: error: invalid conversion from ‘const JSChar* {aka const short unsigned int*}’ to ‘const UChar* {aka const char16_t*}’ [-fpermissive]
     return OpaqueJSString::create(StringImpl::createWithoutCopying(chars, numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
                                                                                                                             ^
In file included from ../WTF/wtf/text/WTFString.h:29:0,
                 from API/OpaqueJSString.h:30,
                 from API/JSStringRef.cpp:31:
../WTF/wtf/text/StringImpl.h:431:57: note:   initializing argument 1 of ‘static WTF::PassRefPtr<WTF::StringImpl> WTF::StringImpl::createWithoutCopying(const UChar*, unsigned int, WTF::HasTerminatingNullCharacter)’
     WTF_EXPORT_STRING_API static PassRefPtr<StringImpl> createWithoutCopying(const UChar* characters, unsigned length, HasTerminatingNullCharacter);
                                                         ^~~~~~~~~~~~~~~~~~~~
API/JSStringRef.cpp: In function ‘const JSChar* JSStringGetCharactersPtr(JSStringRef)’:
API/JSStringRef.cpp:86:30: error: invalid conversion from ‘const UChar* {aka const char16_t*}’ to ‘const JSChar* {aka const short unsigned int*}’ [-fpermissive]
     return string->characters();
            ~~~~~~~~~~~~~~~~~~^~
make[3]: Leaving directory '/home/mastroj/Desktop/src/qt-src-5.5.1-8/qtwebkit/Source/JavaScriptCore'
Makefile.JavaScriptCore:98: recipe for target 'sub-Target-pri-make_first-ordered' failed
make[2]: *** [sub-Target-pri-make_first-ordered] Error 2
make[2]: Leaving directory '/home/mastroj/Desktop/src/qt-src-5.5.1-8/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/mastroj/Desktop/src/qt-src-5.5.1-8/qtwebkit'
Makefile:490: recipe for target 'module-qtwebkit-make_first' failed
make: *** [module-qtwebkit-make_first] Error 2

Extra question(s): are there any know issues by using make -jX? can warnings be disabled? (using -w does nothing)

I'm out of ideas, any thoughts?

Thanks in advance.

Unsolved How to remove Unknown Publisher from User control Access dialog box?

$
0
0

You need to sign your installer and app executable using a certificate. You can get such cert. from many companies, just Google for it. It costs between 100-400 US dollars, certificate is usually valid for a few years (1-3).

Once you have the certificate, you can sign any exe with:

signtool.exe sign /t http://timestamp.digicert.com /f yourCertFile.pfx app.exe

And then verify the signature with:

signtool.exe verify /pa /v app.exe

The signtool.exe is part of Windows SDK, which you can get from Microsoft, free of charge.

Unsolved How to install Charts?

$
0
0

Qt Creator is just an IDE, it is not related to the Qt version you use to develop your application.

Where are the Qt libraries located on your machine ?

Solved 5.12 shadow build not working

$
0
0

In case anyone runs into the same problem. The fix was prefix path, you have to append \qtbase to whatever path you choose for shadow build folder.

E.g. if you wanted shadow build in folder "c:\qt\static\5.12.1" then prefix would be "-prefix c:\qt\static\5.12.1\qtbase". The shadow build would still be in the "c:\qt\static\5.12.1" folder.

Viewing all 22112 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>