qxmpp-project / qxmpp

Cross-platform C++ XMPP client and server library
408 stars 197 forks source link

qxmpp 1.5.0 build failure #531

Closed chenrui333 closed 1 year ago

chenrui333 commented 1 year ago

👋 trying to build the latest release, but run into some build issue. The error log is as below:

error build log ``` /tmp/qxmpp-20230131-90264-1ofa8bi/qxmpp-1.5.0/src/client/QXmppClient.cpp:415:49: error: 'auto' not allowed in template argument const auto sendEncrypted = [this](QXmppTask &&task) { ^~~~ /tmp/qxmpp-20230131-90264-1ofa8bi/qxmpp-1.5.0/src/client/QXmppClient.cpp:440:20: error: no matching function for call to object of type 'const (lambda at /tmp/qxmpp-20230131-90264-1ofa8bi/qxmpp-1.5.0/src/client/QXmppClient.cpp:415:32)' return sendEncrypted( ^~~~~~~~~~~~~ /tmp/qxmpp-20230131-90264-1ofa8bi/qxmpp-1.5.0/src/client/QXmppClient.cpp:415:32: note: candidate function not viable: no known conversion from 'QXmppTask' (aka 'QXmppTask, QXmppError>>') to 'int' for 1st argument const auto sendEncrypted = [this](QXmppTask &&task) { ^ /tmp/qxmpp-20230131-90264-1ofa8bi/qxmpp-1.5.0/src/client/QXmppClient.cpp:444:20: error: no matching function for call to object of type 'const (lambda at /tmp/qxmpp-20230131-90264-1ofa8bi/qxmpp-1.5.0/src/client/QXmppClient.cpp:415:32)' return sendEncrypted( ^~~~~~~~~~~~~ /tmp/qxmpp-20230131-90264-1ofa8bi/qxmpp-1.5.0/src/client/QXmppClient.cpp:415:32: note: candidate function not viable: no known conversion from 'QXmppTask' (aka 'QXmppTask, QXmppError>>') to 'int' for 1st argument const auto sendEncrypted = [this](QXmppTask &&task) { ^ ```

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/4059822619/jobs/6988371038 relates to Homebrew/homebrew-core#121997

chenrui333 commented 1 year ago

I am building against qt 6.4.2

lnjX commented 1 year ago

Thanks for testing, fixed in e2710926c637ab80efbada2127a32512cf2f545c, also see https://github.com/qxmpp-project/qxmpp/releases/tag/v1.5.1.

chenrui333 commented 1 year ago

confirmed the fix in 1.5.1 build, thanks @lnjX!