help-octave
[Top][All Lists]
Advanced

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

Re: Error installing octave: "thread/file-editor-interface.h" - ubuntu 1


From: Mike Miller
Subject: Re: Error installing octave: "thread/file-editor-interface.h" - ubuntu 14.04
Date: Tue, 13 May 2014 11:49:23 -0400

On Tue, May 13, 2014 at 17:27:14 +0200, Marco Vassallo wrote:
> Hi all,
>
> I'm getting the following error installing octave under ubuntu 14.04:

Which version/branch are you building?

> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../libgui -I..
> -I/usr/include/freetype2 -I/usr/include/freetype2 -I/usr/include/qt4
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtOpenGL
> -I../../libgui/qterminal/libqterminal -Isrc -I../../libgui/src
> -I../../libgui/src/m-editor -I../../libgui/src/qtinfo
> -I../../libgui/graphics -I../../liboctave/cruft/misc -I../../liboctave/array
> -I../liboctave/numeric -I../../liboctave/numeric -I../liboctave/operators
> -I../../liboctave/operators -I../../liboctave/system -I../../liboctave/util
> -I../libinterp -I../../libinterp -I../libinterp/parse-tree
> -I../../libinterp/parse-tree -I../libinterp/corefcn
> -I../../libinterp/corefcn -I../../libinterp/octave-value -I../libgnu
> -I../../libgnu -I/usr/include/eigen3 -I/usr/lib/openmpi/include
> -I/usr/lib/openmpi/include/openmpi -pthread -I/home/ted/Work/FEniCS/include
> -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
> -Wcast-align -Wcast-qual -g -O2 -MT
> src/m-editor/src_libgui_src_la-moc-file-editor-interface.lo -MD -MP -MF
> src/m-editor/.deps/src_libgui_src_la-moc-file-editor-interface.Tpo -c
> src/m-editor/moc-file-editor-interface.cc  -fPIC -DPIC -o
> src/m-editor/.libs/src_libgui_src_la-moc-file-editor-interface.o
> src/m-editor/moc-file-editor-interface.cc:12:42: fatal error:
> thread/file-editor-interface.h: No such file or directory
>  #include "thread/file-editor-interface.h"
>                                           ^
> compilation terminated.
> make[3]: *** [src/m-editor/src_libgui_src_la-moc-file-editor-interface.lo]
> Error 1
> make[3]: Leaving directory `/home/ted/Public/octave/.build/libgui'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/ted/Public/octave/.build/libgui'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/ted/Public/octave/.build'
> make: *** [all] Error 2
>
>
> I think that for some reason the keyword "thread" has not been substituted
> with the path to the correct file during the configuration process. Does
> anyone know why this is happening? Any idea on a possible solution?

Yes, this happens because you are passing the option "-pthread" to the
Qt moc program. You somehow have "-pthread" in your CPPFLAGS variable,
this should not be. Keep CPPFLAGS to valid preprocessor options
(basically only -D and -I) and move other options to
CFLAGS/CXXFLAGS/FFLAGS as needed.

Incidentally, for the -pthread option, Octave's configure script is
smart enough to figure out whether it is needed and add it in the
appropriate places, you don't need to tell it anything.

See also http://savannah.gnu.org/bugs/?41711.

-- 
mike



reply via email to

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