ufo icon indicating copy to clipboard operation
ufo copied to clipboard

Does not compile on Debian Testing

Open lagerspetz opened this issue 12 years ago • 1 comments

Hi, I was trying to compile this on Debian Testing, as I play XCOMA in dosbox, but it is kinda taxing on the system resources. Having a native client would be great, and so I wanted to see where this project is at. I did:

cd src
qmake
make

and got first an issue that itoa is not declared, so I changed in game/Game.cpp:

//        itoa(wanted_level + 1, asd, 10);
sprintf(asd, "%d", 10, wanted_level+1);

Then, I ran into this:

g++ -c -m64 -pipe -std=gnu++0x -Wall -Wno-unused-parameter -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -ICamera -Icompatibility -Irendering -Ios -IInput -Iresources -IHAL -Imodel -Igame -Isprite -Iutil -Isound -I. -o LevelTile.o game/LevelTile.cpp
game/LevelTile.cpp: In member function ‘virtual void LevelTile::OnCreate(Level*)’:
game/LevelTile.cpp:14:5: error: ‘__super’ has not been declared
make: *** [LevelTile.o] Error 1

Any ideas? Thanks! --Eemil

lagerspetz avatar Jul 22 '12 10:07 lagerspetz

You should change __super to iGameObjectVis, it should help. However, you should be aware that even if you manage to compile the code, without properly converted resources (.pck and .tab files) you wont be able to see anything. As far as I can tell, the resource converting code is not incorporated into code base (yet, it will be made publicly available later on either as a git repository or executable). If youre experienced enough you could search repo history for a revision which had old version of converter included, then you would have to use that to unpack needed resources.

On 22/07/2012, Eemil Lagerspetz [email protected] wrote:

Hi, I was trying to compile this on Debian Testing, as I play XCOMA in dosbox, but it is kinda taxing on the system resources. Having a native client would be great, and so I wanted to see where this project is at. I did: cd src qmake make and got first an issue that itoa is not declared, so I changed in game/Game.cpp: // itoa(wanted_level + 1, asd, 10); sprintf(asd, "%d", 10, wanted_level+1);

Then, I ran into this: g++ -c -m64 -pipe -std=gnu++0x -Wall -Wno-unused-parameter -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -ICamera -Icompatibility -Irendering -Ios -IInput -Iresources -IHAL -Imodel -Igame -Isprite -Iutil -Isound -I. -o LevelTile.o game/LevelTile.cpp game/LevelTile.cpp: In member function ‘virtual void LevelTile::OnCreate(Level_)’: game/LevelTile.cpp:14:5: error: ‘__super’ has not been declared make: *_* [LevelTile.o] Error 1

Any ideas? Thanks! --Eemil


Reply to this email directly or view it on GitHub: https://github.com/hallor/ufo/issues/6

AwwwCmon avatar Jul 29 '12 18:07 AwwwCmon