[jitsi-dev] windows Installer


#1

I was try to compile windows installer with ant build-installation-wix

I was using solutions from mailing list and from
Jitsi-BuildInstallerGuide.pdf...
but still in the same place:

$ ant build-installation-wix
Buildfile: C:\jitsi\jitsi-src-1.0-latest\jitsi\build.xml

-pre-version:

version:
    [javac] C:\jitsi\jitsi-src-1.0-latest\jitsi\build.xml:466: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds
    [javac] Compiling 3 source files to
C:\jitsi\jitsi-src-1.0-latest\jitsi\classes
     [echo] Jitsi version 1.0.0-0.build.by.SVN

load-properties:

build-installation-wix:

clean-install-windows:
    [mkdir] Created dir:
C:\jitsi\jitsi-src-1.0-latest\jitsi\release\windows
    [mkdir] Created dir:
C:\jitsi\jitsi-src-1.0-latest\jitsi\release\windows\tmp

build-installation-wix-base:
[propertyfile] Creating new property file:
C:\jitsi\jitsi-src-1.0-latest\jitsi\release\windows\versionupdate.prope
rties
    [mkdir] Created dir:
C:\jitsi\jitsi-src-1.0-latest\jitsi\release\windows\tmp\light
     [exec] Makefile:40: *** target pattern contains no `%'. Stop.

BUILD FAILED
C:\jitsi\jitsi-src-1.0-latest\jitsi\resources\install\build.xml:302:
The following error occurred while executing this line:
C:\jitsi\jitsi-src-1.0-latest\jitsi\resources\install\build.xml:403:
exec returned: 2

Total time: 7 seconds

anybody has any idea?

Thanks...
Chris


#2

Did you try specifying the paths with / instead of \ (as I advised in
a previous thread mentioning the same problem
http://java.net/projects/jitsi/lists/dev/archive/2012-08/message/269)?

···

2012/9/27 <krzysztof@bakun.biz>:

     [exec] Makefile:40: *** target pattern contains no `%'. Stop.


#3

I use the GNU Make 3.80 I didn't have a problem when I upgraded from
GNU Make 3.80 I reproduced this error I recommend you to downgrade
you're make program.


#4

Thanks again...

I was made change with PATH and chenge properites for wix...
It change something (additional message) but script stopts at the same
line...:frowning:

     [exec] process_begin: CreateProcess(NULL,
/cygdrive/c/mingw/x86/bin/gcc.exe -dumpmachine, ...) failed.
     [exec] Makefile:40: *** target pattern contains no `%'. Stop.

BUILD FAILED
C:\jitsi\jitsi-src-1.0-latest\jitsi\resources\install\build.xml:302:
The following error occurred while executing this line:
C:\jitsi\jitsi-src-1.0-latest\jitsi\resources\install\build.xml:403:
exec returned: 2

greetings
Chris

Keep this thread on the dev mailing list and do not contact me
privately with Jitsi development-related questions.

Sorry I've miss option...

Thanks for Your answer...

Right now my Path looks like that:

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Syst

em32\Wind
owsPowerShell\v1.0\;C:\Program Files
(x86)\AdminStudio\11.5\Common\;C:\apache-an

t-1.8.4\bin;/cygdrive/c/MinGW/x86/bin;/cygdrive/c/cygwin/bin;/cygdrive/

···

2012/9/27 <krzysztof@bakun.biz>:
c/MinGW/x
86/msys/1.0;"/cygdrive/c/Program\
Files/WiX";/cygdrive/c/MinGW/x86/mingw32/bin;/
cygdrive/c/MinGW/make/bin

Is this good Idea?

Chris

"/cygdrive/c/Program\ Files/WiX" should be without quotes and without
the \ before the space character. Besides, it doesn't have to be the
PATH - you can specify it on the command line when invoking Ant as the
wix.home property. The default value is C:\Program Files\WiX.


#5

It is really difficult to help you without knowing how you've setup your build environment and how you're reaching the above point of failure. Anyway, the first line should mean that you have to add c:/mingw/x86/bin (not /cygdrive/c/mingw/x86/bin because the latter is a Cygwin path name, not a Windows one) to the Windows PATH prior to invoking the Ant target and you should invoke the Ant target with the property mingw.home defined to c:/mingw/x86/bin as well.

···

On 27.09.2012, at 19:44, <krzysztof@bakun.biz> wrote:

    [exec] process_begin: CreateProcess(NULL,
/cygdrive/c/mingw/x86/bin/gcc.exe -dumpmachine, ...) failed.
    [exec] Makefile:40: *** target pattern contains no `%'. Stop.


#6

Thanks for answer...
[exec] process_begin: CreateProcess(NULL,
/cygdrive/c/mingw/x86/bin/gcc.exe -dumpmachine, ...) failed.
was because bad mingw.home property...
I've change it like You said and this part of error description
disappeared...

but still

[exec] Makefile:40: *** target pattern contains no `%'. Stop.

I was tested what is in {mingw.home} and {light.dir} (witch are
arguments of this exec task:

there is: "c:/mingw/x86/bin" in {mingw.home}
and: "C:\jitsi\jitsi-src-1.0-latest\jitsi/release/windows/tmp/light" in
{light.dir}

last one looks suspiciously so I find where it comes and change
{sc.basedir} to C:/jitsi/jitsi-src-1.0-latest/jitsi
but it don't change anything...

still in the fog...

Greetings
Chris


#7

Hi,

Maybe any one have additional ideas...
Maybe I can check some thing...

I was try to call make in src/native/windows/run directory:

$ make
rm.exe -f ../../../../resources/install/windows/config.h
process_begin: CreateProcess(NULL, C:/mingw/bin/gcc.exe -dumpmachine,
...) failed.
echo.exe -e '#define PRODUCTNAME "Jitsi"' >
"../../../../release/windows/tmp"/config.h
C:/mingw/bin/windres.exe -I../../../../resources/install/windows
-I"../../../../release/windows/tmp" run.rc -O coff -o
"../../../../release/windows/tmp"/run.res
/usr/bin/sh: C:/mingw/bin/windres.exe: No such file or directory
make: *** ["../../../../release/windows/tmp"/run.res] Error 127

but I think it can not work without env variables seted in ant...

plz Help...

Chris


#8

Well, as the error messages explicitly state, the problem is that
gcc.exe and winders.exe do not reside in the C:/mingw/bin. Which is
completely understandable in your case because you have them in
C:/mingw/x86/bin. A brief look (at the top of the file) for C:/mingw
in the Makefile you're using should reveal that that's the default
value of the MINGW_HOME variable. In other words, you simply need to
invoke: make MINGW_HOME=C:/mingw/x86

···

2012/9/28 <krzysztof@bakun.biz>:

I was try to call make in src/native/windows/run directory:

$ make
rm.exe -f ../../../../resources/install/windows/config.h
process_begin: CreateProcess(NULL, C:/mingw/bin/gcc.exe -dumpmachine,
...) failed.
/usr/bin/sh: C:/mingw/bin/windres.exe: No such file or directory
make: *** ["../../../../release/windows/tmp"/run.res] Error 127

but I think it can not work without env variables seted in ant...


#9

Thanks for Your assistance,

now when I call make MINGW_HOME=C:/mingw/x86
for test in src/native/windows/run
I've got:
rm.exe -f ../../../../resources/install/windows/config.h
echo.exe -e '#define PRODUCTNAME "Jitsi"' >
"../../../../release/windows/tmp"/config.h
C:/mingw/x86/bin/windres.exe -I../../../../resources/install/windows
-I"../../../../release/windows/tmp" run.rc -O coff -o
"../../../../release/windows/tmp"/run.res

witch looks good... but nothing happens in 30 min
in WindowsTaskManager there come process:
gcc, make, cc1
but no cpu usage and nothing happend... is this take long time....?

when I click ctr-c cygwin stop responding...

Chris