我正在尝试制作Jitsi安装程序 Installer for Jitsi SIP Communicator
但面临以下错误
wix-sign-file:
[exec] setup.msi: 52.3 MiB / 199.0 MiB = 0.263, 1.2 MiB/s, 2:44
[exec] process_begin: CreateProcess(NULL, rm.exe -f ../../../../resources/install/windows/config.h, ...) failed.rm.exe -f ../../../../resources/install/windows/config.h
[exec]
[exec] make (e=2): The system cannot find the file specified.Makefile:69: recipe for target 'E:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/config.h' failed
[exec]
[exec] echo #define PRODUCTNAME "Jitsi" > E:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/config.hmake.exe: [E:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/config.h] Error 2 (ignored)
[exec]
[exec] echo #undef PACKAGECODE >> E:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/config.h
[exec] echo #undef PACKAGESIZE >> E:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/config.h
[exec] echo #define PRODUCTBUILDVERSION "1.1.0.9" >> E:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/config.h
[exec] C:/mingw/bin/windres.exe -I../../../../resources/install/windows -IE:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp setup.rc -O coff -o E:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/setup.res
[exec] 'C:' is not recognized as an internal or external command,
[exec] operable program or batch file.
[exec] 'C:' is not recognized as an internal or external command,
[exec] operable program or batch file.
[exec] C:/mingw/bin/gcc.exe -O2 -Wall -Wreturn-type -DWINVER=0x0502 -D_WIN32_WINNT=0x0502 -IE:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/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 E:\JZ\Code\JavaCode
\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/setup.res -mwindows -LC:\MinGW\bzip2/lib/ -LC:\MinGW\bzip2 -LC:\MinGW\xz/lib/ -LC:\MinGW\xz/.libs -o E:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/setup.exe -ladvapi32 -lbz2 -llzma -lole32 -lshell32
[exec] Makefile:63: recipe for target 'E:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/setup.exe' failed
[exec] c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -llzma
[exec] collect2.exe: error: ld returned 1 exit status
[exec] make.exe: *** [E:\JZ\Code\JavaCode\jitsilatest\LANJr4D-jitsi-b56f30acd2d1/release/windows/tmp/setup.exe] Error 1
BUILD FAILED
虽然我在C:/ MingW / xz中有xz包,但也为它设置了环境变量LZMA_HOME
由于
JZ
答案 0 :(得分:0)
对于此错误,您必须在PATH中拥有/src/native/windows/setup
。然后将/src/native/windows/setup/lib/x64/libbz2.a
或/src/native/windows/setup/lib/x86/libbz2.a
和libllzma.a
个文件复制到/src/native/windows/setup/lib
。删除对bzip2和lzma的所有其他路径和系统变量引用。您不再需要xz或bzip2,因为文件包含在上述位置,xz.exe可执行文件包含在/resources/install/windows
中。如果您像所有互联网说明一样使用外部bzip2,当您最终设法制作安装程序并尝试运行可执行文件时,您将收到bzip2.dll错误。
互联网上的所有说明都是过时/错误的。他们都是。每一个! NOBODY一直想在任何地方指出这一点。没有人。您甚至不会在开发或用户邮件列表中找到任何信息。这里和那里只有当前信息的小面包屑。我不得不自己想出这个小宝石。花了好几天。有趣的时光。
这并非所有说明中唯一的错误。我仍在努力解决所有问题。一旦我得到完美的安装,我会尝试在某处添加更新的说明。
我可以让它编译但可执行文件会崩溃。如果我在32位可执行文件上使用64位Java,那么我可以让它运行。所以C包装器仍然有问题。没有任何信息。发布相同问题的每个人都没有任何回应,并且都在同一条船上。