-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added linux build example (Ubuntu 16) #68
Conversation
I think this might be useful, as it took me a bit to get the compilation to work. |
Thanks for the contribution! |
Hi,
I think to add |
Perhaps, you could find my comment useful at Comment, where I give a script for Meshlab 2016.12 for Ubuntu 14.04 with gcc-4.9. |
I've just done it successfully like this on Linux Mint 18.1 (Serena) with Qt version 5.5.1 sudo apt-get install qt5-qmake g++ qtscript5-dev libqt5xmlpatterns5-dev libqt5opengl5-dev qmake -qt=5 -v git clone --depth 1 git@github.com:cnr-isti-vclab/meshlab.git git clone --depth 1 git@github.com:cnr-isti-vclab/vcglib.git -b devel cd meshlab QMAKE_FLAGS="-spec linux-g++ CONFIG+=release CONFIG+=qml_release CONFIG+=c++11 QMAKE_CXXFLAGS+=-fPIC QMAKE_CXXFLAGS+=-std=c++11 QMAKE_CXXFLAGS+=-fpermissive INCLUDEPATH+=/usr/include/eigen3 LIBS+=-L`pwd`/lib/linux-g++" MAKE_FLAGS="-j1" cd src/external qmake -qt=5 external.pro $QMAKE_FLAGS && make $MAKE_FLAGS cd ../common qmake -qt=5 common.pro $QMAKE_FLAGS && make $MAKE_FLAGS cd .. qmake -qt=5 meshlab_mini.pro $QMAKE_FLAGS && make $MAKE_FLAGS qmake -qt=5 meshlab_full.pro $QMAKE_FLAGS && make $MAKE_FLAGS # ./distrib/meshlab Thanks for the helpful instructions! I did not investigate why the QMAKE_FLAGS=() array declaration failed with my bash. The long double quoted string above just did it. |
Confirming that @jnweiger @DBobkov script above works for Many thanks. The repo version differs enough to make following instructions/tutorials difficult, and for a noobie at compiler wrangling this took far too long to get working. You just made it much easier. [edit]
P.P.S: I spoke too soon. The GUI loads, but even after importing a ply file the model viewport is just a black void. Clicking crashes it. P.P.P.S: Hit "new" and the gui appears. Crashing is still a major issue though. Unusable at this point. |
So what's up here, why does the released 2016.12 not compile on pretty much any Linux distribution? In
and it seems that simply |
For reference, there are Archlinux PKGBUILD for 2016.12 and the latest git. They worked for me (and many people it seems). They do however apply some patches. |
Thank you for your contribution! ninja:error:build.ninja:30:loading 'rules.ninja': |
Hopefully debuild with http://ppa.launchpad.net/zarquon42/meshlab/ubuntu/pool/main/m/meshlab/meshlab_2016.12~trusty2.tar.xz is still working
then you can execute debuild -uc -us |
See src/README.md