Am Samstag, 23. April 2016 um 14:11:15, schrieb Jean-Pierre Chrétien <jeanpierre.chret...@free.fr> > Le 23/04/2016 11:18, Kornel Benko a écrit : > > > > > OK, it is searching for QT. Can you post the command you use for automake? > > I can try to find the appropriate cmake parameters. > > I ran automake (without arguments) in the source tree without success. > Should I give a location for QT libraries? > I do nothing when I use autogen. >
It should not be needed if 'qmake' is in the path. Default search is for QT5 first (int 2.3-staging). But if using 'old' build tree, the value there is used. Better to remove the CMakeCache.txt in build dir first. My params for cmake: $source: Path to source tree $build: Path to build tree cd $source git checkout 2.3-staging git fetch git stash git pull --rebase git stash pop cd $build cmake $source -DCMAKE_VERBOSE_MAKEFILE=ON \ -DLYX_DEBUG=ON \ -DLYX_RELEASE=OFF \ -DLYX_CPACK=ON \ -DLYX_PROGRAM_SUFFIX=ON \ -DLYX_LOCALVERSIONING=ON \ -DCPACK_BINARY_RPM:BOOL=OFF \ -DCPACK_BINARY_DEB:BOOL=ON \ -DCPACK_BINARY_NSIS:BOOL=OFF \ -DCPACK_BINARY_STGZ:BOOL=OFF \ -DCPACK_BINARY_TGZ:BOOL=OFF \ -DCPACK_BINARY_TBZ2:BOOL=OFF \ -DCPACK_BINARY_TZ:BOOL=OFF \ -DCPACK_SOURCE_TBZ2:BOOL=OFF \ -DCPACK_SOURCE_TGZ:BOOL=ON \ -DCPACK_SOURCE_TZ:BOOL=OFF \ -DCPACK_SOURCE_ZIP:BOOL=OFF \ -DLYX_HUNSPELL=ON \ -DLYX_ENCHANT=ON \ -DLYX_NLS=ON \ -DLYX_ENABLE_CXX11=AUTO \ -DLYX_ENABLE_URLTESTS=ON \ -DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.3 \ -DLYX_USE_QT=QT5 \ -DLYX_EXTERNAL_BOOST=OFF make package ............................ created package is something like lyx23-2.3.0-47459git-Linux.deb To install: sudo dpkg -i lyx23-2.3.0-47459git-Linux.deb Params: -DLYX_CPACK=ON # enables creation of package -DCPACK_BINARY_*:BOOL=OFF # do not create * (RPM, NSIS, TGZ, etc) type of package -DCPACK_BINARY_DEB:BOOL=ON # create debian package -DLYX_HUNSPELL=ON # explicitly search for hunspell. -DLYX_NLS=ON # use internationalized data (e.g. po-files) -DLYX_ENABLE_CXX11=AUTO # find if CXX supports cxx-11 -DCMAKE_INSTALL_PREFIX=prefix-path # Path where lys has to be installed -DLYX_USE_QT=QT5 # explicitly select the QT version -DLYX_EXTERNAL_BOOST=OFF # use internal boost sources My qt5 resides in /usr/BUILD/BuildQt5/5.5 (qmake from system is /usr/bin/qmake, but I want to use _my_ qt5.5.1) make sure the correct qmake is found first: which qmake /usr/BUILD/BuildQt5/5.5/gcc_64/bin/qmake Kornel
signature.asc
Description: This is a digitally signed message part.