Am 11.12.2012 um 16:06 schrieb Kornel Benko:

> Am Dienstag, 11. Dezember 2012 um 15:32:43, schrieb Stephan Witt 
> <st.w...@gmx.net>
> > Are you able to fix this, please?
>  
> OK. I am surprised, X11 is not available an MAC.

It may be available or not.
The cmake build of LyX is with Q_WS_MAC anyway and the xvkbd tool is useless 
then.

The current cmake scripts are working on OSX 10.8 (no X11 at all).
With 10.6 (+X11 added with macports) I get this:

-- Looking for XOpenDisplay in 
/opt/local/lib/libX11.dylib;/opt/local/lib/libXext.dylib
-- Looking for XOpenDisplay in 
/opt/local/lib/libX11.dylib;/opt/local/lib/libXext.dylib - not found
-- Looking for dnet_ntoa in dnet
-- Looking for dnet_ntoa in dnet - not found
-- Looking for dnet_ntoa in dnet_stub
-- Looking for dnet_ntoa in dnet_stub - not found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - not found
-- Found X11: /opt/local/lib/libX11.dylib
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.27.1") 
-- checking for module 'xaw7'
--   found xaw7, version 1.0.11
-- checking for module 'xtst'
--   package 'xtst' not found
CMake Error at /opt/local/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 
(message):
  A required package was not found
Call Stack (most recent call first):
  /opt/local/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 
(_pkg_check_modules_internal)
  development/autotests/xvkbd/CMakeLists.txt:19 (pkg_check_modules)

Is the attached patch ok for you?

Stephan

>  
> > CMake Error at /opt/local/share/cmake-2.8/Modules/FindX11.cmake:420 
> > (MESSAGE):
> >   Could not find X11
> > Call Stack (most recent call first):
> >   development/autotests/xvkbd/CMakeLists.txt:8 (find_package)
> > 
> > Stephan
> > 
> > Am 11.12.2012 um 15:25 schrieb Kornel Benko <kor...@lyx.org>:
> > 
> > > The branch, master, has been updated.
> > > 
> > > - Log -----------------------------------------------------------------
> > > 
> > > commit 57b04ac7f47b69d2dfaa419cbe5c1f8d6a09f5e0
> > > Author: Kornel Benko <kor...@lyx.org>
> > > Date:   Tue Dec 11 15:17:04 2012 +0100
> > > 
> > >    Cmake build: First try to use autotests.
> > >    Many test are not running, but if changed the '-dbg xxx' to '-dbg any'
> > >    then all of sudden they pass ...
> > >    (The buffered output of lyx is often disrupted too early with 'kill 
> > > -9',
> > >    so the expected data are not available for the appropriate test)
>  
>       Kornel

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 61777ef..870d55a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -716,7 +716,11 @@ if(LYX_INSTALL)
 endif()
 
 add_subdirectory(sourcedoc "${TOP_BINARY_DIR}/sourcedoc")
-add_subdirectory(development/autotests "${TOP_BINARY_DIR}/autotests")
+
+if(Q_WS_X11)
+       message(STATUS "Add auto tests...")
+       add_subdirectory(development/autotests "${TOP_BINARY_DIR}/autotests")
+endif()
 
 message(STATUS)
 message(STATUS "Build options, switch LYX_* variables by -DLYX_*=ON or OFF:")

Reply via email to