user-avatar
Today is Saturday
February 4, 2012

Tag: MacOS

November 12, 2008

Full blown kde-aware opale version

by Thomas Capricelli — Categories: KDE — Tags: , 1 Comment
KDE version of opale

KDE version of opale

Since the release of opale-0.9, I have mostly worked on improving the (optional) KDE integration. And now if KDE is available, opale will use things like : KMainWindow, KApplication (session management..), XML GUI, KFileDialog and specific menu entries (Switch application language, configure shortcuts/toolbars, KDE-aware recent files submenu,…).

While I was there, the Qt-only version now also has a ‘recent files’ dialog popping-up at the start if no file is given on the command line (my personal top-missing feature).

Now, some people noticed that I want to port Opale to the Mac. I have an old ibook lying here, but MacOS has died and I need to re-install it before trying qt/Mac (that I have never tested yet).

As an answer to your blog entry, Orville (I guess that’s your first name, right?):

  • The kde version is now really finished, please try if you want.
  • I guess there’s no menu on the screenshot because Mac still has those on the top of the screen, right ?
  • I would be delighted if you could provide testing on the mac. You can find me on freenode as orzel.
  • I’m also interested with hints about the interface, I’m not afraid of you being mean.
  • What’s the problem with my help menu ? Everything’s fine here. Use the ‘report a bug’ entry in the very same menu!
  • Don’t be scared by a photo :-)

Opale homepage

Project page

June 27, 2008

Static link with cmake under windows (Qt and others)

by Thomas Capricelli — Categories: KDE — Tags: , , , , 3 Comments

One of the great things about Qt is that you can compile the code under esoteric OSs (mmh?) like Windows or MacOS. Although I’ve almost never used windows, I did the packaging of yzis. I used the Nullsoft Installer, which is ok.

I had several issues with static linking, and thought maybe some of you could give some help about it. Don’t ask why I want static link, this is not the issue here.

Problem #1:

The most important one is Qt itself. I expected that to be easy, but it is not. The FindQt4 shipped with cmake 2.4.8 or 2.6 is not really aware of static lib, or is it ? Nor is the one from kde svn. I’ve tried using the one from quassel-irc, but it fails as well. If you can help me with this, the code is available.

It seems (according to #qt on irc) that it makes sense to have two different Qt installed, one static and one shared. I did that (double the space used…) and in one of them did “configure -static” and recompiled qt. Now the *.a are much bigger, and though qyzis links against those *.a, it still depends on the DLLs, according to “dependencies walker”. Gr…

Problem #2:

Then, there is the problem of gnuwin32 tools. In the lib/ directory, you can find for example

  • libintl.dll.a
  • libintl.def
  • libintl.lib

And the DLL (libintl3.dll) is in the bin/ directory. I need to ship the DLL with qyzis, because cmake found the dll, and linked against libintl.dll.a. In a perfect world, I would like cmake to use the libintl.lib and have a static link, but i dont know how to convince cmake of doing that. Do you know ?

Problem #3:

How do you find out what kind of library a file is ? According to what I’ve found googling the web, libraries can have a wild number of different names (libX.dll, libX.dll.a, libX.lib, libX.a, all of this without the lib prefix and so on…). Even worse : libX.a for example, could be either a static lib or the stub for the DLL. Do you have clarifications about this ? Do you know of a reliable way to know which kind of library it is ? (DLL, DLL stub, or purely static).

© 2012 Thomas Capricelli All rights reserved - Wallow theme v0.46.5 by ([][]) TwoBeers - Powered by WordPress - Have fun!