Thanks Artyom, that is exactly what I was looking for, works well.
Best regards,
hce
On Tue, Jan 4, 2011 at 10:05 PM, Artyom <art...@ya...> wrote:
>> From: hce <web...@gm...>
>>
>> Hi,
>>
>> I am building cppcms-0.99.5 with non-standardard pcre and libgcrypt
>> location. I set up pcre and libgcrypt in ldconfig
>
> Fist of all you need make sure you specify the path to the
> location of these files in CMake
>
> cmake -DCMAKE_INCLUDE_PATH="/opt/myprce/include;/opt/mygcrypt/include" \
> -DCMAKE_LIBRARY_PATH="/opt/myprce/lib;/opt/mygcrypt/lib" \
> (other options)
>
>
> Then make sure that CMake finds what you need. i.e.:
>
> Take a look on your CMakeCache.txt
>
> It should be contain likes that look like this:
>
> //Path to a file.
> PCRE_INCLUDE:PATH=/opt/myprce/include
>
> //Path to a library.
> PCRE_LIB:FILEPATH=/opt/myprce/lib/libpcre.so
>
> //Path to a file.
> GCRYPT_INCLUDE_DIR:PATH=/opt/mygcrypt/include
>
> //Path to a library.
> LIB_GCRYPT:FILEPATH=/opt/mygcrypt/lib/libgcrypt.so
>
>
> And not pointing to standard location /usr/lib/libpcre.so
>
>> I've still got
>> error of "undefined reference to `pcre_fullinfo" and "undefined
>> reference to `gcry_cipher_setkey".
>
> Are these the only functions you miss and other don't
> like gcry_cipher_encrypt and pcre_compile?
>
> If so can this be an issue with your specific build of these libraries
> that miss these functions, or it may be that CMake searches for the libraries
> in standard location rather in the location you need.
>
>> Is there any way to set up pcre and
>> libgcrypt in cmake configuration files?
>>
>
> You can specify the variables above manually, i.e.
>
> cmake \
> -DPCRE_INCLUDE:PATH=/opt/myprce/include \
> -DPCRE_LIB:FILEPATH=/opt/myprce/lib/libpcre.so \
> -DGCRYPT_INCLUDE_DIR:PATH=/opt/mygcrypt/include \
> -DLIB_GCRYPT:FILEPATH=/opt/mygcrypt/lib/libgcrypt.so \
> ..
>
> However first method is recommended (with specification if
> CMAKE_INCLUDE_PATH/CMAKE_LIBRARY_PATH
>
> Best,
> Artyom
>
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
|