Discussion:
[Licq-devel] Licq build on Mac
Андрей Данин
2010-12-25 21:38:23 UTC
Permalink
Hi,

I have built licq on mac (revision info at the bottom). App starts fine. ICQ and jabber accounts are able to go online. Jabber messages was sent to another jabber user.

I have some questions about build system:

1. licq is X11 application on Mac. Why? Does Qt is not enough for gui?

2. I am trying to create standalone licq package, but licq tries to load plugins from /usr/local/lib:
23:03:05.762 [ERR] licq: Unable to load plugin (qt4-gui): dlopen(/usr/local/lib/licq/licq_qt4-gui.so, 2): image not found
How can I change this in right way?
I have try to set environment:
export CMAKE_PREFIX_PATH=/Applications/Licq.app
export DESTDIR=/Applications/Licq.app
But this changes have no effect. Install standalone dir with licq will be much easy for users/testers, because licq have many dependences on libs from mac ports.


revision:
commit 7618d45a94cd405d74c367514600f532f537ee40
Author: Erik Johansson <***@licq.org>
Date: Fri Dec 17 09:37:09 2010 +0100

Use git HEAD revision as extra version


Thanks.
Erik Johansson
2010-12-27 12:07:33 UTC
Permalink
Post by Андрей Данин
1. licq is X11 application on Mac. Why? Does Qt is not enough for gui?
When I build it on mac I get a mac app, not X11. Is your Qt built for
X11 or mac native?
Post by Андрей Данин
2.  I am trying to create standalone licq package, but licq tries to load
dlopen(/usr/local/lib/licq/licq_qt4-gui.so, 2): image not found
How can I change this in right way?
export CMAKE_PREFIX_PATH=/Applications/Licq.app
export DESTDIR=/Applications/Licq.app
But this changes have no effect. Install standalone dir with licq will be
much easy for users/testers, because licq have many dependences on libs from
mac ports.
Run cmake with -DCMAKE_INSTALL_PREFIX=/Applications/Licq.app to get it
to install to the proper location.

// Erik
--
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc
Andrey Danin
2010-12-27 12:54:12 UTC
Permalink
Post by Erik Johansson
Post by Андрей Данин
1. licq is X11 application on Mac. Why? Does Qt is not enough for gui?
When I build it on mac I get a mac app, not X11. Is your Qt built for
X11 or mac native?
Post by Андрей Данин
2. I am trying to create standalone licq package, but licq tries to load
dlopen(/usr/local/lib/licq/licq_qt4-gui.so, 2): image not found
How can I change this in right way?
export CMAKE_PREFIX_PATH=/Applications/Licq.app
export DESTDIR=/Applications/Licq.app
But this changes have no effect. Install standalone dir with licq will be
much easy for users/testers, because licq have many dependences on libs
from
Post by Андрей Данин
mac ports.
Run cmake with -DCMAKE_INSTALL_PREFIX=/Applications/Licq.app to get it
to install to the proper location.
// Erik
--
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc
Andrey Danin
2010-12-27 13:04:33 UTC
Permalink
Post by Erik Johansson
Post by Андрей Данин
1. licq is X11 application on Mac. Why? Does Qt is not enough for gui?
When I build it on mac I get a mac app, not X11. Is your Qt built for
X11 or mac native?
Post by Андрей Данин
2. I am trying to create standalone licq package, but licq tries to load
dlopen(/usr/local/lib/licq/licq_qt4-gui.so, 2): image not found
How can I change this in right way?
export CMAKE_PREFIX_PATH=/Applications/Licq.app
export DESTDIR=/Applications/Licq.app
But this changes have no effect. Install standalone dir with licq will be
much easy for users/testers, because licq have many dependences on libs
from
Post by Андрей Данин
mac ports.
Run cmake with -DCMAKE_INSTALL_PREFIX=/Applications/Licq.app to get it
to install to the proper location.
// Erik
--
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc
Andrey Danin
2010-12-28 06:29:15 UTC
Permalink
Sorry, something wring with my web mail client :(

I used cmake -G "Unix Makefiles". I guess this is a reason that lisq is x11 application.
I'm trying to rebuild licq using cmake -G "Xcode".
Post by Erik Johansson
Run cmake with -DCMAKE_INSTALL_PREFIX=/Applications/Licq.app to get it
to install to the proper location.
This method works fine. Thanks.
Erik Johansson
2010-12-28 07:25:16 UTC
Permalink
Post by Andrey Danin
I used cmake -G "Unix Makefiles". I guess this is a reason that lisq is x11 application.
No, I wouldn't think so. I build it like that. Can you please post the
output from running cmake?

// Erik
--
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc
Andrey Danin
2010-12-28 07:28:52 UTC
Permalink
cmake output is in attach.
Post by Andrey Danin
Post by Andrey Danin
I used cmake -G "Unix Makefiles". I guess this is a reason that
lisq is x11 application.
No, I wouldn't think so. I build it like that. Can you please post the
output from running cmake?
// Erik
--
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc
Andrey Danin
2010-12-28 07:47:27 UTC
Permalink
I don't know what was wrong, but after full rebuild licq runs fine (without X11 application) :)
Post by Andrey Danin
cmake output is in attach.
Tue, 28 Dec 2010 08:25:16 +0100 письмо от Erik Johansson
Post by Andrey Danin
Post by Andrey Danin
I used cmake -G "Unix Makefiles". I guess this is a reason
that
Post by Andrey Danin
lisq is x11 application.
No, I wouldn't think so. I build it like that. Can you please post
the
Post by Andrey Danin
output from running cmake?
// Erik
--
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc
Erik Johansson
2010-12-28 08:33:50 UTC
Permalink
I don't know what was wrong, but after full rebuild licq runs fine  (without X11 application) :)
Excellent. For reference, here is how you can see that is not built as
a X11 application:
Looking for Q_WS_X11 - not found.
...
Looking for Q_WS_MAC - found

// Erik
--
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc
Loading...