Jitsi SIP Communicator的安装程序 [英] Installer for Jitsi SIP Communicator

查看:126
本文介绍了Jitsi SIP Communicator的安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

完成更改后,我必须为Jitsi SIP Communicator创建安装程序.我在网上搜索了以下步骤:

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:

  1. 软件要求

  1. SOFTWARE REQUIREMENTS

  • Cygwin: include libs "make, gcc & g++" http://cygwin.com/setup.exe
  • MinGW: (only gcc, no g++) (use installation file .zip, taken into account that build.xml is looking for a sub-folder x86 y x64 into MinGW root folder) http://sourceforge.net/projects/mingw/files/latest/download Install in C:\MinGW\x86
  • copy mingw-make.exe to make.exe (folder C:\MinGW\x86{-}\bin)
  • bzip2: (v1.0.5 in this case): install in C:\MinGW\bzip2 http://gnuwin32.sourceforge.net/downlinks/bzip2.php
  • xz: (v5.0.3 in this case): unzip in C:\MinGW\xz http://tukaani.org/xz/xz5.0.3windows.zip
  • make for win32: (v3.8.1 in this case) http://gnuwin32.sourceforge.net/downlinks/make.php
  • wix35-binaries: (v3.5 in this case): unzip in C:\Program Files\WiX
  • Use binaries (wix35-binaries.zip), not WiX .msi installer. http://wix.codeplex.com/releases/view/60102#DownloadId=204418
  • ant: (v1.8.3 in this case): unzip in C:\apache-ant-1.8.3 http://ant.apache.org/bindownload.cgi
  • jdk1.6: (v1.6.0_31 in this case)

环境变量:

  • 导出包含以下内容的变量:
  • ANT_HOME = C:\ apache-ant-1.8.3
  • JAVA_HOME = C:\ Program Files(x86)\ Java \ jdk1.6.0_31
  • 添加到PATH: %ANT_HOME%\ bin C:\ MinGW \ bin C:\ cygwin \ bin C:\ MinGW \ msys \ 1.0 C:\ Program Files \ WiX C:\ Program Files(x86)\ Gnuwin32 \ Make \ bin
  • Export variables containing:
  • ANT_HOME=C:\apache-ant-1.8.3
  • JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_31
  • Add to PATH : %ANT_HOME%\bin C:\MinGW\bin C:\cygwin\bin C:\MinGW\msys\1.0 C:\Program Files\WiX C:\Program Files (x86)\Gnuwin32\Make\bin

其他任务:

  • 编辑"installers.properties"添加路径,以将JRE文件添加到安装程序和/或添加到JRE(.zip或文件夹)文件.
  • 编译项​​目.

执行构建脚本:

  • 启动Cygwin终端机
  • 转到/cygdrive/.../{dir_root Jitsi} -执行: ant build-installation-wix(为Windows x86创建安装程序) ant build-installation-wix-64(为Windows x64创建安装程序) ant build-installation-linux(为linux创建安装程序) ant dmg(要为MacOSX创建安装程序,只能在MacOSX上运行
  • Launch Cygwin terminal
  • Go to /cygdrive/.../{dir_root Jitsi} -Execute: ant build-installation-wix (to create an installer for windows x86) ant build-installation-wix-64 (to create an installer for windows x64) ant build-installation-linux (to create an installer for linux) ant dmg (to create an installer for MacOSX, only run on MacOSX

但是当我执行cygwin上面给出的命令时,发现了以下错误:

But when I excute commands given above on cygwin I found the following error:

build-installation-wix-base: [propertyfile]创建新的属性文件:D:\ javaprojects \ jitsi \ release \ windows \ versionupdate.properties [mkdir]创建的目录:D:\ javaprojects \ jitsi \ release \ windows \ tmp \ light [exec] Makefile:40: * 目标模式不包含%".停止.

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.

建立失败 D:\ javaprojects \ jitsi \ resources \ install \ build.xml:302:执行此行时发生以下错误: D:\ javaprojects \ jitsi \ resources \ install \ build.xml:403:exec返回:2

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

请提出解决方案.

推荐答案

我遇到了与您提到的相同的问题.我终于尝试了一下,并在Windows 32位和64位版本中构建了Jitsi.

I faced the same issues as you mentioned. I finally tried myself, and built Jitsi in Windows, both 32 bit and 64 bit versions.

这是我所做的:

  1. 在C:/mingw/x86文件夹中安装Mingw + Msys
  2. 安装ANT
  3. 在c:/mingw/bzip2中安装BZip2
  4. 在c:/mingw/xz中安装xz
  5. 安装Wix,我安装在C:/win35中.在resources/install/build.xml中更改wix安装路径的位置 6)删除mingw/msys/1.0/bin中的make.exe文件,并将mingw/bin/mingw-make.exe重命名为make.exe
  1. Install Mingw + Msys in C:/mingw/x86 folder
  2. Install ANT
  3. Install BZip2 in c:/mingw/bzip2
  4. Install xz in c:/mingw/xz
  5. Install Wix , I installed in C:/win35. Change the location of wix installation path in resources/install/build.xml 6) Delete the make.exe file inside mingw/msys/1.0/bin and rename the mingw/bin/mingw-make.exe to make.exe

我必须稍微更改Makefile,这是我所做的更改:

1)在目标目录初始化中删除了引号:

I had to change the Makefiles a little, here are the changes I made:

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)将单行回声更改为多行:

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)在resources/install/installers/properties中-指定IzPack的安装位置,并提供JRE zip文件的位置.当我使用JRE的安装文件时,该构建没有将JRE捆绑在一起.

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


这是32位版本.


This is for the 32 bit version.

但是对于64位,我不得不自己从源代码构建bzip2.可以通过下载Bzip2源代码并通过mingw对其进行编译来完成.是一件容易的事.其余步骤都一样.

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.

这篇关于Jitsi SIP Communicator的安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆