Re: Problems with compiling source (runcmake, autobuild)

Sebastian Andersson <[email protected]> Fri, 13 Jan 2012 10:41:58 +0100
Newsgroups gmane.comp.version-control.cvs.tortoisecvs.user
Message-ID <[email protected]>
Thanks for the help, Torsten!

"But the actual build procedure you want to use depends a bit on your
    goals - do you just want to make modifications for your own sake, or
    do you want to distribute new versions to other users?"
It is actually for a school project, per request from a company that wanted small functionallity improvements.

The advice you provided solved the problems with the cmake, but now I get errors when I do the autobuild script: (the following is actually run on my other client, the original has problems with cygwin)

After the run-cmake steps, I tried the autobuild script with the following weird outcome:

Default@sebb /cygdrive/c/TortoiseCVS
$ ./build/autobuild -c -u
./build/autobuild: line 2: shopt: igncr: invalid shell option name

TortoiseCVS autobuild script

build/utils.sh: line 339: unexpected EOF while looking for matching `)'

1. The first error at line 2, I do not understand what the problem is.
2. The 339 error, from utils.sh:

# Arguments <component> <-- Line: 336
function getdspfile()
{
    retval=$(perl - "$1" <<"EOP"
    if (open(HANDLE, "< src/TortoiseCVS.dsw"))
    {
      $Project = $ARGV[0];
      while(<HANDLE>)
      {
        if (m/\"$Project\"=(.*$Project.dsp)/)
        {
          print $1;
        }
      }
    }
    EOP
  )
}

I thought that there was a hidden symbol at first, but "cat -A" did not show anything suspicios. I managed to "solve" this by having everything after retval=$ on a single line. Similair errors occured in vc8.sh and mingw.sh, which I tried to correct in the same manner.
The next attempt gives:

Default@sebb /cygdrive/c/TortoiseCVS
$ ./build/autobuild -c -u
./build/autobuild: line 2: shopt: igncr: invalid shell option name

TortoiseCVS autobuild script

Increment build number
Generate new version number
Build release versions using VC 9.0
build/vc8.sh: line 149: warning: here-document at line 149 delimited by end-of-file (wanted `EOP')
build/vc8.sh: line 148: warning: here-document at line 148 delimited by end-of-file (wanted `EOP')
cat: [2]: No such file or directory
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =~: command not found
build/vc8.sh: line 148: EOP: command not found
build/vc8.sh: line 149: warning: here-document at line 149 delimited by end-of-file (wanted `EOP')
build/vc8.sh: line 148: warning: here-document at line 148 delimited by end-of-file (wanted `EOP')
cat: [2]: No such file or directory
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =~: command not found
build/vc8.sh: line 148: EOP: command not found
cat: build/vc9x64/TortoiseCVS.sln: No such file or directory
cygpath: can't convert empty path
build/utils.sh: line 42: [: ==: unary operator expected
build/vc8.sh: line 149: warning: here-document at line 149 delimited by end-of-file (wanted `EOP')
build/vc8.sh: line 148: warning: here-document at line 148 delimited by end-of-file (wanted `EOP')
cat: [2]: No such file or directory
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =~: command not found
build/vc8.sh: line 148: EOP: command not found
build/vc8.sh: line 149: warning: here-document at line 149 delimited by end-of-file (wanted `EOP')
build/vc8.sh: line 148: warning: here-document at line 148 delimited by end-of-file (wanted `EOP')
cat: [2]: No such file or directory
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =~: command not found
build/vc8.sh: line 148: EOP: command not found
build/vc8.sh: line 149: warning: here-document at line 149 delimited by end-of-file (wanted `EOP')
build/vc8.sh: line 148: warning: here-document at line 148 delimited by end-of-file (wanted `EOP')
cat: [2]: No such file or directory
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =~: command not found
build/vc8.sh: line 148: EOP: command not found
build/vc8.sh: line 149: warning: here-document at line 149 delimited by end-of-file (wanted `EOP')
build/vc8.sh: line 148: warning: here-document at line 148 delimited by end-of-file (wanted `EOP')
cat: [2]: No such file or directory
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =~: command not found
build/vc8.sh: line 148: EOP: command not found
cat: build/vc9x64/TortoiseCVS.sln: No such file or directory
cygpath: can't convert empty path
build/utils.sh: line 42: [: ==: unary operator expected
build/vc8.sh: line 149: warning: here-document at line 149 delimited by end-of-file (wanted `EOP')
build/vc8.sh: line 148: warning: here-document at line 148 delimited by end-of-file (wanted `EOP')
cat: [2]: No such file or directory
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =~: command not found
build/vc8.sh: line 148: EOP: command not found
build/vc8.sh: line 149: warning: here-document at line 149 delimited by end-of-file (wanted `EOP')
build/vc8.sh: line 148: warning: here-document at line 148 delimited by end-of-file (wanted `EOP')
cat: [2]: No such file or directory
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =~: command not found
build/vc8.sh: line 148: EOP: command not found
cat: build/vc9x64/TortoiseCVS.sln: No such file or directory
cygpath: can't convert empty path
build/utils.sh: line 42: [: ==: unary operator expected
build/vc8.sh: line 149: warning: here-document at line 149 delimited by end-of-file (wanted `EOP')
build/vc8.sh: line 148: warning: here-document at line 148 delimited by end-of-file (wanted `EOP')
cat: [2]: No such file or directory
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =~: command not found
build/vc8.sh: line 148: EOP: command not found
build/utils.sh: line 42: /usr/bin/expr: Bad address
build/vc8.sh: line 149: warning: here-document at line 149 delimited by end-of-file (wanted `EOP')
build/vc8.sh: line 148: warning: here-document at line 148 delimited by end-of-file (wanted `EOP')
cat: [2]: No such file or directory
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =: command not found
build/vc8.sh: line 148: =~: command not found
build/vc8.sh: line 148: EOP: command not found
Updating version to '1.12.5 plus test fixes built on Fri Jan 13 08:52:12 2012'
./build/setresourceversion: line 3: shopt: igncr: invalid shell option name
./build/setresourceversion: line 19: syntax error: unexpected end of file

148 at vc8.sh is the line where I "solved" the EOF problem, which has backfired.
I have no clue about EOP.
Some errors seems to occur because I lack the 64-bit stuff.

Sorry if some of these problems are stupid. Any help would be great! 

Best regards,
Sebastian

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2

_______________________________________________
tortoisecvs-users mailing list
tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/tortoisecvs-users