[CMake] cmakeConfigureFile libfoo.pc.in Question

2013-10-14 Thread lux-integ
Greetings,
I have a projest (normally built with autotools )  with 
libfoo.pc.in.  

suppose libfoo.pc.in  looks like this:-
#-
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/foo2

Name: libfoo
Description:a library about swine foods
Version: @VERSION@
Libs: -L${libdir} -Wl,-rpath,${exec_prefix}/lib -lfoo
Cflags: -I${includedir}
#---

 I want to replace all the variables with the  @@  and generate the libfoo.pc 
and install this at installation time to ~/prefix/lib/pkgconfig 


Is this simply a case of running configure_file like so:-

#--
configure_file(${CMAKE_SOURCE_DIR}/libfoo.pc.in   
${CMAKE_BINARY_DIR}/libfoo.pc  @ONLY)
install(file ${CMAKE_BINARY_DIR}/libfoo.pc DESTINATION lib/pkgconfig )
#-

and will the required variables be substitued ? 
or is there more to it. (in-other-words  will I have to  set varibles such as 
these (or somesuch ) 
set(libdir ${CMAKE_INSTALL_PREFIX}/lib )
set(includedir ${CMAKE_INSTALL_PREFIX}/include )
set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin )
???

Thanks in advance
sincerely
luxInteg
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] cmake and lincurl woes -help

2013-08-13 Thread lux-integ
On Tuesday 13 August 2013 19:35:25 lux-integ wrote:

> I recently tried building poppler-2.24.0.  As far as I know openldap is not
> a depenfency of poppler but poppler failed to compile ending like  so:-
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_sasl_bind@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_get_dn_ber@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ber_sockbuf_add_io@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_unbind_ext@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_get_attribute_ber@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_parse_result@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_set_option@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_abandon_ext@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_msgfree@OPENLDAP_2.4_2' /usr/lib64/libcurl.so.4: undefined reference
> to `ldap_result@OPENLDAP_2.4_2' /usr/lib64/libcurl.so.4: undefined
> reference to
> `ldap_search_ext@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_get_option@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ber_memfree@OPENLDAP_2.4_2' /usr/lib64/libcurl.so.4: undefined reference
> to `ldap_memfree@OPENLDAP_2.4_2' /usr/lib64/libcurl.so.4: undefined
> reference to
> `ldap_pvt_url_scheme2proto@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_next_message@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to `ber_free@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_err2string@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_init_fd@OPENLDAP_2.4_2' /usr/lib64/libcurl.so.4: undefined reference
> to `ldap_msgtype@OPENLDAP_2.4_2' /usr/lib64/libcurl.so.4: undefined
> reference to
> `ldap_free_urldesc@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_url_parse@OPENLDAP_2.4_2'
> /usr/lib64/libcurl.so.4: undefined reference to
> `ldap_first_message@OPENLDAP_2.4_2'
> collect2: error: ld returned 1 exit status
> 
> I would be grateful   for some advice
> 
> a) whether to up grade to a new version of cmake or curl or both and if so
> whether to yank out the old version(s) beforehand or just install over.
> 
> Thanks in advnance
> 
problem fixed it was with ldap
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] cmake and lincurl woes -help

2013-08-13 Thread lux-integ
Greeetings,

I have a computer with these:
--OS cblfs 64-bit-linux (3.10.6) amd64
--curl -70.30.0, cmake-2.8.11, openldap-2.4.35

I notice each tme I call /usrlocal//bin/cmake in a shell 

I end up with lines like these :-

/usr/local/bin/cmake: /usr/local/lib/libldap-2.4.so.2: no version information 
available (required by /usr/lib/libcurl.so.4)
/usr/local/bin/cmake: /usr/local/lib/liblber-2.4.so.2: no version information 
available (required by /usr/lib/libcurl.so.4)

though the cmake build  goes to completion.

I recently tried building poppler-2.24.0.  As far as I know openldap is not a 
depenfency of poppler but poppler failed to compile ending like  so:-
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_sasl_bind@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_get_dn_ber@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ber_sockbuf_add_io@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_unbind_ext@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_get_attribute_ber@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_parse_result@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_set_option@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_abandon_ext@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ldap_msgfree@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ldap_result@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_search_ext@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_get_option@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ber_memfree@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ldap_memfree@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_pvt_url_scheme2proto@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_next_message@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ber_free@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_err2string@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ldap_init_fd@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ldap_msgtype@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_free_urldesc@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_url_parse@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_first_message@OPENLDAP_2.4_2'
collect2: error: ld returned 1 exit status

I would be grateful   for some advice

a) whether to upgrade to a new version of cmake or curl or both and if so 
whether to yank out the old version(s) beforehand or just install over.

Thanks in advnance

sinceely
luxInteg
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] cmake and lincurl woes -help

2013-08-13 Thread lux-integ
Greeetings,

I have a computer with these:
--OS cblfs 64-bit-linux (3.10.6) amd64
--curl -70.30.0, cmake-2.8.11, openldap-2.4.35

I notice each tme I call /usrlocal//bin/cmake in a shell 

I end up with lines like these :-

/usr/local/bin/cmake: /usr/local/lib/libldap-2.4.so.2: no version information 
available (required by /usr/lib/libcurl.so.4)
/usr/local/bin/cmake: /usr/local/lib/liblber-2.4.so.2: no version information 
available (required by /usr/lib/libcurl.so.4)

though the cmake build  goes to completion.

I recently tried building poppler-2.24.0.  As far as I know openldap is not a 
depenfency of poppler but poppler failed to compile ending like  so:-
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_sasl_bind@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_get_dn_ber@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ber_sockbuf_add_io@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_unbind_ext@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_get_attribute_ber@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_parse_result@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_set_option@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_abandon_ext@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ldap_msgfree@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ldap_result@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_search_ext@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_get_option@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ber_memfree@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ldap_memfree@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_pvt_url_scheme2proto@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_next_message@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ber_free@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_err2string@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ldap_init_fd@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to `ldap_msgtype@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_free_urldesc@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_url_parse@OPENLDAP_2.4_2'
/usr/lib64/libcurl.so.4: undefined reference to 
`ldap_first_message@OPENLDAP_2.4_2'
collect2: error: ld returned 1 exit status

I would be grateful   for some advice

a) whether to up grade to a new version of cmake or curl or both and if so 
whether to yank out the old version(s) beforehand or just install over.

Thanks in advnance

sinceely
luxInteg
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] why are includes not used from installed prefix?

2010-04-20 Thread lux-integ
I am a novice with cmake dabbling with KDE4  and a little with blender) (on 
X86_64(only) Linux. Some of our applications are installed in prefix /opt
For KDE4 compilation for example  I noticed that libraries  are detected  ( 
reported correctly by cmake )  but  often 'make'  fails as  the includes 
seems to  'required'  in /usr.  

are these   errors  OR  methods?
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] nomenclature question

2010-04-15 Thread lux-integ
Greetings,

I am new to the list.

I am having difficulty compiling kdebase-workspace-4.4.2  on on a pure-64-bit 
linux (kernel-2.6.33) setup.  I already   described details of the problem ( 
http://mail.kde.org/pipermail/kde-buildsystem/2010-April/006863.html ).

Basically I do not have Xorg-7.5 in /usr and although some X-libraries are 
found   quite a few are not  ( For example  trawling through build/cmake  
revealed (not just for libXi which aborted the compilation) the following):-

  excerpts  from build/CMakeError.log ##


/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align 
-Werror-implicit-function-declaration -Wchar-subscripts -Wall -W 
-Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute 
-fno-common  -DCHECK_FUNCTION_EXISTS=XkbLockModifiers   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lX11 /usr/X11R7.5/lib64/libSM.so 
/usr/X11R7.5/lib64/libICE.so /usr/X11R7.5/lib64/libX11.so 
/usr/X11R7.5/lib64/libXext.so /usr/X11R7.5/lib64/libXft.so 
/usr/X11R7.5/lib64/libXau.so /usr/X11R7.5/lib64/libXdmcp.so 
/usr/X11R7.5/lib64/libXpm.so -Wl,-rpath,/usr/X11R7.5/lib64 
/usr/bin/ld: cannot find -lX11

/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align 
-Werror-implicit-function-declaration -Wchar-subscripts -Wall -W 
-Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute 
-fno-common  -DCHECK_FUNCTION_EXISTS=XF86MiscSetGrabKeysState   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lXxf86misc 
/usr/bin/ld: cannot find -lXxf86misc

/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align 
-Werror-implicit-function-declaration -Wchar-subscripts -Wall -W 
-Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute 
-fno-common  -DCHECK_FUNCTION_EXISTS=_IceTransNoListen   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lICE 
/usr/bin/ld: cannot find -lICE

/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align 
-Werror-implicit-function-declaration -Wchar-subscripts -Wall -W 
-Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute 
-fno-common  -DCHECK_FUNCTION_EXISTS=glXChooseVisual   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lGL 
/usr/bin/ld: cannot find -lGL

/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align 
-Werror-implicit-function-declaration -Wchar-subscripts -Wall -W 
-Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute 
-fno-common  -DCHECK_FUNCTION_EXISTS=XScreenSaverQueryInfo   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lXss 
/usr/bin/ld: cannot find -lXss

/usr/bin/gcc  -m64   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align 
-Werror-implicit-function-declaration -Wchar-subscripts -Wall -W 
-Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute 
-fno-common  -DCHECK_FUNCTION_EXISTS=_XiGetDevicePresenceNotifyEvent   
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o 
cmTryCompileExec -rdynamic -lXi 
/usr/bin/ld: cannot find -lXi



I   therefore am planning to have a go at using the techniques described here  
for Imagemagick  ( http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries  )  
to find the required xlibraries. I have two sets of questions:-

SET A:-
I do not know the 'names' used by kde/cmake to describe these  'packages' 

a) is it the library name  such as lX11, lXxf86misc, lICE, lGL, lXi  or are 
these prefixed by lib such as libX11, libXxf86misc, libICE, libGL, libXi ?
b) is in the 'package.config' name such as xi.pc etc ?
c) is it something else and if so what is it?

SET B:-
I do not know how pkgconfig is called by cmake  nor the search path for *.pc 
files   are handled by cmake   though I have tried reading the cmake online 
manual  Thus:-

a) is there an Environmental_variable  setting for  PkgConfigPath for cmake 
and if so what is it? OR
b) does cmake rely on the $PKG_CONFIG_PATH variable setting   in /etc/profile?
c) how is pkgconfig  called in cmake?  -is with package name (i.e. *.pc ) (or 
otherwise -and what is returned?

 
Replies would be appreciated.

sincerely

lux-integ
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake