[CMake] DEB package generated with cpack does not pass lintian check on Ubuntu

2015-03-16 Thread Bogdan Cristea
Hi I have generated a DEB package with cpack, but the analysis with lintian in Ubuntu reveals still some errors: E: at: changelog-file-missing-in-native-package E: at: control-file-has-bad-owner md5sums b/users != root/root E: at: no-copyright-file E: at: extended-description-is-empty E: at: mai

Re: [CMake] Outputting valgrind-style DynamicAnalysis.xml from CTest

2014-05-27 Thread Bogdan Cristea
ctest calls valgrind with massif tool if I remember correctly. There is a jenkins plugin for handling massif output On 27 May 2014, at 20:49, Hideaki Kimura wrote: > Hi, > I'm trying to integrate a CTest's valgrind-test with Jenkins. > Jenkins has a nice plugin to show the results of valgrind

Re: [CMake] Problem with CMake 2.8.12.2 on Mac OS X

2014-05-27 Thread Bogdan Cristea
On 27 May 2014, at 16:53, Robert Bielik wrote: > Not with Xcode generator, no, but it should be present when using the > Makefile generator. > > Which version of CMake do you use ? cmake version 2.8.12.2 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

Re: [CMake] Problem with CMake 2.8.12.2 on Mac OS X

2014-05-27 Thread Bogdan Cristea
On 27 May 2014, at 16:36, Robert Bielik wrote: > Hi Bogdan, > > Bogdan Cristea skrev 2014-05-27 15:49:> >> I can confirm that I cannot use Xcode generator for a C++ project. Only >> Makefile generator works on OSX > > But still, you get -s option in Link.txt

Re: [CMake] Problem with CMake 2.8.12.2 on Mac OS X

2014-05-27 Thread Bogdan Cristea
On 27 May 2014, at 15:45, Nils Gladitz wrote: > On 05/27/2014 03:08 PM, Robert Bielik wrote: >> *Bump* >> >> Does anyone use CMake on Mac with Xcode 5 (LLVM) ? I cannot get rid of the >> -s option to the linker (Release), so presumably no one else can either, >> hence >> no one should be able

Re: [CMake] CMake Error: Qt5::moc target not found ?

2014-03-20 Thread Bogdan Cristea
Have you set CMAKE_PREFIX_PATH to the path of your Qt5 installation folder ? On 20 Mar 2014, at 12:18, Martin Koller wrote: > I want to build a program on CentOS 6, which does not have Qt5. > Therefore I have installed Qt5 into /home/koller/Qt5 > > As we usually build Qt on our own and deliver

Re: [CMake] Regarding CMAKE and OSX Mavericks

2014-03-14 Thread Bogdan Cristea
Using cmake 2.8.12.2 on MacOSX 10.9.2 detects correctly the compiler On 14 Mar 2014, at 14:57, Theodore St. Shenouda wrote: > > To Whom It May Concern, > > I am currently a Student attempting to use OPENGL on OSX Mavericks, however > in order to use some of the latest GLFW libraries I requir

Re: [CMake] Xcode cannot open generated project

2014-02-27 Thread Bogdan Cristea
On 27 Feb 2014, at 12:15, David Cole wrote: > What version of Xcode? xcode 5.0.2 > > What error message do you get when trying to open the project with Xcode? The error says that ’the project file cannot be parsed'-- Powered by www.kitware.com Please keep messages on-topic and check the

[CMake] Xcode cannot open generated project

2014-02-27 Thread Bogdan Cristea
Hi I am using cmake 2.8.12.2 on MacOSX 10.9 for managing C/C++ code. Targets are 2 shared libraries and a command line binary, while external libraries are boost and fuse. However, when using Xcode generator I am unable to open the generated project. Using Makefile generator works fine, but I h

Re: [CMake] CMake absolute path

2014-01-22 Thread Bogdan Cristea
On 01/22/2014 06:05 PM, Tony-Alexandru Dincu wrote: We are trying to build a complex solution which has a path 72 characters long with CMake 2.8.12, but the build fails saying that some files can't be found. I investigated the problem and I saw that the problem is from relative path. With C

Re: [CMake] Finding zlib on OS X 10.9

2014-01-14 Thread Bogdan Cristea
On 01/14/2014 03:18 PM, "Schröter, Philipp" wrote: When CMake is looking for zlib it always returns "ZLIB not found." although ZLIB_ROOT, in which it looks for zlib (/usr/local/zlib) and which is passed to CMake with a -D, is correct and zlib exists in there (including subfolders). Does anybody

[CMake] Use ctest with callgrind

2014-01-08 Thread Bogdan Cristea
Hi I am trying to use valgrind with callgrind tool for performance profiling. In my CMakeLists.txt file I have the following lines: include(CTest) set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--tool=callgrind --dump-instr=yes --simulate-cache=yes --collect-jumps=yes") add_subdirectory(profile) ho

[CMake] Use ctest with callgrind

2014-01-08 Thread Bogdan Cristea
Hi I am trying to use valgrind with callgrind tool for performance profiling. In my CMakeLists.txt file I have the following lines: include(CTest) set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--tool=callgrind --dump-instr=yes --simulate-cache=yes --collect-jumps=yes") add_subdirectory(profile) ho

[CMake] Specify -isysroot command line option for cross-compilation for iOS

2013-12-15 Thread Bogdan Cristea
Hi Is there a way to specify -isysroot command line option for iOS crosscompilation without using linker flags ? I have got a toochain file that defines a CMAKE_OSX_SYSROOT variable, but this is not picked automatically by the compiler thanks -- Bogdan Cristea -- Powered by www.kitware.com

Re: [CMake] Cross-compiling for Tizen emulator

2013-12-06 Thread Bogdan Cristea
On Fri 06 Dec 2013 01:04:35 AM CET, Stephen Kelly wrote: Bogdan Cristea wrote: SET(CMAKE_FIND_ROOT_PATH /home/bogdan/dev/src/tizenbuildtools/emulator/GBS-ROOT/local/BUILD- ROOTS/scratch.i586.0) This is not passed as --sysroot. However, cmake master supports a CMAKE_SYSROOT variable. http

[CMake] Cross-compiling for Tizen emulator

2013-12-05 Thread Bogdan Cristea
Hi I am trying to write a toolchain cmake script in order to crosscompile a cpp program for Tizen emulator. Here is the cmake script I am using: SET(CMAKE_SYSTEM_NAME Linux) SET(CMAKE_SYSTEM_VERSION 1) SET(CMAKE_C_COMPILER /home/bogdan/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/i386-linux

[CMake] Read memory tests results with jenkins

2013-11-12 Thread Bogdan Cristea
Hi I am running memory leak tests using ctest as follows ctest -D ExperimentalMemCheck I have already in place a jenkins server for continuous build and I am wondering if it is possible to read the memory check report from Jenkins. I am aware of the existence of a Jenkins plugin for Valgrind,

Re: [CMake] How to embed Qt resources using CMake

2013-07-08 Thread Bogdan Cristea
The paths should be relative to the folder where your qrc file reside. Then you can use QT4_ADD_RESOURCES(lib_resources icons.qrc) add_library(mylib ${lib_srcs} ${lib_resources}) On 08.07.2013 18:17, Júlio Hoffimann wrote: Dear all, I'm not that experienced with Qt, but I'm migrating an exis

Re: [CMake] Bug in cmake 2.8.11 when detecting sgemm function from MKL 11.0

2013-05-23 Thread Bogdan Cristea
I don't get any error. regards Bogdan On Thu, May 23, 2013 at 7:48 PM, Stephen Kelly wrote: > Bogdan Cristea wrote: > > > Hi > > > > I have noticed that the latest cmake release, 2.8.11, does not detect > > sgemm using check_function_exists macro from mkl_rt.l

[CMake] Bug in cmake 2.8.11 when detecting sgemm function from MKL 11.0

2013-05-23 Thread Bogdan Cristea
Hi I have noticed that the latest cmake release, 2.8.11, does not detect sgemm using check_function_exists macro from mkl_rt.lib library. The error message says; Cannot find C:\Program.obj It seems to me that the paths with spaces are no longer handled correctly. Installing the previous versio

Re: [CMake] Problems Building Google Test with CMake 2.6

2013-04-03 Thread Bogdan Cristea
On Wednesday 03 April 2013 19:54:25 Dan page wrote: > Hello, > > I am trying to use CMake 2.6 to build Google Test. As mentioned in the > README of Google Test, I have issued following commands: > > mkdir mybuild # Create a directory to hold the build output. > cd mybuild > cmake D:\g

Re: [CMake] CMake with Qt5

2013-03-24 Thread Bogdan Cristea
Widgets Qml Quick) > > With this, MSVC gives errors for missing header files which should be > generated from the .ui files. I have not yet used ui files, but I think QT5_WRAP_UI is available only when Qt5Widgets is found: http://qt.developpez.com/doc/5.0-snapshot/cmake-manual/ -

Re: [CMake] Using Qt5 with cmake

2013-01-18 Thread Bogdan Cristea
Le vendredi 18 janvier 2013 à 16:36 +0100, Stephen Kelly a écrit : > > I'm afraid the post is a little but outdated. > > Qt5Declarative was renamed to QtQuick1 before the Qt 5 release, so try > to > find that instead. > > I'll see about updating the blog post. Hi I think that what is missi

Re: [CMake] Using Qt5 with cmake

2013-01-18 Thread Bogdan Cristea
Le vendredi 18 janvier 2013 à 15:31 +, Laszlo Papp a écrit : > There is also this: > http://qt-project.org/doc/qt-5.0/qtdoc/cmake-manual.html > > Either way, check if your Qt installation ships the cmake files. Qt5 > has builtin support for third-party projects from cmake point of > view. Ye

Re: [CMake] Using Qt5 with cmake

2013-01-18 Thread Bogdan Cristea
Le vendredi 18 janvier 2013 à 15:22 +, Laszlo Papp a écrit : > What is wrong about Stephen's post? It has been working for me in > several projects. A line like this find_package(Qt5Declarative) generates a warning about missing FindQt5Declarative.cmake which is not provided by Qt5 nor cmake

[CMake] Using Qt5 with cmake

2013-01-18 Thread Bogdan Cristea
Hi Qt5 provides configuration files for cmake, but I haven't yet found a way to detect Qt5 as recommended in this post (I am using qt5 on Windows with Visual Studio 2010): http://www.kdab.com/using-cmake-with-qt-5/ As far as I understand cmake does not yet provide support for qt5 (at least not i

Re: [CMake] Building either shared or static version of a library on Windows

2013-01-16 Thread Bogdan Cristea
Le mardi 15 janvier 2013 à 11:56 -0500, Michael Jackson a écrit : > > On Jan 15, 2013, at 11:44 AM, Bogdan Cristea wrote: > > > Le mardi 15 janvier 2013 à 11:31 -0500, Michael Jackson a écrit : > >> There are lots of different ways to do this. The following is an >

Re: [CMake] Building either shared or static version of a library on Windows

2013-01-15 Thread Bogdan Cristea
Le mardi 15 janvier 2013 à 11:31 -0500, Michael Jackson a écrit : > There are lots of different ways to do this. The following is an > example of what *I* do. > - In my CMakeLists.txt file I have this > set(DREAM3DLib_BUILT_AS_DYNAMIC_LIB) > IF (BUILD_SHARED_LIBS) > set(DREAM3DLib_BUILT_AS

[CMake] Building either shared or static version of a library on Windows

2013-01-15 Thread Bogdan Cristea
Hi My exports header file for a C/C++ project has the following definitions: #if defined(WIN32) || defined(WIN64) #ifndef LIB_EXPORT #ifdef lib_EXPORTS #define LIB_EXPORT __declspec(dllexport) #else #define LIB_EXPORT __declspec(dllimport) #endif #endif #endif where l

Re: [CMake] cmake tutorial in pdf

2012-11-16 Thread Bogdan Cristea
On Friday 16 November 2012 16:33:00 Érico wrote: is there a cmake tutorial in pdf so we can print ? Go to http://www.cmake.org/cmake/help/v2.8.10/cmake.html, then print it as pdf -- Bogdan-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/openso

Re: [CMake] CPack - NSIS - Add multiple directory paths inside PATH environment variable

2012-11-08 Thread Bogdan Cristea
On Thursday 08 November 2012 10:58:48 Romain LEGUAY wrote: set(CPACK_NSIS_MODIFY_PATH ON) set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "\${EnvVarUpdate} \"$0\" \"PATH\" \"A\" \"HKCU\" \"${MY_INCLUDE_DIR};${MY_LIB_DIR}\"") I have never changed the PATH environment before, but the problem might be the

Re: [CMake] cpack generators for Windows

2012-11-05 Thread Bogdan Cristea
On Monday 05 November 2012 13:57:04 you wrote: > There seems to be relatively recent commit in the repository though: > http://nsis.svn.sourceforge.net/viewvc/nsis/NSIS/trunk/ The latest release is 2.46, December 2009. I have not tried yet the version from trunk, but I have noticed in Win8 some

[CMake] cpack generators for Windows

2012-11-05 Thread Bogdan Cristea
Hi NSIS seems to be quite outdated and no longer developed, are there any plans to suppport new installer systems on Windows (e.g. the ones provided by Visual Studio) ? regards -- Bogdan -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensou

Re: [CMake] How clean generated build system files

2012-11-04 Thread Bogdan Cristea
Thanks Cristea, but how about the project files or make files? Not sure, but I think they are regenerated. If this is all that you want it might be the best way. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Plea

Re: [CMake] cmake for windows with VS 2012 Express support

2012-09-26 Thread Bogdan Cristea
On Wednesday 26 September 2012 15:18:33 you wrote: > Please try the latest nightly build for Windows. That should work. > > http://cmake.org/files/dev/cmake-2.8.9.20120923-g8a5434-win32-x86.exe > > The changes that are in that latest nightly build w.r.t. VS 2012 Express > will be in CMake 2.8.1

[CMake] cmake for windows with VS 2012 Express support

2012-09-26 Thread Bogdan Cristea
Are there any news about a cmake release for Win with VS 2012 Express support ? thanks -- Bogdan -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.c

Re: [CMake] check function signature

2012-09-25 Thread Bogdan Cristea
On Tuesday 25 September 2012 09:18:38 Leif Walsh wrote: > I use check_function_exists() to do some platform checking. On Linux, > pthread_yield() returns int, and on FreeBSD, it returns void. Is there a > cmake way to distinguish between the two? check_function_exists seems to > not use strict e

Re: [CMake] problems linking with g++ on Ubuntu

2012-09-24 Thread Bogdan Cristea
On Monday 24 September 2012 08:39:14 you wrote: > /usr/bin/c++ -static CMakeFiles/Runtime.dir/Runtime.cpp.o -o > ../bin/Runtime \ > -rdynamic /usr/local/lib/libzmq.a /usr/local/lib/libczmq.a -lpthread > -lrt ../lib/libComm.a ../lib/libConfig.a > ../lib/libComm.a(Comm.c.o): In function `Comm_

Re: [CMake] problems linking with g++ on Ubuntu

2012-09-24 Thread Bogdan Cristea
On Monday 24 September 2012 08:28:26 Davis Ford wrote: > Hi, I have a project that I'm able to build fine on Mac OS with CMake, but > when I check same project out on Ubuntu 12.04, I'm getting undefined > reference errors at link time. > > Here's the relevant section of the CMakeLists.txt file, an

Re: [CMake] Problems finding dependence library

2012-09-21 Thread Bogdan Cristea
On Friday 21 September 2012 07:48:27 you wrote: > Thank you for your answer. I tried that but it didn't work. Paths are > alright. I even used absolute paths. What could be the problem of > that? Have a look at CMakeError.log -- Bogdan -- Powered by www.kitware.com Visit other Kitware open-sou

Re: [CMake] Problems finding dependence library

2012-09-20 Thread Bogdan Cristea
On Thursday 20 September 2012 17:25:35 Reza Housseini wrote: > set(CPPLIB_DIR "${CMAKE_SOURCE_DIR}/../core/build") > find_library(CPPLIB_SIEVE_LIBRARY NAMES libsieve PATHS CPPLIB_DIR) Use instead sieve for your library name. Also, check with message(${CPPLIB_DIR}) the path to your library -- Bo

Re: [CMake] Visual Studio 2012 Express for WD and cmake 2.8.9

2012-09-19 Thread Bogdan Cristea
On Wednesday 19 September 2012 08:56:02 you wrote: > Premium and Express are two very different beasts. Indeed, just learned that: I have used cmake 2.8.8 and it detects VS 2012 ultimate, while cmake 2.8.9 does not detect VS 2012 Express for Win8. Are there any plans to support VS Express 2012 ?

Re: [CMake] Test if ENV${VAR} is set

2012-09-14 Thread Bogdan Cristea
On Friday 14 September 2012 16:26:10 you wrote: > On Fri, Sep 14, 2012 at 4:17 PM, Bogdan Cristea wrote: > > On Friday 14 September 2012 16:13:16 Davis Ford wrote: > >> if("$ENV{FOO_HOME}" MATCHES "") > >> > >>message("You must se

Re: [CMake] Test if ENV${VAR} is set

2012-09-14 Thread Bogdan Cristea
On Friday 14 September 2012 16:13:16 Davis Ford wrote: > if("$ENV{FOO_HOME}" MATCHES "") >message("You must set FOO_HOME") >return() > endif() Try something like this if(NOT ENV{FOO_HOME}) message("etc") endif() -- Bogdan -- Powered by www.kitware.com Visit other Kitware open-source

[CMake] Detect BLAS library from MKL 11.0.0 on Windows

2012-09-11 Thread Bogdan Cristea
Does anyone succeeded to detect BLAS library provided by MKL on Windows ? -- Bogdan -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wik

Re: [CMake] Check for C++ functions existence

2012-09-01 Thread Bogdan Cristea
Hi I have found the answer myself, actually it is not possible to implement something generic as it is for C functions. My solution is to use as template what is done for C functions and adapt that to my needs. On Saturday 01 September 2012 21:13:10 Markus Blatt wrote: > As long as it is not a

[CMake] Possible bugs in FindBLAS.cmake module

2012-09-01 Thread Bogdan Cristea
Hi I am trying to detect BLAS and LAPACK libraries provided by acml 5.1.0, but both are undetected. After some digging I have found that there are some problems related to FindBLAS.cmake which I was able to correct. I am wondering what is the best way to contribute to cmake in order to correct

[CMake] Check for C++ functions existence

2012-08-31 Thread Bogdan Cristea
Is there an equivalent for CHECK_FUNCTION_EXISTS in order to check for C++ function existence. Bogdan -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://w

Re: [CMake] FindBLAS module

2012-08-31 Thread Bogdan Cristea
On Friday 31 August 2012 19:56:35 Andreas Naumann wrote: > I remember the same problem, but could not figure it out. > Which cmake version are you using? cmake version 2.8.6 I have read somewhere that acml5.1.0 is not supported by cmake, but I am not sure if this problem has been fixed or not.

Re: [CMake] FindBLAS module

2012-08-31 Thread Bogdan Cristea
On Friday 31 August 2012 17:59:38 you wrote: > did you try to set the variable BLA_VENDOR to ACML? Tried with this: cmake .. -DBLA_VENDOR=ACML_MP but I get another error message: CMake Error at /usr/share/cmake/Modules/FindBLAS.cmake:293 (list): list index: 0 out of range (-0, 18446744073709551

[CMake] FindBLAS module

2012-08-31 Thread Bogdan Cristea
Hi I am trying to find blas API using find_package ( BLAS REQUIRED ) In my case I am trying to use ACML, but cmake fails to find blas with the following error: CMake Error at /usr/share/cmake/Modules/FindBLAS.cmake:612 (message): A required library with BLAS API not found. Please specify li

[CMake] Cannot compile in debug mode

2012-06-10 Thread Bogdan Cristea
Hi I have a project containing a subfolder, src. Both, the main folder and the subfolder, contain CMakeLists.txt files. In the CMakeLists.txt of the main folder contains the following code IF ("Debug" STREQUAL "${CMAKE_BUILD_TYPE}") set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_DEBUG_ENABLE_LO