[CMake] Libs not Found with Make Install

2010-07-20 Thread Michael . Schmidt
Howdy,

After a make install, the executable's shared library dependencies are
missing when I run "ldd".

Thanks,
Mike
___
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


Re: [CMake] Library Paths

2010-07-19 Thread Michael . Schmidt
>linking your executable to those libs or are you doing
>something like "dlopen" inside your application?
>
>--
>Erk
>Membre de l'April - « promouvoir et défendre le logiciel libre » -
>http://www.april.org

Thanks for the response.  The executable uses dlopen at runtime and was 
pointing to the "source" location.  I should have caught that. :)

-Mike
___
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] Library Paths

2010-07-19 Thread Michael . Schmidt
When I do an in-source build, everything runs ok.  However, I have
issues with an out-of-source build.  One of my libraries uses another
one of my libraries.  When I run the executable it complains "cannot
open shared object file: No such file or directory."  It's looking for
the library in the source directory and not the build tree.  I've read
the wiki page on setting the rpath, but none of those combinations seem
to work.

I appreciate any help.

Thanks,
Mike
___
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


Re: [CMake] Swig Generation

2010-07-15 Thread Michael . Schmidt
>Did you enable the -includeall option? If so, that might be the problem
>here. Try removing it, I just copied it from the FAQ.
>
>Michael

For someone new to cmake, that option seems non-intuitive.  Is there
documentation I missed?

-Mike
___
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


Re: [CMake] Swig Generation

2010-07-15 Thread Michael . Schmidt
>Did you enable the -includeall option? If so, that might be the problem
>here. Try removing it, I just copied it from the FAQ.
>
>Michael

That was it.  Thanks for all your help.

-Mike
___
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


Re: [CMake] Swig Generation

2010-07-15 Thread Michael . Schmidt
>Never done it myself, but reading the FAQ and the docs, I'd suggest
>something like this:
>
>find_package(SWIG REQUIRED)
>include(${SWIG_USE_FILE})
>find_package(PythonLibs REQUIRED)
>include_directories(
>  ${CMAKE_CURRENT_SOURCE_DIR}
>  ${PYTHON_INCLUDE_DIRS}
>  )
>
>set_source_files_properties(swig_main.i PROPERTIES
>  CPLUSPLUS ON
>  # SWIG_FLAGS "-includeall" # enable if needed by you
>  )
>
>set(SWIG_MODULE_mylib__EXTRA_DEPS swig_a.i swig_b.i regular.h)
>swig_add_module(mylib python swig_main.i regular.cxx)
>swig_link_libraries(mylib ${PYTHON_LIBRARIES})
>
>
>I hope this helps getting you started
>
>Michael

I tried doing exactly what you suggested.  When I compile, it can't find
common headers, e.g. "Error: Unable to find 'stdio.h'". If I add
"/usr/include" to the INCLUDE_DIRECTORIES, then it complains about
"Unable to find 'gnu/stubs-32.h'" and "Unable to find 'stddef.h".

Thanks,
Mike
___
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] Swig Generation

2010-07-14 Thread Michael . Schmidt
Hello again,

I read the FAQ on Swig generation, but I still have a couple questions.
Here's a snippet from my original Makefile.am:

mylib_la_SOURCES = swig_main.i regular.cxx swig_gen.cxx

...

swig_gen.cxx : swig_main.i swig_a.i swig_b.i regular.h
swig -Wall $(INCLUDES) -c++ -python -o swig_gen.cxx swig_main.i

Basically, I'm trying to build a library with a regular cxx file and a
swig generated cxx file.  The swig ".i" file includes the swig_a.i and
the swig_b.i files.  I couldn't figure out how to do this in cmake after
reading the swig example.

Thanks for your help,
Mike

___
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] CMakeCache Files

2010-07-14 Thread Michael . Schmidt
I'm a newbie with cmake, and I wanted to clarify a couple things.  From
what I understand, there's no command to clear CMakeCache files.  If I
add a new file or change the CMakeLists, then I have to delete the
CMakeCache files manually.  If I change an option using ccmake, do I
have to remove the cache files before "generating"?

Thanks,
Mike
___
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] Macro Problem

2010-07-14 Thread Michael . Schmidt
Hello,

My project has third party source in a subdirectory.  The third party
source has to be compiled without special options.  With autoconf, we
had "CFLAGS =".  How would I do the same with cmake and restore CFLAGS
to their original value in the parent directory?

Thanks,
Mike


___
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