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

[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

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

Re: [CMake] Link to local glibc

2017-03-07 Thread Michele Portolan
-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, but whe

[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(

Re: [CMake] Comaptibility with older gcc

2017-01-28 Thread Michele Portolan
>: Get spack, then use it to build GCC 4.9.3 takes a couple hours 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, g

[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.