Compiling Krusader on Windows

356 views
Skip to first unread message

Frank Schoolmeesters

unread,
Nov 24, 2008, 3:16:23 PM11/24/08
to krusader-devel
Hi all,

I have done some first attempts  for compiling Krusader on Windows but could use some help.

I have followed the instructions  from the INSTALL file in the Krusader sources.
http://krusader.svn.sourceforge.net/viewvc/krusader/trunk/krusader_kde4/INSTALL?view=markup

- Installed KDE (stable KDE4.1.3) with kdewin-installer-gui-0.9.3-3.exe in c:\KDE4
- Installed MinGW in c:\MinGW with kdewin-installer-gui-0.9.3-3.exe
- Copied Krusader SVN sources in c:\KDE4\src\krusader_kde4

I have not installed png2ico since it's already installed by the KDE for Windows installer.

-----------------------------------------------------------------
C:\KDE4\src\krusader_kde4>c:\kde4\bin\cmake.exe -G "MinGW Makefiles" c:/kde4/src/krusader_kde4 -DCMAKE_INSTALL_PREFIX=c:/kde4 -DCMAKE_INCLUDE_PATH=c:
_LIBRARY_PATH=c:/kde4/lib -DKDEWIN_DIR:PATH=c:/kde4 -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_PREFIX_PATH=c:/kde4;c:/MinGW
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.4.3 (using C:/KDE4/bin/qmake.exe)
CMake Error at C:/KDE4/share/apps/cmake/modules/FindAutomoc4.cmake:56 (message):
 Did not find Automoc4Config.cmake (part of kdesupport).  Searched in
 c:/kde4;c:/MinGW;C:\Program
 Files;C:/KDE4;C:/KDE4;/;c:/kde4/lib;C:/KDE4/bin;C:/KDE4/bin;/bin;C:/KDE4
 using suffixes automoc4 lib/automoc4 lib64/automoc4.

Call Stack (most recent call first):
 C:/KDE4/share/apps/cmake/modules/FindKDE4Internal.cmake:270 (find_package)
 C:/KDE4/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
 CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!

C:\KDE4\src\krusader_kde4>
-------------------------------------------------------------------------------

Running cmake:
Automoc4Config.cmake is not found, and this is logic because it is not installed,
though automoc-mingw-0.9.87-1-bin.tar.bz2 is installed,
but this package does not include ... Automoc4Config.cmake

The source package automoc-mingw-0.9.87-1-src.tar.bz2 does contains Automoc4Config.cmake
so i have unpacked all files in c:\KDE4\automoc4

----------------------------------------------------------
C:\KDE4\src\krusader_kde4>c:\kde4\bin\cmake.exe -G "MinGW Makefiles" c:/kde4/src/krusader_kde4 -DCMAKE_INSTALL_PREFIX=c:/kde
_LIBRARY_PATH=c:/kde4/lib -DKDEWIN_DIR:PATH=c:/kde4 -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_PREFIX_PATH=c:/kde4;c:/MinGW
-- Found Qt-Version 4.4.3 (using C:/KDE4/bin/qmake.exe)
-- Found Automoc4: AUTOMOC4_EXECUTABLE-NOTFOUND
-- Found Perl: C:/Perl/bin/perl.exe
-- Found kdewin32 library:
-- Found kdewin32 library: C:/KDE4/lib/libkdewin32.dll.a
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Failed
-- Found Phonon: C:/KDE4/lib/libphonon.dll.a
-- Found Phonon Includes: C:/KDE4/include/KDE;C:/KDE4/include
-- Found KDE 4.1 include dir: C:/KDE4/include
-- Found KDE 4.1 library dir: C:/KDE4/lib
-- Found KDE4 kconfig_compiler preprocessor: C:/KDE4/bin/kconfig_compiler.exe
-- Didn't find the automoc4
-- C:/KDE4/src/krusader_kde4/krusader: skipped subdir $(KRJSDIR)
-- Looking for include files HAVE_LIBINTL_H
-- Looking for include files HAVE_LIBINTL_H - found
-- Looking for dgettext
-- Looking for dgettext - not found
-- Looking for dgettext in C:/KDE4/lib/libintl.dll.a
-- Looking for dgettext in C:/KDE4/lib/libintl.dll.a - found
-- Found Gettext: in C:/KDE4/lib/libintl.dll.a
-- Found ZLIB: C:/KDE4/lib/libz.dll.a
-- C:/KDE4/src/krusader_kde4: skipped subdir $(TARDIR)
-- Configuring done
-- Generating done
-- Build files have been written to: C:/KDE4/src/krusader_kde4

C:\KDE4\src\krusader_kde4>
------------------------------------------------------------------------

Copied automoc4.exe in c:\KDE4\automoc4
Though ... c:\KDE4\automoc4.exe is already installed in C:/KDE4/bin

------------------------------------------------------------
C:\KDE4\src\krusader_kde4>c:\kde4\bin\cmake.exe -G "MinGW Makefiles" c:/kde4/src/krusader_kde4 -DCMAKE_INSTALL_PREFIX=c:/kde4 -DCM
_LIBRARY_PATH=c:/kde4/lib -DKDEWIN_DIR:PATH=c:/kde4 -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_PREFIX_PATH=c:/kde4;c:/MinGW
-- Found Qt-Version 4.4.3 (using C:/KDE4/bin/qmake.exe)
-- Found Automoc4: AUTOMOC4_EXECUTABLE-NOTFOUND
-- Found Perl: C:/Perl/bin/perl.exe
-- Found kdewin32 library:
-- Found kdewin32 library: C:/KDE4/lib/libkdewin32.dll.a
-- Found KDE 4.1 include dir: C:/KDE4/include
-- Found KDE 4.1 library dir: C:/KDE4/lib
-- Found KDE4 kconfig_compiler preprocessor: C:/KDE4/bin/kconfig_compiler.exe
-- Didn't find the automoc4
-- C:/KDE4/src/krusader_kde4/krusader: skipped subdir $(KRJSDIR)
-- C:/KDE4/src/krusader_kde4: skipped subdir $(TARDIR)
-- Configuring done
-- Generating done
-- Build files have been written to: C:/KDE4/src/krusader_kde4

C:\KDE4\src\krusader_kde4>
-------------------------------------------------

Doesn't help: automoc4.exe is still not found ...

--------------------------------------------------
C:\KDE4\src\krusader_kde4>C:\MinGW\bin\mingw32-make.exe install
C:\KDE4\bin\cmake.exe -HC:\KDE4\src\krusader_kde4 -BC:\KDE4\src\krusader_kde4 --check-build-system CMakeFiles\Makefile.cmake 0
C:\KDE4\bin\cmake.exe -E cmake_progress_start C:\KDE4\src\krusader_kde4\CMakeFiles C:\KDE4\src\krusader_kde4\CMakeFiles\progress.make
C:/MinGW/bin/mingw32-make -f CMakeFiles\Makefile2 all
mingw32-make[1]: Entering directory `C:/KDE4/src/krusader_kde4'
C:/MinGW/bin/mingw32-make -f krusader\VFS\CMakeFiles\VFS.dir\build.make krusader/VFS/CMakeFiles/VFS.dir/depend
mingw32-make[2]: Entering directory `C:/KDE4/src/krusader_kde4'
mingw32-make[2]: *** No rule to make target `krusader/VFS/automoc4', needed by `krusader/VFS/VFS_automoc.cpp'.  Stop.
mingw32-make[2]: Leaving directory `C:/KDE4/src/krusader_kde4'
mingw32-make[1]: *** [krusader/VFS/CMakeFiles/VFS.dir/all] Error 2
mingw32-make[1]: Leaving directory `C:/KDE4/src/krusader_kde4'
mingw32-make: *** [all] Error 2
---------------------------------------------------------

Ofcource make fails because of the automoc problem, any idea how to resolve?


Václav reported that it should work with kde 4.1.2 ,
but because installing kde (+ devel stuff) takes about 45 minutes, I prefer to search for a solution for kde 4.1.3 first :)

Thanks and bye,

Frank



automoc-mingw-0.9.87-1-bin.tar.bz2
automoc-mingw-0.9.87-1-src.tar.bz2

Václav Jůza

unread,
Nov 29, 2008, 3:12:01 PM11/29/08
to krusade...@googlegroups.com
Hi Frank,
so I tried it again, and have found it out:
It worked when I put the automoc files without the file kde4automoc.cpp
to c:\kde4\lib\automoc4\
In fact only these files were necessary:
Automoc4Config.cmake, Automoc4Version.cmake and automoc4.files.in

Don't ask me why ;-)

Probably I had to make this workaround even when using the KDE 4.1.2
and forgot to document it properly.

I have updated the INSTALL file now.

It is probably some bug in the KDE packages.

Regards,
Vaclav Juza

2008/11/24 Frank Schoolmeesters <frank.scho...@gmail.com>:

Frank Schoolmeesters

unread,
Dec 1, 2008, 3:17:55 PM12/1/08
to krusade...@googlegroups.com
Hi Václav,

The automoc fix did help, but now i have a encountered an other problem ... ;)

Thanks and bye,

Frank

#
I used C:\KDE4\build\krusader_kde4>
as buid dir (did not that the first time).

#
Our INSTALL file:
Maybe add as remark:
Installing png2ico.exe is not needed when using
kdewin-installer-gui-0.9.3-3.exe and selecting "stable KDE4.1.3"

#
According to our INSTALL file:
Fixing KDELibsDependencies.cmake, ...
there are wrong hardcoded paths to the installation directory
(D:/kde/kde-mingw), it is necessary to replace it manually to c:/kde4.
->
Seems to be fixed in "stable KDE4.1.3" because I see relative paths
now and not harcoded onces.
So I have not applied this fix.

#
Now running cmake.
A few lines might cause trouble when running make afterwards I guess:


-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Failed

-- C:/KDE4/src/krusader_kde4/krusader: skipped subdir $(KRJSDIR)

-- Looking for dgettext - not found

-- C:/KDE4/src/krusader_kde4: skipped subdir $(TARDIR)

Not shure how I need to fix them, can you compare your cmake output?
I have almost installed all available packages.

--------------------------------------------------------------------------------------
C:\KDE4\build\krusader_kde4>c:\kde4\bin\cmake.exe -G "MinGW Makefiles"
c:/kde4/src/krusader_kde4 -DCMAKE_INSTALL_PREFIX=c:/kde4
-DCMAKE_INCLUDE_PATH=c:/kde4/include -DCMAKE_LIBRARY_PATH=c:/kde4/lib
-D
KDEWIN_DIR:PATH=c:/kde4 -DCMAKE_PREFIX_PATH=c:/kde4;c:/MinGW
-DKDE4_INSTALL_DIR=c:/kde4 -DQT_INSTALL_DIR=c:/kde4
-DCMAKE_BUILD_TYPE=Release


-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.4.3 (using C:/KDE4/bin/qmake.exe)

-- Found Automoc4: C:/KDE4/bin/automoc4.exe


-- Found Perl: C:/Perl/bin/perl.exe
-- Found kdewin32 library:
-- Found kdewin32 library: C:/KDE4/lib/libkdewin32.dll.a
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Failed
-- Found Phonon: C:/KDE4/lib/libphonon.dll.a
-- Found Phonon Includes: C:/KDE4/include/KDE;C:/KDE4/include
-- Found KDE 4.1 include dir: C:/KDE4/include
-- Found KDE 4.1 library dir: C:/KDE4/lib
-- Found KDE4 kconfig_compiler preprocessor: C:/KDE4/bin/kconfig_compiler.exe

-- Found automoc4: C:/KDE4/bin/automoc4.exe


-- C:/KDE4/src/krusader_kde4/krusader: skipped subdir $(KRJSDIR)
-- Looking for include files HAVE_LIBINTL_H
-- Looking for include files HAVE_LIBINTL_H - found
-- Looking for dgettext
-- Looking for dgettext - not found
-- Looking for dgettext in C:/KDE4/lib/libintl.dll.a
-- Looking for dgettext in C:/KDE4/lib/libintl.dll.a - found
-- Found Gettext: in C:/KDE4/lib/libintl.dll.a
-- Found ZLIB: C:/KDE4/lib/libz.dll.a
-- C:/KDE4/src/krusader_kde4: skipped subdir $(TARDIR)
-- Configuring done
-- Generating done

-- Build files have been written to: C:/KDE4/build/krusader_kde4
-----------------------------------------------------------------------------


#
make fails ...
Something wrong with our Krusader sourcecode on Win32?
---
C:/KDE4/include/QtCore/qatomic_windows.h:387: error: declaration of C
function `long int InterlockedCompareExchange(long int*, long int,
long int)' conflicts with
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1663:
error: previous declaration `LONG InterlockedCompareExchange(volatile
LONG*, LONG, LONG)' here
---

The complete cmake output:
-------------------------------------------------------------------------------
C:\KDE4\build\krusader_kde4>C:\MinGW\bin\mingw32-make.exe install


C:\KDE4\bin\cmake.exe -HC:\KDE4\src\krusader_kde4

-BC:\KDE4\build\krusader_kde4 --check-build-system


CMakeFiles\Makefile.cmake 0
C:\KDE4\bin\cmake.exe -E cmake_progress_start

C:\KDE4\build\krusader_kde4\CMakeFiles
C:\KDE4\build\krusader_kde4\CMakeFiles\progress.make


C:/MinGW/bin/mingw32-make -f CMakeFiles\Makefile2 all

mingw32-make[1]: Entering directory `C:/KDE4/build/krusader_kde4'


C:/MinGW/bin/mingw32-make -f
krusader\VFS\CMakeFiles\VFS.dir\build.make
krusader/VFS/CMakeFiles/VFS.dir/depend

mingw32-make[2]: Entering directory `C:/KDE4/build/krusader_kde4'
cd C:\KDE4\build\krusader_kde4\krusader\VFS &&
C:\KDE4\bin\automoc4.exe
C:/KDE4/build/krusader_kde4/krusader/VFS/VFS_automoc.cpp
C:/KDE4/src/krusader_kde4/krusader/VFS
C:/KDE4/build/krusader_kde4/krus
ader/VFS C:/KDE4/bin/moc.exe C:/KDE4/bin/cmake.exe --touch
Generating preservingcopyjob.moc
C:/KDE4/src/krusader_kde4/krusader/VFS/preservingcopyjob.h:0: Warning:
No relevant classes found. No output generated.
Generating vfile.moc
Generating preserveattrcopyjob.moc
Generating ftp_vfs.moc
Generating vfs.moc
Generating normal_vfs.moc
Generating krquery.moc
Generating virt_vfs.moc
Generating virtualcopyjob.moc
Generating krarchandler.moc
C:\KDE4\bin\cmake.exe -E cmake_depends "MinGW Makefiles"
C:\KDE4\src\krusader_kde4 C:\KDE4\src\krusader_kde4\krusader\VFS
C:\KDE4\build\krusader_kde4 C:\KDE4\build\krusader_kde4\krusader\VFS
C:\KDE4\b
uild\krusader_kde4\krusader\VFS\CMakeFiles\VFS.dir\DependInfo.cmake --color=
Scanning dependencies of target VFS
mingw32-make[2]: Leaving directory `C:/KDE4/build/krusader_kde4'


C:/MinGW/bin/mingw32-make -f
krusader\VFS\CMakeFiles\VFS.dir\build.make

krusader/VFS/CMakeFiles/VFS.dir/build
mingw32-make[2]: Entering directory `C:/KDE4/build/krusader_kde4'
cd C:\KDE4\build\krusader_kde4\krusader\VFS &&
C:\KDE4\bin\automoc4.exe
C:/KDE4/build/krusader_kde4/krusader/VFS/VFS_automoc.cpp
C:/KDE4/src/krusader_kde4/krusader/VFS
C:/KDE4/build/krusader_kde4/krus
ader/VFS C:/KDE4/bin/moc.exe C:/KDE4/bin/cmake.exe --touch
C:\KDE4\bin\cmake.exe -E cmake_progress_report
C:\KDE4\build\krusader_kde4\CMakeFiles
[ 0%] Building CXX object krusader/VFS/CMakeFiles/VFS.dir/VFS_automoc.obj
cd C:\KDE4\build\krusader_kde4\krusader\VFS && C:\MinGW\bin\g++.exe
-DQT_NO_DEBUG -DQT_DLL -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT
-DKDE_DEPRECATED_WARNINGS -Woverloaded-virtual -O2 -DNDEBUG
-DQT_NO_DEBUG -IC:\KDE4\build\krusader_kde4\krusader\VFS
-IC:\KDE4\src\krusader_kde4\krusader\VFS -IC:\KDE4\include
-IC:\KDE4\include\KDE -IC:\KDE4\include\QtXmlPatterns
-IC:\KDE4\include\QtWebKit -IC
:\KDE4\include\QtHelp -IC:\KDE4\include\QtAssistant
-IC:\KDE4\include\QtDBus -IC:\KDE4\include\QtTest
-IC:\KDE4\include\QtUiTools -IC:\KDE4\include\QtScript
-IC:\KDE4\include\QtSvg -IC:\KDE4\include\Q
tXml -IC:\KDE4\include\QtSql -IC:\KDE4\include\QtOpenGL
-IC:\KDE4\include\QtNetwork -IC:\KDE4\include\QtDesigner
-IC:\KDE4\include\Qt3Support -IC:\KDE4\include\QtGui
-IC:\KDE4\include\QtCore -IC:\KDE4
\include\Qt -IC:\KDE4\mkspecs\default -IC:\KDE4\include\mingw
-DVERSION='"2.0.0-beta2"' -DRELEASE_NAME='"Space Odyssey"' -o
CMakeFiles\VFS.dir\VFS_automoc.obj -c
C:\KDE4\build\krusader_kde4\krusader
\VFS\VFS_automoc.cpp
C:\KDE4\bin\cmake.exe -E cmake_progress_report
C:\KDE4\build\krusader_kde4\CMakeFiles 75
[ 1%] Building CXX object krusader/VFS/CMakeFiles/VFS.dir/krvfshandler.obj
cd C:\KDE4\build\krusader_kde4\krusader\VFS && C:\MinGW\bin\g++.exe
-DQT_NO_DEBUG -DQT_DLL -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT
-DKDE_DEPRECATED_WARNINGS -Woverloaded-virtual -O2 -DNDEBUG
-DQT_NO_DEBUG -IC:\KDE4\build\krusader_kde4\krusader\VFS
-IC:\KDE4\src\krusader_kde4\krusader\VFS -IC:\KDE4\include
-IC:\KDE4\include\KDE -IC:\KDE4\include\QtXmlPatterns
-IC:\KDE4\include\QtWebKit -IC
:\KDE4\include\QtHelp -IC:\KDE4\include\QtAssistant
-IC:\KDE4\include\QtDBus -IC:\KDE4\include\QtTest
-IC:\KDE4\include\QtUiTools -IC:\KDE4\include\QtScript
-IC:\KDE4\include\QtSvg -IC:\KDE4\include\Q
tXml -IC:\KDE4\include\QtSql -IC:\KDE4\include\QtOpenGL
-IC:\KDE4\include\QtNetwork -IC:\KDE4\include\QtDesigner
-IC:\KDE4\include\Qt3Support -IC:\KDE4\include\QtGui
-IC:\KDE4\include\QtCore -IC:\KDE4
\include\Qt -IC:\KDE4\mkspecs\default -IC:\KDE4\include\mingw
-DVERSION='"2.0.0-beta2"' -DRELEASE_NAME='"Space Odyssey"' -o
CMakeFiles\VFS.dir\krvfshandler.obj -c
C:\KDE4\src\krusader_kde4\krusader\
VFS\krvfshandler.cpp
In file included from C:\KDE4\src\krusader_kde4\krusader\VFS\ftp_vfs.h:36,
from
C:\KDE4\src\krusader_kde4\krusader\VFS\krvfshandler.cpp:20:
C:/KDE4/include/kdirlister.h:640: warning: `KDirListerCache' is
already a friend of `KDirLister'
C:\KDE4\bin\cmake.exe -E cmake_progress_report
C:\KDE4\build\krusader_kde4\CMakeFiles
[ 1%] Building CXX object krusader/VFS/CMakeFiles/VFS.dir/virt_vfs.obj
cd C:\KDE4\build\krusader_kde4\krusader\VFS && C:\MinGW\bin\g++.exe
-DQT_NO_DEBUG -DQT_DLL -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT
-DKDE_DEPRECATED_WARNINGS -Woverloaded-virtual -O2 -DNDEBUG
-DQT_NO_DEBUG -IC:\KDE4\build\krusader_kde4\krusader\VFS
-IC:\KDE4\src\krusader_kde4\krusader\VFS -IC:\KDE4\include
-IC:\KDE4\include\KDE -IC:\KDE4\include\QtXmlPatterns
-IC:\KDE4\include\QtWebKit -IC
:\KDE4\include\QtHelp -IC:\KDE4\include\QtAssistant
-IC:\KDE4\include\QtDBus -IC:\KDE4\include\QtTest
-IC:\KDE4\include\QtUiTools -IC:\KDE4\include\QtScript
-IC:\KDE4\include\QtSvg -IC:\KDE4\include\Q
tXml -IC:\KDE4\include\QtSql -IC:\KDE4\include\QtOpenGL
-IC:\KDE4\include\QtNetwork -IC:\KDE4\include\QtDesigner
-IC:\KDE4\include\Qt3Support -IC:\KDE4\include\QtGui
-IC:\KDE4\include\QtCore -IC:\KDE4
\include\Qt -IC:\KDE4\mkspecs\default -IC:\KDE4\include\mingw
-DVERSION='"2.0.0-beta2"' -DRELEASE_NAME='"Space Odyssey"' -o
CMakeFiles\VFS.dir\virt_vfs.obj -c
C:\KDE4\src\krusader_kde4\krusader\VFS\
virt_vfs.cpp
In file included from C:\KDE4\src\krusader_kde4\krusader\VFS\virt_vfs.cpp:18:
C:/KDE4/include/mingw/unistd.h:119: error: declaration of C function
`void usleep(unsigned int)' conflicts with
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/unistd.h:36:
error: previous declaration `int usleep(useconds_t)' here
In file included from C:/KDE4/include/QtCore/qatomic_arch.h:72,
from C:/KDE4/include/QtCore/qbasicatomic.h:203,
from C:/KDE4/include/QtCore/qatomic.h:42,
from C:/KDE4/include/QtCore/qbytearray.h:42,
from C:/KDE4/include/QtCore/qstring.h:42,
from C:/KDE4/include/QtCore/QString:1,
from C:/KDE4/include/kio/global.h:24,
from C:/KDE4/include/kfileitem.h:25,
from C:\KDE4\src\krusader_kde4\krusader\VFS\virt_vfs.cpp:21:
C:/KDE4/include/QtCore/qatomic_windows.h:387: error: declaration of C
function `long int InterlockedCompareExchange(long int*, long int,
long int)' conflicts with
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1663:
error: previous declaration `LONG InterlockedCompareExchange(volatile
LONG*, LONG, LONG)' here
C:/KDE4/include/QtCore/qatomic_windows.h:388: error: declaration of C
function `long int InterlockedIncrement(long int*)' conflicts with
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1676:
error: previous declaration `LONG InterlockedIncrement(volatile
LONG*)' here
C:/KDE4/include/QtCore/qatomic_windows.h:389: error: declaration of C
function `long int InterlockedDecrement(long int*)' conflicts with
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1667:
error: previous declaration `LONG InterlockedDecrement(volatile
LONG*)' here
C:/KDE4/include/QtCore/qatomic_windows.h:390: error: declaration of C
function `long int InterlockedExchange(long int*, long int)' conflicts
with
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1668:
error: previous declaration `LONG InterlockedExchange(volatile LONG*,
LONG)' here
C:/KDE4/include/QtCore/qatomic_windows.h:391: error: declaration of C
function `long int InterlockedExchangeAdd(long int*, long int)'
conflicts with
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1672:
error: previous declaration `LONG InterlockedExchangeAdd(volatile
LONG*, LONG)' here
mingw32-make[2]: *** [krusader/VFS/CMakeFiles/VFS.dir/virt_vfs.obj] Error 1
mingw32-make[2]: Leaving directory `C:/KDE4/build/krusader_kde4'


mingw32-make[1]: *** [krusader/VFS/CMakeFiles/VFS.dir/all] Error 2

mingw32-make[1]: Leaving directory `C:/KDE4/build/krusader_kde4'


mingw32-make: *** [all] Error 2

C:\KDE4\build\krusader_kde4>
---------------------------------------------------------------------------

Václav Jůza

unread,
Dec 2, 2008, 3:49:00 AM12/2/08
to krusade...@googlegroups.com
Hi Frank,

2008/12/1 Frank Schoolmeesters <frank.scho...@gmail.com>:


> Hi Václav,
>
> The automoc fix did help, but now i have a encountered an other problem ... ;)
>
> Thanks and bye,
>
> Frank
>
> #
> I used C:\KDE4\build\krusader_kde4>
> as buid dir (did not that the first time).
>
> #
> Our INSTALL file:
> Maybe add as remark:
> Installing png2ico.exe is not needed when using
> kdewin-installer-gui-0.9.3-3.exe and selecting "stable KDE4.1.3"

On Saturday, I have updated this comment a little bit (not mentioning
4.1.3 directly, but it mentions that it can be already installed
within the kdewin32 package), but yes, I can mention 4.1.3

>
> #
> According to our INSTALL file:
> Fixing KDELibsDependencies.cmake, ...
> there are wrong hardcoded paths to the installation directory
> (D:/kde/kde-mingw), it is necessary to replace it manually to c:/kde4.
> ->
> Seems to be fixed in "stable KDE4.1.3" because I see relative paths
> now and not harcoded onces.
> So I have not applied this fix.

No, it is not fixed, only moved to KDELibsDependenciesInternal.cmake ;-).
Updated on Saturday as well. The error would appear when the make
command is at around 85% - it cannot find Qt libraries when linking.

>
> #
> Now running cmake.
> A few lines might cause trouble when running make afterwards I guess:
> -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Failed
> -- C:/KDE4/src/krusader_kde4/krusader: skipped subdir $(KRJSDIR)
> -- Looking for dgettext - not found
> -- C:/KDE4/src/krusader_kde4: skipped subdir $(TARDIR)
>
> Not shure how I need to fix them, can you compare your cmake output?
> I have almost installed all available packages.

dgettext - install gettext-tools package (also added to INSTALL on Saturday)

__KDE_HAVE_GCC_VISIBILITY no idea at the moment, but it seems it
continued after that point.

I have not experienced this error. I will look at that in the evening
and will send my build log as well.

Thanks and bye,
Vaclav

Václav Jůza

unread,
Dec 2, 2008, 12:54:33 PM12/2/08
to krusade...@googlegroups.com
Here there are outputs of my cmake and make (not make install)

2008/12/2 Václav Jůza <vacla...@gmail.com>:

cmakelog
makelog

Frank Schoolmeesters

unread,
Dec 3, 2008, 4:59:50 PM12/3/08
to krusade...@googlegroups.com
Hi Václav,

2008/12/2 Václav Jůza <vacla...@gmail.com>:


> Here there are outputs of my cmake and make (not make install)
>

Your output of cmake seems to be indentical.
The output of make is not indentical, not shure why.

> 2008/12/2 Václav Jůza <vacla...@gmail.com>:
>> Hi Frank,
>>
>> 2008/12/1 Frank Schoolmeesters <frank.scho...@gmail.com>:
>>> Hi Václav,

...


>>> #
>>> According to our INSTALL file:
>>> Fixing KDELibsDependencies.cmake, ...
>>> there are wrong hardcoded paths to the installation directory
>>> (D:/kde/kde-mingw), it is necessary to replace it manually to c:/kde4.
>>> ->
>>> Seems to be fixed in "stable KDE4.1.3" because I see relative paths
>>> now and not harcoded onces.
>>> So I have not applied this fix.
>>
>> No, it is not fixed, only moved to KDELibsDependenciesInternal.cmake ;-).
>> Updated on Saturday as well. The error would appear when the make
>> command is at around 85% - it cannot find Qt libraries when linking.
>>

I have fixed it now.
There are about 4 files with "D:/kderoot/" hardcoded, I have changed
it into "C:\KDE4"
I have searched for all files containing "D:/kderoot/" and fixed them.

btw.
I'm using Windows XP Home, service pack 3 (not sure if that is
important though).

Will give a try again an other day.

Thanks and bye,

Frank

Václav Jůza

unread,
Dec 5, 2008, 4:19:47 AM12/5/08
to krusade...@googlegroups.com
Hi Frank,

I have just checked the make log and its first error:


virt_vfs.cpp
In file included from C:\KDE4\src\krusader_kde4\krusader\VFS\virt_vfs.cpp:18:
C:/KDE4/include/mingw/unistd.h:119: error: declaration of C function
`void usleep(unsigned int)' conflicts with
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/unistd.h:36:
error: previous declaration `int usleep(useconds_t)' here

The file I have in C:/KDE4/include/mingw/unistd.h is the same,
while in
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/unistd.h:36
I don't have the declararion of usleep at all.

Just to check what MinGw versions do we have:
In the Control Panels->add or remove programs I have MinGW 5.1.3
In the file c:\MinGW\installed.ini I have:
[settings]
mirror=
installtype=current

[components]
runtime=mingw-runtime-3.14.tar.gz
w32api=w32api-3.11.tar.gz
binutils=binutils-2.17.50-20060824-1.tar.gz
core=gcc-core-3.4.5-20060117-3.tar.gz
gpp=gcc-g++-3.4.5-20060117-3.tar.gz
g77=
ada=
java=
objc=
make=mingw32-make-3.81-20080326-2.tar.gz

There is also a small difference in the way we build - I user
BUILD_TYPE=debugfull and you used Release, but I have done also one
successfull Release build, so that the problem is more likely in the
mingw version.
I
2008/12/3 Frank Schoolmeesters <frank.scho...@gmail.com>:

Frank Schoolmeesters

unread,
Dec 16, 2008, 3:53:45 PM12/16/08
to krusade...@googlegroups.com
Hi Václav ,

Sorry for the delay.

I'm using MinGW 5.1.4

The output of c:\MinGW\installed.ini
------------------
[settings]
mirror=
installtype=current

[components]
runtime=mingwrt-3.15.1-mingw32.tar.gz
w32api=w32api-3.12-mingw32-dev.tar.gz
binutils=binutils-2.17.50-20060824-1.tar.gz
core=gcc-core-3.4.5-20060117-3.tar.gz
gpp=gcc-g++-3.4.5-20060117-3.tar.gz
g77=gcc-g77-3.4.5-20060117-3.tar.gz
ada=gcc-ada-3.4.5-20060117-3.tar.gz
java=
objc=gcc-objc-3.4.5-20060117-3.tar.gz
make=mingw32-make-3.81-20080326-2.tar.gz
gcj=gcc-java-3.4.5-20060117-3.tar.gz
-------------------------

Will try BUILD_TYPE=debugfull to see what it does.
I have used "Release" because it's written in our INSTALL file ;)

In attachment unistd.h, it contains " usleep"
-------------
...
int __cdecl __MINGW_NOTHROW usleep(useconds_t useconds);
#endif /* Not __NO_ISOCEXT */
-------------

Thanks and bye,

Frank

unistd.h

Frank Schoolmeesters

unread,
Dec 16, 2008, 4:16:37 PM12/16/08
to krusade...@googlegroups.com
On Tue, Dec 16, 2008 at 9:53 PM, Frank Schoolmeesters
<frank.scho...@gmail.com> wrote:
...

> Will try BUILD_TYPE=debugfull to see what it does.
> I have used "Release" because it's written in our INSTALL file ;)
>
> In attachment unistd.h, it contains " usleep"
> -------------
> ...
> int __cdecl __MINGW_NOTHROW usleep(useconds_t useconds);
> #endif /* Not __NO_ISOCEXT */
> -------------
>
> Thanks and bye,
>
> Frank
>

Same make error with "-DCMAKE_BUILD_TYPE=debugfull"
------------------------


C:/KDE4/include/mingw/unistd.h:119: error: declaration of C function
`void usleep(unsigned int)' conflicts with
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/unistd.h:36:
error: previous declaration `int usleep(useconds_t)' here

-----------------------

Found the same error with Google on the kde-windows mailing-list
http://mail.kde.org/pipermail/kde-windows/2008-November/003286.html
As far I can tell there was no reply on that specific mail with a
solution (or I have missed it ;) .

Maybe a KDE4-win problem?

Frank Schoolmeesters

unread,
Dec 18, 2008, 3:11:43 PM12/18/08
to krusade...@googlegroups.com
Hi,

I was able to compile Krusader on Windows :)
On KDE 3.1.2 it's ok,
but on KDE 3.1.3 Krusader does not compile on my system (but AFAIK
it's not caused by Krusader).

Look at attached screenshot.
Even the localized Krusader and the handbook works :)
I'm using a Dutch Windows and so I have a Dutch Krusader.
Really weird to see Krusader running on Windows XP.
Never thought that a day would come that i could make a
Krusader-Windows screenshot :-)

btw. will update the INSTALL file to make the install instructions more clear

Thanks and bye,

Frank

krusader-windows.png

Frank Schoolmeesters

unread,
Dec 18, 2008, 3:14:23 PM12/18/08
to krusade...@googlegroups.com
Of course it should be KDE 4.1.2 and KDE 4.1.3 (and not KDE3.x)

Frank Schoolmeesters

unread,
Dec 18, 2008, 3:18:49 PM12/18/08
to krusade...@googlegroups.com
The Krusader version number doesn't work on Windows (see attachment).
Can it be fixed?

Thanks and bye,

Frank

On Thu, Dec 18, 2008 at 9:14 PM, Frank Schoolmeesters

krusader-version-number.png

Václav Jůza

unread,
Dec 18, 2008, 7:44:35 PM12/18/08
to krusade...@googlegroups.com
Hi,

congratulation, and thanks for the INSTALL update.

The problem with version number seems to be caused by the
add_definitions( -DVERSION='"..."'),
the single quotes probably behave different on Windows.

In kdelibs the versioning is done using .h file templates,
I will try to fix it this way.

Vaclav


Dne čt 18. prosince 2008 Frank Schoolmeesters napsal(a):

Václav Jůza

unread,
Dec 19, 2008, 12:57:30 PM12/19/08
to krusade...@googlegroups.com
Fix committed.

Dne pá 19. prosince 2008 Václav Jůza napsal(a):

Frank Schoolmeesters

unread,
Dec 19, 2008, 3:21:02 PM12/19/08
to krusade...@googlegroups.com
Thanks!

One small point:
"FIXED: version number under Windows"
Should be added in the Changelog file, and than it's perfect.

bye,

Frank

2008/12/19 Václav Jůza <vacla...@gmail.com>:

Frank Schoolmeesters

unread,
Dec 20, 2008, 2:15:51 PM12/20/08
to krusade...@googlegroups.com
Hi,

Two other bugs - issues.

When opening Konfigurator, the window is to big so that the buttons at
below are not visible.
See Konfigurator1.png
AFAIK it was fixed a few months ago on Linux (haven't checked it yet
on Linux with current SNV).
My Window size is 800 height x 1280 width.
So Konfigurator should have maximum 700 pixels in height.

I can resize Konfigurator beginning from the upper part of the
windows, so that is good news and the Konfigurator buttons are visible
again.
See Konfigurator2.png
But when closing and opening again Konfigurator, the Konfigurator is
to big again like in Konfigurator1.png
If i can remember correctly, on Linux the window size of Konfigurator
is stored in a configuration file. It seems not to be working on
Windows.

An other issue:
The "/" button does not work.
Probably because the / path on windows does not exist ;)
But it should go back to the root of the drive "cd \" should be executed.

Actually I'm surprised that Krusader is quite usable on Windows, did
not expect that,
but small issues like these are not yet ok, but that is logic because
they where never tested before ;)

Thanks and bye,

Frank

Konfigurator1.png
Konfigurator2.png

Václav Jůza

unread,
Dec 20, 2008, 7:04:05 PM12/20/08
to krusade...@googlegroups.com
Hi,

2008/12/20 Frank Schoolmeesters <frank.scho...@gmail.com>:
> Hi,
>
> Two other bugs - issues.
>
> When opening Konfigurator, the window is to big so that the buttons at
> below are not visible.
> See Konfigurator1.png
> AFAIK it was fixed a few months ago on Linux (haven't checked it yet
> on Linux with current SNV).
> My Window size is 800 height x 1280 width.
> So Konfigurator should have maximum 700 pixels in height.
>
I have the same, but the konfigurator is not bigger than the screen,
only the size of the taskbar is not subtracted from the allowed size
(while in KDE it is). I am not sure if it was the same in the previous
KDE version. But how to do it properly?
Earlier, the Konfigurator size was fixed (size given by the content)
at quite big size.
Then I put the content to scroll areas, but unfortunately, then the
default Konfigurator was much smaller than the size of the screen (it
was chosen by the KDE libraries as some portion of the screen size).
Even the size hint provided by the KDE libraries was limited by some
portion of the screen size, so there appeared scrollbars even where
not necessary, just because of small window.
I have found out, that if i resize to some size, the window is not
resized to a bigger size than the available screen size (and in KDE4
it was not including the panel), so I resized to 900x900 to which most
Kfg pages fit.
Csaba added the functionality, that the size is saved, so that this
initial size became only problem of the first start.
Any idea how to improve the solution is welcome.

> I can resize Konfigurator beginning from the upper part of the
> windows, so that is good news and the Konfigurator buttons are visible
> again.
> See Konfigurator2.png
> But when closing and opening again Konfigurator, the Konfigurator is
> to big again like in Konfigurator1.png
> If i can remember correctly, on Linux the window size of Konfigurator
> is stored in a configuration file. It seems not to be working on
> Windows.
For me it works even on Windows, the size is remembered after restart.
>
> An other issue:
> The "/" button does not work.
> Probably because the / path on windows does not exist ;)
> But it should go back to the root of the drive "cd \" should be executed.
I can confirm.

> Actually I'm surprised that Krusader is quite usable on Windows, did
> not expect that,
> but small issues like these are not yet ok, but that is logic because
> they where never tested before ;)
I agree. I think that at the moment the biggest usability problems are:
1) it is not possible to move to different Windows drive without
writing to the URL bar
2) browsing inside archives does not work (I plan to have a look at that)
3) dependencies on external tools (They are not found automatically,
most of them are typically not installed)

> Thanks and bye,
>
> Frank
>
> >
>

Frank Schoolmeesters

unread,
Dec 28, 2008, 4:56:32 AM12/28/08
to krusade...@googlegroups.com

I think that 700 pixels (or 750) in height is better.
So maybe 700x900 (750 x 900) as initial Konfigurator screensize?
800 height x 1280 width is commonly used on laptops.
The user can always make Konfigurator bigger if he likes to.
When the "ok" buttons at below are invisible it's much more annoying,
if you can't click "ok" you can't use Krusader at all.
About 8 years ago, I couldn't click on the OK button of The Gimp when
it printed out all settings on first run, so I couldn't use The Gimp
at all because I could not click on the OK button, I still remember
that because it did irritates me a lot :)

Thanks and bye,

Frank

Václav Jůza

unread,
Dec 28, 2008, 7:55:21 AM12/28/08
to krusade...@googlegroups.com
Hi,

Dne ne 28. prosince 2008 Frank Schoolmeesters napsal(a):

Changed to 900x680 (some space for the task bar).

Thanks and bye,

Vaclav

Csaba Karai

unread,
Jan 17, 2009, 10:52:13 AM1/17/09
to krusader-devel
Hi,

After a day, I've managed to start Krusader on Windows.
I can help you in the development.

Frank, I couldn't reproduce the crash with the huge directories. It's
just slow.

I'll try to fix MediaButton / MountMan on Windows.

Csaba

On 2008 dec. 28, 13:55, Václav Jůza <vaclavj...@gmail.com> wrote:
> Hi,
>
> Dne ne 28. prosince 2008 Frank Schoolmeesters napsal(a):
>
> > On Sun, Dec 21, 2008 at 1:04 AM, Václav Jůza <vaclavj...@gmail.com> wrote:
> > > Hi,
>
> > > 2008/12/20 Frank Schoolmeesters <frank.schoolmeest...@gmail.com>:

Csaba Karai

unread,
Jan 17, 2009, 7:48:01 PM1/17/09
to krusader-devel
Hi,

I've just doubled the speed of the Windows development.
DBUS didn't work well on Windows, and because of that Krusader started
very very slowly.

I've fixed the problem and now the startup time is less then 1-2 sec.

Although I think, that there are many things to do with the Windows
version.

Csaba

Jonas Bähr

unread,
Jan 17, 2009, 8:03:51 PM1/17/09
to krusade...@googlegroups.com
Hi,

Am 18.01.2009 um 01:48 schrieb Csaba Karai:

>
> Hi,
>
> I've just doubled the speed of the Windows development.
> DBUS didn't work well on Windows, and because of that Krusader started
> very very slowly.

dbus also keeps me busy on the mac ;-)
http://trac.macports.org/ticket/17950
http://bugs.freedesktop.org/show_bug.cgi?id=14259
Hopefully I've got these patches in the mainline soon...

bye,
Jonas

Václav Jůza

unread,
Jan 18, 2009, 7:38:43 AM1/18/09
to krusade...@googlegroups.com
Hi Csaba,

Good job!

Thanks

Dne ne 18. ledna 2009 Csaba Karai napsal(a):

Frank Schoolmeesters

unread,
Jan 18, 2009, 7:59:16 AM1/18/09
to krusade...@googlegroups.com
Hi Csaba,

The crash with many directories was reported in our Forum.
I have asked to test it again.
http://krusader.org/phpBB/viewtopic.php?p=9963

> Although I think, that there are many things to do with the Windows
>version.
>Csaba

I agree, when 2.0-stable is released the windows binary should be
called 2.0-stable.
And report in the README file that the windows port is not yet stable.
It's logic that the Windows port is not stable, it was never tested on Windows.

Thanks and bye,

Frank



2009/1/17 Csaba Karai <csk...@freemail.hu>:

Frank Schoolmeesters

unread,
Jan 18, 2009, 8:00:32 AM1/18/09
to krusader-devel
I agree, when 2.0-stable is released the windows binary should be
called 2.0-BETA.

(not stable ;)


---------- Forwarded message ----------
From: Frank Schoolmeesters <frank.scho...@gmail.com>
Date: 2009/1/18
Subject: Re: [Krusader-devel] Re: Compiling Krusader on Windows
To: krusade...@googlegroups.com


Hi Csaba,

The crash with many directories was reported in our Forum.
I have asked to test it again.
http://krusader.org/phpBB/viewtopic.php?p=9963

> Although I think, that there are many things to do with the Windows
>version.
>Csaba

I agree, when 2.0-stable is released the windows binary should be
called 2.0-BETA.

Frank Schoolmeesters

unread,
Jan 19, 2009, 2:11:30 AM1/19/09
to krusade...@googlegroups.com
Hi,

On *nix we use / for directories, on Windows \
Though, I'm not shure it's easy to fix in the Krusader-Windows port,
and how KDE-Win handles this.

Thanks and bye,

Frank

2009/1/18 Csaba Karai <csk...@freemail.hu>:
Reply all
Reply to author
Forward
0 new messages