octave-maintainers
[Top][All Lists]
Advanced

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

Re: pty.h missing for MacOS X


From: Ben Abbott
Subject: Re: pty.h missing for MacOS X
Date: Fri, 01 Jun 2012 21:04:45 -0400

On Jun 1, 2012, at 8:08 PM, Ben Abbott wrote:

> On MacOS X, building the gui ends with ...
> 
> /Developer/usr/bin/llvm-g++-4.2 -c -pipe -g -gdwarf-2 -fPIC -Wall -W 
> -DHAVE_POSIX_OPENPT -DHAVE_PTY_H -DHAVE_OPENPTY -DQT_GUI_LIB -DQT_CORE_LIB 
> -DQT_SHARED -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I. -I. 
> -I/opt/local/include/QtGui -I/opt/local/include/QtCore -I/opt/local/include 
> -o kpty.o unix/kpty.cpp
> unix/kpty.cpp:65:18: error: pty.h: No such file or directory
> unix/kpty.cpp: In member function ‘bool KPty::open()’:
> unix/kpty.cpp:221: error: ‘::openpty’ has not been declared
> 
> It's been a while since I tried to build the gui. What I did was to ...
> 
>       rm gui
>       hg pull ; hg update -C gui
>       cd gui
>       qmake
>       make
> 
> In any event, after poking about on Google, it looks to me like an issue with 
> gnulib (?)
> 
>       http://lists.gnu.org/archive/html/bug-gnulib/2009-12/msg00090.html
> 
> Any one have any advice as to what I might try to continue ?
> 
> Ben


In gui/qterminal/libqterminal/unix/kpty.cpp I replaced ...

#if defined(HAVE_PTY_H)
# include <pty.h>
#endif

#ifdef HAVE_LIBUTIL_H
# include <libutil.h>
#elif defined(HAVE_UTIL_H)
# include <util.h>
#endif

... with ...

#include <util.h>

... and my build now completes and I'm able to run the gui. I'll try some tests 
when I have time.

Ben 




reply via email to

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