[CMake] FindPostgreSQL.cmake doesn't find headers and libraries

2012-05-08 Thread Mauricio Klein
Hello everybody! I'm trying to make CMake find the following files from PostgreSQL package: - libpq-fe.h - library pq (i mean, -lpq) I'm using the Find script attached to this e-mail, but neither header and libraries are found. I'm sure the both are installed. Taking a look at the script, i saw

Re: [CMake] String error Cmake

2012-04-03 Thread Mauricio Klein
gree that was a mistake of my part: the string type was found, but no implementation to the function was provided. Again, thank you very much for your attention! On Tue, Apr 3, 2012 at 4:02 PM, Andreas Pakulat wrote: > On 03.04.12 15:46:08, Mauricio Klein wrote: > > The complet

Re: [CMake] String error Cmake

2012-04-03 Thread Mauricio Klein
Aaron Wright > > > > > From:Mauricio Klein > To:cmake@cmake.org > Date:04/03/2012 11:49 AM > Subject:Re: [CMake] String error Cmake > Sent by:cmake-boun...@cmake.org > -- > > > > One more in

Re: [CMake] String error Cmake

2012-04-03 Thread Mauricio Klein
Guys, i'm so sorry! It was a programmin mistake. I've defined the function without putting the Class name before it's name. Thanks Andreas for your help! On Tue, Apr 3, 2012 at 3:48 PM, Mauricio Klein wrote: > One more information: > > Andreas, i'm compiling at

Re: [CMake] String error Cmake

2012-04-03 Thread Mauricio Klein
One more information: Andreas, i'm compiling at least 10 .cpp codes, many of them using string without problems. The error is occurring just in this function, but i've assured that string libraries are included. On Tue, Apr 3, 2012 at 3:46 PM, Mauricio Klein wrote: > The complete

Re: [CMake] String error Cmake

2012-04-03 Thread Mauricio Klein
int runCommand(const char* command, unsigned int timeout, string& output); I've already included "" and declared "using namespace std". Thanks for any reply! On Tue, Apr 3, 2012 at 3:37 PM, Andreas Pakulat

[CMake] String error Cmake

2012-04-03 Thread Mauricio Klein
Hello fellows! I'm compiling my code using CMake and i'm receiving a linker error like this: std::basic_string, std::allocator > After few researches on the internet, i realized that this kind of error occurs when compiling a C++ code with GCC, instead G++. My question is: how can i force CMake

Re: [CMake] Can't generate Release build in Visual Studio 9

2012-02-28 Thread Mauricio Klein
Hello everybody! Sorry for the late in reply. I had a 'miss configured' filter dropping all my mails. Thanks for all replies sent. All of them have great hints on how to solve this problem. But, after the Thielemans reply, i decided that the build type must be selected from inside the Visual Stud

Re: [CMake] Cpack Nsis not installing libraries

2012-02-28 Thread Mauricio Klein
m using 'Pthreads-Win32' instead the Threads implemented by the Windows API, and, once there isn't a proper installer to 'Pthreads-Win32' (OpenSSL has!), i can't rely in a library installed elsewhere then the Installation directory. Thanks in advance for your attention

[CMake] Can't generate Release build in Visual Studio 9

2012-02-24 Thread Mauricio Klein
Hello fellows! I'm using CMake to compile and CPack to pack my codes. The Linux version is working very well. But now i'm porting the CMakeLists.txt to Windows and i'm having some problems: My main problem is: how can i set the build type in Visual Studio to "Release" instead "Debug"? I've alre

[CMake] How to generate DEPENDS on CMake

2011-11-17 Thread Mauricio Klein
Hello guys! There are lots of informations on internet about how to create DEPENDS on CMake, but none of them answered my question. I have a daemon being compiled very well with CMake. Now, i want to pack this binary to distribution. Once the clients have a wide variety of Linux distributions, i

[CMake] CMake deleting SVN directories

2011-11-16 Thread Mauricio Klein
Hello guys! I have researched a lot about it but can't find a solution. I have a project under SVN control and using CMake to compile the whole code. But, when i run "make clean", the CMake clean its temporary directories and the .svn directories too, what cause many troubles when commiting the c

Re: [CMake] Undefined reference

2011-11-04 Thread Mauricio Klein
I see. Well, i will research about package managers to perform this tasks automatically. Better than manipulate libraries myself. Thanks guys for every reply sent! On Fri, Nov 4, 2011 at 5:00 AM, Hendrik Sattler wrote: > Am 03.11.2011 15:51, schrieb Mauricio Klein: > > Thank you Ra

Re: [CMake] Undefined reference

2011-11-03 Thread Mauricio Klein
ldd reports that is not dynamically executable, as expected. But even ldd saying that, the problem with GLIBC occurs. On Thu, Nov 3, 2011 at 3:33 PM, Michael Hertling wrote: > On 11/03/2011 06:20 PM, Mauricio Klein wrote: > > The error reported occurs in the launch time: the daemo

Re: [CMake] Undefined reference

2011-11-03 Thread Mauricio Klein
overy what exactly is happening. Once again, thank you so much for your help! On Thu, Nov 3, 2011 at 3:09 PM, Michael Hertling wrote: > On 11/03/2011 03:51 PM, Mauricio Klein wrote: > > Thank you Raphael, it worked! > > > > One last question: i've tried to compile my cod

Re: [CMake] Undefined reference

2011-11-03 Thread Mauricio Klein
this problem? Or maybe another approach in CMake, where i embed all the needed libraries... Thanks for your attention! On Thu, Nov 3, 2011 at 12:19 PM, Raphael Kubo da Costa wrote: > Mauricio Klein > writes: > > > I can compile all my codes without problems, but in the linkage s

[CMake] Undefined reference

2011-11-03 Thread Mauricio Klein
Hello guys! I'm new in CMake world, and i'm trying to compile a daemon developed a log time ago. I can compile all my codes without problems, but in the linkage step, i receive a lot of errors about undefined reference to OpenSSL functions (yes, my code uses OpenSSL). In my own (and ugly :P) Make