Ri0n / QtNote

Note-taking application written with Qt in mind and able to read tomboy notes
http://ri0n.github.io/QtNote
GNU General Public License v3.0
21 stars 5 forks source link

Compiling fails #28

Closed dermariusz closed 9 years ago

dermariusz commented 9 years ago
/usr/bin/ld: .obj/qxtglobalshortcut_x11.o: undefined reference to symbol 'XSetErrorHandler'
/usr/lib/libX11.so.6: error adding symbols: DSO missing from command line

Used System: Archlinux

Ri0n commented 9 years ago

can you check next

add LIBS += -lX11 in ./plugins/baseintegration/baseintegration.pro and recompile.

let me know if it works.

Ri0n commented 9 years ago

for now I can't reproduce the error on Ubuntu. and on Gentoo it's not reproducible too. I tried to build with Qt4 and with Qt5.

dermariusz commented 9 years ago

Oh I forgot that I used the 0.2.3 Version for compilation. I'm gonna try master.

dermariusz commented 9 years ago

Fails again:

g++ -c -include kdeintegration -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -std=c++0x -Wall -W -D_REENTRANT -fPIC -DAPPNAME=\"qtnote\" -DQTNOTE_VERSION_S=0.2.3.1 -DQTNOTE_VERSION_W=0,2,3,1 -DQTNOTE_VERSION_PRODUCT=0 -DQTNOTE_VERSION_MAJOR=2 -DQTNOTE_VERSION_MINOR=3 -DQTNOTE_VERSION_PATCH=1 -DLIBDIR=\"/usr/lib\" -DDATADIR=\"/usr/share\" -DTRANSLATIONSDIR=\"/usr/share/qtnote\" -DQTNOTE_PLUGIN -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../plugins -I../../libqtnote -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o kdeintegration.o kdeintegration.cpp
In file included from /usr/include/KDE/KAction:1:0,
                 from kdeintegration.cpp:3:
/usr/include/kaction.h:33:31: fatal error: QtGui/QWidgetAction: No such file or directory
compilation terminated.
Makefile:681: recipe for target 'kdeintegration.o' failed
make[2]: *** [kdeintegration.o] Error 1
make[2]: Leaving directory '/home/mariusz/Downloads/QtNote-master/plugins/kdeintegration'
Makefile:71: recipe for target 'sub-kdeintegration-make_first' failed
make[1]: *** [sub-kdeintegration-make_first] Error 2
make[1]: Leaving directory '/home/mariusz/Downloads/QtNote-master/plugins'
Makefile:174: recipe for target 'sub-plugins-make_first-ordered' failed
make: *** [sub-plugins-make_first-ordered] Error 2
Ri0n commented 9 years ago

yep it's known problem of mixing kde4 with qt5.

try to disable kde plugin. qmake CONFIG+=nokde or build with qt4 qmake -qt=4

dermariusz commented 9 years ago

Works thanks