Statically Build Qt together with Enginio causes link error



  • Long time before, I've tried compile Qt together with Enginio as static build.
    But when I try build a small program against it, it never succeed to link.
    The screen shot always show:
    !http://i1288.photobucket.com/albums/b485/jiangcaiyang/11_zpsca83b26c.png(Diagnosed screen shot)!
    Please help! The progress has never been forwarded since yesterday!



  • How did you built Qt, could you post the configure line you used? On which platform it fails, what is the compiler? are you cross compiling? Which enginio version are you using?

    \side note EnginioReply constructor is marked as private api



  • Previously I posted a reply:
    http://qt-project.org/forums/viewthread/28828/
    Now, the detailed information are here:
    Opertating system: Windows 8.1
    Compiler: MinGW4.8 extracted from QtSDK 5.2.1
    Qt source: Qt 5.2.1 (http://download.qt-project.org/official_releases/qt/5.2/5.2.1/single/qt-everywhere-opensource-src-5.2.1.zip.mirrorlist)
    no cross compiling.

    first I use git to clone Enginio code from gitorious.org:
    @git clone https://git.gitorious.org/qt/qtenginio.git qtenginio@

    The configure code are:

    @configure.bat ^
    -prefix E:/Develop/Qt5.2.1Static ^
    -confirm-license -opensource ^
    -static -release ^
    -qt-libpng -qt-libjpeg ^
    -openssl -openssl-linked ^
    -I E:/Develop/openssl-1.0.1g/include ^
    -L E:/Develop/openssl-1.0.1g/ ^
    OPENSSL_LIBS="-lssl -lcrypto -lUser32 -lAdvapi32 -lGdi32" ^
    -opengl desktop ^
    -no-fontconfig -qt-freetype ^
    -qt-sql-sqlite ^
    -no-qml-debug ^
    -nomake examples -nomake tests ^
    -skip qtwebkit ^
    -platform win32-g++@

    next I use
    @mingw32-make -j 4@
    then
    @mingw32-make install -j 4@

    all went well with some workaround.
    I've tested and found all modules run well except Enginio.



  • I am just using it to see whether the Enginio component token are correctly resolved and linked. Unfortunately all these token are not linked.
    Curiously, I look into libEnginio.a and found the token are there, but without the prefix "imp_".
    [quote author="Nierob" date="1399448192"]How did you built Qt, could you post the configure line you used? On which platform it fails, what is the compiler? are you cross compiling? Which enginio version are you using?

    \side note EnginioReply constructor is marked as private api[/quote]



  • Well, you are a bit on unsupported land. You took an unreleased QtEnginio 1.0.4 and you tried to compile it against old Qt5.2. That may work but I haven't tried, I guess it will require some build system adaptations, code wise it should be fine. What you can try is to take 1.0.2 version which was released together with Qt5.2 or experimental source package from here: http://download.qt-project.org/snapshots/qt/5.3/5.3.0-RC/2014-05-07_85/src/ that one contains enginio.



  • Thank you! By default Qt5.2.1 offline installer doesn't include Enginio whereas online installer make us burden a long install process. Since Qt5.3.0 RC has been released, and include Enginio, I'll try that.
    [quote author="Nierob" date="1399468615"]Well, you are a bit on unsupported land. You took an unreleased QtEnginio 1.0.4 and you tried to compile it against old Qt5.2. That may work but I haven't tried, I guess it will require some build system adaptations, code wise it should be fine. What you can try is to take 1.0.2 version which was released together with Qt5.2 or experimental source package from here: http://download.qt-project.org/snapshots/qt/5.3/5.3.0-RC/2014-05-07_85/src/ that one contains enginio.[/quote]



  • It hasn't been released yet, it is a release candidate for Qt5.3 release candidate :-)



  • Well, forgive for my unawareness, I don't know that a release candidate have a release candidate.
    [quote author="Nierob" date="1399535358"]It hasn't been released yet, it is a release candidate for Qt5.3 release candidate :-)[/quote]



  • Sorry for confusion, that was a word joke, the link I posted was pointing to a package that was supposed to be Qt5.3RC after internal testing.

    Btw. Things are moving quickly, Qt5.3RC was released today, a bit after my answer http://blog.qt.digia.com/blog/2014/05/08/qt-5-3-release-candidate-available/ :-)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.