[CMake] [Cmake/SWIG/JAVA/WINDOWS] add -Wl,--kill-at flag

2011-08-04 Thread Benjamin Ruard
Hi everybody, I use CMake to wrap a c++ library in Java with swig. When I use linux OS it works very well, but when I use windows OS there is a problem. Indeed, the compilation works fine but the dll has not the correct method/fonction inside. After several researches on the web I find I must use

Re: [CMake] [Cmake/SWIG/JAVA/WINDOWS] add -Wl,--kill-at flag

2011-08-04 Thread David Cole
Are you sure you don't just need an: extern C { } block around a function implemented in a C++ file...? On Thu, Aug 4, 2011 at 7:30 AM, Benjamin Ruard ru...@artenum.com wrote: Hi everybody, I use CMake to wrap a c++ library in Java with swig. When I use linux OS it works very well, but when

Re: [CMake] [Cmake/SWIG/JAVA/WINDOWS] add -Wl,--kill-at flag

2011-08-04 Thread Benjamin Ruard
Thanks for your answer, but The block: extern C { ... } already exists. Regards. Benjamin JEANTY-RUARD Le jeudi 04 août 2011 à 08:40 -0400, David Cole a écrit : Are you sure you don't just need an: extern C { } block around a function implemented in a C++ file...? On Thu, Aug 4,

Re: [CMake] CMake + SWIG = Java JNI problems

2010-03-23 Thread Chris Hamons
Anybody want to take a stab at this? Maybe point me to the e-mail address of somebody who could help. I've read what documentation exists and poked around the source code to no avail. Google gives no helpful answers. Thanks, --Chris On Sun, Mar 21, 2010 at 11:20 PM, Chris Hamons

[CMake] CMake + SWIG = Java JNI problems

2010-03-21 Thread Chris Hamons
Hello everyone, I'm having trouble mixing cmake and swig to make a java JNI module. It looks roughly: IF(DEFINED SWIG_JAVA) FIND_PACKAGE(JNI REQUIRED) include_directories(${JNI_INCLUDE_DIRS}) SET(CMAKE_SWIG_OUTDIR

[CMake] cmake swig R

2009-11-03 Thread Li, Shenghua
Dear all, Anybody has a template file (CMakeLists.txt) to use swig create R wrapper and compile a c++ library for R package? (The c++ library includes several subdirecotories). Thank you, Shenghua Li ___ Powered by www.kitware.com

Re: [CMake] CMake SWIG module

2009-10-12 Thread Tristan Carel
Hi Mathieu, I have been off the line for a while because of the network security policy of my new client and my new internet provider who needs almost a month to activate a line :/ Anyway I don't have much time to allocate to maintain the swig module anymore. Some issues are still pending, I am

[CMake] CMake SWIG module

2009-10-03 Thread Mathieu Malaterre
Hi, I'd like to become the new maintainer of the swig module in cmake. I have not heard back from Tristan Carel. I have updated my name on : http://www.cmake.org/Wiki/CMake:Module_Maintainers Thank you, -- Mathieu ___ Powered by www.kitware.com

Re: [CMake] CMake SWIG support for nested python modules

2009-04-13 Thread Bill Hoffman
Bill Spotz wrote: So I was able to solve my problem of duplicate python target names generated from SWIG interface files: PyTrilinos/NOX/___init__.so PyTrilinos/NOX/Epetra/___init__.so by overhauling UseSWIG.cmake to take advantage of the OUTPUT_NAME property of the

[CMake] CMake SWIG support for nested python modules

2009-03-31 Thread Bill Spotz
Hello, I am the developer of PyTrilinos, the python interface to Trilinos and I have hit upon some unexpected behavior. I am trying to wrap the interface to NOX, which utilizes nested namespaces. I shadow this structure in python by utilizing nested modules. For example, a subset of

[CMake] CMake + SWIG

2006-07-25 Thread Daniel Tihelka
Hallo everybody, may I have two more simple questions about CMake and SWIG module? The first is connected to the setting of SWIG parameters - when I create wrapper for Java, I need to set -package name to SWIG. It is impossible to set is as: SET_SOURCE_FILES_PROPERTIES( ErisJava.i

Re: [CMake] CMAKE + SWIG + more wrapped languages

2006-07-24 Thread Daniel Tihelka
Great, this is a good idea, thank you very much! I have tried to create wrap/python/ModulePy.i including the original wrap/Module.i only, and when it was called as .../python $ swig -c++ -python -I../ Module.py everything seemed to be OK (well, I did not try to compile it, I just

Re: [CMake] CMAKE + SWIG + more wrapped languages

2006-07-24 Thread Daniel Tihelka
I am sorry - the previous mail was wrong. The directives: SET_SOURCE_FILES_PROPERTIES( ErisPython.i PROPERTIES CPLUSPLUS ON ) SET_SOURCE_FILES_PROPERTIES( ErisPython.i PROPERTIES SWIG_FLAGS -I../) seems to work fine. The -I../ flag is set in the SWIG call. I had to miss