Looks like one of the recent wxScintilla merge broke wx2.8 compatibility:
src/PlatWX.cpp: In member function ‘void Window::SetPositionRelative(PRectangle, Window)’:
src/PlatWX.cpp:1908:32: error: ‘wxDisplay’ has not been declared
const int currentDisplay = wxDisplay::GetFromWindow(relativeWin);
^
src/PlatWX.cpp:1909:56: error: ‘wxDisplay’ was not declared in this scope
const wxRect displayRect = wxDisplay(currentDisplay).GetClientArea();
^
Are we officially moving to wx3.0 and above?
It seems the wxDisplay subsystem in your wx build is disabled.
Interesting... I haven't touched the build script in ages...
../../configure --disable-compat26 --enable-unicode --disable-sys-libs --enable-monolithic --with-gtk=2 --with-jpeg=builtin --with-libpng=builtin --with-regex=builtin --with-tiff=builtin --with-zlib=builtin --with-expat=builtin
Does it need an extra toggle?
(I do have the display.h in the install directory... weird)
From wxWidgets configure.in
AC_MSG_WARN([Xinerama not found; disabling wxDisplay])
Tim S.
Feels like a bug in the wxWidgets 2.8 branch:
I have Xinerama installed, but the default install path for the .so on *Ubuntu is /usr/lib/x86_64-linux-gnu/.
Debugging the configure script showed, that the search paths for libs are:
/usr/local/lib
/usr/local/X11/lib
/usr/local/lib/X11
/usr/local/X11R6/lib
/usr/local/lib/X11R6
/usr/Motif-2.1/lib
/usr/Motif-1.2/lib
/usr/lib/Motif1.2
/usr/dt/lib
/usr/openwin/lib
/usr/lib/Xm
/usr/X11R6/lib
/usr/X11R6.4/lib
/usr/lib/X11R6
/usr/X11/lib
/usr/lib/X11
/usr/XFree86/lib/X11
/usr/pkg/lib
/usr/local/X1R5/lib
/usr/local/lib/X11R5
/usr/X11R5/lib
/usr/lib/X11R5
/usr/local/X11R4/lib
/usr/local/lib/X11R4
/usr/X11R4/lib
/usr/lib/X11R4
/usr/openwin/share/lib
/usr/lib
Basically everywhere BUT the right location. I don't think my shell-script-fu is strong enough to untangle the mess of $SEARCH_LIB.
Also looking at wx3.0+ configure shows that it no longer checks for Xinerama :-\
nvm, got it working after this patch for the wx2.8 source:
diff --git a/configure b/configure
index f2ba453158..86ede0018a 100755
--- a/configure
+++ b/configure
@@ -24947,9 +24947,9 @@ SEARCH_INCLUDE="\
\
/usr/dt/include \
/usr/openwin/include \
- \
+ /usr/include \
/usr/include/Xm \
- \
+ /usr/include/x86_64-linux-gnu \
/usr/X11R6/include \
/usr/X11R6.4/include \
\
diff --git a/configure.in b/configure.in
index b73abca3c5..4c9492e7ed 100644
--- a/configure.in
+++ b/configure.in
@@ -2652,9 +2652,9 @@ SEARCH_INCLUDE="\
\
/usr/dt/include \
/usr/openwin/include \
- \
+ /usr/include \
/usr/include/Xm \
- \
+ /usr/include/x86_64-linux-gnu \
/usr/X11R6/include \
/usr/X11R6.4/include \
\
@oBFusCATed: while you are at it, please add "_T" in the last StartsWith-s in the rev 11411. Cheers.