跳到內容

Installation and Deployment

Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
9.7k 主題 51.1k 貼文
  • Qt 5.5.1 Error when building dbus support

    Solved
    8
    0 評價
    8 貼文
    5k 瀏覽
    P
    As promised, here is the follow-up. The workaround worked. I then ran ths command on gdb: /mnt/Data/devel/source/qt/build.exp/qtbase/bin/qmake /mnt/Data/devel/source/qt/qt5/qtbase/src/dbus/dbus.pro -o Makefile However, there were too many variables eliminated by optimization, and it was hard figuring out what was happening. E.g., on void MakefileGenerator::setProjectFile(QMakeProject *p), on this check if (project->isActiveConfig("win32")) target_mode = TARG_WIN_MODE; else if (project->isActiveConfig("mac")) target_mode = TARG_MAC_MODE; else target_mode = TARG_UNIX_MODE; I was getting TARG_MAC_MODE, instead of the TARG_UNIX_MODE I expected, especially because on MakefileGenerator * MetaMakefileGenerator::createMakefileGenerator(QMakeProject *proj, bool noIO) if(gen.isEmpty()) { ... } else if(gen == "UNIX") { mkfile = new UnixMakefileGenerator; } else if(gen == "MINGW") { mkfile = new MingwMakefileGenerator; } else if(gen == "PROJECTBUILDER" || gen == "XCODE") { I got a mkfile = new UnixMakefileGenerator, as expected. So, I decided to run configure with -no-optimized-qmake, and try again. And I've got errors on elementar functionality, e.g., this: /mnt/Data/devel/source/qt/qt5/qtbase/mkspecs/features/qt_module_pris.prf:136: Cannot write file /mkspecs/modules-inst/qt_lib_dbus.pri: Cannot create parent directory Project ERROR: Aborting. or this: QFileSystemEngine::currentPath () at /mnt/Data/devel/source/qt/qt5/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:760 760 qWarning("QFileSystemEngine::currentPath: getcwd() failed"); So, I became even more suspicious of my environment, and decided to step back and run a more systematic test suite, which got me the results below on dbus support: -optimized-qmake Custom GCC - Failed Fedora GCC - Failed -no-optimized-qmake Custom GCC - Failed Fedora GCC - Success If we discount my custom environment (back to the drawing board for me), I've apparently hit some issue with my configuration options and -optimized-qmake. This makes more sense. Since the default is -no-optimized-qmake, it could explain why most people never get hit by this. Most "Qt-building recipes" I found on the web just take the default, and I've only used -optimized-qmake because I found it on Fedora's package source and decided to give it a try. I'll leave it at that, for now. Thanks for the help.
  • Can't find installed QT4 when using 'make .... xconfig' command

    已鎖定 Unsolved mac qt4 make xconfig kernel qt4.8.4
    2
    0 評價
    2 貼文
    4k 瀏覽
    SGaistS
    Hi, Please don't post the same question multiple times. Duplicates Closing this one
  • Deploying on Windows fails

    Unsolved
    12
    0 評價
    12 貼文
    3k 瀏覽
    R
    That solved the problem! I had: QApplication::setStyle("plastique"); QApplication a(argc, argv); as the first lines in main(). Commenting out the first line made the application run! Many thanks for all the support! How can I mark this question as resolved? Regards, Remco Poelstra
  • Setting up MySQL for Qt on Ubuntu

    7
    0 評價
    7 貼文
    6k 瀏覽
    L
    Tried many other suggestions and all failed. This one is straightforward and worked. In Ubuntu repository, search for 'Qt 5 MySQL', install and done!
  • Deploying Qt apps on OS X El Capitan that link against 3rd party library

    Unsolved macdeployqt
    4
    0 評價
    4 貼文
    2k 瀏覽
    I
    Just an addendum in case someone else decides to go the route I attempted to describe above for Mac 10.11 (El Capitan). In that case, you will most probably end up frustrated after hitting compilation issues with QtWebEngine et al. (it refuses to compile out of the box). I have come across the following issues and went over them as explained below: a) You will need to patch "qtwebengine/src/3rdparty/chromium/tools/gyp/pylib/gyp/xcode_emulation.py" with the following: sdk_root = self._SdkPath(config_name) if not sdk_root: sdk_root = '' ----> return l.replace('$(SDKROOT)', sdk_root) <---- Replaced this line with the following block (below). library = l.replace('$(SDKROOT)', sdk_root) if l.startswith('$(SDKROOT)'): basename, ext = os.path.splitext(library) if ext == '.dylib' and not os.path.exists(library): tbd_library = basename + '.tbd' if os.path.exists(tbd_library): library = tbd_library return library To see the original post about this "patch" refer to: https://trac.macports.org/attachment/ticket/49074/patch-chromium_tbd_libraries.diff b) Missing links to several libraries needed by QtWebEngine et al. Create symlinks to the respective and already existing libraries: sudo ln -s /usr/lib/libz.dylib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libz.dylib sudo ln -s /usr/lib/libresolv.dylib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libresolv.dylib sudo ln -s /usr/lib/libbsm.dylib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libbsm.dylib sudo ln -s /usr/lib/libcups.dylib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcups.dylib For the details on the above refer to the discussion about it here: https://trac.macports.org/ticket/49074 Following the flow above I successfully compiled, linked, and installed the Qt-5.5.1 libraries, as well as QtCreator 3.5.1 after that (also from source). So far, everything seems to work fine...
  • Procedure entry point error when installing Qt on Asus transformer book

    Unsolved asus install
    1
    0 評價
    1 貼文
    789 瀏覽
    尚無回覆
  • QtSerialPort windows static link

    8
    0 評價
    8 貼文
    8k 瀏覽
    SGaistS
    Hi and welcome to devnet, Unless you really need it as a separated module, do as @kuzulis suggested: include the serialport-lib.pri file in your .pro file
  • Qt5 using msvc 2008 compiler

    Unsolved
    7
    0 評價
    7 貼文
    3k 瀏覽
    C
    ah, ok cool thanks I will try that (but for 2008 : )
  • Qtwebkit.dll was not created after build process but it does not throw any error

    Unsolved
    15
    0 評價
    15 貼文
    5k 瀏覽
    JKSHJ
    @Shidharth said: qmake_all: FORCE make_first: FORCE all: FORCE clean: FORCE distclean: FORCE -$(DEL_FILE) Makefile install_subtargets: FORCE uninstall_subtargets: FORCE Huh... there are no targets. (If you look at the Makefile from other folders, this section has lots of contents.) I'm not sure what's happening here, sorry... Try subscribing to the Interest mailing list and asking there. You can talk to Qt engineers directly there.
  • Installing QT5 on raspberrypi

    Unsolved
    4
    0 評價
    4 貼文
    3k 瀏覽
    J
    Thank you for your fast reply. You are right, I see the problem.
  • Link error when building Qt 5.5.1 with vs2015

    Unsolved qt 5.5.1 msvc2015 vc 14.0 vs2015
    7
    0 評價
    7 貼文
    5k 瀏覽
    SGaistS
    Thanks for sharing the link !
  • qt5.5 cross compile xcb failed

    2
    0 評價
    2 貼文
    2k 瀏覽
    H
    I also try to configure without qt-xcb,and it works.But,when i compile an app with qt5.5,the app can't run on my arm board correctly. the console can output correct message ,but the gui doesn't show? Could anyone explain this? Does it relate to the reason that i don't compile and install xcb plugins?
  • Qt 4.8.6 fails for WebKit module for VS 2013

    Unsolved
    3
    0 評價
    3 貼文
    1k 瀏覽
    V
    @SGaist - Thank you. 4.8.7 version is working fine with WebKit module for VS 2013.
  • Install ARM Qt Cross Compiler on Debian 7 Wheezy

    Unsolved
    1
    0 評價
    1 貼文
    472 瀏覽
    尚無回覆
  • Problem Building Qt5 on SLED11.3

    2
    0 評價
    2 貼文
    2k 瀏覽
    A
    Similar error occurs on SLES 11.1 QT 5.5.0
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    9 瀏覽
    尚無回覆
  • No examples for QT Creator in Linux Mint installation . . .

    9
    0 評價
    9 貼文
    10k 瀏覽
    J
    I had the same problem on Linux Mint 17.2. This did the trick for me: sudo apt-get install qtbase5-examples qtbase5-doc-html
  • Código para imprimir un texto

    Unsolved
    1
    0 評價
    1 貼文
    415 瀏覽
    尚無回覆
  • 0 評價
    3 貼文
    3k 瀏覽
    S
    @articicejuice said: qtbase/src/plugins/platforms/xcb/qxcbkeyboard.cpp to pass through this error it's enough to add #define XK_dead_currency 0xfe6f to the top of this cpp file.
  • build qt 5.5.0 with msvc2013

    Solved
    4
    0 評價
    4 貼文
    1k 瀏覽
    S
    @Shidharth said: configure -debug-and-release -opensource -platform -opengl desktop win32-msvc2010 Start with building your configure line properly, this doesn't make sense. The -platform option need to be followed by the platform argument, like win32-msvc2013. Which beg the other question: why build with win32-msvc2010 if you want msvc2013 ? Do you really need '-opengl desktop' ? try configure -help