Skip to content

Instantly share code, notes, and snippets.

@jrk
Created March 6, 2012 02:34
Show Gist options
  • Save jrk/1982998 to your computer and use it in GitHub Desktop.
Save jrk/1982998 to your computer and use it in GitHub Desktop.
TEMPLATE = lib
CONFIG += qt thread debug_and_release staticlib
DESTDIR = "../lib"
CONFIG( debug, debug|release ) {
TARGET = libcgt_cored
} else {
TARGET = libcgt_core
DEFINES += _SECURE_SCL=0
}
INCLUDEPATH += $(QTDIR)/include/QtCore
INCLUDEPATH += $(QTDIR)/include/QtGui
INCLUDEPATH += $(QTDIR)/include
LIBPATH += $(QTDIR)/lib
INCLUDEPATH += "./include"
QMAKE_CXXFLAGS += -std=c++0x -fpermissive
QMAKE_CXX=g++-4.6
DEFINES += _CRT_SECURE_NO_WARNINGS
HEADERS += include/libcgt_core.h
HEADERS += include/cameras/*.h
SOURCES += src/cameras/*.cpp
HEADERS += include/color/*.h
SOURCES += src/color/*.cpp
HEADERS += include/common/*.h
SOURCES += src/common/*.cpp
HEADERS += include/geometry/*.h
SOURCES += src/geometry/*.cpp
HEADERS += include/imageproc/*.h
SOURCES += src/imageproc/*.cpp
HEADERS += include/io/*.h
SOURCES += src/io/*.cpp
HEADERS += include/lights/*.h
SOURCES += src/lights/*.cpp
HEADERS += include/math/*.h
SOURCES += src/math/*.cpp
HEADERS += include/time/*.h
SOURCES += src/time/*.cpp
HEADERS += include/vecmath/*.h
SOURCES += src/vecmath/*.cpp
g++-4.6 -c -pipe -std=c++0x -fpermissive -O2 -fPIC -D_REENTRANT -Wall -W -D_SECURE_SCL=0 -D_CRT_SECURE_NO_WARNINGS -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/include/QtCore -I/include/QtGui -I/include -Iinclude -Irelease -o release/PortableFloatMapIO.o src/io/PortableFloatMapIO.cpp
In file included from include/io/PortableFloatMapIO.h:4:0,
from src/io/PortableFloatMapIO.cpp:1:
include/vecmath/MatrixT.h: In instantiation of ‘MatrixT<int, 1>’:
include/vecmath/MatrixT.h:79:60: instantiated from here
include/vecmath/MatrixT.h:79:1: error: invalid constructor; you probably meant ‘MatrixT<int, 1> (const MatrixT<int, 1>&)’
include/vecmath/MatrixT.h: In member function ‘MatrixT<T, nDimensions>& MatrixT<T, nDimensions>::operator=(const MatrixT<T, nDimensions>&)’:
include/vecmath/MatrixT.h:123:2: error: ‘m_qvSizes’ was not declared in this scope
include/vecmath/MatrixT.h: In member function ‘MatrixT<int, 1> MatrixT<T, nDimensions>::size() const’:
include/vecmath/MatrixT.h:200:2: error: ‘IntMx1’ was not declared in this scope
include/vecmath/MatrixT.h:200:9: error: expected ‘;’ before ‘mSize’
include/vecmath/MatrixT.h:204:12: warning: there are no arguments to ‘mSize’ that depend on a template parameter, so a declaration of ‘mSize’ must be available [-fpermissive]
include/vecmath/MatrixT.h:207:9: error: ‘mSize’ was not declared in this scope
include/vecmath/MatrixT.h: In member function ‘void MatrixT<T, nDimensions>::resize(int, ...)’:
include/vecmath/MatrixT.h:225:6: error: redeclaration of ‘int newNumElements’
include/vecmath/MatrixT.h:215:6: error: ‘int newNumElements’ previously declared here
include/vecmath/MatrixT.h:248:2: error: expected ‘(’ before ‘m_aiProductSizes’
include/vecmath/MatrixT.h:249:2: error: expected primary-expression before ‘for’
include/vecmath/MatrixT.h:249:2: error: expected ‘;’ before ‘for’
include/vecmath/MatrixT.h:249:2: error: expected primary-expression before ‘for’
include/vecmath/MatrixT.h:249:2: error: expected ‘)’ before ‘for’
include/vecmath/MatrixT.h:254:41: error: ‘nElements’ was not declared in this scope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment