getfem-users
[Top][All Lists]
Advanced

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

Re: [Getfem-users] Problem installing getfem toolbox for Matlab 7.1


From: Renard Yves
Subject: Re: [Getfem-users] Problem installing getfem toolbox for Matlab 7.1
Date: Thu, 23 Sep 2010 11:17:07 +0200
User-agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.2)


Dear Arvind,

I don't remember clearly but I think that that the use of mwSize and mwIndex has been added for the compatibility with 64bit machines. It it possible that using an old version of gfm_common.c (namely revision 2722) this solves the problem. I attached the revision 2722. I hope it is still compatible but I am not sure.

Yves.




Arvind Ajoy <address@hidden> a écrit :

Dear Yves,

Thank you for your input. Unfortunately, the problem remains
unresolved. Specifically, the problem seems to be a linker error with
mex, corresponding to largeArrayDims. Additionally,
http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9
seems to mention that largeArrayDims is included only from Matlab7.3
upwards. Couls this be the source of the problem I am facing? If so,
is there a workaround?

Details are as below ....

Including in gfm_common.c,
typedef size_t    mwSize;
typedef size_t    mwIndex;

mex -largeArrayDims -output gf_matlab -g CDEBUGFLAGS="-O3" LD="g++" \
        -I. -I./.. -DMATLAB_RELEASE=14 \
        ./gfm_mex.c ./gfm_common.c ./../gfi_array.c \
        ../.libs/libgetfemint.a ../../../src/.libs/libgetfem.a  -lblas
-llapack   || (rm gf_matlab.mexa64; false)
./gfm_common.c: In function ?mxarray_to_gfi_array?:
./gfm_common.c:144: warning: assignment from incompatible pointer type
./gfm_common.c:157: warning: assignment from incompatible pointer type
./gfm_common.c: In function ?gfi_array_to_mxarray?:
./gfm_common.c:260: warning: passing argument 2 of
?mxCreateNumericArray? from incompatible pointer type
./gfm_common.c:271: warning: passing argument 2 of
?mxCreateNumericArray? from incompatible pointer type
./gfm_common.c:279: warning: passing argument 2 of
?mxCreateNumericArray? from incompatible pointer type
./gfm_common.c:294: warning: passing argument 2 of ?mxCreateCellArray?
from incompatible pointer type
./gfm_common.c:304: warning: passing argument 2 of
?mxCreateStructArray? from incompatible pointer type
./gfm_common.c:310: warning: passing argument 2 of
?mxCreateNumericArray? from incompatible pointer type
./gfm_common.c:315: warning: passing argument 2 of
?mxCreateNumericArray? from incompatible pointer type
./gfm_common.c:333: warning: assignment from incompatible pointer type
./gfm_common.c:341: warning: assignment from incompatible pointer type
/usr/bin/ld: cannot find -largeArrayDims
collect2: ld returned 1 exit status

    mex: link of 'gf_matlab.mexa64' failed.
----------------------------------------------------------------------------------------------------------------------------------------------------
Including
typedef int mwSize;
typedef int mwIndex;
yields the same error. Tehre are however no warning messages as above.

==========================================================================

Regards

Arvind


On Tue, Sep 21, 2010 at 1:10 PM, Yves Renard <address@hidden> wrote:

Dear Arvind,

In mex.h, mwSize and mwIndex are defined by
typedef int mwSize;
typedef int mwIndex;
for 32-bits machines and
typedef size_t    mwSize;
typedef size_t    mwIndex;
for 64-bits ones.

You can add one of the two pairs of definitions at the begining of gfm_common.c
and see if it fixes the problem.

Yves.



On lundi 20 septembre 2010, Arvind Ajoy wrote:
Dear Users,

I have been using getfem happily for the last year and a half on my
PC. I run Debian 5.0 + Matlab 7.4 on this system.

I intend to use getfem on a computer with better resources.
Unfortunately, this machine has only Matlab7.1 installed on it. I do
not have permission to change the version of Matlab on this system.

Using gcc-4.1.2 and Matlab 7.1.0.183 (R14), with the following

./configure --prefix=/sfs1/phd/ee06d006/tools/getfem-4.0.0
--enable-matlab --enable-shared --with-pic

I get the following error when compiling getfem-matlab on this system ...

mex -largeArrayDims -output gf_matlab -g CDEBUGFLAGS="-O3" LD="g++" \
      -I. -I./.. -DMATLAB_RELEASE=14 \
      ./gfm_mex.c ./gfm_common.c ./../gfi_array.c \
      ../.libs/libgetfemint.a ../../../src/.libs/libgetfem.a  -lblas
-llapack   || (rm gf_matlab.mexa64; false)
./gfm_common.c: In function ?mxarray_to_gfi_array?:
./gfm_common.c:66: error: ?mwSize? undeclared (first use in this function)
./gfm_common.c:66: error: (Each undeclared identifier is reported only once
./gfm_common.c:66: error: for each function it appears in.)
./gfm_common.c:66: error: expected ?;? before ?n2?
./gfm_common.c:67: error: ?n2? undeclared (first use in this function)
./gfm_common.c:72: error: expected ?;? before ?i?
./gfm_common.c:76: error: ?i? undeclared (first use in this function)
./gfm_common.c:134: error: ?mwIndex? undeclared (first use in this
function) ./gfm_common.c:134: error: ?ptr2? undeclared (first use in this
function) ./gfm_common.c:213: error: ?pm? undeclared (first use in this
function) ./gfm_common.c:217: error: expected expression before ?)? token
./gfm_common.c: In function ?gfi_array_to_mxarray?:
./gfm_common.c:238: error: ?mwSize? undeclared (first use in this function)
./gfm_common.c:238: error: expected ?;? before ?ndim2?
./gfm_common.c:243: error: ?ndim2? undeclared (first use in this function)
./gfm_common.c:244: error: ?dim2? undeclared (first use in this function)
./gfm_common.c:297: error: expected ?;? before ?j?
./gfm_common.c:300: error: ?j? undeclared (first use in this function)
./gfm_common.c:301: error: expected ?)? before ?mwSize?
./gfm_common.c:307: error: expected ?)? before ?mwSize?
./gfm_common.c:309: error: ?i2? undeclared (first use in this function)
./gfm_common.c:312: error: expected ?)? before ?mwSize?
./gfm_common.c:322: error: ?mwIndex? undeclared (first use in this
function) ./gfm_common.c:322: error: expected ?;? before ?d1?
./gfm_common.c:323: error: ?pr2? undeclared (first use in this function)
./gfm_common.c:325: error: ?d1? undeclared (first use in this function)
./gfm_common.c:326: error: ?d2? undeclared (first use in this function)
./gfm_common.c:327: error: ?nnz? undeclared (first use in this function)

    mex: compile of './gfm_common.c' failed.

rm: cannot remove `gf_matlab.mexa64': No such file or directory
make[5]: *** [gf_matlab.mexa64] Error 1
make[5]: Leaving directory
`/sfs1/phd/ee06d006/tools/getfem-4.0.0/interface/src/matlab'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/sfs1/phd/ee06d006/tools/getfem-4.0.0/interface/src/matlab'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/sfs1/phd/ee06d006/tools/getfem-4.0.0/interface/src' make[2]: ***
[all-recursive] Error 1
make[2]: Leaving directory
`/sfs1/phd/ee06d006/tools/getfem-4.0.0/interface' make[1]: ***
[all-recursive] Error 1
make[1]: Leaving directory `/sfs1/phd/ee06d006/tools/getfem-4.0.0'
make: *** [all] Error 2


I would be very happy if anyone has inputs on how I should proceed.


Regards

Arvind

_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users


--

 Yves Renard (address@hidden)       tel : (33) 04.72.43.87.08
 Pole de Mathematiques, INSA-Lyon             fax : (33) 04.72.43.85.29
 20, rue Albert Einstein
 69621 Villeurbanne Cedex, FRANCE
 http://math.univ-lyon1.fr/~renard

---------




Attachment: gfm_common.c
Description: Text Data


reply via email to

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