Announcement

Collapse
No announcement yet.

COMPILE: Linux Port

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configure error

    I have just tried to test out the 584 version that is on Darkdusts SVN server. Here is what I did and the error I get:

    cd /usr/local/games
    sudo svn checkout http://ctp2.darkdust.net/anonsvn/branches/linux CTP2(using Kubuntu Dapper)
    cd CTP2
    sudo /usr/local/games/CTP2/autogen.sh (receive a bunch of errors about not supported: source file ... is in subdirectory)
    sudo ./configure --prefix=/usr/local/games/CTP2 --bindir=/usr/local/games/CTP2/ctp2_program/ (receive configure: error: cannot run /bin/sh ctp2_code/os/autoconf/config/config.sub)

    Anyone else have this problem? How do I correct it? I would really love helping playtest as this game is one of my favorites. Thanks!

    Comment


    • Re: Configure error

      Originally posted by NeoFax
      I have just tried to test out the 584 version that is on Darkdusts SVN server. Here is what I did and the error I get:

      cd /usr/local/games
      sudo svn checkout http://ctp2.darkdust.net/anonsvn/branches/linux CTP2(using Kubuntu Dapper)
      cd CTP2
      sudo /usr/local/games/CTP2/autogen.sh (receive a bunch of errors about not supported: source file ... is in subdirectory)
      sudo ./configure --prefix=/usr/local/games/CTP2 --bindir=/usr/local/games/CTP2/ctp2_program/ (receive configure: error: cannot run /bin/sh ctp2_code/os/autoconf/config/config.sub)

      Anyone else have this problem? How do I correct it? I would really love helping playtest as this game is one of my favorites. Thanks!
      The part with the errors in autogen.sh sounds like typical automake/autoconf problems. Please post the error messages and which automake/autoconf versions you have.

      Comment


      • Configure error

        This is some of the errors I receive:

        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/regardevent.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/RejectResponseEvent.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/ResponseEvent.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/sstateevent.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/threatresponseevent.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/agreementmatrix.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/diplomacyutil.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/diplomat.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/diplomattypes.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/foreigner.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/diplomacy/proposalanalysis.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/strategy/scheduler/Plan.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/strategy/scheduler/scheduler.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/strategy/goals/ctpgoal.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/strategy/goals/Goal.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/strategy/squads/Squad.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/strategy/squads/squad_Strength.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/strategy/agents/agent.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/strategy/agents/ctpagent.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/mapanalysis/boundingrect.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/mapanalysis/mapanalysis.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/mapanalysis/settlemap.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/CityManagement/governor.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/ctpai.cpp' is in subdirectory
        automake: ctp2_code/ctp/Makefile.am: not supported: source file `../ai/ctpaidebug.cpp' is in subdirectory
        ctp2_code/ctp/Makefile.am:520: variable `CTP2_LDFLAGS' not defined
        ctp2_code/ctp/Makefile.am:520: variable `CTP2_LDFLAGS' not defined
        ctp2_code/ctp/Makefile.am:18: invalid unused variable name: `CTP2_LIBANET_LDFLAGS'
        ctp2_code/ctp/Makefile.am:23: invalid unused variable name: `CTP2_LIBOSNOWIN32_LDFLAGS'
        configure.ac:19: warning: AC_PROG_LEX invoked multiple times
        autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
        aclocal.m4:1017: AM_PROG_LEX is expanded from...
        configure.ac:19: the top level
        configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL
        If this token and others are legitimate, please use m4_pattern_allow.
        See the Autoconf documentation.



        I have automake 1.4 and autoconf 2.59

        Comment


        • You need to use a newer version of automake. I think any newer version will probably suffice, but IIRC I'm using 1.9.

          Also, you should probably do 'make bootsrap' rather than using autogen.sh, because that will do the automake-related stuff for the anet library too.

          Comment


          • Updated my automake to 1.9 and rechecked out version 585. Ran make bootstrap and this is the error I get now:

            terry@IO:/usr/local/games/CTP2$ sudo make bootstrap
            Password:
            make -C ctp2_code/libs/anet bootstrap
            make[1]: Entering directory `/usr/local/games/CTP2/ctp2_code/libs/anet'
            Bootstraping anet

            aclocal -I macros
            aclocal: configure.in: 31: macro `AM_CPPFLAGS' not found in library
            make[1]: *** [bootstrap] Error 1
            make[1]: Leaving directory `/usr/local/games/CTP2/ctp2_code/libs/anet'
            make: *** [bootstrap-anet] Error 2

            Comment


            • Originally posted by NeoFax
              Updated my automake to 1.9 and rechecked out version 585. Ran make bootstrap and this is the error I get now:

              terry@IO:/usr/local/games/CTP2$ sudo make bootstrap
              Password:
              make -C ctp2_code/libs/anet bootstrap
              make[1]: Entering directory `/usr/local/games/CTP2/ctp2_code/libs/anet'
              Bootstraping anet

              aclocal -I macros
              aclocal: configure.in: 31: macro `AM_CPPFLAGS' not found in library
              make[1]: *** [bootstrap] Error 1
              make[1]: Leaving directory `/usr/local/games/CTP2/ctp2_code/libs/anet'
              make: *** [bootstrap-anet] Error 2
              I'm less certain about this one, but possibly aclocal is out of date also? I think it should be updated hand-in-hand with automake. It may also be that the library in question is part of something else, like autoconf, and it is that which is now out of date. Mostly I'm just clutching at straws, though.

              Comment


              • Fixed the previous problem, needed to completely remove automake1.4. Now I get this error:

                In file included from ../../../ctp2_code/sound/soundmanager.h:45,
                from slicfunc.cpp:115:
                ../../../ctp2_code/sound/civsound.h:55:25: error: SDL_mixer.h: No such file or directory
                ../../../ctp2_code/os/include/noCOMBase.h:11: warning: 'class ICTP2Unknown' has virtual functions but non-virtual destructor
                ../../../ctp2_code/gs/outcom/Ic3CivArchive.h:54: warning: 'class IC3CivArchive' has virtual functions but non-virtual destructor
                ../../../ctp2_code/gs/world/MapPoint.h:235: warning: 'class SquareIterator' has virtual functions but non-virtual destructor
                ../../../ctp2_code/gs/world/MapPoint.h:258: warning: 'class RadiusIterator' has virtual functions but non-virtual destructor
                ../../../ctp2_code/gs/gameobj/CityRadius.h:48: warning: 'class CityRadiusCallback' has virtual functions but non-virtual destructor
                SlicSymbol.h:40: warning: 'class SlicSymbolWatchCallback' has virtual functions but non-virtual destructor
                ../../../ctp2_code/mapgen/IMapGen.h:39: warning: 'class IMapGenerator' has virtual functions but non-virtual destructor
                ../../../ctp2_code/net/io/net_io.h:10: warning: 'class NetIOResponse' has virtual functions but non-virtual destructor
                ../../../ctp2_code/gs/world/cellunitlist.h:63: warning: 'class CellUnitList' has virtual functions but non-virtual destructor
                ../../../ctp2_code/sound/civsound.h:67: error: expected ';' before '*' token
                ../../../ctp2_code/sound/civsound.h:84: error: expected ';' before '*' token
                ../../../ctp2_code/ui/netshell/netfunc.h:109: warning: 'class NETFunc::Key' has virtual functions but non-virtual destructor
                ../../../ctp2_code/ui/netshell/netfunc.h:1071: warning: 'class NETFunc::Session' has virtual functions but non-virtual destructor
                ../../../ctp2_code/ui/netshell/netfunc.h:1116: warning: 'class NETFunc::Game' has virtual functions but non-virtual destructor
                ../../../ctp2_code/ui/netshell/netfunc.h:1146: warning: 'class NETFunc::Lobby' has virtual functions but non-virtual destructor
                make[3]: *** [slicfunc.lo] Error 1
                make[3]: Leaving directory `/usr/local/games/CTP2/ctp2_code/gs/slic'
                make[2]: *** [all-recursive] Error 1
                make[2]: Leaving directory `/usr/local/games/CTP2/ctp2_code/gs'
                make[1]: *** [all-recursive] Error 1
                make[1]: Leaving directory `/usr/local/games/CTP2/ctp2_code'
                make: *** [all-recursive] Error 1

                Comment


                • Originally posted by NeoFax
                  Fixed the previous problem, needed to completely remove automake1.4. Now I get this error:

                  In file included from ../../../ctp2_code/sound/soundmanager.h:45,
                  from slicfunc.cpp:115:
                  ../../../ctp2_code/sound/civsound.h:55:25: error: SDL_mixer.h: No such file or directory
                  You need to install your SDL and SDL-devel packages.
                  C'ya,
                  DarkDust

                  Comment


                  • I fixed the previous problem, needed all of the SDL-dev debs. Anyhow, everything made and installed fine. Copied the files from the CD into the respective folders and the fonts. Now I get the below error:

                    terry@IO:/usr/local/games/CTP2/ctp2_program$ ./ctp2
                    Messagebox(appstr.txt Error): Unable to open appstr.txt. Terminating app.

                    Continue?
                    Fatal error. Aborting.

                    At exit.

                    OK, how do I fix this?

                    Comment


                    • Originally posted by NeoFax
                      I fixed the previous problem, needed all of the SDL-dev debs. Anyhow, everything made and installed fine. Copied the files from the CD into the respective folders and the fonts. Now I get the below error:

                      terry@IO:/usr/local/games/CTP2/ctp2_program$ ./ctp2
                      Messagebox(appstr.txt Error): Unable to open appstr.txt. Terminating app.

                      Continue?
                      Fatal error. Aborting.

                      At exit.

                      OK, how do I fix this?
                      I currently don't have the source checked out... but you should read doc/README.linux and execute tools/fix_data_names.sh, maybe that does it.

                      Unfortunately I had to give up on CTP2 development for the time being it's a big pain to CTP2 development on my 800MHz Pentium III laptop... and I have to wait till I can buy me a decent machine in December or January.

                      Comment


                      • Originally posted by NeoFax
                        I fixed the previous problem, needed all of the SDL-dev debs. Anyhow, everything made and installed fine. Copied the files from the CD into the respective folders and the fonts. Now I get the below error:

                        terry@IO:/usr/local/games/CTP2/ctp2_program$ ./ctp2
                        Messagebox(appstr.txt Error): Unable to open appstr.txt. Terminating app.

                        Continue?
                        Fatal error. Aborting.

                        At exit.

                        OK, how do I fix this?
                        When you run the game the current directory needs to be /usr/local/games/CTP2/ctp2_program/ctp (or is it /usr/local/games/CTP2/ctp2_program/ctp2 - I can't remember). That's where appstr.txt is, and it needs to be in the current directory to be found.
                        Last edited by J Bytheway; June 13, 2006, 15:24.

                        Comment


                        • I made a symlink from the other from /usr/local/games/CTP2/ctp2_program directory to /usr/local/CTP2/ctp2_program/ctp directory. It works now. Thanks!

                          Comment


                          • Originally posted by NeoFax
                            I made a symlink from the other from /usr/local/games/CTP2/ctp2_program directory to /usr/local/CTP2/ctp2_program/ctp directory. It works now. Thanks!
                            Well, you could simply run ../ctp2 from that directory, but I'm glad it's working in any case.
                            Last edited by J Bytheway; June 14, 2006, 14:06.

                            Comment


                            • Has anyone else had problems changing resolutions?

                              I tried manually editing the text file and changing it from default to 1280x1024 however it still continues to open up at at 800x600 and no items are displayed when I go to the change resolution screen.

                              Comment


                              • Changing of resolutions is not yet supported. The 800x600 windowed format is hardcoded into the source somewhere. The only easy way to change it is to find that place and recompile. Search the sources for SDL_SetVideoMode. Of course, the proper solution would be to actually make the resolution-selection menu work.

                                Comment

                                Working...
                                X