How to build kdeedu from scartch? (was Re: corrupted kdeedu-minGW-src-archive?)

Ruediger Goetz goetz at matrix-as.com
Thu Nov 27 10:29:06 CET 2008


Hello again

After installing automoc (from both bin and src files) and perl 
(and a few other things) manually, we got cmake getting through. 
Unfortunately, mingw32-make is stuck now.
If we try to compile kdeedu as whole, make stoped at blinken
on an error build docbook documentation. Since we are only behind
kturtle we try to build kturtle directly by

cd P:/KDEROOT/kde/src/kdeedu-mingw-build/kturtle
mingw32-make

we get:

In file included from P:/KDEROOT/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:50,
                 from P:/KDEROOT/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winsock2.h:22,
                 from P:/KDEROOT/kde/include/mingw/unistd.h:26,
                 from P:\KDEROOT\kde\src\kdeedu-mingw-4.1.2\kturtle\src\interpreter\executer.cpp:28:
P:/KDEROOT/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1663: error: declaration of C function `LONG InterlockedCompare
Exchange(volatile LONG*, LONG, LONG)' conflicts with
P:/KDEROOT/kde/include/QtCore/qatomic_windows.h:387: error: previous declaration `long int InterlockedCompareExchange(long int*, long int,
long int)' here
P:/KDEROOT/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1667: error: declaration of C function `LONG InterlockedDecreme
nt(volatile LONG*)' conflicts with
P:/KDEROOT/kde/include/QtCore/qatomic_windows.h:389: error: previous declaration `long int InterlockedDecrement(long int*)' here
P:/KDEROOT/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1668: error: declaration of C function `LONG InterlockedExchang
e(volatile LONG*, LONG)' conflicts with
P:/KDEROOT/kde/include/QtCore/qatomic_windows.h:390: error: previous declaration `long int InterlockedExchange(long int*, long int)' here
P:/KDEROOT/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1672: error: declaration of C function `LONG InterlockedExchang
eAdd(volatile LONG*, LONG)' conflicts with
P:/KDEROOT/kde/include/QtCore/qatomic_windows.h:391: error: previous declaration `long int InterlockedExchangeAdd(long int*, long int)' her
e
P:/KDEROOT/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1676: error: declaration of C function `LONG InterlockedIncreme
nt(volatile LONG*)' conflicts with
P:/KDEROOT/kde/include/QtCore/qatomic_windows.h:388: error: previous declaration `long int InterlockedIncrement(long int*)' here
In file included from P:\KDEROOT\kde\src\kdeedu-mingw-4.1.2\kturtle\src\interpreter\executer.cpp:28:
P:/KDEROOT/kde/include/mingw/unistd.h:119: error: declaration of C function `void usleep(unsigned int)' conflicts with
P:/KDEROOT/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/unistd.h:36: error: previous declaration `int usleep(useconds_
t)' here
mingw32-make[2]: *** [kturtle/src/CMakeFiles/kturtle.dir/interpreter/executer.obj] Error 1
mingw32-make[1]: *** [kturtle/src/CMakeFiles/kturtle.dir/all] Error 2
mingw32-make: *** [all] Error 2

It look like 

On Wednesday 26 November 2008, Ralf Habacker wrote:
> Ruediger Goetz schrieb:
> > Hello,
> >
> > Sorry for bothering again. As far as I read the docu, the only option is 
> > using emerge, since the other three are deprecated or unstable. However,
> > we are sitting behind a firewall, which allows (basically) only http- and 
> > ftp-traffic via a squid-proxy. As far as I remember emerge/portage needs
> > rsync as well. (Not speaking about the svn access to get emerge initially).
> >
> > Hence, are there any options to use emerge through such a firewall (gentoo-emerge
> > has a webrsync. But this is a bash script, presumable not running on Windows).
> >
> > But maybe there is a shorter way. We have already basic KDE installation
> > done using kdewin-installer-gui. This installation includes the sources of kdeedu.
> > All we need is to recompile kdeedu (and kturtle in particular) with our
> > modified sources. Unfortunately (but not unexpected) the Linux way of 
> >  	cmake; make; make install
> > doesn't work in the DOS-prompt. Maybe there is ju3.5h Betreuung Ausbildung
5h SPst a little thing we just missed.
> >   
> Please note that building applications in this way will not support 
> debugging because the packages are releases without debug symbols yet. .
> 
> ========== MSVC instructions ============
> 
> - assuming that kde ist installed in %PROGRAMFILES%\kde
> 
> 1. download 
> http://www.winkde.org/pub/kde/ports/win32/installer/unstable/kdewin-installer-gui-0.9.4-rc0.exe 
> 
> 
> 2. run this installer in the package manager mode and select msvc compiler
> 
> 3. select from the KDE category the kdeedu bin and source package - this 
> will select also all depending packages
> 
> 4. select from the devel-tools category the packages cmake, 
> vcexpress-de-msvc and psdk-msvc
> 
> 5. select the devel package from the KDE category for qt-msvc, 
> kdelibs-msvc and kdebase-msvc-runtime, this packages are required for 
> building the kde-edu package (note: you can inspect the package 
> dependencies by clicking on the package name)
> 
> 6. install the selected packages.
> 
> 7. Open Visual Studio command prompt
> 
> 8. set the required environment for Platform sdk e.g.
>         "%PROGRAMFILES%\Microsoft Platform SDK for Windows Server 2003 
> R2\setenv.cmd"
> 
> 9. set PATH to bin subdirectory of the kde installation dir
>        set PATH=%PROGRAMFILES%\kde\bin;%PATH%
> 
> 10. enter src subdirectory of the kde installation root e.g.
>         cd %PROGRAMFILES%\kde\src
> 
> 11.create a build directory and enter it
>         mkdir kdeedu-msvc-build && cd kdeedu-msvc-build
> 
> 12.run cmake
>        cmake.exe -G "NMake Makefiles" ..\kdeedu-msvc-4.1.3 
> -DCMAKE_INCLUDE_PATH=%PROGRAMFILES%\kde\include 
> -DCMAKE_LIBRARY_PATH=%PROGRAMFILES%\kde\lib -DCMAKE_BUILD_TYPE=Release 
> -DCMAKE_INSTALL_PREFIX=%PROGRAMFILES%\kde
>  
> 13.build with nmake
>         nmake
> 
> or 
>         cd <subdir>
>         nmake
> 
> to build a specific subdirectory
> 
> 14. install the compiled package
>     nmake install
> 
> 
> ========== MINGW instructions ============
> - assuming that kde ist installed in %PROGRAMFILES%\kde and mingw is 
> installed in \mingw
> 
> 1. download 
> http://www.winkde.org/pub/kde/ports/win32/installer/unstable/kdewin-installer-gui-0.9.4-rc0.exe 
> 
> 
> 2. run this installer in the package manager mode and select mingw compiler
> 
> 3. select from the KDE category the kdeedu bin and source package - this 
> will select also all depending packages
> 
> 4. select from the devel-tools category the packages cmake, gcc-mingw
> 
> 5. select the devel package from the KDE category for qt-mingw, 
> kdelibs-mingw and kdebase-mingw-runtime, this packages are required for 
> building the kde-edu package (note: you can inspect the package 
> dependencies by clicking on the package name,clicking again hides the 
> info box)
> 
> 6. install the selected packages.
> 
> 7. Open command shell
> 
> 8. set PATH to bin subdirectory of the mingw installation dir e.g
>        set PATH=\Mingw\bin;%PATH%
> 
> 9. set PATH to bin subdirectory of the kde installation dir
>        set PATH=%PROGRAMFILES%\kde\bin;%PATH%
> 
> 10. enter src subdirectory of the kde installation root e.g.
>         cd %PROGRAMFILES%\kde\src
> 
> 11.create a build directory and enter it
>         mkdir kdeedu-mingw-build && cd kdeedu-mingw-build
> 
> 12.run cmake
>        cmake.exe -G "MingW Makefiles" ..\kdeedu-mingw-4.1.3 
> -DCMAKE_INCLUDE_PATH=%PROGRAMFILES%\kde\include 
> -DCMAKE_LIBRARY_PATH=%PROGRAMFILES%\kde\lib -DCMAKE_BUILD_TYPE=Release 
> -DCMAKE_INSTALL_PREFIX=%PROGRAMFILES%\kde
>  
> 13.build with make
> 
>     mingw32-make
> 
> or 
>     cd <subdir>
>     mingw32-make
> 
> to build a specific subdirectory
> 
> 14. install the compiled package
>     mingw32-make install
>   
> Hope that helps
> 
> Regards
>  Ralf
>   
> _______________________________________________
> Kde-windows mailing list
> Kde-windows at kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
> 



-- 
Dr. Rüdiger Goetz         <goetz at matrix-as.com>
                                 
       Matrix Advanced Solutions Germany GmbH
__________________________________________________________

Reitstallstr.7               Tel: +49 (551) / 50 41 6 - 0
37073 Goettingen             Fax: +49 (551) / 50 41 6 - 99
Germany                      Web: http://www.matrix-as.com    
Geschäftsführer:             Sion Balass - Dr. Marcel Thürk
Amtsgericht Göttingen - HRB 3667 - Ust.-ID-Nr. DE225069655


More information about the Kde-windows mailing list