[jitsi-users] How to create windows installer?


#1

Hi there,

I'm working in several jitsi modifications under windows 7 using Netbeans
during last times. Now, I`m trying to prepare an installer for my modified
jitsi version but I have an error during this process. I have installed
make-3.8.1, Cygwin-1.7.11-1, 7zip, Wix35, MinGW and the problem in the CMD
terminal is the following:

C:\Users\Quobis\Documents\NetBeansProjects\jitsi\resources\install>ant
build-installation-wix
Buildfile:
C:\Users\Quobis\Documents\NetBeansProjects\jitsi\resources\install\build.xml

-pre-version:

version:
    [javac] C:\Users\Quobis\Documents\NetBeansProjects\jitsi\build.xml:471:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 3 source files to
C:\Users\Quobis\Documents\NetBeansProjects\jitsi\resources\install\classes
     [echo] Jitsi version 1.0-beta1-0.build.by.SVN

load-properties:

build-installation-wix:

clean-install-windows:
   [delete] Deleting directory
C:\Users\Quobis\Documents\NetBeansProjects\jitsi\release\windows
    [mkdir] Created dir:
C:\Users\Quobis\Documents\NetBeansProjects\jitsi\release\windows
    [mkdir] Created dir:
C:\Users\Quobis\Documents\NetBeansProjects\jitsi\release\windows\tmp

build-installation-wix-base:
[propertyfile] Creating new property file:
C:\Users\Quobis\Documents\NetBeansPro
jects\jitsi\release\windows\versionupdate.properties
    [mkdir] Created dir:
C:\Users\Quobis\Documents\NetBeansProjects\jitsi\release\windows\tmp\light
     [exec] rm.exe -f ../../../../resources/install/windows/config.h
     [exec] echo.exe -e '#define PRODUCTNAME "Jitsi"' >
/cygdrive/c/Users/Quobis
/Documents/NetBeansProjects/jitsi/release/windows/tmp/light/config.h
     [exec] cygwin warning:
     [exec] MS-DOS style path detected: C:/cygwin/bin
     [exec] Preferred POSIX equivalent is: /usr/bin
     [exec] CYGWIN environment variable option "nodosfilewarning" turns
off this warning.
     [exec] Consult the user's guide for more details about POSIX paths:
     [exec] http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
     [exec] C:/cygwin/bin/windres.exe
-I../../../../resources/install/windows -I
C:/Users/Quobis/Documents/NetBeansProjects/jitsi/release/windows/tmp/light
run.rc -O coff -o
C:/Users/Quobis/Documents/NetBeansProjects/jitsi/release/windows/tm
p/light/run.res
     [exec] C:/cygwin/bin/gcc.exe -O2 -Wall -Wreturn-type
-DPSAPI_VERSION=1 -DWINVER=0x0502 -D_WIN32_WINNT=0x0502 -I
C:/Users/Quobis/Documents/NetBeansProjects/jitsi/release/windows/tmp/light
-I"C:\Program Files\Java\jdk1.6.0_31/include" -I "C:\Program
Files\Java\jdk1.6.0_31/include/win32" registry.c run.c
C:/Users/Quobis/Documents/NetBeansProjects/jitsi/release/windows/tmp/light/run.res
../setup/nls.c -mwindows -o
C:/Users/Quobis/Documents/NetBeansProjects/jitsi/release/windows/tmp/light/run.exe
-ladvapi32 -lpsapi
     [exec] In file included from registry.c:8:0:
     [exec] registry.h:11:19: fatal error: tchar.h: No such file or
directory
     [exec] compilation terminated.
     [exec] run.c:17:19: fatal error: tchar.h: No such file or directory
     [exec] compilation terminated.
     [exec] Makefile:41: recipe for target
`/cygdrive/c/Users/Quobis/Documents/NetBeansProjects/jitsi/release/windows/tmp/light/run.exe'
failed
     [exec] make: ***
[/cygdrive/c/Users/Quobis/Documents/NetBeansProjects/jitsi/release/windows/tmp/light/run.exe]
Error 1

BUILD FAILED
C:\Users\Quobis\Documents\NetBeansProjects\jitsi\resources\install\build.xml:303:
The following error occurred while executing this line:
C:\Users\Quobis\Documents\NetBeansProjects\jitsi\resources\install\build.xml:405:
exec returned: 2

Total time: 5 seconds

I can't understand the problem. Is there anybody that can help me?
Thanks a lot!

Best regards,

···

--

          *--DAVID--*


#2

На 09 март 2012, 14:50, David Patiño <david.patino@quobis.com> написа:

 \[exec\] In file included from registry\.c:8:0:
 \[exec\] registry\.h:11:19: fatal error: tchar\.h: No such file or

directory
[exec] run.c:17:19: fatal error: tchar.h: No such file or directory

I guess it's a problem with your MinGW setup. If you've installed
Cygwin's MinGW, try installing a Windows native MinGW.


#3

Ok, previously I had an error who saids that MinGW hasn't got *rm.exe* & *
run.exe* therefore I've installed Cygwin and I've modified the build.xml
file from the \install directory to use the Cygwin path instead of MinGW.

What do you think I have to install?
What can I do now?

Thanks a lot!
Best Regards,

···

--
          *--DAVID--*

2012/3/9 Lyubomir Marinov <lubo@jitsi.org>

На 09 март 2012, 14:50, David Patiño <david.patino@quobis.com> написа:
> [exec] In file included from registry.c:8:0:
> [exec] registry.h:11:19: fatal error: tchar.h: No such file or
> directory
> [exec] run.c:17:19: fatal error: tchar.h: No such file or directory

I guess it's a problem with your MinGW setup. If you've installed
Cygwin's MinGW, try installing a Windows native MinGW.


#4

На 09 март 2012, 15:23, David Patiño <david.patino@quobis.com> написа:

Ok, previously I had an error who saids that MinGW hasn't got rm. exe &

Cygwin has rm.exe so it is to be installed.

run.exe

Run.exe is part of neither Cygwin, nor MinGW. It is Jitsi's launcher
and crash handler which is to be built using Cygwin and MinGW.

therefore I've installed Cygwin and I've modified the build.xml file
from the \install directory to use the Cygwin path instead of MinGW.

What do you think I have to install?
What can I do now?

Do not modify build.xml, install a Windows native MinGW, install
Cygwin without its MinGW port.


#5

Ok, thanks a lot. Now I've just create a windows installer but when I've
typed "ant build-installation-wix" an x86 installer (called *
jitsi-1.0-beta1-0.build.by.SVN-x86.exe*) was created and when I've typed "ant
build-installation-wix-64" an x86 installer (called *
jitsi-1.0-beta1-0.build.by.SVN-x64.exe*) is created too.
I'm working over Windows 7 (x64) and when I try to run these recently
generated installers, I show a warning window: "The version of this file is
x86 (32-bit) and the version of Windows you're running is x64 (64-bit). It
is recommended to install the x64 (64-bit) version of the program. Continue
anyway?"

What is the problem now?

On the other hand, what are the necessary configuration changes to create a
*linux installer*? The compilation process outputs writes an error about
Izpack.

Thank you very much for your effort and patience.

···

*--*
* --DAVID--*

2012/3/9 Lyubomir Marinov <lubo@jitsi.org>

На 09 март 2012, 15:23, David Patiño <david.patino@quobis.com> написа:
> Ok, previously I had an error who saids that MinGW hasn't got rm. exe &

Cygwin has rm.exe so it is to be installed.

> run.exe

Run.exe is part of neither Cygwin, nor MinGW. It is Jitsi's launcher
and crash handler which is to be built using Cygwin and MinGW.

> therefore I've installed Cygwin and I've modified the build.xml file
> from the \install directory to use the Cygwin path instead of MinGW.
>
> What do you think I have to install?
> What can I do now?

Do not modify build.xml, install a Windows native MinGW, install
Cygwin without its MinGW port.


#6

На 12 март 2012, 11:17, David Patiño <david.patino@quobis.com> написа:

Ok, thanks a lot. Now I've just create a windows installer but when I've
typed "ant build-installation-wix" an x86 installer (called
jitsi-1.0-beta1-0.build.by.SVN-x86.exe) was created and when I've typed "ant
build-installation-wix-64" an x86 installer (called
jitsi-1.0-beta1-0.build.by.SVN-x64.exe) is created too.
I'm working over Windows 7 (x64) and when I try to run these recently
generated installers, I show a warning window: "The version of this file is
x86 (32-bit) and the version of Windows you're running is x64 (64-bit). It
is recommended to install the x64 (64-bit) version of the program. Continue
anyway?"

What is the problem now?

The "warning window" is displayed on 64-bit Windows only when running
the 32-bit Jitsi setup. Did you use a MinGW version targeting 64-bit
Windows while building the setup with "ant build-installation-wix-64"?
My guess is that you used the same MinGW version targeting 32-bit
Windows while invoking both "ant build-installation-wix" and "ant
build-installation-wix-64" and you produced 32-bit versions of the
Jitsi setup.


#7

You're absolutely right.

I downloaded MinGW from:
http://sourceforge.net/projects/mingw/files/latest/download?source=files (*
mingw-get-inst-20111118.exe*).

How can I get an x64 MinGW version (for Windows 7 x64)?

Thanks a lot!

···

--
* --DAVID--*

2012/3/12 Lyubomir Marinov <lubo@jitsi.org>

На 12 март 2012, 11:17, David Patiño <david.patino@quobis.com> написа:
> Ok, thanks a lot. Now I've just create a windows installer but when I've
> typed "ant build-installation-wix" an x86 installer (called
> jitsi-1.0-beta1-0.build.by.SVN-x86.exe) was created and when I've typed
"ant
> build-installation-wix-64" an x86 installer (called
> jitsi-1.0-beta1-0.build.by.SVN-x64.exe) is created too.
> I'm working over Windows 7 (x64) and when I try to run these recently
> generated installers, I show a warning window: "The version of this file
is
> x86 (32-bit) and the version of Windows you're running is x64 (64-bit).
It
> is recommended to install the x64 (64-bit) version of the
program. Continue
> anyway?"
>
> What is the problem now?

The "warning window" is displayed on 64-bit Windows only when running
the 32-bit Jitsi setup. Did you use a MinGW version targeting 64-bit
Windows while building the setup with "ant build-installation-wix-64"?
My guess is that you used the same MinGW version targeting 32-bit
Windows while invoking both "ant build-installation-wix" and "ant
build-installation-wix-64" and you produced 32-bit versions of the
Jitsi setup.


#8

Hi there,

Please, someone who could help me to find and use MinGW libraries x64 to
create an x64 windows installer.
Working on windows 7 x64.

Thanks a lot!
Kind Regards,

···

*--*
* --DAVID--*

2012/3/12 David Patiño <david.patino@quobis.com>

You're absolutely right.

I downloaded MinGW from:
http://sourceforge.net/projects/mingw/files/latest/download?source=files (
*mingw-get-inst-20111118.exe*).

How can I get an x64 MinGW version (for Windows 7 x64)?

Thanks a lot!
--
* --DAVID--*

2012/3/12 Lyubomir Marinov <lubo@jitsi.org>

На 12 март 2012, 11:17, David Patiño <david.patino@quobis.com> написа:
> Ok, thanks a lot. Now I've just create a windows installer but when I've
> typed "ant build-installation-wix" an x86 installer (called
> jitsi-1.0-beta1-0.build.by.SVN-x86.exe) was created and when I've typed
"ant
> build-installation-wix-64" an x86 installer (called
> jitsi-1.0-beta1-0.build.by.SVN-x64.exe) is created too.
> I'm working over Windows 7 (x64) and when I try to run these recently
> generated installers, I show a warning window: "The version of this
file is
> x86 (32-bit) and the version of Windows you're running is x64 (64-bit).
It
> is recommended to install the x64 (64-bit) version of the
program. Continue
> anyway?"
>
> What is the problem now?

The "warning window" is displayed on 64-bit Windows only when running
the 32-bit Jitsi setup. Did you use a MinGW version targeting 64-bit
Windows while building the setup with "ant build-installation-wix-64"?
My guess is that you used the same MinGW version targeting 32-bit
Windows while invoking both "ant build-installation-wix" and "ant
build-installation-wix-64" and you produced 32-bit versions of the
Jitsi setup.