help: problems with starting kde2 on cygwin

Damian Proksch kde-cygwin@mail.kde.org
Fri, 8 Nov 2002 20:04:13 +0100


Hello,

I'm a newbie and I have some problems with starting kde2 on cygwin.

I use an Intel Pentium 900MHz with WinXP.

I installed on my second partition (D:\) cygwin and XFree with the
install-Prog.

Then I started cygwin, afterwards XFree with the command: startx.

Everything fine.

Then I installed with the install-prog kde2.

After that I made the two files

.xinitrc:

/opt/kde2/bin/startkde

and .xserverrc:

exec X -screen 0 1024x768x16 -engine
4 -ac -nowinkill -noreset -emulate3buttons 100

they are located in my home-dir.

After that I started cygwin and tried starting kde2 with 'startx &'

Now a new window opens, but after a few seconds following messages appears:
(ok, a bad translation)

ksplash.exe - component not found

The program can not start, cause of cygDCOP-1.dll could not be found.

New installation requiered.

...then I confirm...

ksmserver.exe - component not found

The program can not start, cause of cygDCOP-1.dll could not be found.

New installation requiered.

...and then the windows shut down

In the cygwin windows following messages appears:

IchChefDuNix@WINXP ~
$ startx &
[1] 964

IchChefDuNix@WINXP ~
$

waiting for X server to begin accepting connections .
[: ==: unknown operand
lnusertemp: not found
lnusertemp: not found
kdeinit: not found
knotify: not found
exec: kdeinit_shutdown: not found

waiting for X server to shut down


[1]+  Done                    startx

IchChefDuNix@WINXP ~
$


After that I searched for the cygDCOP-1.dll, but I couldn't find that lib.

Now my question: where can I get that dll or what I done wrong???

Please help me!

damian_proksch@onlinehome.de



For your information:

my /opt/kde2/bin/kdestart:

#!/bin/sh

# Cygwin startkde script based on the KDE default start script and SUSE

# startkde script.

# For Cygwin you need to add the following lines to /etc/profile:

# export QT2DIR=/usr/local/lib/qt2

# export KDE2DIR=/opt/kde2

# export KDEDIR=$KDE2DIR

# export QTDIR=$QT2DIR

# export PATH=$KDE2DIR/lib:$KDE2DIR/bin:$QT2DIR/bin:$PATH

# due to the way Windows searches for DLLs

# Boot sequence:

#

# kdeinit is used to fork off processes which improves memory usage

# and startup time.

#

# * kdeinit starts the dcopserver and klauncher first.

# * then kdesktop is launched, it is started very early in the startup

# process to give the user visual feedback as soon as possible.

# Since it needs a working ksycoca database it waits for a

# "sycoca database changed" signal from kded before it becomes functional.

# * Then kded is started. kded is responsible for keeping the sycoca

# database up to date. When an up to date database is present it sends

# a "sycoca database changed" signal.

#

# * The rest of the start-up sequence is less critical.

#

# kdeinit starts dcopserver, klauncher, kdesktop, kicker, and kded

# ipc-daemon starts the Cygwin IPC daemon

ipc-daemon &

# Prevent an ever growing .ICEauthority file, since that will kill
application

# startup performance.

rm -f $HOME/.ICEauthority

# The user's personal KDE directory is usually $HOME/kde2, but this setting

# may be overridden by setting KDEHOME.

kdehome=$HOME/kde2

test -n "$KDEHOME" && kdehome=$KDEHOME

#

# set the enviroment, if not yet set

#

[ -z "$QTDIR" ] && export QTDIR=/usr/local/lib/qt2

[ -z "$KDEDIR" ] && export KDEDIR=/opt/kde2

[ -z "$KDEHOME" ] && export KDEHOME=$kdehome

which konqueror >/dev/null || export PATH=$KDEDIR/bin:$PATH

which moc >/dev/null || export PATH=$QTDIR/bin:$PATH

#

# create some user depended dirs in the $KDEHOME/share dir if not exist

#

[ -e "$KDEHOME/share/mimelnk" ] || cp -a $KDEDIR/share/mimelnk
$KDEHOME/share

[ -e "$KDEHOME/share/applnk" ] || cp -a $KDEDIR/share/applnk $KDEHOME/share

[ -e "$KDEHOME/share/services" ] || cp -a $KDEDIR/share/services
$KDEHOME/share

[ -e "$KDEHOME/share/servicetypes" ] || cp -a $KDEDIR/share/servicetypes
$KDEHOME/share

#

# some fast color for the background

# better for our eyes ;-)

#

[ -e "${kdehome}/share/config/kdesktoprc" ] && \

color="`sed -n '/^Color1=/ s/Color1=//p'
"${kdehome}/share/config/kdesktoprc" | head -1 | awk -F \, '{
printf("#%02x%02x%02x",$1,$2,$3) }' -`"

[ -z "$color" -a "$USER" == "root" ] && color="#bd0000"

[ -z "$color" -a "$USER" != "root" ] && color="#ACB29C"

xsetroot -cursor_name left_ptr -solid "$color"

# These aren't used by Cygwin - but some Linux programs may expect them.

# (particularly LD_LIBRARY_PATH).

test -n "${LD_LIBRARY_PATH}" && \

export
LD_LIBRARY_PATH="${KDEDIR}/lib:${KDEDIR}/bin:${QTDIR}/lib:${QTDIR}/bin:${LD_
LIBRARY_PATH}" || \

export
LD_LIBRARY_PATH="${KDEDIR}/lib:${KDEDIR}/bin:${QTDIR}/lib:${QTDIR}/bin"

test -n "${LTDL_LIBRARY_PATH}" && \

export
LTDL_LIBRARY_PATH="${KDEDIR}/lib:${KDEDIR}/bin:${QTDIR}/lib:${QTDIR}/bin:${L
D_LIBRARY_PATH}" || \

export
LTDL_LIBRARY_PATH="${KDEDIR}/lib:${KDEDIR}/bin:${QTDIR}/lib:${QTDIR}/bin"

#

# Check first for current resolution/depth

#

export X=`xdpyinfo |grep dimensions:|cut -d " " -f 7|cut -d "x" -f 1`

export Y=`xdpyinfo |grep dimensions:|cut -d " " -f 7|cut -d "x" -f 2`

export D=`xdpyinfo |awk '/depths/ {print $NF}'`

[ -e "$HOME/.skel/kdebase" ] || INITIAL="--force"

# the splashscreen and progress indicator

# do not start it on locolor displays

[ "`xdpyinfo |awk '/depths/ {print $NF}'`" -gt 8 ] && ksplash

#

# delete a existing ksocket in /tmp. It makes trouble on startup

# this is only a workaround, but it should fix the problem for

# the most people, sorry

rm -rf "/tmp/ksocket-${USER}" "${KDEHOME}/tmp-${HOSTNAME}"

#

# Link "tmp" and "socket" resource to directory in /tmp

# Creates a directory /tmp/kde-$USER and links $KDEHOME/tmp-$HOSTNAME to it.

lnusertemp tmp >/dev/null

lnusertemp socket >/dev/null

# launch kcminit without '+' because it doesn't seem to be daeominising

# properly at present

kdeinit kcminit +kdesktop +kicker

# The notification daemon. Not started with kdeinit because it uses threads

# and kdeinit doesn't.

knotify

# finally, give the session control to the session manager

# Syntax: ksmserver [--restore] [--windowmanager <wm>]

# if no windowmanager is specified, ksmserver will ensure kwin is started.

# [--restore] should be controlled by kdm

ksmserver --restore

exec kdeinit_shutdown



and my /etc/profile:

PATH="/usr/local/bin:/usr/bin:/bin:$PATH"

USER="`id -un`"

# Set up USER's home directory

if [ -z "$HOME" ]; then

HOME="/home/$USER"

fi

if [ ! -d "$HOME" ]; then

mkdir -p "$HOME"

fi

export HOME USER

for i in /etc/profile.d/*.sh ; do

if [ -f $i ]; then

. $i

fi

done

export MAKE_MODE=unix

export PS1='\[\033]0;\w\007

\033[32m\]\u@\h \[\033[33m\w\033[0m\]

$ '

cd "$HOME"

export QT2DIR=/usr/local/lib/qt2

export KDE2DIR=/opt/kde2

export KDEDIR=$KDE2DIR

export QTDIR=$QT2DIR

export PATH=$KDE2DIR/lib:$KDE2DIR/bin:$QT2DIR/bin:$PATH