FIFE forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

FIFE 0.4.0 has been released on 15th of January, 2017!

Author Topic: Can't compile fifechan  (Read 2169 times)

vienastoks

  • Newbie
  • Posts: 3
    • View Profile
Can't compile fifechan
« on: October 03, 2013, 03:36:11 am »

Was trying to install fifengine on a Mac

I think I managed to install all dependencies, except for fifechan. Am getting loads of errors on sudo make install:

Code: [Select]
[ 47%] Building CXX object CMakeFiles/fifechan.dir/src/utf8stringeditor.o
In file included from /Users/vienastoks/fifechan/src/utf8stringeditor.cpp:44:
In file included from /Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8.hpp:52:
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:141:58: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
            *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f     | 0x80);
                                               ~~~~~~~~~~^~~~~~     ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:141:58: note: place parentheses
      around the '&' expression to silence this warning
            *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f     | 0x80);
                                                         ^
                                               (               )
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:146:58: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
            *(result++) = static_cast<uint8_t>((cp >> 12)& 0x3f     | 0x80);
                                               ~~~~~~~~~~^~~~~~     ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:146:58: note: place parentheses
      around the '&' expression to silence this warning
            *(result++) = static_cast<uint8_t>((cp >> 12)& 0x3f     | 0x80);
                                                         ^
                                               (               )
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:147:58: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
            *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f     | 0x80);
                                               ~~~~~~~~~~^~~~~~     ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:147:58: note: place parentheses
      around the '&' expression to silence this warning
            *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f     | 0x80);
                                                         ^
                                               (               )
In file included from /Users/vienastoks/fifechan/src/utf8stringeditor.cpp:44:
In file included from /Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8.hpp:53:
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:69:62: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
                *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f   | 0x80);
                                                   ~~~~~~~~~~^~~~~~   ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:69:62: note: place parentheses
      around the '&' expression to silence this warning
                *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f   | 0x80);
                                                             ^
                                                   (               )
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:74:62: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
                *(result++) = static_cast<uint8_t>((cp >> 12)& 0x3f   | 0x80);
                                                   ~~~~~~~~~~^~~~~~   ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:74:62: note: place parentheses
      around the '&' expression to silence this warning
                *(result++) = static_cast<uint8_t>((cp >> 12)& 0x3f   | 0x80);
                                                             ^
                                                   (               )
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:75:62: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
                *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f   | 0x80);
                                                   ~~~~~~~~~~^~~~~~   ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:75:62: note: place parentheses
      around the '&' expression to silence this warning
                *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f   | 0x80);
                                                             ^
                                                   (               )
6 warnings generated.

and then

Code: [Select]
[ 69%] Building CXX object CMakeFiles/fifechan.dir/src/widgets/passwordfield.o
/Users/vienastoks/fifechan/src/widgets/passwordfield.cpp:87:61: warning: '&&' within '||'
      [-Wlogical-op-parentheses]
        else if ((key.isCharacter() || key.getValue() > 255 && mText->getNumberOfRows() > 0)
                                    ~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/vienastoks/fifechan/src/widgets/passwordfield.cpp:87:61: note: place parentheses around the '&&'
      expression to silence this warning
        else if ((key.isCharacter() || key.getValue() > 255 && mText->getNumberOfRows() > 0)
                                                            ^
                                       (                                                   )
1 warning generated.

still later

Code: [Select]
[ 81%] Building CXX object CMakeFiles/fifechan.dir/src/widgets/textbox.o
In file included from /Users/vienastoks/fifechan/src/widgets/textbox.cpp:77:
In file included from /Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8.hpp:52:
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:141:58: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
            *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f     | 0x80);
                                               ~~~~~~~~~~^~~~~~     ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:141:58: note: place parentheses
      around the '&' expression to silence this warning
            *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f     | 0x80);
                                                         ^
                                               (               )
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:146:58: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
            *(result++) = static_cast<uint8_t>((cp >> 12)& 0x3f     | 0x80);
                                               ~~~~~~~~~~^~~~~~     ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:146:58: note: place parentheses
      around the '&' expression to silence this warning
            *(result++) = static_cast<uint8_t>((cp >> 12)& 0x3f     | 0x80);
                                                         ^
                                               (               )
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:147:58: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
            *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f     | 0x80);
                                               ~~~~~~~~~~^~~~~~     ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/checked.hpp:147:58: note: place parentheses
      around the '&' expression to silence this warning
            *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f     | 0x80);
                                                         ^
                                               (               )
In file included from /Users/vienastoks/fifechan/src/widgets/textbox.cpp:77:
In file included from /Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8.hpp:53:
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:69:62: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
                *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f   | 0x80);
                                                   ~~~~~~~~~~^~~~~~   ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:69:62: note: place parentheses
      around the '&' expression to silence this warning
                *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f   | 0x80);
                                                             ^
                                                   (               )
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:74:62: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
                *(result++) = static_cast<uint8_t>((cp >> 12)& 0x3f   | 0x80);
                                                   ~~~~~~~~~~^~~~~~   ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:74:62: note: place parentheses
      around the '&' expression to silence this warning
                *(result++) = static_cast<uint8_t>((cp >> 12)& 0x3f   | 0x80);
                                                             ^
                                                   (               )
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:75:62: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
                *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f   | 0x80);
                                                   ~~~~~~~~~~^~~~~~   ~
/Users/vienastoks/fifechan/include/fifechan/util/utf8/utf8/unchecked.hpp:75:62: note: place parentheses
      around the '&' expression to silence this warning
                *(result++) = static_cast<uint8_t>((cp >> 6) & 0x3f   | 0x80);
                                                             ^
                                                   (               )
/Users/vienastoks/fifechan/src/widgets/textbox.cpp:266:35: warning: comparison of unsigned expression < 0
      is always false [-Wtautological-compare]
                if (getCaretRow() < 0)
                    ~~~~~~~~~~~~~ ^ ~
7 warnings generated.
[ 83%] Building CXX object CMakeFiles/fifechan.dir/src/widgets/textfield.o
/Users/vienastoks/fifechan/src/widgets/textfield.cpp:235:61: warning: '&&' within '||'
      [-Wlogical-op-parentheses]
        else if ((key.isCharacter() || key.getValue() > 255 && mText->getNumberOfRows() > 0)
                                    ~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/vienastoks/fifechan/src/widgets/textfield.cpp:235:61: note: place parentheses around the '&&'
      expression to silence this warning
        else if ((key.isCharacter() || key.getValue() > 255 && mText->getNumberOfRows() > 0)
                                                            ^
                                       (                                                   )
1 warning generated.

some more

Code: [Select]
[ 96%] Building CXX object CMakeFiles/fifechan_sdl.dir/src/sdl/sdlimage.o
/Users/vienastoks/fifechan/src/sdl/sdlimage.cpp:173:19: error: use of undeclared identifier
      'SDL_DisplayFormatAlpha'
            tmp = SDL_DisplayFormatAlpha(mSurface);
                  ^
/Users/vienastoks/fifechan/src/sdl/sdlimage.cpp:179:19: error: use of undeclared identifier
      'SDL_DisplayFormat'
            tmp = SDL_DisplayFormat(mSurface);
                  ^
/Users/vienastoks/fifechan/src/sdl/sdlimage.cpp:191:34: error: use of undeclared identifier
      'SDL_SRCCOLORKEY'
            SDL_SetColorKey(tmp, SDL_SRCCOLORKEY,
                                 ^
/Users/vienastoks/fifechan/src/sdl/sdlimage.cpp:196:31: error: use of undeclared identifier 'SDL_SRCALPHA'
            SDL_SetAlpha(tmp, SDL_SRCALPHA, 255);
                              ^
4 errors generated.

and finally

Code: [Select]
make[2]: *** [CMakeFiles/fifechan_sdl.dir/src/sdl/sdlimage.o] Error 1
make[1]: *** [CMakeFiles/fifechan_sdl.dir/all] Error 2
make: *** [all] Error 2

There are too many errors for me to make any sense. Could somebody help maybe?

I did install homebew, swig, sdl, sdl_image, sdl_mixer, sdl_ttf, scons, boost, boost-jam, wget, libvorbis, libogg, gettext (brew said I don't need this coz osx have it already), libpng, intltool, cmake; corrected boost library names; added gettext to path; installed pil (with multiple fatal errors), pyyaml (with still more fatal errors), pyrex and cython (with no errors); downloaded and moved SDL framework.

When I try to run scons on fifengine all shows up ok, except fifechan. How do I compile the thing? :)
Logged

ChrisOelmueller

  • Newbie
  • Posts: 15
    • View Profile
Re: Can't compile fifechan
« Reply #1 on: October 03, 2013, 09:50:36 am »

This looks like an issue with SDL (most likely you're compiling the very new 2.0 where FIFE expects 1.* version).
Logged

ridiculous

  • Newbie
  • Posts: 1
    • View Profile
Re: Can't compile fifechan
« Reply #2 on: November 03, 2013, 07:57:34 am »

I have another problem with fifechan. It's seems not so important, but...
When I'm trying to compile it and make ./configure, I get this:

-------------------------------
Guichan ready for compilation!
-------------------------------
* Allegro   = disabled
* HGE       = no (Windows specific and cannot be built)
* OpenGL    = yes
* OpenLayer = no (Requires static build and cannot be built)
* SDL       = yes
* SDL Image = yes
--------------------------------

"INSTALL" file says:

For Allegro support you need the following libraries installed:
* Allegro       http://alleg.sourceforge.net/

I've done that:

root@panther:/home/ridiculous/Soft/fifechan-0.1.0# dpkg --get-selections | grep allegro

liballegro-acodec5-dev:amd64      install
liballegro-acodec5.0:amd64         install
liballegro-audio5-dev:amd64         install
liballegro-audio5.0:amd64         install
liballegro-dialog5-dev:amd64         install
liballegro-dialog5.0:amd64         install
liballegro-image5-dev:amd64         install
liballegro-image5.0:amd64         install
liballegro-physfs5-dev:amd64      install
liballegro-physfs5.0:amd64         install
liballegro-ttf5-dev:amd64         install
liballegro-ttf5.0:amd64            install
liballegro5-dev:amd64            install
liballegro5.0:amd64            install

But still, Allegro support is disabled. What does it mean?
Logged

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: Can't compile fifechan
« Reply #3 on: November 21, 2013, 10:34:04 pm »

Try using cmake instead.  We need to rip out autotools from fifechan as they are no longer maintained.
Logged