I installed Qt library and Qt creator in Linux Mint but when I try to run the designer I get the following error:
designer: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/designer': No such file or directory
I cannot find the designer version 5 online, but I could find the version 4. I'm afraid that this older version could not handle all the Qt5 new features.
Is the Qt designer version 5 available for Linux?
The designer app is part of the qttools5-dev-tools package:
You can find the solution to answers like "where can I get binary X from" in Debian-based distros quite easily:
% apt-file search bin/designer
qt4-designer: /usr/bin/designer-qt4
qt4-designer: /usr/lib/x86_64-linux-gnu/qt4/bin/designer
qt4-designer: /usr/share/qt4/bin/designer
qtchooser: /usr/bin/designer
qttools5-dev-tools: /usr/lib/x86_64-linux-gnu/qt5/bin/designer
qtchooser just provides a wrapper for the designer binary, it will start either Qt4 or Qt5-based designer.
qt4-designer & qttools5-dev-tools contain the real binary. You can choose.
If you installed Qt using the installers provided by the Qt website, the designer can also be launched from
~/Qt/<VERSION>/<COMPILER>/bin/designer
Related
I tried to install QT5 within cygwin and succeeded. I am also getting the Xorg menu with Cygwin/X for the designer.
But I could not find the qmake.exe for QT5. I only get the following files in the cygwin select package window
And also it shows mingw64-xxxx-qt4-qmake.exe not qmake.exe
unfortunately I could not sacrifice cygwin and go for a windows distribution. Should I build Qt5 from source code ?
qmake-qt5 belongs to libQt5Core-devel
As usual the search engine is available at
https://cygwin.com/packages/
I'm using Linux Mint 16 and I got a problem.
I installed Qt Creator 5.2.1 from binary package, downloaded from Qt site. I don't have Qt Linguist... Also, I have installed qtcreator and qt5-dev-tools (or similar name) from repository, still no Linguist. Where I can download it?
I prefer binary version from Qt site because it's newer than version from repository.
It should be in the bin folder. You can always do this to figure it out:
find $installdir/ -name \*linguist\*
By the way, there is also another option: install Archlinux and get all the fancy latest stuff. ;-)
I installed Qt 4.8.3 and Qt Creator 2.5.2 on Fedora 17 and Ubuntu 12.04.
When I create a GUI application, the visual elements look good in the Qt Designer preview window. However when I run the application, the resulting application has an older style which is inconsistent with the OS and does not match the preview in Qt Designer.
In both of the images below, the top part is the preview from Qt Designer and the bottom part is the compiled application.
Qt was installed by compiling the source located at http://qt-project.org/downloads
During ./configure phase of the installation, the "open source" version was chosen.
This issue occurs whether the application is run from the OS or launched from the IDE
Is there a way to make the compiled GUI application appear properly?
Fedora:
Top Half = Qt Designer preview (desired)
Bottom Half = resulting application
Ubuntu:
Top Half = Qt Designer preview (desired)
Bottom Half = resulting application
Addendum:
Here is an image showing a 4.8.1 compiled application (how it's supposed to look like)
Additionally, If I install both 4.8.1 and 4.8.3 on the same computer, even 4.8.1 compiled applications will not appear properly:
Problem is solved.
When installing the Qt source, the instructions forgot to mention that a list of developer libraries must be installed prior to the ./configure step. This list can be found here: http://qt-project.org/wiki/Build_Qt_For_Linux
Additionally, I had trouble compiling QtWebkit because of the error:
g++: error: unrecognized command line option ‘-fuse-ld=gold’
To solve this new problem, one of the two following solutions are possible:
At the configure step, run configure with the -no-webkit option: ./configure -no-webkit
OR
Remove the line QMAKE_LFLAGS+=-fuse-ls-gold from the file qt-everywhere.../src/3rdparty/webkit/Source/common.pri
I have Qt 4.6.3 on Debian. I need version 4.8.1.
To install it I downloaded the Qt SDK 1.2.1 from the Qt site, where is said that it contains version 4.8.1
After installation I checked Qt version and it is 4.6.3 instead of expected 4.8.1.
What I am doing wrong? And how can I install 4.8.1?
First of all I recommend getting 'official' Debian Qt upgrades by adding the testing (wheezy) repo to your package manager, this way everything on your system will be updated seamlessly in a few clicks.
If you can't do this, then:
Use your package manager to uninstall the existing Qt installation (so that's the runtime libs, plugins, and Qt Creator).
Install the SDK anywhere you like, it installs under one folder anyway.
Update your $PATH to point to the directory with qtcreator, qmake, etc., there are numerous ways of doing this, the simplest is exporting the updated $PATH in your .bashrc. (And optionally make some nice shortcuts for your DE).
Create symlinks in /usr/lib (or /usr/lib64) to point to the Qt libraries the SDK provides, or add a qt.conf file containing the path in your /etc/ld.conf.so.d/ directory and run ldconfig as root.
I'm an openSUSE user myself, so some of the above may slightly different on Debian, hopefully someone with Debian experience can chime in if I'm incorrect.
Hoping this is still on-topic for StackOverflow.
I'm doing all my development on a Linux machine, but the code will be run by both Linux and Windows machines.
I'd like to use Linux to compile the code, and I have mingw-32 and mingw-w64 for that.
But I'd like to package the resulting executables into a nice MSI installation file. Is it possible to do this using utilities in Linux or running under Wine?
Thanks!
You can use a combination of Wine, Mono and WiX to create .msi packages on Linux.
For openSUSE, I have created a wrapper package called wixwine which gives you the 'candle' and 'light' commands from the Windows Installer XML (WiX) toolset ready to use on Linux.
You can find my wixwine package here
I just released v0.01 of msitools, a collection of utilities to inspect and create
Windows Installer files. It is based on the Wine code, but ported to POSIX.
You can find the source and binary packages at http://bonzini.fedorapeople.org/ - unfortunately you will need to build libgsf from git, because I found a bug and no released version has the fix as of now. The linked page has Fedora RPMs with the fix.
$ msiinfo streams ~/download/Firefox-16.0.2-it.msi
Binary.New
Binary.Up
Binary.info
Binary.dlgbmp
Binary.CustomBin
Binary.bannrbmp
Binary.completi
Binary.custicon
Binary.exclamic
Binary.insticon
Binary.removico
Binary.repairic
_MAKEMSI_Cabs.MM01.cab
Binary.BannerGraphic.BMP
Icon.firefox.16.0.2.0.ico.exe
DigitalSignature
SummaryInformation
$ msiinfo extract ~/download/Firefox-16.0.2-it.msi _MAKEMSI_Cabs.MM01.cab > firefox.cab
$ cabextract -l firefox.cab
Viewing cabinet: firefox.cab
File size | Date Time | Name
-----------+---------------------+-------------
917984 | 24.10.2012 12:50:38 | firefox.exe
18912 | 24.10.2012 12:50:38 | AccessibleMarshal.dll
There is a companion utility msibuild to build MSIs. It is very low-level, but you can use the two tools together to make small changes to an MSI you already made on Windows.
update: now hosted at https://live.gnome.org/msitools, it also has a tool (wixl) that supports a subset of the WiX XML. Requires libgsf 1.14.25 or newer. Fedora 18 and newer have it packaged.