fuCtor / QAMQP

AMQP implementation for Qt
Other
28 stars 3 forks source link

does not compile on Qt without SSL support #18

Closed thefastman closed 11 years ago

thefastman commented 11 years ago

Maybe will be better to add some _NOSSL define to avoid this issue. Custom Qt5 build without SSL support makes impossible to build a project:

1>src\qamqp\amqp_network.cpp(38): error C2061: syntax error : identifier 'QSslSocket' 1>src\qamqp\amqp_network.cpp(183): error C2061: syntax error : identifier 'QSslSocket' 1>src\qamqp\amqp_network.cpp(184): error C2065: 'QSslSocket' : undeclared identifier 1>src\qamqp\amqpnetwork.cpp(184): error C2065: 'ssl' : undeclared identifier 1>src\qamqp\amqp_network.cpp(184): error C2061: syntax error : identifier 'QSslSocket' 1>src\qamqp\amqpnetwork.cpp(185): error C2065: 'ssl' : undeclared identifier 1>src\qamqp\amqp_network.cpp(185): error C2227: left of '->setProtocol' must point to class/struct/union/generic type 1> type is ''unknown-type'' 1>src\qamqp\amqp_network.cpp(204): error C2061: syntax error : identifier 'QSslSocket'

fuCtor commented 11 years ago

Fixed. Add QT_NO_SSL and some warning message if will be try amqps using.