Hello!
I want to compile the new version of openjabnab (which is an open source server in c++/php for nabaztags) that you can find at this address: https://github.com/OpenJabNab
I did several compilations of previous versions without problem, but this time, compilation stops with an error:
I tried to compile with BSD standard g++ and with 4.6 port version. Same problem.
I am on FreeBSD 8.2 and use qt4-4.7.3 from port.
Instructions for compilation are:
I don't know what to do because program compile quietly on Archlinux or Debian.
Is there anyone here who could confirm the problem and/or help? I do'nt develop myself in c++...
I want to compile the new version of openjabnab (which is an open source server in c++/php for nabaztags) that you can find at this address: https://github.com/OpenJabNab
I did several compilations of previous versions without problem, but this time, compilation stops with an error:
Code:
g++ -Wl,-O1 -pthread -Wl,-rpath,/usr/local/lib/qt4 -shared -Wl,-soname,libcommon.so.1 -o libcommon.so.1.0.0 tmp/obj/httphandler.o
tmp/obj/xmpphandler.o tmp/obj/httprequest.o tmp/obj/settings.o tmp/obj/log.o tmp/obj/pluginmanager.o tmp/obj/packet.o
tmp/obj/ambientpacket.o tmp/obj/messagepacket.o tmp/obj/sleeppacket.o tmp/obj/choregraphy.o tmp/obj/bunnymanager.o tmp/obj/bunny.o
tmp/obj/ztampmanager.o tmp/obj/ztamp.o tmp/obj/apimanager.o tmp/obj/cron.o tmp/obj/ttsmanager.o tmp/obj/accountmanager.o
tmp/obj/account.o tmp/obj/netdump.o tmp/obj/iq.o tmp/obj/moc_httphandler.o tmp/obj/moc_xmpphandler.o tmp/obj/moc_bunny.o
tmp/obj/moc_ztamp.o tmp/obj/moc_cron.o -L/usr/local/lib -L/usr/local/lib/qt4 -lQtNetwork -L/usr/local/lib/qt4 -L/usr/local/lib -lQtCore
ln -s libcommon.so.1.0.0 libcommon.so
ln -s libcommon.so.1.0.0 libcommon.so.1
ln -s libcommon.so.1.0.0 libcommon.so.1.0
rm -f ../bin/libcommon.so.1.0.0
rm -f ../bin/libcommon.so
rm -f ../bin/libcommon.so.1
rm -f ../bin/libcommon.so.1.0
mv -f libcommon.so.1.0.0 libcommon.so libcommon.so.1 libcommon.so.1.0 ../bin/
cd main/ && make -f Makefile
g++ -c -pipe -Werror -O2 -Wall -W -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
-I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4 -I../lib -Itmp/moc -I/usr/local/include -o
tmp/obj/main.o main.cpp
g++ -c -pipe -Werror -O2 -Wall -W -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
-I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4 -I../lib -Itmp/moc -I/usr/local/include -o
tmp/obj/openjabnab.o openjabnab.cpp
/usr/local/bin/moc-qt4 -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
-I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4 -I../lib -Itmp/moc -I/usr/local/include
openjabnab.h -o tmp/moc/moc_openjabnab.cpp
g++ -c -pipe -Werror -O2 -Wall -W -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
-I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4 -I../lib -Itmp/moc -I/usr/local/include -o
tmp/obj/moc_openjabnab.o tmp/moc/moc_openjabnab.cpp
g++ -Wl,-rpath,'$ORIGIN' -Wl,-O1 -pthread -Wl,-rpath,/usr/local/lib/qt4 -o ../bin/openjabnab tmp/obj/main.o tmp/obj/openjabnab.o
tmp/obj/moc_openjabnab.o -L/usr/local/lib -L/usr/local/lib/qt4 -L../bin/ -lcommon -lQtNetwork -L/usr/local/lib/qt4 -L/usr/local/lib
-lQtCore
tmp/obj/openjabnab.o(.text+0x35): In function `OpenJabNab::NewXMPPConnection()':
: undefined reference to `XmppHandler::XmppHandler(QTcpSocket*)'
tmp/obj/openjabnab.o(.text+0xc5): In function `OpenJabNab::NewHTTPConnection()':
: undefined reference to `HttpHandler::HttpHandler(QTcpSocket*, bool, bool)'
*** Error code 1
Stop in /usr/home/jd/openjabnab-git/OpenJabNab/server/main.
*** Error code 1
Stop in /usr/home/jd/openjabnab-git/OpenJabNab/server.
%
I tried to compile with BSD standard g++ and with 4.6 port version. Same problem.
I am on FreeBSD 8.2 and use qt4-4.7.3 from port.
Instructions for compilation are:
Code:
git clone https://github.com/OpenJabNab/OpenJabNab.git
cd OpenJabNab/server
qmake-qt4 -r
make
I don't know what to do because program compile quietly on Archlinux or Debian.
Is there anyone here who could confirm the problem and/or help? I do'nt develop myself in c++...