Unable to install FreeMat 3.6

52 views
Skip to first unread message

Yossarian

unread,
Jun 16, 2008, 3:20:56 PM6/16/08
to freemat
Hi all,

Ive been trying to install FreeMat 3.6 on my Linux machine, running
Mandriva 2008.1 (Spring).

when running as root ./configure from the library of the source code,
I get the following messages:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for ranlib... ranlib
checking whether ln -s works... yes
configure: Configuring for non-cross unix build
checking for pkg-config... /usr/bin/pkg-config
checking for QtCore QtGui QtOpenGL QtNetwork QtXml QtSvg >= 4.3.0...
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for working curses... no
checking for working ncurses... no
configure: Set QT_CFLAGS...
configure: Win32 flag is false
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran... -L/usr/lib/gcc/i586-
manbo-linux-gnu/4.2.3 -L/usr/lib/gcc/i586-manbo-linux-gnu/
4.2.3/../../.. -lgfortranbegin -lgfortran -lm

configure: error: Qt4 is required. If you have Qt installed see --
help for more options

And that's it. What did I do wrong and how can I fix it? I'd really
like to give it a try.

Thanks,
Uri

Cyclops

unread,
Jun 18, 2008, 9:58:50 AM6/18/08
to freemat
I'm encountering the same problem when trying to built on an
Ubuntu8.4. I have installed all the QT4-packages, but I get the same
error-report.

pkg-config --list-all however doesn't show me QT4-packages, although a
lot of other QT-packages are shown (Even a QT3Support-package). Is
this a packaging-problem? How can we solve this?

Thanks,
Bernard

Cyclops

unread,
Jun 19, 2008, 1:58:29 AM6/19/08
to freemat
To be more specific about the packages installed.
pkg-config --list-all | grep "QT*"
sqlite SQLite - SQL database engine
QtCore Qtcore - Qtcore Library
QtScript Qtscript - Qtscript Library
QtXmlPatterns Qtxmlpatterns - Qtxmlpatterns Library
QtDesignerComponents Qtdesignercomponents - Qtdesignercomponents
Library
QtSql Qtsql - Qtsql Library
QtDBus Qtdbus - Qt DBus module
QtTest Qttest - Qt Unit Testing Library
QtSvg Qtsvg - Qtsvg Library
QtUiTools Qtuitools - Qtuitools Library
QtHelp Qthelp - Qthelp Library
QtNetwork Qtnetwork - Qtnetwork Library
QtAssistantClient Qtassistantclient - Qtassistantclient Library
QtDesigner Qtdesigner - Qtdesigner Library
QtWebKit Qtwebkit - Qtwebkit Library
QtXml Qtxml - Qtxml Library
Qt3Support Qt3support - Qt3support Library
QtCLucene Qtclucene - Qtclucene Library
QtGui Qtgui - Qtgui Library

Chuong

unread,
Jun 19, 2008, 4:57:24 AM6/19/08
to freemat
Hi Bernard and Yossarian,

I am using FreeMat on Ubuntu 8.04. Before compiling FreeMat 3.6, I
have to install these packages:

- build-essential
- Qt4 components: libqt4-core, libqt4-dev, qt4-dev-tools, etc
- automake & autoconfig
- g77
- liblapack-dev
- libblas-dev
- libfftw3-dev
- libffcall1-dev
- libpcre3-dev
- libportaudio-dev
- lib32ncurses5-dev
- libsuitesparse-dev, then create a link by running this:
$cd /usr/include
$sudo ln -s suitesparse/ amd
- download llvm-2.1at http://llvm.org/releases/2.1/llvm-2.1.tar.gz ,
then compile and install with sudo

Finally you have to run configure again for FreeMat to see the new
packages. Also note that for a PC where both qt3 and qt4 coexist,
there are usually compiling problems when the default Qt executables
are pointing to those of qt3, instead of qt4.

I hope there will FreeMat packages for major Linux distros to simplify
the installation procedures. It looks like FreeMat has been proposed
to include in Ubuntu but no result yet (http://brainstorm.ubuntu.com/
idea/8566/).

Cheers,

Chuong

Cyclops

unread,
Jun 19, 2008, 5:59:58 AM6/19/08
to freemat
Hi Chuong,

Thank you very much for providing us this valuable information.
I installed lib64ncurses5-dev iso lib32ncurses-dev.

I stumbled upon a problem when installing llvm.
llvm[1]: Compiling Timer.cpp for Release build
llvm[1]: Building Release Archive Library libLLVMSupport.a
llvm[1]: Installing Release Archive Library /usr/local/lib/
libLLVMSupport.a
make[1]: Leaving directory `/home/bedc/Downloads/llvm-2.1/lib/Support'
make[1]: Entering directory `/home/bedc/Downloads/llvm-2.1/lib/VMCore'
make[1]: *** No rule to make target `/home/bedc/Downloads/llvm-2.1/
Release/bin/tblgen', needed by `/home/bedc/Downloads/llvm-2.1/lib/
VMCore/Release/Intrinsics.gen.tmp'. Stop.
make[1]: Leaving directory `/home/bedc/Downloads/llvm-2.1/lib/VMCore'
make: *** [install] Error 1

Building freemat still gives errors
checking whether g77 accepts -g... yes
checking how to get verbose linking output from g77... -v
checking for Fortran 77 libraries of g77... -L/usr/lib/gcc/i486-linux-
gnu/3.4.6 -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib -L/usr/
lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib -
lcurses -lfrtbegin -lg2c -lm

configure: error: Qt4 is required. If you have Qt installed see --
help for more options

I have a pc where both qt3 and qt4 exist.

Samit Basu

unread,
Jun 19, 2008, 9:38:39 AM6/19/08
to fre...@googlegroups.com
Hi folks,

It's possible that your Qt problems are version related. If you run

pkgconfig --modversion QtCore

what do you get? FreeMat 3.6 uses the SVG output capability from Qt
4.3, so it has a dependency on at least 4.3.0.

Samit

Yossarian

unread,
Jun 19, 2008, 3:29:36 PM6/19/08
to freemat
Running Mandriva, I get:
bash: pkgconfig: command not found

Cyclops

unread,
Jun 20, 2008, 5:36:47 AM6/20/08
to freemat
Hi,

I installed libqt4-opengl-dev.

then pkg-config --modversion QtCore
4.4.0

configure now exits successfully

make starts building the project, but fails after a while

cc/i486-linux-gnu/3.4.6 -L/usr/lib/gcc/i486-linux-gnu/
3.4.6/../../../../lib -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/
lib/../lib -L/usr/lib/../lib -lcurses -lQtCore -lQtGui -lQtOpenGL -
lQtNetwork -lQtXml -lQtSvg -lfrtbegin -lg2c -lm -lcurses
../libs/libGraphics/libGraphics.a(GLRenderEngine.o): In function
`GLRenderEngine::lookAt(double, double, double, double, double,
double, double, double, double)':
/home/bedc/Downloads/FreeMat-3.6/build/libs/libGraphics/../../../libs/
libGraphics/GLRenderEngine.cpp:85: undefined reference to `gluLookAt'
../libs/libGraphics/libGraphics.a(GLRenderEngine.o): In function
`GLRenderEngine::toPixels(double, double, double, double&, double&)':
/home/bedc/Downloads/FreeMat-3.6/build/libs/libGraphics/../../../libs/
libGraphics/GLRenderEngine.cpp:61: undefined reference to `gluProject'
collect2: ld returned 1 exit status
make[2]: *** [FreeMat] Error 1
make[2]: Leaving directory `/home/bedc/Downloads/FreeMat-3.6/build/
src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/bedc/Downloads/FreeMat-3.6/build/
src'
make: *** [all-recursive] Error 1

I installed some more packages but no avail. Does anyone know what
package is still missing ?
pkg-config --list-all | grep "Qt"
QtDesignerComponents Qtdesignercomponents - Qtdesignercomponents
Library
qt-mt Qt - Libqt-mt.so.3.3.8 Library
QtGui Qtgui - Qtgui Library
QtSql Qtsql - Qtsql Library
QtWebKit Qtwebkit - Qtwebkit Library
QtXmlPatterns Qtxmlpatterns - Qtxmlpatterns Library
QtNetwork Qtnetwork - Qtnetwork Library
QtScript Qtscript - Qtscript Library
QtTest Qttest - Qt Unit Testing Library
QtAssistantClient Qtassistantclient - Qtassistantclient Library
QtCLucene Qtclucene - Qtclucene Library
QtHelp Qthelp - Qthelp Library
QtDesigner Qtdesigner - Qtdesigner Library
QtXml Qtxml - Qtxml Library
QtUiTools Qtuitools - Qtuitools Library
QtCore Qtcore - Qtcore Library
QtOpenGL Qtopengl - Qtopengl Library
QtDBus Qtdbus - Qt DBus module
QtSvg Qtsvg - Qtsvg Library
Qt3Support Qt3support - Qt3support Library





Cyclops

unread,
Jun 20, 2008, 3:17:57 AM6/20/08
to freemat
I could complete the make after installing package libqt4-opengl-dev

pkg-config --modversion QtCore
4.4.0

I have no the following Qt-packages installed:
pkg-config --list-all | grep "Qt"
QtDesignerComponents Qtdesignercomponents - Qtdesignercomponents
Library
QtGui Qtgui - Qtgui Library
QtSql Qtsql - Qtsql Library
QtWebKit Qtwebkit - Qtwebkit Library
QtXmlPatterns Qtxmlpatterns - Qtxmlpatterns Library
QtNetwork Qtnetwork - Qtnetwork Library
QtScript Qtscript - Qtscript Library
QtTest Qttest - Qt Unit Testing Library
QtAssistantClient Qtassistantclient - Qtassistantclient Library
QtCLucene Qtclucene - Qtclucene Library
QtHelp Qthelp - Qthelp Library
QtDesigner Qtdesigner - Qtdesigner Library
QtXml Qtxml - Qtxml Library
QtUiTools Qtuitools - Qtuitools Library
QtCore Qtcore - Qtcore Library
QtOpenGL Qtopengl - Qtopengl Library
QtDBus Qtdbus - Qt DBus module
QtSvg Qtsvg - Qtsvg Library
Qt3Support Qt3support - Qt3support Library

However the make install-procedure fails. It starts compiling the
sources, but stops after a while
with the following report:


mv -f .deps/FreeMat_qrc.Tpo .deps/FreeMat_qrc.Po
g++ -g -O2 -I/usr/include/amd -o FreeMat application.o FuncMode.o
FuncTerminal.o MainApp.o main.o DumbTerminal.o Terminal.o
application.moc.o FuncMode.moc.o MainApp.moc.o Terminal.moc.o
DumbTerminal.moc.o FreeMat_qrc.o ../libs/libCore/libCore.a ../libs/
libFN/libFN.a ../libs/libGraphics/libGraphics.a ../libs/libFreeMat/
libFreeMat.a ../libs/libXP/libXP.a ../libs/libMex/libMex.a ../libs/
libMatC/libMatC.a -lz -larpack -lfftw3 -lfftw3f -lumfpack -lamd -
llapack -lblas -lavcall -lpcre -lportaudio -lcurses -lQtCore -lQtGui
-lQtOpenGL -lQtNetwork -lQtXml -lQtSvg -L/usr/lib/gcc/i486-linux-
gnu/3.4.6 -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib -L/usr/
lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib -
lcurses -lQtCore -lQtGui -lQtOpenGL -lQtNetwork -lQtXml -lQtSvg -
lfrtbegin -lg2c -lm -lcurses
../libs/libGraphics/libGraphics.a(GLRenderEngine.o): In function
`GLRenderEngine::lookAt(double, double, double, double, double,
double, double, double, double)':
/home/bedc/Downloads/FreeMat-3.6/build/libs/libGraphics/../../../libs/
libGraphics/GLRenderEngine.cpp:85: undefined reference to `gluLookAt'
../libs/libGraphics/libGraphics.a(GLRenderEngine.o): In function
`GLRenderEngine::toPixels(double, double, double, double&, double&)':
/home/bedc/Downloads/FreeMat-3.6/build/libs/libGraphics/../../../libs/
libGraphics/GLRenderEngine.cpp:61: undefined reference to `gluProject'
collect2: ld returned 1 exit status
make[2]: *** [FreeMat] Error 1
make[2]: Leaving directory `/home/bedc/Downloads/FreeMat-3.6/build/
src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/bedc/Downloads/FreeMat-3.6/build/
src'
make: *** [all-recursive] Error 1

Please give me another hint.





On 19 jun, 15:38, "Samit Basu" <basu.sa...@gmail.com> wrote:
> Hi folks,
>
> It's possible that your Qt problems are version related.  If you run
>
> pkgconfig --modversion QtCore
>
> what do you get?  FreeMat 3.6 uses the SVG output capability from Qt
> 4.3, so it has a dependency on at least 4.3.0.
>
> Samit
>
Message has been deleted

Samit Basu

unread,
Jun 29, 2008, 5:28:41 PM6/29/08
to fre...@googlegroups.com
Hi Cyclops,

Thanks for your perseverance -- if you haven't already done so, you
may want to post a mini-howto on the google wiki.

Samit

On Thu, Jun 19, 2008 at 11:04 PM, Cyclops <bernard...@visionbms.com> wrote:
>
> Hi,
>
> After pkg-command --modversion QTCore; I get 4.4.0.
>
> After installing package libqt4-opengl-dev I was able to compile the
> project.
>
> >
>

Cyclops

unread,
Jun 30, 2008, 8:52:47 AM6/30/08
to freemat
Hey Samit,

What do you exactly mean with "you
may want to post a mini-howto on the google wiki."?

I was able to make and install the project llvm as Chuong has proposed
to do so.

Then make clean
../configure -v --prefix=/home/myhomedirectory

make install failed. I coluld not compile the file GLRenderEngine.cpp.

I commented out 2 function-calls (in order to give it a try :-)):

void GLRenderEngine::toPixels(double x, double y, double z,
double &a, double &b) {
double c1, c2, c3;
// gluProject(x,y,z,model,proj,viewp,&c1,&c2,&c3); <--- compiler
could not find this call
a = c1;
b = c2;
}

and

void GLRenderEngine::lookAt(double px, double py, double pz,
double tx, double ty, double tz,
double ux, double uy, double uz) {
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
// gluLookAt(px,py,pz,tx,ty,tz,ux,uy,uz);
glGetDoublev(GL_MODELVIEW_MATRIX,model);
}

then everything compiled all right. Will I guess something will go
wrong else these lines
were rather superfluous ???

I can use Freemat now on Ubuntu8.04

Regards,
Bernard




On 29 jun, 23:28, "Samit Basu" <basu.sa...@gmail.com> wrote:
> Hi Cyclops,
>
> Thanks for your perseverance -- if you haven't already done so, you
> may want to post a mini-howto on the google wiki.
>
> Samit
>

Samit Basu

unread,
Jun 30, 2008, 10:22:07 PM6/30/08
to fre...@googlegroups.com
Hi Bernard,

Sorry - I thought you had a list of packages that needed to be
pre-installed on Ubuntu to get FreeMat to compile. As for the two
lines you commented out, they are harmless. FreeMat has an
OpenGL-based rendering engine, but commenting out those lines won't
hurt anything as the engine has been disabled for some time.

Samit

little hacksaw

unread,
Jul 16, 2008, 3:26:58 AM7/16/08
to freemat
Hi Bernard/Samit: thought I'd let you know that my install of FreeMat
barfed, with the same errors as you posted on June 20 Bernard; I'm
running Debian Lenny. Is it an omission from the configure file that
is not picking something up? Is there an alternative to omitting lines
from the make (e.g., install a package)?
Cheers,
Kate

Giuseppe Iuculano

unread,
Jul 16, 2008, 12:51:46 PM7/16/08
to freemat
Hi,

On 16 Lug, 09:26, little hacksaw <kate.g.gor...@gmail.com> wrote:
> barfed, with the same errors as you posted on June 20 Bernard; I'm
> running Debian Lenny.  Is it an omission from the configure file that

freemat is now in debian sid, the 20 July should be enter in testing
(lenny).


Giuseppe.
Reply all
Reply to author
Forward
0 new messages