首页 > 解决方案 > 使用 Ubuntu 为 Jitsi 桌面创建 Windows 安装程序

问题描述

我在Jitsi中实现了一些更改并尝试生成 Windows 安装程序文件,但我没有得到任何有关如何使用 Ubuntu/Windows 进行操作的信息。我正在使用 Ubuntu 19.10。

试过了吗?
我尝试使用本指南实施,但没有找到相同的目录结构。
更新
我尝试使用指南,但它会导致许多问题。其中一些是这样的:

  1. 错误:找不到名为config.h
    的文件 我知道该文件在出错时提供的指定路径中丢失。但是这个文件既没有指定是JITSI 的官方存储库,也没有指定其他任何地方。

  2. 使用此方法创建的 EXE无法在它创建的文件夹中运行。它不会将依赖项复制到 EXE,而是复制到一个文件夹中,我需要将其保存在我需要运行 EXE 文件的任何地方,这不是一个好习惯。

  3. 此方法仅适用于 Windows PC。我总是无法使用 Windows PC,所以我也很难通过这种方法。

问题
我是否需要EXE仅使用 Windows 编译文件?如果是这样,我该如何实现?或者,否则,我如何使用 Ubuntu 创建它。Exe 文件必须像任何其他可执行文件一样安装到 Program Files。谢谢

问题说明

我想做什么?
- 创建适用于 Windows 的 Jitsi 安装程序(使用 Ubuntu 或 Windows)。
- 安装程序应该像 Netbeans 的安装程序或任何其他安装程序一样安装。
- 安装程序应自行管理 JDK/JRE 的安装。(它不应该要求用户安装 JDK/JRE)。
- 它应该创建一个目录结构,如安装 Netbeans 等
。我得到了什么?
- 使用指南,我将在 Windows 上创建一个可运行的 EXE 文件。(我没有为此目的在 Ubuntu 上尝试 wine)在同一个文件夹中包含一堆其他文件。以下是目录结构。

C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows
-> tmp/
-> versionupdate.properties
tmp/ light/
在此处输入图像描述

在此处输入图像描述

当我运行 EXE 文件时它是如何工作的?
- 它直接运行应用程序。
- 如果未安装,则给出 Java 错误。
- 在此位置之外复制时,EXE 文件根本不起作用。

创建 EXE 时遇到的错误

define-ant-contrib-task:
build-installation-wix-base:
[propertyfile] Creating new property file: C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\versionupdate.properties
    [mkdir] Created dir: C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\tmp\light
     [exec] process_begin: CreateProcess(NULL, rm.exe -f ../../../../resources/install/windows/config.h, ...) failed.
     [exec] make (e=2): The system cannot find the file specified.
     [exec] rm.exe -f ../../../../resources/install/windows/config.h
     [exec] Makefile:60: recipe for target 'C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h' failed
     [exec] make.exe: [C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h] Error 2 (ignored)
     [exec] echo #define PRODUCTNAME "PAM7000" > C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h
     [exec] echo #define COMPANYNAME "jitsi.org" >> C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h
     [exec] echo #define PRODUCTBUILDVERSION "2.11.1" >> C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h
     [exec] echo #define PRODUCTBUILDVERSION_COMMA 2,11,1,0 >> C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h
     [exec] echo #define TARGET_BASENAME "PAM7000" >> C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h
     [exec] echo #define TARGET_BASENAME_EXE "PAM7000.exe" >> C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h
     [exec] C:/mingw/x64/bin/windres.exe -I ../../../../resources/install/windows -I C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light run.rc -O coff -o C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light\\run.res
     [exec] C:/mingw/x64/bin/gcc.exe  -Wall -Wreturn-type -DPSAPI_VERSION=1 -DWINVER=0x0502 -D_WIN32_WINNT=0x0502 -IC:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light -I"C:\Program Files\Java\jdk1.8.0_241/include" -I"C:\Program Files\Java\jdk1.8.0_241/include/win32" registry.c run.c C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/run.res ../setup/nls.c -mwindows -o C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/PAM7000.exe -ladvapi32 -lpsapi
     [exec] C:/mingw/x64/x86_64-w64-mingw32/bin/strip.exe C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/PAM7000.exe       

unzip-windows-jre:
    [unzip] Expanding: C:\InstallJRE\jre-8u152-windows-x64.zip into C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\tmp\light
     [copy] Copying 1 file to C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\tmp\light
     [xslt] Processing C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\tmp\heat.wxs to C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\tmp\component-defines.wxi
     [xslt] Loading stylesheet C:\Users\iqbal\Downloads\UPdate5\jitsi\resources\install\windows\heat-component-defines.xsl
     [xslt] Processing C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\tmp\heat.wxs to C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\tmp\component-refs.wxi
     [xslt] Loading stylesheet C:\Users\iqbal\Downloads\UPdate5\jitsi\resources\install\windows\heat-component-refs.xsl
     [xslt] Processing C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\tmp\heat.wxs to C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\tmp\lib-dir-id.properties
     [xslt] Loading stylesheet C:\Users\iqbal\Downloads\UPdate5\jitsi\resources\install\windows\heat-component-libsearch.xsl
     [copy] Copying 1 file to C:\Users\iqbal\Downloads\UPdate5\jitsi\release\windows\tmp
     [exec] process_begin: CreateProcess(NULL, rm.exe -f ../../../../../resources/install/windows/config.h, ...) failed.
     [exec] make (e=2): The system cannot find the file specified.
     [exec] rm.exe -f ../../../../../resources/install/windows/config.h
     [exec] make.exe: [C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h] Error 2 (ignored)
     [exec] Makefile:71: recipe for target 'C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h' failed
     [exec] echo #define PRODUCTNAME "PAM7000" > C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h
     [exec] echo #undef PACKAGECODE >> C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/config.h
     [exec] C:/mingw/x64/bin/windres.exe -I../../../../../resources/install/windows -IC:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light cleansweep.rc -O coff -o C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/lightcleansweep.res
     [exec] C:/mingw/x64/bin/gcc.exe -O2 -Wall -Wreturn-type -DWINVER=0x0502 -D_WIN32_WINNT=0x0502 -IC:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light cleansweep.c C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/cleansweep.res -mwindows -o C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/cleansweep.exe -lshell32
     [exec] gcc.exe: error: C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/cleansweep.res: No such file or directory
     [exec] make.exe: *** [C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/cleansweep.exe] Error 1
     [exec] Makefile:65: recipe for target 'C:\Users\iqbal\Downloads\UPdate5\jitsi/release/windows/tmp/light/cleansweep.exe' failed

BUILD FAILED
C:\Users\iqbal\Downloads\UPdate5\jitsi\resources\install\build.xml:340: The following error occurred while executing this line:
C:\Users\iqbal\Downloads\UPdate5\jitsi\resources\install\build.xml:690: exec returned: 2

标签: jitsi

解决方案


推荐阅读