WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: KeePassX - how to install or compile? (SOLVED)  (Read 6822 times)

Offline tom232

  • Newbie
  • *
  • Posts: 4
KeePassX - how to install or compile? (SOLVED)
« on: July 06, 2011, 03:47:31 AM »
Hello!

I searched KeePassX for Tinycore but could not find any extension. So I decided to compile it from source. I managed to install qmake as part of qt-4.x-dev.tcz but got errors during make process.

Maybe someone successfully compiled Keepassx and could help me with this task?

Thank you
« Last Edit: July 08, 2011, 08:17:01 AM by tom232 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: KeePassX - how to install or compile?
« Reply #1 on: July 06, 2011, 04:07:49 AM »
Maybe you could post or attach the make errors you get?

Offline tom232

  • Newbie
  • *
  • Posts: 4
Re: KeePassX - how to install or compile?
« Reply #2 on: July 07, 2011, 03:24:44 AM »
I’m in delegation right now so I can’t paste the exact errors :(

I remember that the make errors referred to GUI objects like Window or Button. I guess that some dependences were missing but I don’t know how to specify the required additional packages.

Offline tom232

  • Newbie
  • *
  • Posts: 4
Re: KeePassX - how to install or compile?
« Reply #3 on: July 07, 2011, 02:16:56 PM »
As I said I've installed qt-4.x-dev.tcz and downloaded source code from:
http://sourceforge.net/projects/keepassx/files/KeePassX/0.4.3/keepassx-0.4.3.tar.gz/download

I typed qmake and got:
Code: [Select]
tc@box:~/keepassx-0.4.3$ qmake
Project MESSAGE: See 'INSTALL' for configuration options.
Project MESSAGE: Install Prefix: /usr
Project MESSAGE: *** Makefile successfully generated.
Project MESSAGE: *** Start make now.

I typed make and got... errors:
Code: [Select]
tc@box:~/keepassx-0.4.3$ make
cd src/ && make -f Makefile
make[1]: Entering directory `/home/tc/keepassx-0.4.3/src'
g++ -c -include ../build/keepassx -pipe -O2 -Wall -W -D_REENTRANT -DAUTOTYPE -DGLOBAL_AUTOTYPE -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/tmp/tcloop/qt-4.x-dev/usr/local/mkspecs/linux-g++ -I. -I/usr/local/include/QtCore -I/usr/local/include/QtGui -I/usr/local/include/QtXml -I/usr/local/include -I. -Ilib -Icrypto -Iplugins/interfaces -Iexport -Iimport -Idialogs -I../build/ui -I../build/moc -o ../build/HelperX11.o lib/HelperX11.cpp
In file included from lib/HelperX11.cpp:21:
lib/HelperX11.h:30:34: error: X11/extensions/XTest.h: No such file or directory
tc@box:~/keepassx-0.4.3$ make
cd src/ && make -f Makefile
make[1]: Entering directory `/home/tc/keepassx-0.4.3/src'
g++ -c -include ../build/keepassx -pipe -O2 -Wall -W -D_REENTRANT -DAUTOTYPE -DGLOBAL_AUTOTYPE -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/tmp/tcloop/qt-4.x-dev/usr/local/mkspecs/linux-g++ -I. -I/usr/local/include/QtCore -I/usr/local/include/QtGui -I/usr/local/include/QtXml -I/usr/local/include -I. -Ilib -Icrypto -Iplugins/interfaces -Iexport -Iimport -Idialogs -I../build/ui -I../build/moc -o ../build/HelperX11.o lib/HelperX11.cpp
In file included from lib/HelperX11.cpp:21:
lib/HelperX11.h:30:34: error: X11/extensions/XTest.h: No such file or directory
lib/HelperX11.h:31:27: error: X11/keysymdef.h: No such file or directory
In file included from lib/AutoTypeGlobalX11.h:24,
                 from lib/HelperX11.cpp:25:
lib/AutoTypeX11.h:26:23: error: X11/Xutil.h: No such file or directory
In file included from lib/HelperX11.cpp:21:
lib/HelperX11.h:35: error: 'KeySym' does not name a type
lib/HelperX11.h:46: error: 'XErrorEvent' has not been declared
lib/HelperX11.h:47: error: 'XErrorEvent' has not been declared
In file included from lib/AutoTypeGlobalX11.h:24,
                 from lib/HelperX11.cpp:25:
lib/AutoTypeX11.h:33: error: 'KeySym' has not been declared
lib/AutoTypeX11.h:35: error: 'KeySym' does not name a type
lib/AutoTypeX11.h:50: error: 'KeySym' has not been declared
lib/AutoTypeX11.h:51: error: 'KeySym' has not been declared
lib/AutoTypeX11.h:53: error: 'KeySym' has not been declared
lib/AutoTypeX11.h:54: error: 'XKeyEvent' has not been declared
lib/AutoTypeX11.h:55: error: 'XErrorEvent' has not been declared
lib/AutoTypeX11.h:56: error: 'Window' does not name a type
lib/AutoTypeX11.h:61: error: ISO C++ forbids declaration of 'KeySym' with no type
lib/AutoTypeX11.h:61: error: expected ';' before '*' token
lib/AutoTypeX11.h:67: error: 'KeySym' does not name a type
lib/AutoTypeX11.h:69: error: 'Window' does not name a type
In file included from lib/HelperX11.cpp:25:
lib/AutoTypeGlobalX11.h:40: error: 'Window' has not been declared
lib/AutoTypeGlobalX11.h:43: error: 'Window' does not name a type
lib/AutoTypeGlobalX11.h:46: error: 'Atom' does not name a type
lib/AutoTypeGlobalX11.h:47: error: 'Window' does not name a type
lib/HelperX11.cpp: In static member function 'static uint HelperX11::getShortcutModifierMask(const Shortcut&)':
lib/HelperX11.cpp:31: error: 'ControlMask' was not declared in this scope
lib/HelperX11.cpp:32: error: 'ShiftMask' was not declared in this scope
lib/HelperX11.cpp: In static member function 'static unsigned int HelperX11::keyboardModifiers(Display*)':
lib/HelperX11.cpp:42: error: 'Window' was not declared in this scope
lib/HelperX11.cpp:42: error: expected ';' before 'root'
lib/HelperX11.cpp:45: error: 'DefaultScreen' was not declared in this scope
lib/HelperX11.cpp:45: error: 'RootWindow' was not declared in this scope
lib/HelperX11.cpp:45: error: 'root' was not declared in this scope
lib/HelperX11.cpp:45: error: 'child' was not declared in this scope
lib/HelperX11.cpp:45: error: 'XQueryPointer' was not declared in this scope
lib/HelperX11.cpp: In static member function 'static void HelperX11::startCatchErrors()':
lib/HelperX11.cpp:53: error: 'XSetErrorHandler' was not declared in this scope
lib/HelperX11.cpp: In static member function 'static void HelperX11::stopCatchErrors()':
lib/HelperX11.cpp:58: error: 'XSync' was not declared in this scope
lib/HelperX11.cpp:59: error: 'XSetErrorHandler' was not declared in this scope
lib/HelperX11.cpp: At global scope:
lib/HelperX11.cpp:63: error: 'XErrorEvent' has not been declared
lib/HelperX11.cpp:71: error: 'XErrorEvent' has not been declared
lib/HelperX11.cpp:75: error: 'KeySym' does not name a type
make[1]: *** [../build/HelperX11.o] Error 1
make[1]: Leaving directory `/home/tc/keepassx-0.4.3/src'
make: *** [sub-src-make_default] Error 2

Any help/ideas are welcome :)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11043
Re: KeePassX - how to install or compile?
« Reply #4 on: July 07, 2011, 03:00:34 PM »
Xorg-7.5-dev

Use the provides search in the appbrowser, "XTest.h" would have returned the above.
The only barriers that can stop you are the ones you create yourself.

Offline tom232

  • Newbie
  • *
  • Posts: 4
Re: KeePassX - how to install or compile?
« Reply #5 on: July 07, 2011, 05:16:49 PM »
All you need to do is learn TinyCore a little bit :)

I read error logs one more time and play with AppBrowser and here is the answer:
to compile KeePassX you need: qt-4.x-dev.tcz, Xorg-7.5-dev.tcz and qt-4.x-xml.tcz

See you all :)