qflow / wamp

qt implementation of wamp protocol. Contains both router and client. Could be used from C++ and QML
GNU Lesser General Public License v3.0
9 stars 8 forks source link

cannot build wamp.qbs #1

Open pincopallopino opened 8 years ago

pincopallopino commented 8 years ago

Hi, i'm trying to build your project with Qt5.5.0 on Linux 32bit but i get the following errors:

/home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/.obj/39301be37a6f50b4/moc_helperfunctions.cpp.o: nella funzione "QFlow::HelperFunctions::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)": /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/GeneratedFiles/moc_helperfunctions.cpp:165: riferimento non definito a "QFlow::FileInfo::~FileInfo()" /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/GeneratedFiles/moc_helperfunctions.cpp:165: riferimento non definito a "QFlow::FileInfo::~FileInfo()" /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/.obj/3a52ce780950d4d9/coreplugin.cpp.o: nella funzione "QFlow::CorePlugin::registerTypes(char const*)": /media/sf_Virtual_Machine_Xubuntu-14.04_32bit/wamp/wamp/core/src/coreplugin.cpp:61: riferimento non definito a "QFlow::FileInfo::absoluteFilePath() const" /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/.obj/3a52ce780950d4d9/coreplugin.cpp.o: nella funzione "int qmlRegisterUncreatableType<QFlow::FileInfo>(char const*, int, int, char const*, QString const&)": /home/test/Qt/5.5.0/5.5/gcc/include/QtQml/qqml.h:134: riferimento non definito a "QFlow::FileInfo::staticMetaObject" /home/test/Qt/5.5.0/5.5/gcc/include/QtQml/qqml.h:157: riferimento non definito a "QFlow::FileInfo::staticMetaObject" /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/.obj/3a52ce780950d4d9/coreplugin.cpp.o: nella funzione "QMetaTypeIdQObject<QFlow::FileInfo, 512>::qt_metatype_id()": /home/test/Qt/5.5.0/5.5/gcc/include/QtCore/qmetatype.h:1784: riferimento non definito a "QFlow::FileInfo::staticMetaObject" /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/.obj/3a52ce780950d4d9/coreplugin.cpp.o: nella funzione "QtMetaTypePrivate::QMetaTypeFunctionHelper<QFlow::FileInfo, true>::Destruct(void*)": /home/test/Qt/5.5.0/5.5/gcc/include/QtCore/qmetatype.h:749: riferimento non definito a "QFlow::FileInfo::~FileInfo()" /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/.obj/3a52ce780950d4d9/coreplugin.cpp.o: nella funzione "QtMetaTypePrivate::QMetaTypeFunctionHelper<QFlow::FileInfo, true>::Construct(void*, void const*)": /home/test/Qt/5.5.0/5.5/gcc/include/QtCore/qmetatype.h:756: riferimento non definito a "QFlow::FileInfo::FileInfo()" /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/.obj/3a52ce780950d4d9/coreplugin.cpp.o: nella funzione "QtPrivate::MetaObjectForType<QFlow::FileInfo, void>::value()": /home/test/Qt/5.5.0/5.5/gcc/include/QtCore/qmetatype.h:1409: riferimento non definito a "QFlow::FileInfo::staticMetaObject" /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/.obj/3a52ce780950d4d9/helperfunctions.cpp.o: nella funzione "QFlow::HelperFunctions::getFileList(QString, QString)": /media/sf_Virtual_Machine_Xubuntu-14.04_32bit/wamp/wamp/core/src/helperfunctions.cpp:80: riferimento non definito a "QFlow::FileInfo::FileInfo(QFileInfo)" /media/sf_Virtual_Machine_Xubuntu-14.04_32bit/wamp/wamp/core/src/helperfunctions.cpp:80: riferimento non definito a "QFlow::FileInfo::~FileInfo()" /media/sf_Virtual_Machine_Xubuntu-14.04_32bit/wamp/wamp/core/src/helperfunctions.cpp:80: riferimento non definito a "QFlow::FileInfo::~FileInfo()" /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/.obj/3a52ce780950d4d9/helperfunctions.cpp.o: nella funzione "QFlow::HelperFunctions::getFileListRecursive(QString, QString)": /media/sf_Virtual_Machine_Xubuntu-14.04_32bit/wamp/wamp/core/src/helperfunctions.cpp:92: riferimento non definito a "QFlow::FileInfo::FileInfo(QFileInfo)" /media/sf_Virtual_Machine_Xubuntu-14.04_32bit/wamp/wamp/core/src/helperfunctions.cpp:94: riferimento non definito a "QFlow::FileInfo::~FileInfo()" /media/sf_Virtual_Machine_Xubuntu-14.04_32bit/wamp/wamp/core/src/helperfunctions.cpp:94: riferimento non definito a "QFlow::FileInfo::~FileInfo()" /home/test/wamp/build/qtc_Qt_5_5_0_14f75cac-debug/core.qtc-Qt-5-5-0-14f75cac.635a302d/.obj/3a52ce780950d4d9/helperfunctions.cpp.o: nella funzione "QFlow::HelperFunctions::getFileInfo(QString)": /media/sf_Virtual_Machine_Xubuntu-14.04_32bit/wamp/wamp/core/src/helperfunctions.cpp:100: riferimento non definito a "QFlow::FileInfo::FileInfo(QString)" collect2: error: ld returned 1 exit status

What i'm doing wrong? I need to install some dependencies?

Thanks in advance

mfojtak commented 8 years ago

Hi,

The qbs build is obsolete now. I have swithed to cmake.

Just open CMakeList.txt in QtCreator.

Cheers. Michal

pincopallopino commented 7 years ago

you have to download also this https://github.com/qflow/websockets and this https://github.com/qflow/core in the wamp source directory

2017-03-30 17:25 GMT+02:00 Amir notifications@github.com:

excuse me, how to solve that ? CMake Error at CMakeLists.txt:7 (add_subdirectory): add_subdirectory given source "websockets/src" which is not an existing directory.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/qflow/wamp/issues/1#issuecomment-290446383, or mute the thread https://github.com/notifications/unsubscribe-auth/AGb6bJOrnnxlv64AkX58VTBxUma5XT3aks5rq8l1gaJpZM4Jci1I .

afendin commented 7 years ago

thank you man, i had another troubles with this library, and 5 days googling solutions about implementing wamp in Qt made me write with my hands and handle this all with QNetwrokQuery and things like that xD

mfojtak commented 7 years ago

you have to clone all dependecies. Plese, see the readme

git clone git@github.com:qflow/wamp.git
cd wamp
git submodule update --init --remote
git submodule foreach git pull origin master
git submodule foreach git checkout master
afendin commented 7 years ago

did all those things and could build with qt, but when it came to use it in my application didn't know how to include it in my project. Did several ways and didn't get any result.