Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#170 I cannot compile it

closed-works-for-me
nobody
None
5
2014-03-03
2013-04-29
Anonymous
No

I cannot compile chessX.

I have qt 4.8.4 and g++ 4.6.3.

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQUAZIP_STATIC -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -Isrc/database -Isrc/guess -Isrc/gui -Isrc/quazip -I/usr/src/3rdparty/zlib -Isrc/generated -Isrc/generated -o obj_rel/mainwindow.o src/gui/mainwindow.cpp
In file included from src/quazip/zip.h:60:0,
from src/quazip/quazip.h:31,
from src/gui/mainwindow.cpp:36:
src/quazip/ioapi.h:40:44: σφάλμα: expected initializer before ‘OF’
src/quazip/ioapi.h:41:44: σφάλμα: expected initializer before ‘OF’
src/quazip/ioapi.h:42:45: σφάλμα: expected initializer before ‘OF’
src/quazip/ioapi.h:43:45: σφάλμα: expected initializer before ‘OF’
src/quazip/ioapi.h:44:43: σφάλμα: expected initializer before ‘OF’
src/quazip/ioapi.h:45:45: σφάλμα: expected initializer before ‘OF’
src/quazip/ioapi.h:46:49: σφάλμα: expected initializer before ‘OF’
src/quazip/ioapi.h:50:5: σφάλμα: ‘open_file_func’ does not name a type
src/quazip/ioapi.h:51:5: σφάλμα: ‘read_file_func’ does not name a type
src/quazip/ioapi.h:52:5: σφάλμα: ‘write_file_func’ does not name a type
src/quazip/ioapi.h:53:5: σφάλμα: ‘tell_file_func’ does not name a type
src/quazip/ioapi.h:54:5: σφάλμα: ‘seek_file_func’ does not name a type
src/quazip/ioapi.h:55:5: σφάλμα: ‘close_file_func’ does not name a type
src/quazip/ioapi.h:56:5: σφάλμα: ‘testerror_file_func’ does not name a type
src/quazip/ioapi.h:62:30: σφάλμα: expected initializer before ‘OF’
In file included from src/quazip/quazip.h:31:0,
from src/gui/mainwindow.cpp:36:
src/quazip/zip.h:118:32: σφάλμα: expected initializer before ‘OF’
src/quazip/zip.h:138:33: σφάλμα: expected initializer before ‘OF’
src/quazip/zip.h:143:40: σφάλμα: expected initializer before ‘OF’
src/quazip/zip.h:167:41: σφάλμα: expected initializer before ‘OF’
src/quazip/zip.h:183:41: σφάλμα: expected initializer before ‘OF’
src/quazip/zip.h:208:40: σφάλμα: expected initializer before ‘OF’
src/quazip/zip.h:215:38: σφάλμα: expected initializer before ‘OF’
src/quazip/zip.h:220:41: σφάλμα: expected initializer before ‘OF’
src/quazip/zip.h:229:29: σφάλμα: expected initializer before ‘OF’
In file included from src/quazip/quazip.h:32:0,
from src/gui/mainwindow.cpp:36:
src/quazip/unzip.h:124:45: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:137:32: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:148:33: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:155:29: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:162:37: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:170:40: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:183:37: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:189:36: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:196:34: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:228:42: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:254:39: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:260:47: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:268:40: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:281:40: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:296:40: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:302:39: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:316:32: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:321:27: σφάλμα: expected initializer before ‘OF’
src/quazip/unzip.h:326:42: σφάλμα: expected initializer before ‘OF’
make: *** [obj_rel/mainwindow.o] Error 1

This happens with version 0.96 and also with svn version. I wonder if chessX requires any new C++11 features from the compiler.

Discussion

  • Jens Nissen
    Jens Nissen
    2013-06-10

    This depends upon the way Qt and its libs are built. Experiment with the chessx.pro file: Either with or without -lz.
    See the section where quazip is configured, each system needed its own configuration

     
  • Jens Nissen
    Jens Nissen
    2013-06-10

    • status: open --> closed-works-for-me
     
  • Marcus Morais
    Marcus Morais
    2014-03-03

    Please, same problem for me. How to solve that? I just remove the -lz option for that line but don't solved. I don't known what to do. I trying the chessx-1.0.0...

    http://pastebin.com/1FjMvPJy

    I'm at gentoo box. Thanks