qglviewer

QGLViewer simpleViewer example built with cmake not running

僤鯓⒐⒋嵵緔 提交于 2019-12-13 08:44:48
问题 I'm trying to familiarize with QGLViewer (http://libqglviewer.com/) so I installed it (on Ubuntu 14.04) and I'm trying to run the simpleViewer (which is a provided example). Now, the code can be built using qmake, but I want to compile the code with cmake so I wrote the following CMakeLists.txt: cmake_minimum_required(VERSION 2.6) PROJECT(simple_viewer) SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules) FIND_PACKAGE(OpenGL REQUIRED) INCLUDE_DIRECTORIES(${OPENGL_INCLUDE}) FIND_PACKAGE

unresolved external symbol "__declspec(dllimport)

一曲冷凌霜 提交于 2019-12-12 01:26:31
问题 I am trying to get libqglviewer to work in visual studio, I have installed Qt5.2.0 64-bit for VS 2012. I have added the include directories for QGLViewer and QT in the project settings together with the lib-directory and the lib-files for qt (both Release and Debug). I have a simple example code to test it: main.cpp #include "simpleViewer.h" #include <qapplication.h> int main(int argc, char** argv) { // Read command lines arguments. QApplication application(argc,argv); // Instantiate the