Skip to content
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

Compiling in ubuntu 16.04 #199

Open
hanspoo opened this issue Sep 7, 2016 · 1 comment
Open

Compiling in ubuntu 16.04 #199

hanspoo opened this issue Sep 7, 2016 · 1 comment

Comments

@hanspoo
Copy link

hanspoo commented Sep 7, 2016

Hi,

I've installed dependencies, but i get the error:

make
( cd src/Libs/L_UniversalModels ; qmake -config release L_UniversalModels.pro; ) || exit 1 ; make -C src/Libs/L_UniversalModels || exit 1
make[1]: Entering directory '/home/hans/Descargas/douml/src/Libs/L_UniversalModels'
g++ -c -m64 -pipe -O2 -fPIC -Wall -W -D_REENTRANT -DQT_DEPRECATED_WARNINGS -DL_TREE_CONTROLLER_LIBRARY -DNDEBUG -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Iinclude -I../L_UniversalModels -I../../../bin/moc_release/UniversalModels -o ../../../bin/obj_release/UniversalModels/AdaptingTableModel.o src/AdaptingTableModel.cpp
In file included from src/AdaptingTableModel.cpp:27:0:
src/../include/AdaptingTableModel.h:52:64: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
virtual QVariant data(const QModelIndex & index, int role) const override;
^
src/../include/AdaptingTableModel.h:53:85: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
virtual bool setData(const QModelIndex & index, const QVariant & value, int role) override;
^
src/../include/AdaptingTableModel.h:54:53: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
virtual int rowCount(const QModelIndex & index) const override;
^
src/../include/AdaptingTableModel.h:55:56: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
virtual int columnCount(const QModelIndex & index) const override;
^
src/../include/AdaptingTableModel.h:57:80: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
virtual QModelIndex index(int row, int column, const QModelIndex & parent) const override;
^
src/../include/AdaptingTableModel.h:58:52: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
Qt::ItemFlags flags(const QModelIndex & index) const override;
^
src/../include/AdaptingTableModel.h:59:85: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
^
In file included from src/AdaptingTableModel.cpp:28:0:
src/../include/TableDataInterface.h:55:39: error: 'std::function' has not been declared
virtual void SetSortFunction(std::function<bool(void*, void*)> func) = 0;
^
src/../include/TableDataInterface.h:55:47: error: expected ',' or '...' before '<' token
virtual void SetSortFunction(std::function<bool(void*, void*)> func) = 0;
^
Makefile:255: recipe for target '../../../bin/obj_release/UniversalModels/AdaptingTableModel.o' failed
make[1]: *** [../../../bin/obj_release/UniversalModels/AdaptingTableModel.o] Error 1
make[1]: Leaving directory '/home/hans/Descargas/douml/src/Libs/L_UniversalModels'
Makefile:118: recipe for target 'compile' failed
make: *** [compile] Error 1

Thanks for this project !!

Kind Rergards, Hans Poo, Welinux S.A.
Bombero Ossa #1010, oficina 800,
+56-22-3729770, Movil: +56-9-93199305
Santiago, Chile

@pasgui
Copy link

pasgui commented Sep 11, 2016

Hi,
I didn't get the same result on xunbuntu 16.04 64 bits but the command is different (see below). I just perform a make clean and make commands inside src/Libs/L_UniversalModels/ directory. The -std=c++0x option is also set.

/usr/lib/x86_64-linux-gnu/qt5/bin/moc` -DQT_DEPRECATED_WARNINGS -DL_TREE_CONTROLLER_LIBRARY -DNDEBUG -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/media/users/pascal/projects/douml/trunk/src/Libs/L_UniversalModels -I/media/users/pascal/projects/douml/trunk/src/Libs/L_UniversalModels/include -I/media/users/pascal/projects/douml/trunk/src/Libs/L_UniversalModels -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtSql -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/5 -I/usr/include/x86_64-linux-gnu/c++/5 -I/usr/include/c++/5/backward -I/usr/lib/gcc/x86_64-linux-gnu/5/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include include/AdaptingTableModel.h -o ../../../bin/moc_release/UniversalModels/moc_AdaptingTableModel.cpp

g++ -c -m64 -pipe -O2 -fPIC -std=c++0x -Wall -W -D_REENTRANT -DQT_DEPRECATED_WARNINGS -DL_TREE_CONTROLLER_LIBRARY -DNDEBUG -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -Iinclude -I../L_UniversalModels -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I../../../bin/moc_release/UniversalModels -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o ../../../bin/obj_release/UniversalModels/AdaptingTableModel.o src/AdaptingTableModel.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants