[Digikam-users] windows build compiler error

Gary Pajer gary.pajer at gmail.com
Sun Nov 23 21:29:22 GMT 2008


On Sun, Nov 23, 2008 at 4:20 PM, Gary Pajer <gary.pajer at gmail.com> wrote:

> Thanks for the fast reply.  But your conclusion may be made too fast ...
>
> I had a previous installation of MinGW on my system, and then I used the
> KDE installer to re-install it ... probably not a good idea.  So it's not a
> good idea to conclude from my experience that the installer is at fault.
> (But it might be.)
>
> I will uninstall MinGW, and then reinstall it using the MinGW installer,
> from the MinGW web site.  I'll let you know what happens.
>
> -gary


I removed MSYS and MinGW, and then reinstalled MinGW (but not MSYS)
including MinGW make from the latest installer from the MinGW website.

Same error.   This is MinGW 3.4.5




>
>
> On Sun, Nov 23, 2008 at 3:15 PM, Gilles Caulier <caulier.gilles at gmail.com>wrote:
>
>> Ah,
>>
>> Wonderfull. this is duing to a broken MinGW compiler install on your
>> computer. I have already lost a waste of time about...
>>
>> I have reported this problem to Patrick who maintains KDE Windows project.
>>
>> Here, i have a version of MinGW compiler which work perfectly. I can send
>> you an archive. But the best way is to  solve the real problem with KDE
>> installer.
>>
>> I CC Patrick to guide you (I'm not sure if he is registered to this ML)
>>
>> Best
>>
>> Gilles Caulier
>>
>> 2008/11/23 Gary Pajer <gary.pajer at gmail.com>
>>
>>>  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
>>>
>>>
>>> _______________________________________________
>>> Digikam-users mailing list
>>> Digikam-users at kde.org
>>> https://mail.kde.org/mailman/listinfo/digikam-users
>>>
>>>
>>
>> _______________________________________________
>> Digikam-users mailing list
>> Digikam-users at kde.org
>> https://mail.kde.org/mailman/listinfo/digikam-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20081123/6f816362/attachment.html>


More information about the Digikam-users mailing list