HTTPS SSH

Usage

Pressing h displays a help window that contains all the necessary information. If you want to use this as a base for your own project, examine the source code and read the documentation of the various libraries (see "Dependencies" below).

INSTALLATION

Dependencies:

Linux

qmake && make

Assumes that:

  • qmake (Qt 5.x) is in the path
  • QGLViewer include files are in <standard include directory>/QGLViewer/
  • OpenMesh include files are in <standard include directory>/OpenMesh/
  • QGLViewer library file is in <standard library directory>/
  • OpenMesh library files are in /usr/lib/OpenMesh/

If any of the above is not satisfied, edit sample-framework.pro accordingly.

Windows / Visual Studio

  1. Install the Qt SDK, which should integrate itself into Visual Studio.

  2. Download the source package for libQGLViewer, and put it somewhere, e.g. at c:\Program Files\libQGLViewer. Open Visual Studio, in the Qt menu select "Open Qt project file (*.pro)", and open the project file in the QGLViewer subdirectory (in my case c:\Program Files\libQGLViewer\libQGLViewer.pro). Compile a release version of the library.

  3. Now open sample-framework.pro, and insert the following line:

    INCLUDEPATH += "c:\Program Files\libQGLViewer"
    

    (using the correct path on your system, of course).

  4. Download the source package for OpenMesh, and put it somewhere, e.g. at c:\Program Files\OpenMesh. Open the solution file in Visual Studio and build a release version of the core library. Then open sample-framework.pro, and insert the following line:

    INCLUDEPATH += "c:\Program Files\OpenMesh\src"
    

    (using the correct path on your system, of course).

  5. The LIBS variable of sample-framework.pro should be updated as well, replace the LIBS line with the following two:

    LIBS += -L"c:\Program Files\libQGLViewer\QGLViewer\release" -lQGLViewer2
    LIBS += -L"c:\Program Files\OpenMesh\lib" -llibOpenMeshCore
    
  6. Open Visual Studio, in the Qt menu select "Open Qt project file (*.pro)", and open sample-framework.pro.

  7. In the project's properties, under C/C++ / Preprocessor, add the following preprocessor definitions: _USE_MATH_DEFINES, NOMINMAX

  8. You should be able to build the project, but it won't start. Solution: copy QGLViewer2.dll (found in QGLViewer\QGLViewer\release) into c:\Windows\System32 or into the project's directory.

  9. If you also want to build a debug version of sample-framework, you are still not ready! You have to build debug versions of libQGLViewer and OpenMesh first, then change the library names in the project properties dialog window (and don't forget to copy QGLViewerd2.dll to a location in the path).