[vtkusers] Problems with vtk and matlab

Dominik Szczerba domi at vision.ee.ethz.ch
Wed Nov 28 09:44:48 EST 2007


You did not seem to have read my previous email. I have written it is not the 
question of the older version. Your gcc is not visible to the scipt at all. 
Send us the output from typing 'gcc -v' on the command line.
-- Dominik

On Wednesday 28 November 2007 15.23:28 Corinne Bachmann wrote:
> Hi all
>
> I installed now an older version of gcc (4.0.0) and defined the gcc and
> g++ in mexopts.sh and engopts.sh like this:
>
>
> CC='/usr/lib/gcc/i586-suse-linux/4.0.0/bin/gcc'
> CXX='/usr/lib/gcc/i586-suse-linux/4.0.0/bin/g++'
>
>
> I now get the error:
>
>
> mex  -O -I/usr/local/include/vtk-5.0/ vtkPolyDataRenderer.cpp
> -L/usr/local/lib/vtk-5.0 -lvtkFiltering -lvtkRendering
> gcc: ...: No such file or directory
>
>     mex: compile of '/opt/usr/matlab/extern/src/mexversion.c' failed.
>
>
> Should I address matlab with this problem, or can somebody here help me?
> I was searching the matlab archive but I could not find anything there
> yet.
>
> Thanks for any help,
> Corinne
>
> On Mon, 2007-11-26 at 11:37 +0100, Dominik Szczerba wrote:
> > Yes, the first thing I would try is the older version of gcc. If you are
> > on linux this is trivial, just make sure the older version is installed
> > in the system (easy on most platforms) and edit the mex configuration
> > script to replace gcc / g++ with things like gcc-4.0 or so.
> > On Windows I have no idea, but can not imagine this is not possible.
> > Note, this limitation comes from Matlab.
> > bye
> > -- Dominik



-- 
Dominik Szczerba, Ph.D.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list