Closed paskino closed 6 years ago
@paskino thanks a lot for working on this. I have one branch where new modules have been added, shall I commit it to master so we can resolve some conflicts before merging?
This branch seems to work now. I shuffled stuff around, so I used Core
instead of functions
directory and so forth. Notice that I will remove the directories functions, python, matlab
because I moved them.
You don't have to merge to master your branch, but you could add your changes to the new branch I create.
A simple CMake command that will work, suppose that build
is a child of the repo dir :
mkdir build
cd build
cmake ../ -DBUILD_PYTHON_WRAPPER=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install
make install
the python bindings will be installed in ./install/python
. To use it you need to set the LD_LIBRARY_PATH
.
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:./install/python/tomophantom
Then it'll work.
where ./install
directory is actually created (python bindings )? Somehow I cannot find tomophantom after installation. Does this correct?
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:./install/python/tomophantom
It is a relative path, so it is a subdirectory (at least) of the build directory (the directory where you issue cmake the first time and then make.
In my example I created a build
directory in the repository. From that directory I issued Cmake, so ./install
is a subdirectory of build
. To avoid confusion you can use absolute paths.
The LD_LIBRARY_PATH
is another relative path. But it must point to the install/python
or install/lib
directory.
I suggest, when happy to merge to master. I'll take care of Matlab in another branch.
I'm working on restoring the demos to working order and commit soon.
Daniil, could you work in a branch of this? I'm doing a few things that might disrupt your changes.
Just git checkout -b restore_demos
and then you can rebase or merge with cmaking
although I still have some issues with CMake I suggest we pull this one?
Although os.path.dirname
thing didn't work, I'm committing anyway. Demos are in working order
Work in progress to make the repository organised as CMake project.
closes #32
Still not finished!