Difference between revisions of "Developer Meetings/20130305"

From Slicer Wiki
Jump to: navigation, search
Line 6: Line 6:
 
** Idea: Minimize confusion
 
** Idea: Minimize confusion
 
* DIcom issue of Daniel - See http://slicer-devel.65872.n3.nabble.com/Problem-with-DICOM-module-tt4027815.html
 
* DIcom issue of Daniel - See http://slicer-devel.65872.n3.nabble.com/Problem-with-DICOM-module-tt4027815.html
 +
* Python: https://github.com/jcfr/python-cmake-buildsystem
 +
<pre>
 +
# Download python source and CMake build system
 +
## Windows/Unix: Open your unix terminal or windows git bash console, then run:
 +
 +
git clone git://github.com/jcfr/python-cmake-buildsystem -b next
 +
curl -O http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
 +
tar -xzvf Python-2.7.3.tgz
 +
mkdir Python-2.7.3-build
 +
cd Python-2.7.3-build
 +
 +
 +
# Configure the project
 +
## Windows:
 +
 +
Open cmake-gui
 +
Source dir : /path/to/python-cmake-buildsystem
 +
Build dir  : /path/to/Python-2.7.3-build
 +
Configure & Generate
 +
Open /path/to/Python-2.7.3-build/Python27.sln
 +
Build all
 +
Run /path/to/Python-2.7.3-build/bin/python.exe
 +
 +
 +
## Unix (MacOSX, Linux)
 +
 +
cd Python-2.7.3-build
 +
cmake ../python-cmake-buildsystem
 +
make -j8
 +
./bin/python
 +
 +
 +
 +
Available build options:
 +
 +
ENABLE_SHARED:  Build python static library
 +
ENABLE_STATIC:    Build python shared library
 +
 +
ENABLE_<EXTENSION>: If ON, the corresponding python extension will be built.
 +
BUILTIN_<EXTENSION>:  If ON, the corresponding python extension will be built-in the built python librarie(s). No need to use Setup.local
 +
 +
 +
To report problem, create an issue: https://github.com/jcfr/python-cmake-buildsystem/issues
 +
</pre>
  
 
== Conclusion ==
 
== Conclusion ==

Revision as of 21:03, 5 March 2013

Home < Developer Meetings < 20130305

To discuss

# Download python source and CMake build system
## Windows/Unix: Open your unix terminal or windows git bash console, then run:

git clone git://github.com/jcfr/python-cmake-buildsystem -b next
curl -O http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar -xzvf Python-2.7.3.tgz
mkdir Python-2.7.3-build
cd Python-2.7.3-build


# Configure the project
## Windows:

Open cmake-gui
 Source dir : /path/to/python-cmake-buildsystem
 Build dir  : /path/to/Python-2.7.3-build
 Configure & Generate
Open /path/to/Python-2.7.3-build/Python27.sln
 Build all
Run /path/to/Python-2.7.3-build/bin/python.exe


## Unix (MacOSX, Linux)

cd Python-2.7.3-build
cmake ../python-cmake-buildsystem
make -j8
./bin/python



Available build options:

 ENABLE_SHARED:   Build python static library
 ENABLE_STATIC:     Build python shared library

 ENABLE_<EXTENSION>: If ON, the corresponding python extension will be built.
 BUILTIN_<EXTENSION>:  If ON, the corresponding python extension will be built-in the built python librarie(s). No need to use Setup.local


To report problem, create an issue: https://github.com/jcfr/python-cmake-buildsystem/issues

Conclusion