mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] libmatio static build


From: Michael Schellenberger Costa
Subject: Re: [Mingw-cross-env-list] libmatio static build
Date: Thu, 09 Apr 2015 09:47:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Timothy,

the user file i am talking about is from their sourceforge page:
http://sourceforge.net/projects/matio/files/matio/1.5.2/

matio_use_guide the examples are very simple

I used only the mxe packages. I edited hf5.mk in the mxe/src folder to
include the configure option "--enable-static-exec" as suggested by
their manual.

http://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/release_docs/INSTA
LL

I build your package it in the mxe folder with
make MXE_TARGETS='i686-w64-mingw32.static x86_64-w64-mingw32.static' hdf
5

In mxe/src/matio.mk i added "--enable-static" and "--enable-mat73=yes"
as configure option. I am unsure, in their user guide they give the
option "--with-hdf5=DIR"
I tried "--with-hdf5='$(PREFIX)'" "--with-hdf5='$(PREFIX)/$(TARGET)'"
and "--with-hdf5='$(PREFIX)/$(TARGET)/include'" but with no success.

Again I build it in the mxe folder with

make MXE_TARGETS='i686-w64-mingw32.static x86_64-w64-mingw32.static' mat
io

The qmake file i was talking about is from my own project, as I use
QTcreator.

Following the tutorial i then compiled my project (In my projects
folder) using

/PATH to MXE/usr/i686-w64-mingw32.static/qt/bin/qmake
make

It is worth mentioning, that the cross-compilation works fine if i
exclude the MATLAB interface (big thanks to you guys)

Best wishes
Michael

Am 09.04.2015 um 01:56 schrieb Timothy Gu:
> On Wed, Apr 8, 2015 at 4:53 PM Timothy Gu <address@hidden>
> wrote:
> 
>> Hi,
>> 
>> On Wed, Apr 8, 2015 at 1:33 AM Michael Schellenberger Costa < 
>> address@hidden> wrote:
>> 
>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>> 
>>> Hi all,
>>> 
>>> I am trying to cross compile some code including the matio
>>> MATLAB interface with mat file version 7.3. Sadly i am unable
>>> to make it compil e.
>>> 
>>> I tried the simplest possible testcase with the example code
>>> from the matio user_guide.
>>> 
>>> It compiles fine with qmake/make under linux/gcc. However if i
>>> try to cross compile I get a bunch of errors of the sort:
>>> 
>>> /opt/mxe/tmp-matio-x86_64-w64-mingw32.static/matio-1.5.2/src/mat.c:3
26:
>>>
>>> 
undefined
>>> reference to `H5Fclose'
>>> 
>>> I attached the full log.
>>> 
>>> I have tried to recompile HDF5 libraries with the 
>>> "--enable-static-exec" flag and setting
>>> "--with-hdf5='$(PREFIX)'" , '--enable-mat73=yes" and
>>> "--enable-static" for libmatio. However, with no success.
>>> 
>>> Any further recommendations?
>>> 
>> 
>> I'll take a look.
>> 
> 
> So I'm looking at
> http://sourceforge.net/p/matio/matio/ci/master/tree/
> 
> I don't see any user_guide or qmake files. Where is your qmake file
> from?
> 
> Also are you compiling HDF 5 libraries by yourself or using the
> hdf5 package?
> 
> Timothy
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJVJi6NAAoJECfkpCAi2eFKMvUH/0xbdhmJIG31zuTH4GzrThPi
DzKhd3MN9XuaPcOzHT0Lu+DIwy5yBYkTiztFUfDEED9GBoA/cfSFul/KaA46YAer
jkiraB39MwOdjNw7CtON09Dh2W0N/QSBS1S+n4H4NVKpFAfMdKmYTHYdloZs7m8O
SCqsvq5JSurK1rssO3RtII6xQFyQFP1G5r8OPeDSm/HUDR6rNZQemWqO9g6cDjWR
iap4yer8jNUl/iA0i21/MaSBFoLsN/h/qJ5ooh+W4vwkcDOH4Y/QWM2rr/BbsIE4
OEwJQxSxN9/x4cBI0VLa1jIX/ZotKyastKqypllZ55f/mVGfbb9Mvz9DrCe/Qfc=
=5j99
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]