xTuple.com xTupleU Blog & News Customer Support


Hello Everybody, anyone know what’s wrong on compile xtuple v4.11.0 on Qt5.5.1…

I have got this error when try to compile:

/usr/local/Qt-5.5.1/include/QtNetwork/qnetworkaccessmanager.h:63:7: note: forward declaration of ‘class QSslError’
class QSslError;
In file included from /usr/local/Qt-5.5.1/include/QtCore/qobject.h:43:0,
from /usr/local/Qt-5.5.1/include/QtCore/QObject:1,
from …/…/qt-client/common/xtNetworkRequestManager.h:14,
from …/…/qt-client/common/xtNetworkRequestManager.cpp:11:
/usr/local/Qt-5.5.1/include/QtCore/qlist.h:463:31: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
while(from != to) --to, delete reinterpret_cast<T*>(to->v);

/usr/local/Qt-5.5.1/include/QtCore/qlist.h:465:61: error: invalid use of incomplete type ‘class QSslError’
while (from != to) --to, reinterpret_cast<T*>(to)->~T();
In file included from /usr/local/Qt-5.5.1/include/QtNetwork/QNetworkAccessManager:1:0,
from …/…/qt-client/common/xtNetworkRequestManager.h:18,
from …/…/qt-client/common/xtNetworkRequestManager.cpp:11:
/usr/local/Qt-5.5.1/include/QtNetwork/qnetworkaccessmanager.h:63:7: note: forward declaration of ‘class QSslError’
class QSslError;

Makefile:5165: recipe for target ‘tmp/xtNetworkRequestManager.o’ failed

Thank you very much…



1$ find /usr/local/Qt-5.5.1/include -name QSslError
2$ find /usr/local/Qt-5.5.1/include -name qsslerror.h

Steps 1 and 2 should each return one line. If not then /usr/local/Qt-5.5.1 is incomplete.

I’m assuming that you built from source based on the path. Let’s see if the Qt build looks right:

3$ cd /root/of/qt-everywhere-opensource-src-5.5.1
4$ cd qtbase/src/network
5$ ls -aF     # should show .moc and .obj subdirectories
6$ ls .obj/qsslerror.o

Step 6 should return one line. If it does then try reinstalling this portion of Qt:

7$ make install    # or sudo make install

If step 6 did not return anything then the Qt build is incomplete. The most likely explanation is that some prerequisite was missing during the Qt build. Newer versions of Qt tend to claim success when they didn’t actually build everything you asked for. Check the output of the configure step very carefully if you saved it to see if there were any comments about SSL being supported or not.

I hope this helps.

Thank you very much, Sr. Gmoskowitz…
Your instructions helped me fix my problem…