[Solved] Compiling Qt (with OpenSSL) failing



  • Hi,

    I'm trying to compile Qt with OpenSSL support (I haven't done that since I started using the Qt SDK) and configure -openssl fails immediately on creating qmake :

    @Creating qmake...
    g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
    nerators/mac -Igenerators/symbian -IC:\QtSDK\QtSources\4.7.3/include -IC:\QtSDK
    QtSources\4.7.3/include/QtCore -IC:\QtSDK\QtSources\4.7.3/include -IC:\QtSDK\QtS
    ources\4.7.3/include/QtCore -IC:\QtSDK\QtSources\4.7.3/src/corelib/global -IC:\Q
    tSDK\QtSources\4.7.3/src/corelib/xml -IC:\QtSDK\QtSources\4.7.3/mkspecs/win32-g+

    • -IC:\QtSDK\QtSources\4.7.3/tools/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLE
      S -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNI
      CODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_
      GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAK
      E_OPENSOURCE_EDITION project.cpp
      In file included from project.cpp:42:
      project.h:45:25: error: qstringlist.h: No such file or directory
      project.h:46:25: error: qtextstream.h: No such file or directory
      project.h:47:21: error: qstring.h: No such file or directory
      project.h:48:20: error: qstack.h: No such file or directory
      project.h:49:18: error: qmap.h: No such file or directory
      project.h:50:23: error: qmetatype.h: No such file or directory
      In file included from property.h:45,
      from project.cpp:43:
      C:\QtSDK\QtSources\4.7.3/src/corelib/global/qglobal.h:62:28: error: QtCore/qconf
      ig.h: No such file or directory@

    I noticed the quirk in the paths: C:\QtSDK\QtSources\4.7.3/include
    Searching didn't bring anything up, so was wondering if someone might have had the same issue.

    Running Windows 7 64 with latest Qt SDK (RC1) and QtSources 4.7.3 installed.



  • Have you compared this output with the output of compiling without OpenSSL support?



  • [quote author="ZapB" date="1302250654"]Have you compared this output with the output of compiling without OpenSSL support?[/quote]

    Yes and the same result.



  • OK so this has nothing to do with OpenSSL then. Can you edit the title of the thread to reflect this please?

    What is the exact configure line you are using please?



  • [quote author="ZapB" date="1302254313"]OK so this has nothing to do with OpenSSL then. Can you edit the title of the thread to reflect this please?

    What is the exact configure line you are using please?[/quote]
    As I said what I always used before, configure -openssl. About the thread title, even tough the problem encountered does not seem related to OpenSSL the result I'm looking for is, so will leave it as is.



  • Downloaded the source code separately and it just compiled fine.
    So here is my question why supply borked source code as an download option in the SDK if it doesn't even compile (at least on windows)? Cause it is a bit confusing as it includes everything to make it look like compilable but it isn't.



  • Good question. If I were you I would file a bug report about this. I too would expect an SDK to ship sources with which I could recompile if wanted.



  • Yeah you'r right think thats the best to do :)





  • Solved perl was missing from the path.

    Strangely I had to install ActivePerl, until now I don't remember needing perl to compile Qt from source?



  • Just by curiosity does anyone knows since when perl is required?



  • I just commented on the bug report. Perl is required when building from git for the syncqt tool to be able to run. However, I do not think this should be required when using an sdk. It just raises the barrier to entry.



  • @ZapB I totally agree.

    At least it would be good to have configure check for perl in the path and warn when it ain't there. It's mentioned on the installation webpage after digging through the requirements but you easily read over it so it's not that obvious.

    Btw. I downloaded the qt-everywhere sources and they also need perl to run syncqt. I tried some old sources (4.5) I had lying around and they don't require perl. So somewhere along the road it was added :-)



  • Really? I don't remember seeing syncqt run when I built Qt-4.7.2 from sources. I'll have to check later and see.

    Hopefully the trolls will sort this in time for Qt SDK 1.1 or 1.2.


Log in to reply
 

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