help-octave
[Top][All Lists]
Advanced

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

Re: octave build issue -- error in fltk-backend.


From: Alonso Escobar
Subject: Re: octave build issue -- error in fltk-backend.
Date: Tue, 17 Aug 2010 15:38:02 -0700 (PDT)

Me too!, I've got the same problem. I'm running on a:

CPU: Turion 64 x2 TL-60
gcc/gfortran 4.4.1 (latest available at the Mandriva reposteries )
OS :  Mandriva 2010
fltk:  1.3.x-r7677 (just compiled, "fluid" works )

Flags for the C++ compiler:
-O3 -fno-tree-vectorize -pipe -march=native -mmmx -msse -msse2 -msse3
-m3dnow -fopenmp
(nothing to do with th flag of Imam Toufique)

After the installation failed, I changed the path of the #include files in
"fltk_backend.cc" to the whole path, i.e. :
#ifdef HAVE_CONFIG_H
#include </home/jalorer/octave-3.3.52/config.h>
#endif

#if defined (HAVE_FLTK)

#include </usr/include/c++/4.4.1/map>
#include </usr/include/c++/4.4.1/set>
#include </usr/include/c++/4.4.1/sstream>
#include </usr/include/c++/4.4.1/iostream>

#include </usr/include/FL/Fl.H>
#include </usr/include/FL/Fl_Window.H>
#include </usr/include/FL/Fl_Output.H>
#include </usr/include/FL/Fl_Button.H>
#include </usr/include/FL/Fl_Box.H>
#include </usr/include/FL/Fl_Gl_Window.H>
#include </usr/include/FL/fl_ask.H>
#include </usr/include/FL/fl_draw.H>
#include </usr/include/FL/gl.h>

#include "/home/jalorer/octave-3.3.52/liboctave/cmd-edit.h"
#include "/home/jalorer/octave-3.3.52/liboctave/lo-ieee.h"

#include "/home/jalorer/octave-3.3.52/src/defun-dld.h"
#include "/home/jalorer/octave-3.3.52/src/error.h"
#include "/home/jalorer/octave-3.3.52/src/gl-render.h"
#include "/home/jalorer/octave-3.3.52/src/gl2ps-renderer.h"
#include "/home/jalorer/octave-3.3.52/src/graphics.h"
#include "/home/jalorer/octave-3.3.52/src/parse.h"
#include "/home/jalorer/octave-3.3.52/src/toplev.h"
#include "/home/jalorer/octave-3.3.52/src/variables.h"

(of course I verified that all of them existed)
and rerun the command that failed:
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ [...] -f
'DLD-FUNCTIONS/fltk_backend.cc' || echo './'`DLD-FUNCTIONS/fltk_backend.cc 

But i got the same errors.
-------------------------------------------------------------------------------------------------------------------------

Also, Before trying with fltk 1.3.x-r7677, I was tying with the latest fltk:
v. 2.0.x-r7680. The "configure" script didn't recognise it a first because
instead of installing "fltk-config" it installs "fltk2-config" (and it
doesn't copy the "FL" directory directly /usr/include, but into
/usr/compat/include, or something like that ), anyways, I symlinked
"fltk-config" to "fltk2-config" and moved (or symlinked, can't remember)
"FL" to the same position as the old version (so the final path was
"/usr/include/FL"), but the installation of Octave failed, although with
another error:

/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
-I../libgnu -I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I.
-I.     -g -O2  -DHAVE_CONFIG_H -mieee-fp  -I/usr/include/freetype2   -Wall
-W -Wshadow -Wold-style-cast -Wformat -g -O2 -pthread -g -O2 -MT
DLD-FUNCTIONS/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.lo -MD -MP -MF
DLD-FUNCTIONS/.deps/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.Tpo -c -o
DLD-FUNCTIONS/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.lo `test -f
'DLD-FUNCTIONS/fltk_backend.cc' || echo './'`DLD-FUNCTIONS/fltk_backend.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu
-I../libcruft/misc -I../liboctave -I../liboctave -I. -I. -g -O2
-DHAVE_CONFIG_H -mieee-fp -I/usr/include/freetype2 -Wall -W -Wshadow
-Wold-style-cast -Wformat -g -O2 -pthread -g -O2 -MT
DLD-FUNCTIONS/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.lo -MD -MP -MF
DLD-FUNCTIONS/.deps/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.Tpo -c
DLD-FUNCTIONS/fltk_backend.cc  -fPIC -DPIC -o
DLD-FUNCTIONS/.libs/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.o
DLD-FUNCTIONS/fltk_backend.cc: In member function ‘void
plot_window::mark_modified()’:
DLD-FUNCTIONS/fltk_backend.cc:345: error: no matching function for call to
‘plot_window::damage(Fl_Damage)’
/usr/local/include/fltk/Widget.h:194: note: candidates are: uchar
fltk::Widget::damage() const
DLD-FUNCTIONS/fltk_backend.cc:346: error: no matching function for call to
‘OpenGL_fltk::damage(Fl_Damage)’
/usr/local/include/fltk/Widget.h:194: note: candidates are: uchar
fltk::Widget::damage() const
make[3]: *** [DLD-FUNCTIONS/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.lo]
Error 1
make[3]: Leaving directory `/home/jalorer/octave-3.3.52/src'

in this case I didn't try changing the path of the #include files to their
absolute paths. Also, as you can see,  I wasn't using any optimization
flags.

Any help will be greatly appreciated, thanks.
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/octave-build-issue-error-in-fltk-backend-tp2309879p2329131.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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