help
help > How to build V3D and Matlab toolbox
Aug 31, 2011 03:08 PM | Hanchuan Peng
How to build V3D and Matlab toolbox
There are two separate issues: (1) build V3D or not, (2) build the
V3D IO Matlab toolbox or not.
For the first issue, you will need qt (of course). You can download the src code (NOT the pre-compiled one) from qt website at nokia.com. Then simply run an untar command like this (on Mac or Unix like system)
tar zxvf qt_what_ever.tar.gz
Then you can compile qt using the commands like (need to first enter the untarred qt folder)
./configure -nomake examples
make
sudo make install
Once you have qt, then build V3D is just one command (need to enter v3d src code folder)
./build.macx -B -m
The options -m will tell to build 64bit version. -B tells you to rebuild everything.
But this command, when runs for the first time, also automatically untar the bundled boost, fftw, tiff, libraries in V3D. These include files, libraries, etc will be put (automatically!) into v3d_main/common_lib folder. After that, this command will build V3D and the plugins automatically.
Thus it is clear that if you only need libtiff, you can simple run this command. When it stops and indicates that no qt exists, etc, just ignore the message. Of course, if you want to build V3D at the first place, you will not see these erroreneous msgs.
Once you have the libtiff, you are ready to build the Matlab toolbox.
There is one special note: Matlab software itself uses an old version of libtiff, which should be replaced by the libtiff library file you would produce in the above way. That old Matlab library file can be found in /Path_to_matlab/bin/maci64 (assuming you will need 64bit matlab).
-Hanchuan
For the first issue, you will need qt (of course). You can download the src code (NOT the pre-compiled one) from qt website at nokia.com. Then simply run an untar command like this (on Mac or Unix like system)
tar zxvf qt_what_ever.tar.gz
Then you can compile qt using the commands like (need to first enter the untarred qt folder)
./configure -nomake examples
make
sudo make install
Once you have qt, then build V3D is just one command (need to enter v3d src code folder)
./build.macx -B -m
The options -m will tell to build 64bit version. -B tells you to rebuild everything.
But this command, when runs for the first time, also automatically untar the bundled boost, fftw, tiff, libraries in V3D. These include files, libraries, etc will be put (automatically!) into v3d_main/common_lib folder. After that, this command will build V3D and the plugins automatically.
Thus it is clear that if you only need libtiff, you can simple run this command. When it stops and indicates that no qt exists, etc, just ignore the message. Of course, if you want to build V3D at the first place, you will not see these erroreneous msgs.
Once you have the libtiff, you are ready to build the Matlab toolbox.
There is one special note: Matlab software itself uses an old version of libtiff, which should be replaced by the libtiff library file you would produce in the above way. That old Matlab library file can be found in /Path_to_matlab/bin/maci64 (assuming you will need 64bit matlab).
-Hanchuan
Threaded View
| Title | Author | Date |
|---|---|---|
| Hanchuan Peng | Aug 29, 2011 | |
| mario negrello | Feb 22, 2016 | |
| Zhi Zhou | Feb 22, 2016 | |
| mario negrello | Feb 22, 2016 | |
| Mark Schroeder | Aug 29, 2011 | |
| Hanchuan Peng | Aug 29, 2011 | |
| Mark Schroeder | Aug 31, 2011 | |
| Hanchuan Peng | Aug 31, 2011 | |
| Mark Schroeder | Sep 1, 2011 | |
