tomm / cryptkeeper

A system tray (gnome, xfce, kde) applet that manages EncFS encrypted folders.
http://tom.noflag.org.uk/cryptkeeper.html
GNU General Public License v3.0
54 stars 17 forks source link

Cannot be compiled with GCC 4.7 #17

Closed ivanperez-keera closed 1 year ago

ivanperez-keera commented 10 years ago

The current version cannot be compiled "out of the box".

I found two kinds of problems:

In particular, and to document the second one, the following happened during compilation:

g++  -g -O2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include      -o cryptkeeper encfs_wrapper.o ConfigDialog.o ImportStashWizard.o CreateStashWizard.o PasswordChangeDialog.o main.o gtkstatusicon.o gtktrayicon-x11.o PasswordEntryDialog.o lsof.o  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lfreetype -lgconf-2 -lglib-2.0   
/usr/bin/ld: gtktrayicon-x11.o: undefined reference to symbol 'XFlush'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
ivanperez-keera commented 10 years ago

I just want to document this as well. A similar problem in leapmouse was dealt with by adding missing dependencies to the compilation scripts. See: https://github.com/archetipo/leapmouse/issues/1 and https://github.com/archetipo/leapmouse/commit/02a95e916c068c008ee6fa8ea664839df11ef6df.