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

Doesn't compile on Ubuntu 14.04 and newer in launchpad.net - /usr/bin/ld: cannot find -lX11 Makefile:216: recipe for target 'libqtnote.so.3.0.3' failed #61

Open Baltix opened 8 years ago

Baltix commented 8 years ago

I've created automatic Ubuntu packaging recipe for QtNote, see https://code.launchpad.net/~baltix/+recipe/qtnote-daily , but all builds fails because of strange error:

g++ -Wl,-Bsymbolic-functions -Wl,-z,relro -shared -Wl,-soname,libqtnote.so.3 -o libqtnote.so.3.0.3 notedialog.o note.o notemanager.o notestorage.o ptfstorage.o ptfdata.o notedata.o filenotedata.o aboutdlg.o optionsdlg.o filestorage.o filestoragesettingswidget.o utils.o notesmodel.o notemanagerdlg.o notemanagerview.o noteedit.o qtnote.o typeaheadfind.o shortcutedit.o shortcutsmanager.o notewidget.o pluginmanager.o optionsplugins.o notehighlighter.o colorbutton.o notessearchmodel.o filenameprovider.o humanfilenameprovider.o uuidfilenameprovider.o moc_trayimpl.o moc_notedialog.o moc_notemanager.o moc_notestorage.o moc_ptfstorage.o moc_filestoragesettingswidget.o moc_aboutdlg.o moc_optionsdlg.o moc_filestorage.o moc_notesmodel.o moc_notemanagerdlg.o moc_notemanagerview.o moc_noteedit.o moc_qtnote.o moc_typeaheadfind.o moc_shortcutedit.o moc_shortcutsmanager.o moc_notewidget.o moc_pluginmanager.o moc_optionsplugins.o moc_highlighterext.o moc_notehighlighter.o moc_colorbutton.o moc_notessearchmodel.o qrc_main.o -L/usr/lib/i386-linux-gnu -L/usr/X11R6/lib -lX11 -lQtGui -lQtCore -lpthread
/usr/bin/ld: cannot find -lX11 collect2: error: ld returned 1 exit status make[2]: * [libqtnote.so.3.0.3] Error 1 make[2]: Leaving directory `/«PKGBUILDDIR»/libqtnote' make[1]: * [sub-libqtnote-make_default] Error 2 make[1]: Leaving directory`/«PKGBUILDDIR»' make: *\ [debian/stamp-makefile-build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2

Full build log is available at https://launchpadlibrarian.net/229109281/buildlog_ubuntu-trusty-i386.qtnote_3.0.3-0~333~ubuntu14.04.1_BUILDING.txt.gz I set build recipe to build revision a496f71 (dated 2015-11-06), because I see text 'break everything' in later revision's comments :)

Maybe some build dependencies are missing in debian/control ? Or maybe revision a496f71 is broken, then please tell be which revision is most stable :)

Btw, if you are registered at http://launchpad.net I can set you as http://launchpad.net/qtnote project maintainer or driver.

Ri0n commented 8 years ago

Hi Baltix,

Thanks for report! The revision is ok. Could find libX11.so library on your system? (I think it's a symlink from corresponding -dev package). If it's not installed anywhere for some reason, try to install -dev package. I believe X11 is still heavily used on Ubuntu 14.04, so the library should be there.

I'll check it on Ubuntu in couple of hours.

My profile on Launchpad https://launchpad.net/~rion4ik

I started a huge refactoring, so probably all next revisions will be broken for few weeks or even months.

Ri0n commented 8 years ago

Ok. I tested it on Ubuntu. Compiled and started. But seems my tray plugin for Unity does not work well. and Unity itself is quite buggy for me. Maybe I have to update my system.

I have another Ubuntu system with KDE on top. It works good there.