View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013857 | CMake | Modules | public | 2013-01-18 05:50 | 2016-06-10 14:31 | ||||
Reporter | Mika Fischer | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | x86 | OS | Linux | OS Version | Arch | ||||
Product Version | CMake 2.8.10.2 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0013857: Cannot generate swig wrapper for python2 and python3 in the same project | ||||||||
Description | The problem is that the wrapper library target has the same name for both wrappers. I've come up with a patch that allows to use PYTHON2 and PYTHON3 as languages for the swig macros, which then use different names for the library targets. I don't know if this is the best way to solve this though... | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | ![]() | ||||||||
Relationships | |
Relationships |
Notes | |
(0034617) jschueller (developer) 2013-11-30 19:54 edited on: 2013-11-30 20:03 |
A current limitation of useswig macro is that the target module library has the same name as the internal swig module internal name ; this prevents to build two swig modules from the same module.i This could be worked around by providing a target name and a module name to swig_add_module for example. But for python2 and python3, you will face some other problems ; the findpythonlibs won't allow you to find libpython3 and libpython2 at the same time, (and for other findXXX macros regarding different versions too afaik). For this case I suggest you to call cmake twice for each version of python. This can even be done in the same build dir so as to keep the lib binaries your bindings rely on. I'll try to find a backward compatible way to provide the target/module name. |
(0042202) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-01-18 05:50 | Mika Fischer | New Issue | |
2013-01-18 05:50 | Mika Fischer | File Added: swig-python2-python3.patch | |
2013-11-30 19:54 | jschueller | Note Added: 0034617 | |
2013-11-30 19:54 | jschueller | Note Edited: 0034617 | |
2013-11-30 20:03 | jschueller | Note Edited: 0034617 | |
2016-06-10 14:28 | Kitware Robot | Note Added: 0042202 | |
2016-06-10 14:28 | Kitware Robot | Status | new => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |