[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Building a static version of a KDE program
From: "CHEVALIER CHRISTIAN" <Christian.Chevalier () alcatel-lucent ! fr>
Date: 2007-09-28 10:55:54
Message-ID: C8EC58B1D87D764498EDC722B77FF352010DDEC0 () FRVELSMBS12 ! ad2 ! ad ! alcatel ! com
[Download RAW message or body]
Hello,
I'm trying to build a full static executable of a KDE program.
The reason is to be able to run a KDE program that requires a recent
Qt/KDE version on an old distribution without modifying it.
The solution I found was to install a recent Qt (3.3.8) and KDE
(arts-1.5.7, kdelibs-3.5.7, kdebase-3.5.7) on a Red Hat RHEL3. To build
my program (kscope-1.5.2) and to make a static executable with
statifier-1.6.11 (http://statifier.sourceforge.net).
I got a static executable, big (24 MB) but still smaller than the
dynamic one more all the libraries (~300 MB).
The first problem I got was that some additional files (.../share/apps,
.../share/icons, etc) seem to be necessary to run the static program.
These come from the program itself (Kscope) and the KDE install too. I
found that the environment variable KDEDIR must point to the kde/(share,
etc) for the static-kscope to run correctly.
So my question is : is there any other kde installed files required at
this step ?
The second problem not resolved is when I copy this package
(kscope-static, kscope files, kde files) to another machine, my program
fails to run on this machine. It starts and the window is correctly
configured but a message box display "Could not find mime type
application/octet-stream", then "Malformed URL file:///" and crashes.
The log messages are below :
./kscope-package/kscope/bin/kscope-static
DCOPClient::attachInternal. Attach failed Could not open network socket
Xlib: extension "GLX" missing on display "barto-2.xxx.com:0.0".
Xlib: extension "GLX" missing on display "barto-2.xxx.com:0.0".
QSettings: failed to open file
'/usr/lib/qt-3.1/etc/settings/qt_plugins_3.1rc'
kbuildsycoca running...
kdeui (KDockWidget): : KDockWidget::setHeader
kdeui (KDockWidget): KDockWidgetHeader::showUndockButton(true)
kdeui (KDockWidget): : KDockWidget::setHeader
kdeui (KDockWidget): KDockWidgetHeader::showUndockButton(true)
kdeui (KDockWidget): : KDockWidget::setHeader
kdeui (KDockWidget): KDockWidgetHeader::showUndockButton(true)
kdeui (KDockWidget): KDockWidgetHeader::showUndockButton(false)
kdeui (KDockWidget): : KDockWidget::setHeader
kdeui (KDockWidget): KDockWidgetHeader::showUndockButton(true)
kdeui (KDockWidget): : KDockWidget::setHeader
kdeui (KDockWidget): KDockWidgetHeader::showUndockButton(true)
kdeui (KDockWidget): : KDockWidget::setHeader
kdeui (KDockWidget): KDockWidgetHeader::showUndockButton(true)
kdeui (KDockWidget): : KDockWidget::setHeader
kdeui (KDockWidget): KDockWidgetHeader::showUndockButton(true)
kio (KSycoca): Trying to open ksycoca from
/var/tmp/kdecache-barto/ksycoca
kio (KSycoca): Could not open ksycoca
kio (KSycoca): Trying to open ksycoca from
/var/tmp/kdecache-barto/ksycoca
kio (KSycoca): Could not open ksycoca
kio (KSycoca): findFactory: we have no database.... launching kdeinit
kdeinit: Shutting down running client.
Mutex destroy failure: Device or resource busy
---------------------------------
It looks like dcopserver is already running. If you are sure
that it is not already running, remove
/home/barto/.DCOPserver_.xxx.com_barto-2.xxx.com_0
and start dcopserver again.
---------------------------------
KDE Daemon (kded) already running.
kbuildsycoca running...
Property 'X-KDE-FactoryName' is defined multiple times (KDEDModule)
Property 'X-KDE-ResourceFamily' is defined multiple times
(KResources/Manager)
kio (KSycoca): Trying to open ksycoca from
/var/tmp/kdecache-barto/ksycoca
kio (KSycoca): Could not open ksycoca
Xlib: extension "GLX" missing on display "barto-2.xxx.com:0.0".
Xlib: extension "GLX" missing on display "barto-2.xxx.com:0.0".
QSettings: failed to open file
'/usr/lib/qt-3.1/etc/settings/qt_plugins_3.1rc'
mcop warning: user defined signal handler found for SIG_PIPE, overriding
kio (KDirLister): +KDirLister
kio (KDirListerCache): +KDirListerCache
kio (KDirWatch): Can't use FAM (fam daemon not running?)
kio (KDirWatch): Available methods: Stat
kio (KSycoca): Trying to open ksycoca from
/var/tmp/kdecache-barto/ksycoca
kio (KSycoca): Could not open ksycoca
kio (KSycoca): Trying to open ksycoca from
/var/tmp/kdecache-barto/ksycoca
kio (KSycoca): Could not open ksycoca
kio: KSambaShare::readSmbConf /etc/samba/smb.conf
kio: KSambaShare: Found path: /var/spool/samba/
kio (KDirWatch): Added File /etc/samba/smb.conf [KDirWatch-1]
kio (KDirWatch): Global Poll Freq is now 500 msec
kio (KDirWatch): Started Polling Timer, freq 500
kio (KDirWatch): Setup Stat (freq 500) for /etc/samba/smb.conf
kio (KDirWatch): Added File /etc/security/fileshare.conf NotExisting
[KDirWatch-1]
kio (KDirWatch): Setup Stat (freq 500) for /etc/security/fileshare.conf
kio: KNFSShare::readExportsFile /etc/exports
kio (KDirWatch): Added File /etc/exports [KDirWatch-1]
kio (KDirWatch): Setup Stat (freq 500) for /etc/exports
kio (KDirLister): [virtual bool KDirLister::openURL(const KURL&, bool,
bool)] file:/// keep=true reload=false
kio (KSycoca): Trying to open ksycoca from
/var/tmp/kdecache-barto/ksycoca
kio (KSycoca): Could not open ksycoca
kio (KSycoca): Trying to open ksycoca from
/var/tmp/kdecache-barto/ksycoca
kio (KSycoca): Could not open ksycoca
kio (KSycoca): Trying to open ksycoca from
/var/tmp/kdecache-barto/ksycoca
kio (KSycoca): Could not open ksycoca
kio (KSycoca): Trying to open ksycoca from
/var/tmp/kdecache-barto/ksycoca
kio (KSycoca): Could not open ksycoca
kio (KSycoca): ERROR: No database available!
kio (KSycoca): ERROR: No database available!
kdecore (KLibLoader): library=libkatepart: No file named libkatepart.la
found in paths.
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kscope-static path = <unknown> pid = 1498
Warning: connect() failed: : No such file or directory
KCrash cannot reach kdeinit, launching directly.
Xlib: extension "GLX" missing on display "barto-2.xxx.com:0.0".
Xlib: extension "GLX" missing on display "barto-2.xxx.com:0.0".
QSettings: failed to open file
'/usr/lib/qt-3.1/etc/settings/qt_plugins_3.1rc'
barto@pc127.xxx.com[134]> Mutex destroy failure: Device or resource busy
ICE default IO error handler doing an exit(), pid = 1512, errno = 0
Now, I have a few questions :
- What is missing or missconfigured on the second machine ?
- Is there an easier way to build a static KDE program ? Is it described
in a FAQ ?
- What are the additional files, environment variables, etc. required to
run a KDE program independently from the local KDE installation ?
Thanks in advance for any help on this subject.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic