[jitsi-dev] Problems creating a windows installer

Hi there,

I've a problem to create a jitsi installer.
I've configured the libraries 1 month ago as I described in the doc
attached and everything was working properly.
But now I don't know what's going wrong because of I've got an error
like follows:

wix-sign-file:

 \[exec\] setup\.msi: 30,3 MiB / 129,2 MiB = 0,235, 717 KiB/s, 3:04

 \[exec\] rm\.exe \-f \.\./\.\./\.\./\.\./resources/install/windows/config\.h

 \[exec\] echo\.exe \-e '\#define PRODUCTNAME "Jitsi"\\n\#undef

PACKAGECODE\n#undef PACKAGESIZE' >
/cygdrive/c/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/config.h

 \[exec\] C:/MinGW/bin/windres\.exe

-I../../../../resources/install/windows
-IC:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp
setup.rc -O coff -o
C:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.res

 \[exec\] C:/MinGW/bin/gcc\.exe \-O2  \-Wall \-Wreturn\-type

-DWINVER=0x0502 -D_WIN32_WINNT=0x0502
-IC:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp
-DBSPATCH_API_STATIC -DBZ2_API_STATIC -I. -IC:\MinGW\bzip2/include
-IC:\MinGW\bzip2 -DLZMA_API_STATIC -IC:\MinGW\xz/include
-IC:\MinGW\xz/api -I../run bspatch.c lasterror.c nls.c
../run/registry.c setup.c
C:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.res
-mwindows -LC:\MinGW\bzip2/lib/x86 -LC:\MinGW\bzip2
-LC:\MinGW\xz/lib/x86 -LC:\MinGW\xz/.libs -o
C:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.exe
-ladvapi32 -lbz2 -llzma -lole32 -lshell32

 \[exec\] bspatch\.c:31:19: error fatal: bzlib\.h: No such file or directory

 \[exec\] compilaci▒n terminada\.

 \[exec\] setup\.c:30:18: error fatal: lzma\.h: No such file or directory

 \[exec\] compilaci▒n terminada\.

 \[exec\] make: \*\*\*

[/cygdrive/c/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.exe]
Error 1

 \[exec\] Makefile:60: recipe for target

`/cygdrive/c/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.exe'
failed

BUILD FAILED

C:\Users\*****\Documents\NetBeansProjects\jitsi\resources\install\build.xml:302:
The following error occurred while executing this line:

C:\Users\*****\Documents\NetBeansProjects\jitsi\resources\install\build.xml:617:
exec returned: 2

Total time: 5 minutes 50 seconds

Are there someone who knows what's happening?

A lot of thanks.
Kind Regards,

Guide-WindowsInstaller.odt (14.2 KB)

···

--
--DAVID--

Could it be related to the paths "C:\MinGW\bzip2" and "C:\MinGW\xz"?
Do these directories exist and contain the respective .h files? Did
you try specifying them with / instead of \?

···

2012/5/2 David Patiño <david.patino@quobis.com>:

 \[exec\] bspatch\.c:31:19: error fatal: bzlib\.h: No such file or directory
 \[exec\] setup\.c:30:18: error fatal: lzma\.h: No such file or directory

Hi,

The directories exists and contains the .h files:

     C:\MinGW\xz\include
           --> \lzma
                     --> "Several .h files"
           --> lzma.h

     C:\MinGW\bzip2\include
           --> bzlib.h

Where do you think I must try to change the / for this one \? Cygwin
PATH, Windows Path,..?

Thanks a lot.
Kind Regards,

···

--
          --DAVID--

2012/5/2 Lyubomir Marinov <lubo@jitsi.org>:

2012/5/2 David Patiño <david.patino@quobis.com>:

 \[exec\] bspatch\.c:31:19: error fatal: bzlib\.h: No such file or directory
 \[exec\] setup\.c:30:18: error fatal: lzma\.h: No such file or directory

Could it be related to the paths "C:\MinGW\bzip2" and "C:\MinGW\xz"?
Do these directories exist and contain the respective .h files? Did
you try specifying them with / instead of \?

The fact that you have C:\MinGW\bzip2 and C:\MinGW\xz in the output
you've provided to us means that you've defined the make or enviroment
variables BZ2_HOME and LZMA_HOME. Instead of defining them as
BZ2_HOME=C:\MinGW\bzip2 and LZMA_HOME=C:\MinGW\xz, did you try
BZ2_HOME=C:/MinGW/bzip2 and LZMA_HOME=C:/MinGW/xz?

On a related note, why are you defining these variables anyway given
that the necessary files that they point to are part of the Jitsi
source tree and are the defaults used by the Makefile?

···

2012/5/2 David Patiño <david.patino@quobis.com>:

Where do you think I must try to change the / for this one \? Cygwin
PATH, Windows Path,..?

Hi,

I've tried to change BZ2_HOME and LZMA_HOME but nothing solve because
compiler saids something similar to no available path .
Now I've just removed BZ2_HOME and LZMA_HOME entries from Windows
variables enviroment and now the error is:

wix-sign-file:
     [exec] setup.msi: 30,3 MiB / 129,2 MiB = 0,235, 722 KiB/s, 3:03
     [exec] rm.exe -f ../../../../resources/install/windows/config.h
     [exec] echo.exe -e '#define PRODUCTNAME "Jitsi"\n#undef
PACKAGECODE\n#undef PACKAGESIZE' >
/cygdrive/c/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/config.h
     [exec] C:/MinGW/bin/windres.exe
-I../../../../resources/install/windows
-IC:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp
setup.rc -O coff -o
C:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.res
     [exec] C:/MinGW/bin/gcc.exe -O2 -Wall -Wreturn-type
-DWINVER=0x0502 -D_WIN32_WINNT=0x0502
-IC:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp
-DBSPATCH_API_STATIC -DBZ2_API_STATIC -I. -I./include -I.
-DLZMA_API_STATIC -I./include -I./api -I../run bspatch.c lasterror.c
nls.c ../run/registry.c setup.c
C:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.res
-mwindows -L./lib/x86 -L. -L./lib/x86 -L./.libs -o
C:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.exe
-ladvapi32 -lbz2 -llzma -lole32 -lshell32
     [exec] c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:
cannot find -lbz2
     [exec] c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:
cannot find -llzma
     [exec] collect2: ld devolvió el estado de salida 1
     [exec] Makefile:60: recipe for target
`/cygdrive/c/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.exe'
failed
     [exec] make: ***
[/cygdrive/c/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.exe]
Error 1

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

Total time: 6 minutes 22 seconds

Where is looking for those libraries? What is going wrong now?

Thanks a lot.
Kind Regards,

···

--
     --DAVID--

2012/5/2 Lyubomir Marinov <lubo@jitsi.org>:

2012/5/2 David Patiño <david.patino@quobis.com>:

Where do you think I must try to change the / for this one \? Cygwin
PATH, Windows Path,..?

The fact that you have C:\MinGW\bzip2 and C:\MinGW\xz in the output
you've provided to us means that you've defined the make or enviroment
variables BZ2_HOME and LZMA_HOME. Instead of defining them as
BZ2_HOME=C:\MinGW\bzip2 and LZMA_HOME=C:\MinGW\xz, did you try
BZ2_HOME=C:/MinGW/bzip2 and LZMA_HOME=C:/MinGW/xz?

On a related note, why are you defining these variables anyway given
that the necessary files that they point to are part of the Jitsi
source tree and are the defaults used by the Makefile?

Hi Lyubomir,

Maybe it could be easier if I'll try to crete a windows installer from
linux (if it's possible) because of I'm stuck now in windows and I
don't know how to continue...
Could you or someone help me to know what steps I have to follow,
libraries to install, etc ...? In debian or ubuntu?

Thanks a lot.

Kind regards,

···

--
     --DAVID--

2012/5/2 David Patiño <david.patino@quobis.com>:

Hi,

I've tried to change BZ2_HOME and LZMA_HOME but nothing solve because
compiler saids something similar to no available path .
Now I've just removed BZ2_HOME and LZMA_HOME entries from Windows
variables enviroment and now the error is:

wix-sign-file:
[exec] setup.msi: 30,3 MiB / 129,2 MiB = 0,235, 722 KiB/s, 3:03
[exec] rm.exe -f ../../../../resources/install/windows/config.h
[exec] echo.exe -e '#define PRODUCTNAME "Jitsi"\n#undef
PACKAGECODE\n#undef PACKAGESIZE' >
/cygdrive/c/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/config.h
[exec] C:/MinGW/bin/windres.exe
-I../../../../resources/install/windows
-IC:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp
setup.rc -O coff -o
C:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.res
[exec] C:/MinGW/bin/gcc.exe -O2 -Wall -Wreturn-type
-DWINVER=0x0502 -D_WIN32_WINNT=0x0502
-IC:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp
-DBSPATCH_API_STATIC -DBZ2_API_STATIC -I. -I./include -I.
-DLZMA_API_STATIC -I./include -I./api -I../run bspatch.c lasterror.c
nls.c ../run/registry.c setup.c
C:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.res
-mwindows -L./lib/x86 -L. -L./lib/x86 -L./.libs -o
C:/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.exe
-ladvapi32 -lbz2 -llzma -lole32 -lshell32
[exec] c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:
cannot find -lbz2
[exec] c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:
cannot find -llzma
[exec] collect2: ld devolvió el estado de salida 1
[exec] Makefile:60: recipe for target
`/cygdrive/c/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.exe'
failed
[exec] make: ***
[/cygdrive/c/Users/*****/Documents/NetBeansProjects/jitsi/release/windows/tmp/setup.exe]
Error 1

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

Total time: 6 minutes 22 seconds

Where is looking for those libraries? What is going wrong now?

Thanks a lot.
Kind Regards,

--
--DAVID--

2012/5/2 Lyubomir Marinov <lubo@jitsi.org>:

2012/5/2 David Patiño <david.patino@quobis.com>:

Where do you think I must try to change the / for this one \? Cygwin
PATH, Windows Path,..?

The fact that you have C:\MinGW\bzip2 and C:\MinGW\xz in the output
you've provided to us means that you've defined the make or enviroment
variables BZ2_HOME and LZMA_HOME. Instead of defining them as
BZ2_HOME=C:\MinGW\bzip2 and LZMA_HOME=C:\MinGW\xz, did you try
BZ2_HOME=C:/MinGW/bzip2 and LZMA_HOME=C:/MinGW/xz?

On a related note, why are you defining these variables anyway given
that the necessary files that they point to are part of the Jitsi
source tree and are the defaults used by the Makefile?

I haven't cross-compiled the Windows setup, I've only built it on Windows.

I don't know why ld.exe cannot find the libbz2.a and liblzma.a
libraries but I guess copying them to a standard MinGW location (e.g.
next to libadvapi32.a) could be a first attempt.

···

2012/5/2 David Patiño <david.patino@quobis.com>:

Maybe it could be easier if I'll try to crete a windows installer from
linux (if it's possible)

Hi Lyubomir,

Thanks a lot for your help I've just been able to build a windows installer.
The problem were libbz2.a and liblzma.a libraries which were not in
path (/src/native/windows/setup/lib/x86 & /x64). I've downloaded Jitsi
again, copy it to my path and delete enviroment variables BZ2_HOME and
LZMA_HOME to fix the problem.

I'm very grateful for your help.

Kind Regards,

···

--
     --DAVID--

2012/5/2 Lyubomir Marinov <lubo@jitsi.org>

2012/5/2 David Patiño <david.patino@quobis.com>:
> Maybe it could be easier if I'll try to crete a windows installer from
> linux (if it's possible)

I haven't cross-compiled the Windows setup, I've only built it on Windows.

I don't know why ld.exe cannot find the libbz2.a and liblzma.a
libraries but I guess copying them to a standard MinGW location (e.g.
next to libadvapi32.a) could be a first attempt.