Re: [CMake] Autotools->CMake build error

2014-08-28 Thread Richard Shaw
On Thu, Aug 28, 2014 at 4:07 PM, Kornel Benko wrote: > Am Donnerstag, 28. August 2014 um 15:47:06, schrieb Richard Shaw < > hobbes1...@gmail.com> > > On Thu, Aug 28, 2014 at 3:39 PM, Kornel Benko wrote: > > > > > You use '-DHAVE_CONFIG_H', this means probably generated 'config.h'. > > > Differen

Re: [CMake] Autotools->CMake build error

2014-08-28 Thread Kornel Benko
Am Donnerstag, 28. August 2014 um 15:47:06, schrieb Richard Shaw > On Thu, Aug 28, 2014 at 3:39 PM, Kornel Benko wrote: > > > You use '-DHAVE_CONFIG_H', this means probably generated 'config.h'. > > Differences between generation of this file of automake/cmake? > > > > Could be but I think I fo

Re: [CMake] Autotools->CMake build error

2014-08-28 Thread Richard Shaw
On Thu, Aug 28, 2014 at 3:39 PM, Kornel Benko wrote: > You use '-DHAVE_CONFIG_H', this means probably generated 'config.h'. > Differences between generation of this file of automake/cmake? > > Could be but I think I found most of those. I tried browsing through the code and I didn't see any #if's

Re: [CMake] Autotools->CMake build error

2014-08-28 Thread Kornel Benko
Am Donnerstag, 28. August 2014 um 14:36:45, schrieb Richard Shaw > I'm working on converting a project[1] from autotools to CMake and I've > gotten a lot of it working. The project HEAVILY relies on values from a > config.h but I think I've gotten the essentials covered although it took a > while

[CMake] Autotools->CMake build error

2014-08-28 Thread Richard Shaw
I'm working on converting a project[1] from autotools to CMake and I've gotten a lot of it working. The project HEAVILY relies on values from a config.h but I think I've gotten the essentials covered although it took a while. Currently the build is failing on the following: [ 23%] Building CXX obj

Re: [CMake] CFLAGS disables link directories?

2014-08-28 Thread Andreas Naumann
Hello Alexander, your problem is not a problem of CFlags, it is much more a problem of the compiler and what you are setting with --sysroot=/sysroot. Here you tell the compiler, that it should treat /sysroot as system library directory, so tha

[CMake] CFLAGS disables link directories?

2014-08-28 Thread Alexander Shashkevych
Hi all, I did't found info how cmake internally handles CFLAGS environment variable, but I know that cmake picks it up from environment and seems this removes link directories from linking flags added by link_directories() command. For example. I'm using custom sysroot, to build my app and I run

[CMake] Problem with turning on the AUTO_MOC

2014-08-28 Thread Morteza mostajab
Dear all, Hi, I have a project which I have used the winsock2 in it and windows.h should not be includede before the winsock2.h. Also, I have used the QT in my project. Everything was completely compiled and run but I wanted to auto generate the moc files, so I have added "set(CMAKE_AUTOMOC ON)"

[CMake] Building project with Boost thread, TBB, OpenCV, QT, -lpthread missing

2014-08-28 Thread Johannes Jordan
Hello, I am running a project that uses several libs which seemingly rely on pthread. In my CMake files, I don't explicitely refer to pthread (especially as it is a different story under different OS's like Windows). Instead I use the find_package logic, e.g.: find_package(Boost ${VOLE_MINIMUM_B