Michael Hertling | 1 Jan 17:56 2011
Picon

Re: CMAKE uses wrong symlink to so

On 12/31/2010 03:43 PM, Michael Wild wrote:
> On 12/31/2010 02:48 PM, Michael Hertling wrote:
>> On 12/31/2010 11:56 AM, Michael Wild wrote:
>>> On 12/30/2010 07:55 PM, j s wrote:
>>>> Hello Michael Wild,
>>>>
>>>> I regret deciding to go with an Python parser for my application.  I use
>>>> such a small subset of the API, I was hoping to be able to rerelease my app
>>>> everytime it changes.
>>>>
>>>> Apparently Python 2.6 is frozen.
>>>>
>>>> In the future, the Python people are hoping to stabilize the ABI in the 3
>>>> series so that I can just link against a libpython3.so:
>>>> http://www.python.org/dev/peps/pep-0384/
>>>>
>>>> As stated by Michael Hertling, the symlinks are not being recursively
>>>> resolved.  The soname is encoded into the so, so the linker chooses to
>>>> ignore the original filename.
>>>>
>>>> Regards,
>>>>
>>>> Juan
>>>>
>>>> On Thu, Dec 30, 2010 at 6:23 AM, Michael Wild <themiwi@...> wrote:
>>>>
>>>>> On 12/30/2010 12:28 AM, j s wrote:
>>>>>> I specified the full name to an so in CMAKE 2.8.1.  Unfortunately it
>>>>> links
>>>>>> against the versioned so name,
(Continue reading)

Clinton Stimpson | 2 Jan 02:39 2011

new support for deploying Qt apps

There has been recent discussions about deploying Qt applications, 
especially about Qt plugins.  To address that issue, some new support 
has been added for plugins to FindQt4.cmake and I would enjoy feedback 
from any testers.

Specifically:
- support for static plugins
If you are using a static build of Qt, and your code has 
Q_IMPORT_PLUGIN() calls. You now have find_library() calls done for you 
to link with those static Qt plugins.  For example, you can use 
QT_QGIF_LIBRARY to link with the qgif static plugin.

- support for dynamic plugins
Some find_library() calls are done for these plugins, but people may 
generally not use these new variables.  Instead some new functions are 
added: qt4_deploy_plugin(), qt4_deploy_plugin_group(), 
qt4_deploy_default_plugins().

You may use it like so:
include(CPack)
install(TARGETS testqt DESTINATION bin)
qt4_deploy_default_plugins(bin/plugins)
.... other install stuff for bundle utilities.

Now, if the BundleUtilities stuff could be simpler somehow...

Thanks,
Clint

_______________________________________________
(Continue reading)

Paolo Zaffino | 2 Jan 09:49 2011
Picon

Sign a deb file builded by cpack

Dear all,
first of all my best wishes at all for an happy new year.
Do anyone know if there is a way to sign a deb package builded by cpack?
Thank you very much.
Regards.
Paolo
_______________________________________________
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

Paolo Zaffino | 2 Jan 12:56 2011
Picon

Sign a deb file builded by cpack

Dear all,
first of all my best wishes at all for an happy new year.
Do anyone know if there is a way to sign a deb package builded by cpack?
Thank you very much.
Regards.
Paolo
_______________________________________________
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

Eric Noulard | 2 Jan 13:06 2011
Picon

Re: Sign a deb file builded by cpack

2011/1/2 Paolo Zaffino <p.zaffino@...>:
> Dear all,
> first of all my best wishes at all for an happy new year.
> Do anyone know if there is a way to sign a deb package builded by cpack?
> Thank you very much.

As far as I know there is built-in support for signing deb in CPackDeb.
However using
dpkg-sig : http://packages.debian.org/search?keywords=dpkg-sig
or
debsigs: http://packages.debian.org/search?keywords=debsigs

Should work.

Note that I would happily review a patch which makes it easier
to sign deb package with some extra CPACK_DEBIAN_PACKAGE_xxx vars.

--

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
_______________________________________________
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
(Continue reading)

ny | 2 Jan 21:30 2011
Picon

Re: problem w/ "find_package"_ makefile does not always compile

greetings!

I spent enough time trying to make the software work,
so I'd be happy to get some feedback::
I built research code written in (templated) c++, size is approximately  ~15K lines. I am on a mac and do not use Cocoa(/xcode), straight from command line. Note that I choose to generate a Unix makefile, not an  xcode project and I am on snow leopard 10.6.5 w/ g++ 4.2.1. The pain was that there were no makefile coming along w/ the project, so I had to translate the *.vcproj file from scratch to CMakelists and then convert it to makefile. My directories structure (directories marked  w/ DIR_ else are files, indentation denotes deeper level):: DIR_4DMPU_exampleTest 4DMPU_example.cpp DIR_ann_1.1.2   DIR_cmake CMakeLists.txt FindANN.cmake Modules FindANN.cmake DIR_include   DIR_mc4d_tables num_tet_table.cpp tet_table.cpp vert_table.cpp DIR_4DMPU_exampleTestBin In the cmake GUI I add:ANN_LIBRARY /Users/nikos/Downloads/4DMPU_exampleTest/ann_1.1.2/include ANN_INCLUDE_DIR /Users/nikos/Downloads/4DMPU_exampleTest/ann_1.1.2/lib/libANN.a
My CMakeLists.txt is::
cmake_minimum_required(VERSION 2.8) project( 4DMPU_example ) SET (CMAKE_BUILD_TYPE DEBUG) set(SOURCE_FILES 4DMPU_example.cpp mc4d_tables/num_tet_table.cpp mc4d_tables/tet_table.cpp mc4d_tables/vert_table.cpp ) set(INCLUDE_FILES include/4dtables.h include/ann_helper.h ... # more headers include/Volume.h ann_1.1.2/include include/VolumeIO.h )include_directories( ${PROJECT_SOURCE_DIR}/ann_1.1.2/include ${PROJECT_SOURCE_DIR}/ann_1.1.2/lib include ) INCLUDE(FindANN.cmake) IF(ANN_FOUND) INCLUDE_DIRECTORIES( ${ANN_INCLUDE_DIR} ) ENDIF(ANN_FOUND) set(LIBS ${LIBS} ${ANN_LIBRARY}) add_executable( 4DMPU_example ${SOURCE_FILES} ) target_link_libraries( 4DMPU_example ${LIBS} ) and the content of the FindANN.cmake:: FIND_LIBRARY(ANN_LIBRARY lANN ${PROJECT_SOURCE_DIR}/ann_1.1.2/lib ) FIND_PATH( ANN_INCLUDE_DIR ANN/ANN.h ANN/ANNperf.h ANN/ANNx.h ${PROJECT_SOURCE_DIR}/ann_1.1.2/include ) IF(ANN_LIBRARY) IF(ANN_INCLUDE_DIR) SET(ANN_FOUND TRUE) ENDIF(ANN_INCLUDE_DIR) ENDIF(ANN_LIBRARY)
The project compiles fine this way. Now, if I follow the advice below add the lineset(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") and moreover substituteinclude_directories( ${PROJECT_SOURCE_DIR}/ann_1.1.2/include ${PROJECT_SOURCE_DIR}/ann_1.1.2/lib include )
with 
find_package(ANN REQUIRED) include_directories(${ANN_INCLUDE_DIR} include ) into CMakeLists.txt I get a linking problem. I do not reproduce the message, the point is that the ANN library is not linked w/ my object files. Can anyone tell me what I am doing wrong in the 2nd case? Note also that in the 2nd case I explicitly add:: ANN_DIR /Users/nikos/Downloads/4DMPU_exampleTest/ cmake/Modules 
in the cmake GUI.

cheers
N

_______________________________________________
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
ny | 2 Jan 22:15 2011
Picon

Re: problem w/ "find_package"_ makefile does not always compile


** Apologies for double-posting my earlier message got truncated **

greetings!

I spent enough time trying to make the software work,
so I'd be happy to get some feedback::
I built research code written in (templated) c++, size is approximately 
~15K lines. I am on a mac and do not use Cocoa(/xcode), straight from 
command line. Note that I choose to generate a Unix makefile, not an 
xcode project and I am on snow leopard 10.6.5 w/ g++ 4.2.1.
The pain was that there were no makefile coming along w/ the project, 
so I had to translate the *.vcproj file from scratch to CMakelists and 
then convert it to makefile. My directories structure (directories marked 
w/ DIR_ else are files, indentation denotes deeper level):: 

DIR_4DMPU_exampleTest
      
      4DMPU_example.cpp
      DIR_ann_1.1.2 
      DIR_cmake
      CMakeLists.txt
      FindANN.cmake
          Modules
              FindANN.cmake

      DIR_include
      
      DIR_mc4d_tables
          num_tet_table.cpp
          tet_table.cpp
          vert_table.cpp   

DIR_4DMPU_exampleTestBin

In the cmake GUI I add:
ANN_LIBRARY                  /Users/nikos/Downloads/4DMPU_exampleTest/ann_1.1.2/include
ANN_INCLUDE_DIR         /Users/nikos/Downloads/4DMPU_exampleTest/ann_1.1.2/lib/libANN.a

My CMakeLists.txt is::

cmake_minimum_required(VERSION 2.8)
project( 4DMPU_example )

SET (CMAKE_BUILD_TYPE DEBUG)

set(SOURCE_FILES
4DMPU_example.cpp
mc4d_tables/num_tet_table.cpp
mc4d_tables/tet_table.cpp
mc4d_tables/vert_table.cpp
)

set(INCLUDE_FILES
include/4dtables.h
include/ann_helper.h
                   ...                     # more headers
        include/Volume.h ann_1.1.2/include
        include/VolumeIO.h
)

include_directories( 
  ${PROJECT_SOURCE_DIR}/ann_1.1.2/include
  ${PROJECT_SOURCE_DIR}/ann_1.1.2/lib
  include
)

INCLUDE(FindANN.cmake)
IF(ANN_FOUND)
  INCLUDE_DIRECTORIES( ${ANN_INCLUDE_DIR} )
ENDIF(ANN_FOUND)

set(LIBS ${LIBS} ${ANN_LIBRARY})

add_executable( 4DMPU_example ${SOURCE_FILES} )
target_link_libraries( 4DMPU_example ${LIBS} )

and the content of the FindANN.cmake::

FIND_LIBRARY(ANN_LIBRARY lANN
${PROJECT_SOURCE_DIR}/ann_1.1.2/lib
  )
FIND_PATH( ANN_INCLUDE_DIR ANN/ANN.h ANN/ANNperf.h ANN/ANNx.h 
  ${PROJECT_SOURCE_DIR}/ann_1.1.2/include
       )

IF(ANN_LIBRARY)
  IF(ANN_INCLUDE_DIR)
SET(ANN_FOUND TRUE)
  ENDIF(ANN_INCLUDE_DIR)
ENDIF(ANN_LIBRARY)

The project compiles fine this way.

Now, the problem is that if I follow the advice below


and add the line

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

and, moreover, substitute

include_directories( 
  ${PROJECT_SOURCE_DIR}/ann_1.1.2/include
  ${PROJECT_SOURCE_DIR}/ann_1.1.2/lib
  include
)

with

find_package(ANN REQUIRED)
include_directories(${ANN_INCLUDE_DIR}
include
)

into CMakeLists.txt I get a linking problem. 
I do not reproduce the message -> the point is that the ANN library is not linked
w/ my object files. Can anyone tell me what I am doing wrong in the 2nd case? 

Note also that in the 2nd case I explicitly add::

ANN_DIR            /Users/nikos/Downloads/4DMPU_exampleTest/cmake/Modules 
 
in the cmake GUI.  


Thanks for any pointers
N
_______________________________________________
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
Todd Gamblin | 3 Jan 09:11 2011

Installing Python Modules with CMake

Is there some standard way in CMake to get a project-local install destination for python libraries, e.g.:

	${CMAKE_INSTALL_PREFIX}/lib/python2.6/site-packages

Is this something find modules typically provide?  I can construct this name easily enough myself, but it
involves querying the python executable for its version then regexing that string, and I feel like
FindPythonLibs should do stuff like that for me.  It would be nice to have something called, say,
"CMAKE_PYTHON_INSTALL_PREFIX" set to this path in advance, so that I can just install python modules there.

Or am I missing something?  I couldn't fund much on installing python files in the docs.

-Todd

_______________________________________________
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

Todd Gamblin | 3 Jan 09:17 2011

Finding Python Modules with CMake

Is there a way in CMake, once I find the python interpreter, to query for the availability of a particular module?  e.g. say I want to make sure that the host's python installation has PyQt4, or numy, or something like that.  Do I have to manually run the interpreter, try to import it, and check the return code, or is there a builtin for that?

Something like this would be handy for the python modules:


Again, I couldn't find much in the docs for this.

-Todd

_______________________________________________
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
Paolo Zaffino | 3 Jan 09:44 2011
Picon

Re: Sign a deb file builded by cpack

Thank you Eric...I'll use dpkg-sig.
Please let me know when the patch will be introduced.
Regards

On 02/01/2011 13:06, Eric Noulard wrote:
> 2011/1/2 Paolo Zaffino<p.zaffino@...>:
>> Dear all,
>> first of all my best wishes at all for an happy new year.
>> Do anyone know if there is a way to sign a deb package builded by cpack?
>> Thank you very much.
> As far as I know there is built-in support for signing deb in CPackDeb.
> However using
> dpkg-sig : http://packages.debian.org/search?keywords=dpkg-sig
> or
> debsigs: http://packages.debian.org/search?keywords=debsigs
>
> Should work.
>
> Note that I would happily review a patch which makes it easier
> to sign deb package with some extra CPACK_DEBIAN_PACKAGE_xxx vars.
>

_______________________________________________
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


Gmane