Re: [CMake] Trouble finding libjpeg package on ubuntu

2017-05-29 Thread Michele Portolan
Did you install the dev version of the library? Michele On 29/05/17 03:37, Aaron Boxer wrote: Hello, I would like cmake to find the libjpeg installation on my ubuntu system. I have the find_package(jpeg) line in my cmake file, and this works on windows, but on Ubuntu with libjpeg-turbo in

[CMake] Toggle Absolute paths in Eclipse Generator

2017-03-28 Thread Michele Portolan
Hello, I am trying to use the Eclipse Generator to create a project to be exported to Eclipse. Everything works fine, but when I look at the generated .cproject and .project I see that all paths are absolute, like for instance: -E chdir "/home/portolan/my_project/Optional

Re: [CMake] Link to local glibc

2017-03-13 Thread Michele Portolan
At the end of the day, here is what I did: 1) create a development Centos 5.5 machine 2) on the dev machine, I compiled gcc 4.9.3 from sources, installed it locally and updated the build system (cmake, etc..) with only local builds, if possible from source. By exploiting LD_LIBRARY_PATH, I l

Re: [CMake] Link to local glibc

2017-03-07 Thread Michele Portolan
07-03-17 om 17:56 schreef Michele Portolan: > Hello, > > I build on a Ubuntu machine (kernel 4.4.0-64-generic), but I need my > program to be executed on an old Cento 5.8 (kernel 2.6.18). I tried > compiling with "-static" to have static linking, b

[CMake] Link to local glibc

2017-03-07 Thread Michele Portolan
Hello, I build on a Ubuntu machine (kernel 4.4.0-64-generic), but I need my program to be executed on an old Cento 5.8 (kernel 2.6.18). I tried compiling with "-static" to have static linking, but when I try to execute I get "ERROR: Kernel too old!" I therefore locally compiled a glibc with

[CMake] ExternalProject_add not buing launched

2017-02-27 Thread Michele Portolan
Hello, I am trying to set my Cmake project to build the "xmlrpc-c" library, which is built using autotools. I was somewhat able to set it up following this example: http://mirkokiefer.com/blog/2013/03/cmake-by-example/ My resulting CMakeList is the following: ExternalProject_Add( project_xm

Re: [CMake] Comaptibility with older gcc

2017-01-28 Thread Michele Portolan
ours of wall time, five minutes of your time. Github.com/llnl/spack On Jan 27, 2017 12:04 PM, "Michele Portolan" < michele.porto...@grenoble-inp.fr> wrote: I have a project that build correctly using gcc 4.9.3, generating a dynamic library that I can later link to obtain my ex

[CMake] Comaptibility with older gcc

2017-01-27 Thread Michele Portolan
I have a project that build correctly using gcc 4.9.3, generating a dynamic library that I can later link to obtain my executables. So, nothing special. My problem is that on one of my target systems, I only have a gcc 4.1.2 and I am forced to use it for at least linking the last executable.

Re: [CMake] Crosscompilation woes

2016-10-10 Thread portolan
code for this particular bit ? Regards /R *From:*portolan [mailto:michele.porto...@imag.fr] *Sent:* den 10 oktober 2016 11:33 *To:* Robert Bielik ; Craig Scott *Cc:* Cmake@cmake.org *Subject:* Re: [CMake] Crosscompilation woes I cannot answer your question: I am a newcomer to Cmake (I have

Re: [CMake] Crosscompilation woes

2016-10-10 Thread portolan
In my project I build on Linux i686 and I use a Toolchain file to specify the ARM cross-compiler https://cmake.org/cmake/help/v3.6/manual/cmake-toolchains.7.html The nice thing is that if you mark some files as "generated" CMAKE will automatically use the build rather than the target toolchain

Re: [CMake] Crosscompilation woes

2016-10-10 Thread portolan
what I’m after. You specify cmake v3.6 docs ? Is it only working from 3.6.x ? I have 3.5.2 on my build system. Regards /Robert *From:*portolan [mailto:michele.porto...@imag.fr] *Sent:* den 10 oktober 2016 11:27 *To:* Robert Bielik ; Craig Scott *Cc:* Cmake@cmake.org *Subject:* Re: [CMake

Re: [CMake] Splitting in multiple directories

2016-07-15 Thread portolan
Yes, it was add_subirectory. I tried once more after cleaning up the CMakeList.txt and now it worksI must have ad some spurious settings generating the error. Thanks, Michele Le 13/07/2016 à 22:48, Alexander Neundorf a écrit : On Tuesday 12 July 2016 09:00:43 portolan wrote: Hello

[CMake] Splitting in multiple directories

2016-07-12 Thread portolan
Hello, I am new to Cmake and I have a pretty strange behaviour: I set my c+++ project to work with a single CMakefile.txt, and now I am trying to have a more proper version with a .txt for each subdirectory Pretty normal stuff, my source tree is: --Lib(my sources)

[CMake] Package shared libraries when linking

2016-07-11 Thread portolan
Hello, I am building a C++14 projet in CMAKE for both Intel and ARM target, so I set up the cross-compilation and everything works fine build-wise. Unfortunately my ARM target Linux kernel does not have a libstdc++.so.6 so I cannot run the executable.is it possible to have CMAKE statical

[CMake] Configuring CxxTest

2016-06-24 Thread portolan
Hello, I setup my first cmake projet, but I have some problems with generating my CxxTest suite. I can easily call up the CxxTest packgage and specify the generator using "CXXTEST_PYTHON_TESTGEN_EXECUTABLE" following the instruction of the documentation (https://cmake.org/cmake/help/v3.0/modul