-
Notifications
You must be signed in to change notification settings - Fork 152
Add option to build debug python library #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This almost works by setting CMAKE_BUILD_TYPE:STRING=Debug except that the project generates python27.{dll,lib} instead of python27_d.{lib,dll} so that you get:
when trying to link the python executable. |
Until this is done, |
So…has anyone gotten a successful build of any kind on Windows from this build? It builds, but the install tree is unworkable. I'm getting the feeling that I'm doing things undone before here… |
Few comments:
When you mention |
Alright, so there is some hope :) . What do you do about libraries needed by compiled modules which live beside python.exe? In my case, zlib is linked by |
It seems this issue is not specific to cmake'ified python. To workaround this sort of problem and ensure the configure and build work as expected, within Slicer, there is are few concepts:
[2] https://github.com/Slicer/Slicer/blob/master/SuperBuild/python_customPythonLauncherSettings.ini.in [5] http://commontk.org/index.php/Tools:_Application_launcher [6] http://packages.kitware.com/packages/application/view?applicationId=10 |
Note also that we build Numpy 1.4.1 every night. There is also an experimental branch building the latest OpenBlas, NumPy and SciPy using a statically built mingw compiler. See https://github.com/jcfr/Slicer/tree/upgrade-to-numpy-1.9.0-and-scipy-0.14.0 Looking at the module ExternalProjectForNonCMakeProject may also be interesting. An example of use is available here: https://github.com/Slicer/Slicer/blob/7f471a37d7b168c419d2b923b821fd1dd7180199/SuperBuild/External_NUMPY.cmake#L22-L113 |
I'll have to look into the launcher thing; that's probably the way to go. A batch file should do the trick for us; I don't think we need a complete configuration system for it since we only really need it for the build steps of numpy (and I don't think the other tools we build use any of the compiled modules during their builds) and after that Unfortunately, static Qt and rest-of-stack is pretty much a no-go (I have enough headaches just getting Qt to compile normally without trying to stuff QtWebKit into a static library on a machine with less than 16G of memory…and Qt5 is around the corner…) since compiling static binaries of just ParaView already starts to push the memory limits when in a parallel build on my main machine, so we will need to support using shared libraries as dependencies of compiled modules. As for numpy, 1.4.1 is likely way too old to apply here. We're using 1.6.2 and I'd really like to bump to 1.8.x (and upstream is at 1.9.2 already…). We're currently using a hacked up build which allows us to do a static build for ParaView to use on supercomputers (though numpy's build "system" is used for normal builds), but that isn't applicable to Windows anyways. |
Test for "Debug" configuration should be re-enabled after addressing python-cmake-buildsystem#12
Test for "Debug" configuration should be re-enabled after addressing python-cmake-buildsystem#12
Test for "Debug" configuration should be re-enabled after addressing python-cmake-buildsystem#12
Test for "Debug" configuration should be re-enabled after addressing python-cmake-buildsystem#12
No description provided.
The text was updated successfully, but these errors were encountered: