[clam-devel] error setup linux with Devel/Windows MinGW cross compile

Luciano Marfil luchomarfil at gmail.com
Fri Apr 16 08:33:15 PDT 2010


changing: "wget-c
ftp://ftp.trolltech.com/qt/source/qt-win-opensource-4.4.3-mingw.exe"
by: "wget-c
ftp://ftp.trolltech.com/qt/source/qt-win-opensource-4.5.3-mingw.exe"

The error is gone. But I had to change all references in the tutorial for QT
4.4.3.
to 4.5.3
Then, when I run the following command to continue the compilation:
"Cd $ MINGWSANDBOX / clam / CLAM / plugins / continuousExcitationSynthesizer
scons install clam_prefix = $ MINGWSANDBOX / local crossmingw = 1 "
 an error occurs:
"
== Linking ContinuousExcitationSynthesizer.exe
ContinuousExcitationSynthesizer.o: / home / fight / mingw / clam / CLAM /
plugins / continuousExcitationSynthesizer /
ContinuousExcitationSynthesizer.cxx: 61: undefined reference to `CLAM::
AudioManager:: AudioManager (int, int) '
ContinuousExcitationSynthesizer.o: In function `ProcessingConfig ':
/ Home / fight / mingw / local / include / CLAM / ProcessingConfig.hxx: 48:
undefined reference to `CLAM:: DynamicType:: DynamicType (int) '
ContinuousExcitationSynthesizer.o: In function
`_ZN4CLAM13AudioIOConfig9AddDeviceEv ':
/ Home / fight / mingw / local / include / CLAM / AudioIO.hxx: 55: undefined
reference to `CLAM:: DynamicType:: AddAttr_ (unsigned int, unsigned int) '
ContinuousExcitationSynthesizer.o: In function
`_ZN4CLAM13AudioIOConfig12AddChannelIDEv ':
.......etc,etc
"

Luciano

2010/4/15 David García Garzón <david.garcia at barcelonamedia.org>

> I remember having such error: qt duplicating mingw atomic headers, but I am
> not sure on how did i solve it. You are using a quite old Qt version, try
> using the qt version I suggested in my previous mail. I remember that i had
> problems either previous versions (maybe because this error, or others) and
> with later versions (because the exception handling).
>
> David.
>
>
> On Thursday 15 April 2010 08:16:26 Luciano Marfil wrote:
> > Following your advice, I stayed in Karmic version, I modified the
> > "apt-sources" and then I followed the tutorial, no errors. But when
> > running: "Cd $ MINGWSANDBOX / clam / Annotator /
> > QTDIR = ~ / .wine/drive_c/Qt/4.4.3 / scons prefix = $ MINGWSANDBOX /
> local
> > clam_prefix = $ MINGWSANDBOX / local external_dll_path = $ MINGWSANDBOX /
> > local / bin crossmingw = 1 package "
> >
> >
> > I get the following error:
> >
> > "/
> >
> Usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/inclu
> > de/winbase.h: 1681: error: declaration of C function 'LONG
> > InterlockedCompareExchange (volatile LONG *, LONG, LONG)' creates a
> > conflict with /
> >
> Home/luciano/.wine/drive_c/Qt/4.4.3/include/QtCore/../../src/corelib/arch/
> > qatomic_windows.h: 387: error: previous declaration of 'long int
> > InterlockedCompareExchange (long int *, long int, long int) 'here /
> >
> Usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/inclu
> > de/winbase.h: 1685: error: declaration of C function ' LONG
> > InterlockedDecrement (volatile LONG *) 'creates a conflict with /
> >
> Home/luciano/.wine/drive_c/Qt/4.4.3/include/QtCore/../../src/corelib/arch/
> > qatomic_windows.h: 389: error: previous declaration of 'long int
> > InterlockedDecrement (long int *) 'here /
> >
> Usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/inclu
> > de/winbase.h: 1686: error: declaration of C function ' LONG
> > InterlockedExchange (volatile LONG *, LONG) 'creates a conflict with /
> >
> Home/luciano/.wine/drive_c/Qt/4.4.3/include/QtCore/../../src/corelib/arch/
> > qatomic_windows.h: 390: error: previous declaration of 'long int
> > InterlockedExchange (long int *, long int) 'here /
> >
> Usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/inclu
> > de/winbase.h: 1690: error: declaration of C function ' LONG
> > InterlockedExchangeAdd (volatile LONG *, LONG) 'creates a conflict with /
> >
> Home/luciano/.wine/drive_c/Qt/4.4.3/include/QtCore/../../src/corelib/arch/
> > qatomic_windows.h: 391: error: previous declaration of 'long int
> > InterlockedExchangeAdd (long int *, long int) 'here /
> >
> Usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/inclu
> > de/winbase.h: 1694: error: declaration of C function ' LONG
> > InterlockedIncrement (volatile LONG *) 'creates a conflict with /
> >
> Home/luciano/.wine/drive_c/Qt/4.4.3/include/QtCore/../../src/corelib/arch/
> > qatomic_windows.h: 388: error: previous declaration of 'long int
> > InterlockedIncrement (long int *) 'here
> >
> > 2010/4/14 David García Garzón
> > <david.garcia at upf.edu<mailto:david.garcia at upf.edu>>
> >
> > A Dimecres 14 Abril 2010 03:53:45, Luciano Marfil va escriure:
> > > > On Tuesday 13 April 2010 19:49:30 Luciano Marfil wrote:
> > > > > Hello, I tried to follow the tutorial
> > > > > http://clam-project.org/wiki/Devel/Windows_MinGW_cross_compile to
> > > > > configure my linux environment to compile CLAM libraries and can
> use
> > > > > them on Windows. But I'm not sure you're doing things correctly,
> like
> > > > > I had problems trying to install GTK on wine, because my wine
> > > > > version: 1.0.1 version does not support such high
> > > > > gtkmm-win32-devel-2.10.11- 1.
> > > >
> > > > high? what does it means?
> > >
> > > I meant that there is a bug in the GTK package with Wine version 1.0.1.
> > > This bug is fixed in the latest wine version, version 1.1.39. This wine
> > > is not available in Karmic, because the highest version available in
> the
> > > repositories for Wine is 1.1.32.
> > >
> > > I know that one solution might be to compile the package from source
> > > code, but I choose to install Lucyd. Then follow the tutorial "WinMg
> > > cross compile"
> >
> > No need to jump to lucid beta if you want just one package. Here goes a
> > trick to have a quick backport:
> >
> > - Change just the 'deb-src' entries in /etc/apt/source.list to lucid (not
> > the 'deb' ones)
> > - apt-get source wine1.2 # download the source package
> > - cd wine1.2-1.1.42
> > - sudo apt-get build-dep wine1.2 # installs dependencies, if some
> > dependency is missing, then we should also backport it first)
> > - fakeroot dpkg-buildpackage # builds the source package
> > - cd ..
> > - dpkg -i *deb
> >
> > David.
> >
> >
> >
> >
> >
> > --
> > David García Garzón
> > (Work) david dot garcia at upf anotherdot edu
> > http://www.iua.upf.edu/~dgarcia <http://www.iua.upf.edu/%7Edgarcia><
> http://www.iua.upf.edu/%7Edgarcia>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20100416/acfbabca/attachment-0004.htm>


More information about the clam-devel mailing list