niessner / Opt

Opt DSL
Other
256 stars 68 forks source link

Compiling examples on ubuntu16_04 with Clang++ #74

Open NH89 opened 7 years ago

NH89 commented 7 years ago

Hi, First thanks for releasing a very promising new tool.

Has anyone else had glitches compiling the examples on Ubuntu Xenial ? I found I had to make a number of edits to get the examples working on Ubuntu16_04 with Clang++ . The biggest change was compiling OpenMesh and linking to that rather than the binary provided in Opt. The other changes were adding various #includes . My edits are available on https://github.com/NH89/Opt/tree/ubuntu16_04 . Best, Nick

Mx7f commented 7 years ago

Hello!

Thanks for the feedback. I've cherrypicked your #include changes (except the explicit path to cuda_runtime.h) and pushed to master. I do not have a spare machine to test Ubuntu 16_04 with, so I am delaying changes to the OpenMesh dependency at the moment.

What was your process for compiling OpenMesh, was it a simple apt-get, or more involved?

Cheers, Michael

NH89 commented 7 years ago

Hi Michael, For OpenMesh there isn't a .deb package on the Ubuntu repository. I downloaded the source from https://www.openmesh.org/download/ . It has cmake, so extract and open the OpenMesh6.3.tar.gz file. Enter the OpenMesh-6.3 folder then : mkdir build cd build cmake ../ make make test sudo make install

That should install it in the /usr/local/lib folder with header files in /usr/local/include . The dependencies include qt4 or qt5 for the viewer, Boost, Eigen, Python, OpenGL, libgtest, Glut, Doxygen, Cpack.

Libgtest is the Google test lib, available at https://github.com/google/googletest . It also uses cmake, so the same build commands. Its only dependency appears to be Python.

re testing OptLang I looked to see if there were any free continuous integration sites that could be used. Unfortunately all GPU cloud services seem to be paid by the hour at present. Possibly a solution would be a collection of containers with different operating systems, on an existing workstation.

Best, Nick

mihaibujanca commented 7 years ago

Just saw this - it's working for me on Ubuntu 16.04 with clang++. Just compiled the master as per the instructions in the README. Happy to answer any questions that might help

$ clang++ --version
clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin