'make' under MacOS 10.4.3 fails

'make' under MacOS 10.4.3 fails

Postby kaembo » 03 Nov 2005, 21:24

hi there!

I am trying to make keepass run on my mac. I got QT, the qmake runs just fine, but make ends up like this:

Code: Select all
<snip>

QDialog::qt_emit(int, QUObject*)
QDialog::qt_invoke(int, QUObject*)
typeinfo for QDialog
collect2: ld returned 1 exit status
make[1]: *** [../bin/keepass.app/Contents/MacOS/keepass] Error 1
make: *** [sub-src] Error 2

<snip>


the folder ../bin/keepass.app/Contents/MacOS exists, but is empty.

any idea?

regards
kaembo
kaembo
 

Postby Tarek » 04 Nov 2005, 17:49

Which Version of QT do you use?
Keepass/L needs QT 3.3.x!
Tarek
Admin
 
Posts: 190
Joined: 07 Aug 2005, 18:38

Postby kaembo » 04 Nov 2005, 18:47

I use QT 3.3.5

I should mention that I don't really know what I am doing here. In other words: I don't know anything about all this 'make' stuff. So, if there's a stupid mistake somebody could make I propably made it :-)

regards
kaembo
kaembo
 

Postby Tarek » 05 Nov 2005, 11:07

Can you please post the whole make-output?
Tarek
Admin
 
Posts: 190
Joined: 07 Aug 2005, 18:38

Postby kaembo » 05 Nov 2005, 13:24

here it is (and BTW: thanks for your support!)
Code: Select all
[...]

/usr/bin/ld: warning prebinding disabled because of undefined symbols
/usr/bin/ld: Undefined symbols:
QStringData::deleteSelf()

[...]

collect2: ld returned 1 exit status
make[1]: *** [../bin/keepass.app/Contents/MacOS/keepass] Error 1
make: *** [sub-src] Error 2
kaembo
 

Postby Tarek » 07 Nov 2005, 12:46

It seems, that the Qt runtime libs are not linked correctly.
Try the following:
- Open the makefile in the src directory
- There you can find an entry named "LIBS="
- Append ' -lqt-mt'
- now run make (do NOT run qmake again, because it overwrites the makefile)

I hope this will work.
btw, do not spend to much energy into compiling Keepass/L on MacOSX, because there are still many Problems (Big/Little Endian). Only the GUI works , but I think you can't load databases created on a i386 machine.
I have not tested it so much, because I can only use a Mac emulator (PearPC), and this is very very slow. :(
Tarek
Admin
 
Posts: 190
Joined: 07 Aug 2005, 18:38

Postby kaembo » 09 Nov 2005, 21:09

mmmh....

I did not have a makefile in the src folder in the first place... (only in the root folder), but I got me one by running qmake not just in the root folder, but also in src.

I than changed LIBS like this:
LIBS = $(SUBLIBS) -L$(QTDIR)/lib -Lqt-mt

but it does not change anything. what is qt-mt supposed to be? I don't have any file or directory named like this...

regards
kaembo
kaembo
 

Postby Tarek » 09 Nov 2005, 22:18

- Append ' -lqt-mt'

This parameter is case-sensitive :wink:
'-lqt-mt' means: link libqt-mt.so (multithreaded QT-Library)
'-Lqt-mt' means: add directory qt-mt to the library search paths...
Tarek
Admin
 
Posts: 190
Joined: 07 Aug 2005, 18:38

Postby kaembo » 11 Nov 2005, 10:17

It runs! :D

the problem was that QT by default is not configured with the "-thread" option. after rebuilding QT with this option qmake creates the "-lqt-mt"-entry in the makefile and the make works.

but unfortunately you are right: I can not open databasefile created on x86 or PocketPC.

anyway, thanks for your help and for porting keepass!

regards
kaembo
kaembo
 

Postby OS X user » 23 Dec 2005, 10:23

Any news on getting the x86 files opened under OS X? Keepass is such a great app and now that I can use it on both platforms I work with, I really looking forward to keeping only one master file.

Thanks for the good work.
OS X user
 

Postby Tarek » 04 Jan 2006, 22:19

I'm working on full Mac support, but it will still take some time...
It's finished when it's finished 8)
Tarek
Admin
 
Posts: 190
Joined: 07 Aug 2005, 18:38

Postby Person » 06 Jan 2006, 03:10

Ah well. In the meantime I can Export my Windoze DB to text, then import the textfile into a Mac OSX DB

Well, first I need to build KeePass. Can you make one that will compile in XCode, so I don't have to get QT?
Person
 

Postby Gav » 16 Jan 2006, 19:26

Any chance someone could make a static build for OSX?
Cheers
Gav
Gav
 

Postby matthiasmiller » 23 Jan 2006, 18:59

Send me an e-mail and I'll see what I can do.
matthiasmiller
KPX user
 
Posts: 2
Joined: 23 Jan 2006, 18:54


Return to KeePassX under Mac OS

Who is online

Users browsing this forum: Google [Bot] and 0 guests