[Clam-devel] Crosscompiling patch (work on progress)

David García Garzón dgarcia at iua.upf.edu
Tue May 15 08:22:16 PDT 2007


New patch version 6
Not the last one. we are getting runtime problems.

Any one wanting to help us to get it running that's the steps we did:

http://clam.iua.upf.edu/wikis/clam/index.php/Devel/Windows_MinGW_cross_compile

On Thursday 10 May 2007 19:58:27 David García Garzón wrote:
> Some minor changes on the patch to address some issues.
>
> On Tuesday 08 May 2007 23:46:09 David García Garzón wrote:
> > I finally got the applications (Annotator and NetEditor) cross linking.
> > Anyway they doesn't run properly. Qtvm examples and Annotator fail
> > because i have no DRI (i just noticed that) and NetworkEditor crashes
> > even earlier on configuration launcher factory initialization.
> >
> > The detailed step by step guide on how to get there is on the wiki:
> > http://clam.iua.upf.edu/wikis/clam/index.php/Devel/Windows_MinGW_cross_co
> >mp ile
> >
> > On the final linking step i had to cut and paste the link command
> > generated by scons and change the order of the libraries so that the
> > static ones (QtUiTool and clam_vmqt4) are placed before the dynamic ones.
> > (Self notice: use env.Prepend)
> >
> > Hopefully, tomorrow screenshots.
> >
> > On Monday 07 May 2007 15:47:56 David García Garzón wrote:
> > > Third patch, needed because it used linux naming conventions for dlls.
> > > Now it uses the windows' one but generates dll's instead of static
> > > libraries.
> > >
> > > On Dilluns 07 Maig 2007, David García Garzón wrote:
> > > > Update: now compilation goes farther: libclam_core and
> > > > libclam_processing compiles successfully. No time to see whether
> > > > libclam_audioio compiles, but probably it will fail when getting into
> > > > id3tag.
> > > >
> > > > I had to comment out Array init specializations for basic types as
> > > > they gave me duplicated symbols.
> > > >
> > > > Pau, could you compile id3tag and xercesc with mingw on the virtual
> > > > win box?
> > > >
> > > > $ cat CLAM/clam.conf
> > > > sandbox_path = '/home/vokimon/mingwtest/windows-external-libs'
> > > > xmlbackend = 'none'
> > > > with_fftw3 = 1
> > > > with_fftw = 0
> > > > with_id3 = 0
> > > > audio_backend = 'portaudio'
> > > >
> > > > On Dilluns 07 Maig 2007, David García Garzón wrote:
> > > > > Just to move the process from home to the office i send a patch on
> > > > > the work on progress crosscompilation. The patch is really ugly,
> > > > > adhoc and unsafe, don't commit it neither merge it your normal
> > > > > sandbox!!
> > > > >
> > > > > I successfully configured the following libraries
> > > > > pthreads: existing dll's
> > > > > libsndfile: existing dll's
> > > > > libogg existing dll's but adding mingw case at include/ogg/types.h
> > > > >    #include <io.h>
> > > > >    typedef int64_t ogg_int64_t;
> > > > >    typedef int32_t ogg_int32_t;
> > > > >    typedef uint32_t ogg_uint32_t;
> > > > >    typedef int16_t ogg_int16_t;
> > > > >    typedef uint16_t ogg_uint16_t;
> > > > > libvorbis: existing dll's
> > > > > libvorbisfile: existing dll's
> > > > > libmad: existing dll's
> > > > > fftw3: obtained as the wiki says
> > > > > portaudio: obtained as the wiki says (asiosdk+directx+portaudio)
> > > > >
> > > > > Some c++ libraries needs rebuild, and although they support mingw,
> > > > > they are hard to crosscompile without modification. For those i
> > > > > would prefer compile them on Pau's virtual windows box with a
> > > > > native mingw.
> > > > >
> > > > > To keep running i disabled them:
> > > > >
> > > > > $ cat clam.conf
> > > > > sandbox_path = '../../../windows-external-libs'
> > > > > xmlbackend = 'none'
> > > > > with_fftw3 = 1
> > > > > with_fftw = 0
> > > > > audio_backend = 'portaudio'


-------------- next part --------------
A non-text attachment was scrubbed...
Name: crosscompiling-6.patch
Type: text/x-diff
Size: 26135 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070515/34d60503/attachment-0004.patch>


More information about the clam-devel mailing list