I have to create installer for Jitsi SIP Communicator after I have done changes in it. I have searched on net and found some steps as given below:
SOFTWARE REQUIREMENTS
ENVIRONMENT VARIABLES:
ADDITIONAL TASKS:
EXECUTE build SCRIPT:
But when I excute commands given above on cygwin I found the following error:
build-installation-wix-base: [propertyfile] Creating new property file: D:\javaprojects\jitsi\release\windows\versionupdate.properties [mkdir] Created dir: D:\javaprojects\jitsi\release\windows\tmp\light [exec] Makefile:40: * target pattern contains no `%'. Stop.
BUILD FAILED D:\javaprojects\jitsi\resources\install\build.xml:302: The following error occurred while executing this line: D:\javaprojects\jitsi\resources\install\build.xml:403: exec returned: 2
Please suggest a solution.
I faced the same issues as you mentioned. I finally tried myself, and built Jitsi in Windows, both 32 bit and 64 bit versions.
Here is what I did:
1) Removed quotes in Target directory initialization:
- target.dir := "$(TARGET_DIR)"
- cygwin.target.dir := "$(TARGET_DIR)"
+ target.dir := $(TARGET_DIR)
+ cygwin.target.dir := $(TARGET_DIR)
2) Changed single line echo into multiline:
- echo.exe -e '#define PRODUCTNAME "$(PRODUCTNAME)"\n#define PRODUCTBUILDVERSION "$(PRODUCTBUILDVERSION)"\n#define
+ echo #define PRODUCTNAME "$(PRODUCTNAME)" > $(cygwin.target.dir)/config.h
+ echo #define PRODUCTBUILDVERSION "$(PRODUCTBUILDVERSION)" >> $(cygwin.target.dir)/config.h
+ echo #define TARGET_BASENAME "$(TARGET_BASENAME)" >> $(cygwin.target.dir)/config.h
+ echo #define TARGET_BASENAME_EXE "$(TARGET_BASENAME).exe" >> $(cygwin.target.dir)/config.h
3) In the resources/install/installers/properties - Specified the location where IzPack is installed, and gave location for zip files of JRE. When I used the setup file of JRE, the build didn't bundle the JRE along"
+windows.jre.zip=C:\\JavaInstallers\\jre32.zip
+windows.jre64.zip=C:\\JavaInstallers\\jre64.zip
set PATH=C:\apps\apache-ant-1.9.1\bin;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\wix35
set ANT_HOME=C:\apps\apache-ant-1.9.1
set JAVA_HOME=C:/Program Files (x86)\Java\jdk1.7.0_17
set BZ2_HOME=c:/mingw/bzip2_x86
set LZMA_HOME=C:/mingw/xz
set MINGW_HOME=C:/mingw
start /B /LOW /WAIT ant build-installation-wix
This is for the 32 bit version.
For 64 bit though, I had to build bzip2 from source myself. That can be done by downloading Bzip2 source and compile it through mingw. Was an easy task. Rest of the steps are all the same.
Please try this out and let me know if this worked for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With