[petsc-dev] cmake & --with-matlab build

Satish Balay balay at mcs.anl.gov
Tue Aug 23 15:54:38 CDT 2011


Perhaps we should pull it out to the toplevel 'matlab' target - which
does this build for both cases?

i.e

all:
  make all-cmake matlab
  or
  make all-legacy matlab

Also: [For Barry] from src/sys/viewer/impls/socket/matlab/makefile

>>>>>>>>>>
sread:  
        -@${MATLAB_MEX}  -g CC='${PCC}' CFLAGS='${COPTFLAGS} ${CC_FLAGS} ${CCPPFLAGS}' sread.c bread.c -lc
        -@${RM} -f sread.o bread.o
        -@${MV} sread.mex* ${PETSC_DIR}/bin/matlab
<<<<<<<,

Should these binaries be copied over to ${PETSC_DIR}/{PETSC_ARCH}/bin? [alternatively ${PETSC_DIR}/{PETSC_ARCH}/matlab/bin]

Satish



On Tue, 23 Aug 2011, Jed Brown wrote:

> IIRC, that part is basically shell script embedded in the makefile. If we
> make it structured, then the CMake build can do it, otherwise we would have
> to write a custom hack which would duplicate logic.
> On Aug 23, 2011 1:43 PM, "Satish Balay" <balay at mcs.anl.gov> wrote:
> > Jed,
> >
> > Looks like cmake does not do part of the matlab build..
> >
> >>>>>>>
> > libfast in: /sandbox/balay/petsc-dev/src/sys/viewer/impls/socket/matlab
> > BEGINNING TO COMPILE MATLAB INTERFACE
> >
> > Warning: You are using gcc version "4.4.3-4ubuntu5)". The version
> > currently supported with MEX is "4.3.4".
> > For a list of currently supported compilers see:
> > http://www.mathworks.com/support/compilers/current_release/
> >
> >
> > Warning: You are using gcc version "4.4.3-4ubuntu5)". The version
> > currently supported with MEX is "4.3.4".
> > For a list of currently supported compilers see:
> > http://www.mathworks.com/support/compilers/current_release/
> >
> >
> > Warning: You are using gcc version "4.4.3-4ubuntu5)". The version
> > currently supported with MEX is "4.3.4".
> > For a list of currently supported compilers see:
> > http://www.mathworks.com/support/compilers/current_release/
> >
> >
> > Warning: You are using gcc version "4.4.3-4ubuntu5)". The version
> > currently supported with MEX is "4.3.4".
> > For a list of currently supported compilers see:
> > http://www.mathworks.com/support/compilers/current_release/
> >
> > libfast in:
> /sandbox/balay/petsc-dev/src/sys/viewer/impls/socket/ftn-custom
> > <<<<<<<
> >
> > Satish
> >
> 




More information about the petsc-dev mailing list