Re: Cayenne 1.2 build issue

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Feb 15 2007 - 09:34:00 EST

  • Next message: Andrus Adamchik: "Re: [JIRA] Created: (CAY-752) Importing EOModel gives Cast Exception"

    Argh! I am building 1.2 windows artifacts on Mac (you can actually do
    that with Launch4j), so it works for me, as the Launch4J installation
    is picked from a different directory:

    https://svn.apache.org/repos/asf/cayenne/main/branches/STABLE-1.2/
    cayenne/cayenne-ant/lib/mac/launch4j-2.0.0/

    I guess the version checked in for windows is broken (and nobody ever
    used it before, so we didn't know) -

    https://svn.apache.org/repos/asf/cayenne/main/branches/STABLE-1.2/
    cayenne/cayenne-ant/lib/windows/launch4j-2.1.1/

    So could you try doing this locally:

    svn rm cayenne-ant/lib/windows/launch4j-2.1.1/

    download launch4j 2.0.0, copy it to cayenne-ant/lib/windows/
    launch4j-2.0.0/ and then do
    svn add cayenne-ant/lib/windows/launch4j-2.0.0/

    then try to build it again. If it works, commit the changes.

    Andrus

    On Feb 14, 2007, at 8:38 PM, Malcolm Edgar wrote:

    > Hi Andrus,
    >
    > with regard to the 1.2 windows release the head object files are not
    > present in the windows head directory, are they supposed to be copied
    > there as a part of the build process?
    >
    > cayenne-ant\lib\windows\launch4j-2.1.1\head
    >
    > regards Malcolm Edgar
    >
    > On 2/15/07, Andrus Adamchik <andru..bjectstyle.org> wrote:
    >> Yeah, looks like that file is missing. I just copied it over from Mac
    >> bundle of Launch4J (as far as I can tell they should be identical
    >> with Win). Let me know if it didn't work.
    >>
    >> Andrus
    >>
    >>
    >> On Feb 13, 2007, at 10:18 PM, Malcolm Edgar wrote:
    >>
    >> > Hi All,
    >> >
    >> > I am having a little trouble building Cayenne 1.2 release-win.
    >> >
    >> > I appear to be missing an object library:
    >> >
    >> > cayenne-ant\lib\windows\launch4j-2.1.1\w32api\crt2.o
    >> >
    >> > Which I cannot find the the repository. Where should I get this
    >> > library from?
    >> >
    >> > regards Malcolm Edgar
    >> >
    >> > ----------------------------------------
    >> >
    >> > release-win:
    >> >
    >> > prepare:
    >> >
    >> > exe:
    >> > [unjar] Expanding:
    >> > D:\workspace2\cayenne-ant\dist\cayenne-1.2-dev\lib\cayenne.jar into
    >> > D:\workspace2\cayenne-ant\build\win\classes
    >> > [unjar] Expanding:
    >> > D:\workspace2\cayenne-ant\dist\cayenne-1.2-dev\lib\modeler\cayenne-
    >> > modeler.jar
    >> > into D:\workspace2\cayenne-ant\build\w
    >> > in\classes
    >> > [unjar] Expanding:
    >> > D:\workspace2\cayenne-ant\dist\cayenne-1.2-dev\lib\modeler\commons-
    >> > dbcp-1.2.1.jar
    >> > into D:\workspace2\cayenne-ant\buil
    >> > d\win\classes
    >> > [unjar] Expanding:
    >> > D:\workspace2\cayenne-ant\dist\cayenne-1.2-dev\lib\modeler\commons-
    >> > pool-1.2.jar
    >> > into D:\workspace2\cayenne-ant\build\
    >> > win\classes
    >> > [unjar] Expanding:
    >> > D:\workspace2\cayenne-ant\dist\cayenne-1.2-dev\lib\modeler
    >> > \forms-1.0.3.jar
    >> > into D:\workspace2\cayenne-ant\build\win\c
    >> > lasses
    >> > [unjar] Expanding:
    >> > D:\workspace2\cayenne-ant\dist\cayenne-1.2-dev\lib\modeler
    >> > \hsqldb-1.8.0.2.jar
    >> > into D:\workspace2\cayenne-ant\build\wi
    >> > n\classes
    >> > [unjar] Expanding:
    >> > D:\workspace2\cayenne-ant\dist\cayenne-1.2-dev\lib\modeler
    >> > \looks-1.3.1.jar
    >> > into D:\workspace2\cayenne-ant\build\win\c
    >> > lasses
    >> > [unjar] Expanding:
    >> > D:\workspace2\cayenne-ant\dist\cayenne-1.2-dev\lib\modeler
    >> > \ognl-2.6.7.jar
    >> > into D:\workspace2\cayenne-ant\build\win\cl
    >> > asses
    >> > [unjar] Expanding:
    >> > D:\workspace2\cayenne-ant\dist\cayenne-1.2-dev\lib\modeler\scope-
    >> > bin-1.0.1.jar
    >> > into D:\workspace2\cayenne-ant\build\w
    >> > in\classes
    >> > [delete] Deleting directory
    >> > D:\workspace2\cayenne-ant\build\win\classes\META-INF
    >> > [jar] Building jar:
    >> > D:\workspace2\cayenne-ant\build\win\cayenne-modeler-all.jar
    >> > [launch4j] Compiling resources
    >> > [launch4j] Linking
    >> > [launch4j] D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\bin
    >> > \ld.exe:
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\w32api\crt
    >> > 2.o: No such file: No such file or directory
    >> > [launch4j] Exec failed(1):
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\bin\ld.exe
    >> > -mi386pe --oformat pei-i386 --subsystem windows
    >> > -s D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\w32api
    >> \crt2.o
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\head
    >> \guihead.o D:
    >> > \workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\head\head.o
    >> > C:\DOCUME~1\MEDGAR~1.USR\LOCALS~1\Temp\launch4j12748o
    >> > D:\workspace2\cayenne-a
    >> > nt\lib\windows\launch4j-2.1.1\w32api\libmingw32.a
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\w32api
    >> \libgcc.a
    >> > D:\workspace2\cayenne
    >> > -ant\lib\windows\launch4j-2.1.1\w32api\libmsvcrt.a
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\w32api
    >> > \libkernel32.a
    >> > D:\workspace2\c
    >> > ayenne-ant\lib\windows\launch4j-2.1.1\w32api\libuser32.a
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\w32api
    >> > \libadvapi32.a
    >> > D:\worksp
    >> > ace2\cayenne-ant\lib\windows\launch4j-2.1.1\w32api\libshell32.a -o
    >> > D:\workspace2\cayenne-ant\build\win\CayenneModeler.exe
    >> >
    >> > BUILD FAILED
    >> > D:\workspace2\cayenne-ant\build.xml:94: The following error
    >> occurred
    >> > while executing this line:
    >> > D:\workspace2\cayenne-ant\ant\win-distro.xml:88:
    >> > net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException:
    >> Exec
    >> > failed(1): D:\workspa
    >> > ce2\cayenne-ant\lib\windows\launch4j-2.1.1\bin\ld.exe -mi386pe
    >> > --oformat pei-i386 --subsystem windows -s
    >> > D:\workspace2\cayenne-ant\lib\windo
    >> > ws\launch4j-2.1.1\w32api\crt2.o
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\head\guihead.o
    >> > D:\workspace2\cayenne-ant\lib\windows\la
    >> > unch4j-2.1.1\head\head.o
    >> > C:\DOCUME~1\MEDGAR~1.USR\LOCALS~1\Temp\launch4j12748o
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\w32api\l
    >> > ibmingw32.a D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1
    >> > \w32api\libgcc.a
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\w32api
    >> > \libmsvcrt.a D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1
    >> > \w32api\libkernel32.a
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\
    >> > w32api\libuser32.a
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-2.1.1\w32api
    >> > \libadvapi32.a
    >> > D:\workspace2\cayenne-ant\lib\windows\launch4j-
    >> > 2.1.1\w32api\libshell32.a -o
    >> > D:\workspace2\cayenne-ant\build\win\CayenneModeler.exe
    >> >
    >> > Total time: 2 minutes 45 seconds
    >> > D:\workspace2\cayenne-ant>
    >> >
    >>
    >>
    >



    This archive was generated by hypermail 2.0.0 : Thu Feb 15 2007 - 09:34:33 EST