VCG library needs to be found in the same directory as the nexus
directory.
git clone [email protected]:cnr-isti-vclab/vcglib.git
git clone [email protected]:cnr-isti-vclab/corto.git
Corto can be installed (in linux) after compilation:
cmake ./
make
sudo make install
sudo ldconfig
or placed in the parent directory of Nexus, in which case you need to add ../../../corto
to the include_directories
line in these files
./src/nxsbuild/CMakeLists.txt
./src/nxsedit/CMakeLists.txt
./src/nxsview/CMakeLists.txt
See Glew for build instructions.
git clone [email protected]:nigels-com/glew.git
or
sudo apt-get install libglew-dev
or
brew install glew
Again if glew is compiled and not installed, you need to add the include directory in CMakeLists.txt for nxsedit, nxsview and nxsbuild:
include_directories(../../../vcglib ../../../vcglib/eigenlib ../../../glew-2.1.0/include )
nxsview support view over http, curl is needed:
sudo apt install libcurl4-openssl-dev
Download from App Store and Open Xcode to initialize. Then install the command line tools
xcode-select --install
brew install cmake
And in settings > Build,Execution,Deployment > CMake
add CMake options:
-D CMAKE_PREFIX_PATH=/your/path/to/Qt/5.11.1/gcc_64/lib/cmake
brew install pkg-config
brew install qt5
# copy the path
brew info qt5
# run cmake with qt5 path flag or add flag to shell
cmake . -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.12.3
Within CMakeLists.txt
you might have to add glew to the include_directories
line:
include_directories(../../../vcglib ../../../vcglib/eigenlib ../../../glew-2.1.0/include )
The .pro files
src/nxsbuild/nxsbuild.pro
src/nxsedit/nxsedit.pro
src/nxsview/nxsview.pro
can be loaded using QTCreator or using the commandline.
cd src/nxsbuild
qmake nxsbuild.pro
make
In nxsedit.pro and nxscompress.pro, line 20, you might have to
replace unix:INCLUDEPATH += /usr/local/lib
with unix:INCLUDEPATH += /usr/local/lib /usr/local/include
cd src/nxsedit
qmake nxsedit.pro
make
qmake nxscompress.pro
make
In nxsview.pro, line 20, you might have to
replace unix:INCLUDEPATH += /usr/local/lib
with unix:INCLUDEPATH += /usr/local/lib /usr/local/include /usr/local/Cellar/glew/2.1.0/include
cd src/nxsview
qmake nxsview.pro
make