Problem building on Ubuntu 16.0.4 LTS

797 views
Skip to first unread message

Josh Anibal

unread,
Jun 6, 2016, 5:00:32 PM6/6/16
to OpenVSP
HI Everyone,

I have been attempting to build OpenVSP on Ubuntu 16.0.4 LTS, but have been unable to thus far.

Initially, I was having issues similar to the ones found in the thread "Ubuntu 15.10 build difficulties with OpenVSP 3.4.1" . Downloading the Ubuntu_15.10_fixes branch from GitHub fixed the error associated with fluid, but I have since encountered a different error.

I have double checked that all the packages specified on the installation  wiki are installed and up to date.

Below is a shortened version of the output  I receive when I attempt to build the program (If was very long/repetitive)  . Attached is a text file with the unabridged output.
----------------------------------------------------------------------------


[  5%] Performing forcebuild step for 'Libraries'
[ 11%] Performing build step for 'Libraries'
[ 50%] Built target LIBIGES
[100%] Built target CODEELI
[ 16%] No install step for 'Libraries'
[ 22%] Completed 'Libraries'
[ 50%] Built target Libraries
[ 55%] Performing configure step for 'OpenVSP'
-- JPEG_INCLUDE_DIR /usr/include
-- JPEG_LIBRARY /usr/lib/x86_64-linux-gnu/libjpeg.so
-- JPEG_NAMES fltk_jpegfltkjpegfltkjpegdjpeg
-- GLM_INCLUDE_DIR = /usr/include
-- Found Code-Eli version 0.3.6, and requested version 0.3.6
-- CMINPACK_LIBRARY /usr/lib/x86_64-linux-gnu/libcminpack.so
-- STEPCODE_INSTALL_DIR: /home/josh/Documents/Research/OpenVSP/build/OpenVSP-prefix/src/OpenVSP-build/src/external/STEPCODE-prefix/src/STEPCODE/../sc-install
-- LIBIGES_LIBRARIES: /home/josh/Documents/Research/OpenVSP/build/Libraries-prefix/src/Libraries-build/LIBIGES-prefix/lib/libiges_static.a
-- LIBIGES_INCLUDE_DIR: /home/josh/Documents/Research/OpenVSP/build/Libraries-prefix/src/Libraries-build/LIBIGES-prefix/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/josh/Documents/Research/OpenVSP/build/OpenVSP-prefix/src/OpenVSP-build
[ 61%] Performing forcebuild step for 'OpenVSP'
[ 66%] Performing build step for 'OpenVSP'
[  2%] Built target STEPCODE
[  3%] Built target glfont2
[  3%] Built target triangle
[  5%] Built target sixseries
[  6%] Built target tritri
[ 16%] Built target Angelscript
[ 16%] Built target load_jpg
[ 28%] Built target vsp_graphic
[ 45%] Built target screens
[ 45%] Building CXX object src/util/CMakeFiles/util.dir/BndBox.cpp.o
In file included from /home/josh/Documents/Research/OpenVSP/build/Libraries-prefix/src/Libraries-build/CODEELI-prefix/src/CODEELI-build/include/eli/code_eli.hpp:32:0,
                 from /home/josh/Documents/Research/OpenVSP/repo/src/util/Vec3d.h:19,
                 from /home/josh/Documents/Research/OpenVSP/repo/src/util/BndBox.h:14,
                 from /home/josh/Documents/Research/OpenVSP/repo/src/util/BndBox.cpp:11:
/usr/include/eigen3/Eigen/src/Core/util/Macros.h:549:26: error: ‘EIGEN_DEVICE_FUNC’ does not name a type
     template<typename T> EIGEN_DEVICE_FUNC void ignore_unused_variable(const T&) {}
                          ^
/usr/include/eigen3/Eigen/src/Core/util/XprHelper.h: In constructor ‘Eigen::internal::variable_if_dynamic<T, Value>::variable_if_dynamic(T)’:
/usr/include/eigen3/Eigen/src/Core/util/Macros.h:552:36: error: ‘ignore_unused_variable’ is not a member of ‘Eigen::internal’
 #define EIGEN_UNUSED_VARIABLE(var) Eigen::internal::ignore_unused_variable(var);
                                    ^
/usr/include/eigen3/Eigen/src/Core/util/Macros.h:523:38: note: in expansion of macro ‘EIGEN_UNUSED_VARIABLE’
 #define EIGEN_ONLY_USED_FOR_DEBUG(x) EIGEN_UNUSED_VARIABLE(x)
                                      ^


....


/usr/include/eigen3/Eigen/src/OrderingMethods/Ordering.h: In member function ‘void Eigen::COLAMDOrdering<StorageIndex>::operator()(const MatrixType&, Eigen::COLAMDOrdering<StorageIndex>::PermutationType&)’:
/usr/include/eigen3/Eigen/src/Core/util/Macros.h:552:36: error: ‘ignore_unused_variable’ is not a member of ‘Eigen::internal’
 #define EIGEN_UNUSED_VARIABLE(var) Eigen::internal::ignore_unused_variable(var);
                                    ^
/usr/include/eigen3/Eigen/src/OrderingMethods/Ordering.h:146:7: note: in expansion of macro ‘EIGEN_UNUSED_VARIABLE’
       EIGEN_UNUSED_VARIABLE(info);
       ^
src/util/CMakeFiles/util.dir/build.make:62: recipe for target 'src/util/CMakeFiles/util.dir/BndBox.cpp.o' failed
make[5]: *** [src/util/CMakeFiles/util.dir/BndBox.cpp.o] Error 1
CMakeFiles/Makefile2:703: recipe for target 'src/util/CMakeFiles/util.dir/all' failed
make[4]: *** [src/util/CMakeFiles/util.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make[3]: *** [all] Error
CMakeFiles/OpenVSP.dir/build.make:113: recipe for target 'OpenVSP-prefix/src/OpenVSP-stamp/OpenVSP-build' failed
make[2]: *** [OpenVSP-prefix/src/OpenVSP-stamp/OpenVSP-build] Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/OpenVSP.dir/all' failed
make[1]: *** [CMakeFiles/OpenVSP.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

-----------------------------------------------------------------------


I am relatively new to Linux, and have no prior experience with Cmake, so any help would be greatly appreciated.

Thank you
Full_Error.txt

Steven Ruddell

unread,
Jun 20, 2016, 12:50:06 AM6/20/16
to OpenVSP
Hi Josh:

I got exactly the same errors as you did with Ubuntu 16.04. I dont have a solution, But at least you are not the only one.

Steven Ruddell

unread,
Jun 20, 2016, 4:22:15 AM6/20/16
to OpenVSP
Hi Josh:

I fixed the problem. I did the following:

1) cd build
2) rm -rf *
3) cmake -DCMAKE_BUILD_TYPE=Release -DVSP_USE_SYSTEM_FLTK=true
-DVSP_USE_SYSTEM_CPPTEST=true -DVSP_USE_SYSTEM_LIBXML2=true
-DVSP_USE_SYSTEM_EIGEN=false -DVSP_USE_SYSTEM_FLTK=true
-DVSP_USE_SYSTEM_GLM=true -DVSP_USE_SYSTEM_GLEW=true
-DVSP_USE_SYSTEM_CMINPACK=true ../repo/SuperProject
4) make ( and then wait about 15 minutes for it to finish)


On Tuesday, June 7, 2016 at 12:00:32 AM UTC+3, Josh Anibal wrote:

Marko Kauzlaric

unread,
Aug 9, 2016, 2:01:17 PM8/9/16
to OpenVSP
Josh, if I run your procedure I get:

[ 19%] Completed 'STEPCODE'
[ 19%] Built target STEPCODE
Makefile:149: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/OpenVSP.dir/build.make:114: recipe for target 'OpenVSP-prefix/src/OpenVSP-stamp/OpenVSP-build' failed
make[2]: *** [OpenVSP-prefix/src/OpenVSP-stamp/OpenVSP-build] Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/OpenVSP.dir/all' failed
make[1]: *** [CMakeFiles/OpenVSP.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Any ideas?

Josh Anibal

unread,
Aug 9, 2016, 2:58:05 PM8/9/16
to OpenVSP
Hi Marko,

Unfortunately, I did not encounter any similar errors when I tried to build. The fix Steven outlined above worked for me as well. You may want to start a separate thread, since this appears to be a new issue. 

below is a link to a zip file with executables that were compiled on my Ubuntu 16.04 LTS  64 bit system. I am not sure if they will be any help to you, but it might be worth a try.

https://drive.google.com/file/d/0B9Axu4yiikh6Wkk5V2pCd0xLc28/view?usp=sharing

 If you have anymore information about the problem, perhaps a longer version of the terminal output, that might help others narrow down the issue. 

Marko Kauzlaric

unread,
Aug 9, 2016, 5:09:36 PM8/9/16
to OpenVSP
Hi Josh, thanks for the reply.
It appears I didn't apply the ubuntu 15 pacth correctly.
It's working now, here is a script that would build and install in /opt on mint 18 or ubuntu 16.04

mkdir OpenVSP
cd
OpenVSP
mkdir build
mkdir repo
git clone https
://github.com/OpenVSP/OpenVSP.git repo
sudo apt install g
++ cmake git git-gui libxml2-dev libfltk1.3-dev libcpptest-dev libjpeg-dev libglm-dev libeigen3-dev libcminpack-dev libglew-dev fluid
cd repo
git reset
--hard HEAD
git fetch origin
git checkout
Ubuntu_15.10_fixes
cd
../build
cmake
-DCMAKE_BUILD_TYPE=Release -DVSP_USE_SYSTEM_FLTK=true -DVSP_USE_SYSTEM_CPPTEST=true -DVSP_USE_SYSTEM_LIBXML2=true -DVSP_USE_SYSTEM_EIGEN=false -DVSP_USE_SYSTEM_FLTK=true -DVSP_USE_SYSTEM_GLM=true -DVSP_USE_SYSTEM_GLEW=true -DVSP_USE_SYSTEM_CMINPACK=true ../repo/SuperProject
make
-j8
sudo cp
OpenVSP-prefix/src/OpenVSP-build/*.zip /opt/
cd /opt
sudo unzip OpenVSP*.zip
Reply all
Reply to author
Forward
0 new messages