#2846: Moc files in package break compilation (master_20110801)
-------------------------------------+---------------------------
Reporter: Emdek | Type: bug
Status: new | Priority: normal
Milestone: unspecified | Component: Build system
Version: git/master | Keywords:
Operating System: All/Non-Specific | Blocked By:
Blocking: |
-------------------------------------+---------------------------
Qt moc files shouldn't be included in repository and package as these can
cause compilation errors on newer Qt versions (in this case Qt 4.8 beta).
Currently two of them cause problems:
* lib/framework/wzapp_moc.cpp
* lib/qtgame/qtgame_moc.cpp
These don't need to be included as they will be generated if not present
(but cannot be regenerated if already exists).
{{{
make[2]: Wejście do katalogu
`/home/michal/Pobrane/warzone2100-master_20110801/lib/framework'
g++ -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -DNDEBUG
-DWZ_DATADIR="\"/home/michal/Programy/warzone/share/warzone2100\""
-DLOCALEDIR="\"/home/michal/Programy/warzone/share/locale\"" -I../..
-I../../3rdparty -DQT_SHARED -I/usr/lib/qt4/include
-I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui
-I/usr/lib/qt4/include/QtOpenGL -I/usr/lib/qt4/include/QtNetwork
-I/usr/lib/qt4/include/QtScript -g -Wno-enum-compare -Wall -Wextra
-Wno-unused-parameter -Wno-sign-compare -Wcast-align -Wwrite-strings
-Wpointer-arith -Wno-format-security -DQT_SHARED -I/usr/lib/qt4/include
-I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui
-I/usr/lib/qt4/include/QtOpenGL -I/usr/lib/qt4/include/QtNetwork
-I/usr/lib/qt4/include/QtScript -fstack-protector -MT wzapp_moc.o -MD
-MP -MF .deps/wzapp_moc.Tpo -c -o wzapp_moc.o wzapp_moc.cpp
wzapp_moc.cpp:14:2: error: #error "This file was generated using the moc
from 4.6.2. It"
wzapp_moc.cpp:15:2: error: #error "cannot be used with the include files
from this version of Qt."
wzapp_moc.cpp:16:2: error: #error "(The moc has changed too much.)"
make[2]: *** [wzapp_moc.o] Błąd 1
make[2]: Opuszczenie katalogu
`/home/michal/Pobrane/warzone2100-master_20110801/lib/framework'
make[1]: *** [install] Błąd 2
make[1]: Opuszczenie katalogu
`/home/michal/Pobrane/warzone2100-master_20110801/lib/framework'
make: *** [install-recursive] Błąd 1
make[2]: Wejście do katalogu
`/home/michal/Pobrane/warzone2100-master_20110801/lib/qtgame'
g++ -DHAVE_CONFIG_H -I. -I../.. -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -DNDEBUG
-DWZ_DATADIR="\"/home/michal/Programy/warzone/share/warzone2100\""
-DLOCALEDIR="\"/home/michal/Programy/warzone/share/locale\"" -I../..
-I../../3rdparty -DQT_SHARED -I/usr/lib/qt4/include
-I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui
-I/usr/lib/qt4/include/QtOpenGL -I/usr/lib/qt4/include/QtNetwork
-I/usr/lib/qt4/include/QtScript -I/usr/include/GL -g -Wno-enum-
compare -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align
-Wwrite-strings -Wpointer-arith -Wno-format-security -DQT_SHARED
-I/usr/lib/qt4/include -I/usr/lib/qt4/include/QtCore
-I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtOpenGL
-I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtScript
-fstack-protector -MT qtgame.o -MD -MP -MF .deps/qtgame.Tpo -c -o qtgame.o
qtgame.cpp
mv -f .deps/qtgame.Tpo .deps/qtgame.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -DNDEBUG
-DWZ_DATADIR="\"/home/michal/Programy/warzone/share/warzone2100\""
-DLOCALEDIR="\"/home/michal/Programy/warzone/share/locale\"" -I../..
-I../../3rdparty -DQT_SHARED -I/usr/lib/qt4/include
-I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui
-I/usr/lib/qt4/include/QtOpenGL -I/usr/lib/qt4/include/QtNetwork
-I/usr/lib/qt4/include/QtScript -I/usr/include/GL -g -Wno-enum-
compare -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align
-Wwrite-strings -Wpointer-arith -Wno-format-security -DQT_SHARED
-I/usr/lib/qt4/include -I/usr/lib/qt4/include/QtCore
-I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtOpenGL
-I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtScript
-fstack-protector -MT qtgame_moc.o -MD -MP -MF .deps/qtgame_moc.Tpo -c -o
qtgame_moc.o qtgame_moc.cpp
qtgame_moc.cpp:14:2: error: #error "This file was generated using the moc
from 4.6.2. It"
qtgame_moc.cpp:15:2: error: #error "cannot be used with the include files
from this version of Qt."
qtgame_moc.cpp:16:2: error: #error "(The moc has changed too much.)"
make[2]: *** [qtgame_moc.o] Błąd 1
make[2]: Opuszczenie katalogu
`/home/michal/Pobrane/warzone2100-master_20110801/lib/qtgame'
make[1]: *** [install] Błąd 2
make[1]: Opuszczenie katalogu
`/home/michal/Pobrane/warzone2100-master_20110801/lib/qtgame'
make: *** [install-recursive] Błąd 1
}}}
--
Ticket URL: <http://developer.wz2100.net/ticket/2846>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev