[Digikam-users] windows build compiler error
Gary Pajer
gary.pajer at gmail.com
Sun Nov 23 20:09:53 GMT 2008
I've been following these very useful instructions:
http://www.digikam.org/drupal/node/402
I've managed to figure out a few things that were a little fuzzy to me, but
I'm stuck on a compilation issue.
Trying to compile automoc. cmake seems to run ok. If I issue a
"ming32-make" from a Win cmd window, my prompt returns silently with no
evident activity. Not sure what that's all about. So I tried from a MSYS
window, and things progress, but I get an error. I do not program in c, so
I don't know where to start looking for the solution.
thanks,
gary
$ ming32-make
[100%] Building CXX object CMakeFiles/automoc4.dir/kde4automoc.obj
In file included from
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/postypes.h:46,
from
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iosfwd:50,
from
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:70,
from
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/char_traits.h:46,
from
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/string:47,
from c:/KDE4/bin/../include/QtCore/qstring.h:56,
from c:/KDE4/bin/../include/QtCore/qobject.h:44,
from c:/KDE4/bin/../include/QtCore/qcoreapplication.h:41,
from c:/KDE4/bin/../include/QtCore/QCoreApplication:1,
from c:/KDE4/src/automoc-mingw-0.9.87-1/kde4automoc.cpp:26:
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cwchar:161:
error: `::swprintf' has not been declared
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cwchar:168:
error: `::vswprintf' has not been declared
In file included from
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:50,
from c:/KDE4/src/automoc-mingw-0.9.87-1/kde4automoc.cpp:44:
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1663:
error: declaration of C function `LONG InterlockedCompareExchange(volatile
LONG*, LONG, LONG)' conflicts with
c:/KDE4/bin/../include/QtCore/qatomic_windows.h:387: error: previous
declaration `long int InterlockedCompareExchange(long int*, long int, long
int)' here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1667:
error: declaration of C function `LONG InterlockedDecrement(volatile LONG*)'
conflicts with
c:/KDE4/bin/../include/QtCore/qatomic_windows.h:389: error: previous
declaration `long int InterlockedDecrement(long int*)' here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1668:
error: declaration of C function `LONG InterlockedExchange(volatile LONG*,
LONG)' conflicts with
c:/KDE4/bin/../include/QtCore/qatomic_windows.h:390: error: previous
declaration `long int InterlockedExchange(long int*, long int)' here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1672:
error: declaration of C function `LONG InterlockedExchangeAdd(volatile
LONG*, LONG)' conflicts with
c:/KDE4/bin/../include/QtCore/qatomic_windows.h:391: error: previous
declaration `long int InterlockedExchangeAdd(long int*, long int)' here
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1676:
error: declaration of C function `LONG InterlockedIncrement(volatile LONG*)'
conflicts with
c:/KDE4/bin/../include/QtCore/qatomic_windows.h:388: error: previous
declaration `long int InterlockedIncrement(long int*)' here
ming32-make[2]: *** [CMakeFiles/automoc4.dir/kde4automoc.obj] Error 1
ming32-make[1]: *** [CMakeFiles/automoc4.dir/all] Error 2
ming32-make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20081123/72e14ba7/attachment.html>
More information about the Digikam-users
mailing list