ONLYOFFICE / build_tools

Used to build ONLYOFFICE DocumentServer-related products
https://www.onlyoffice.com
GNU Affero General Public License v3.0
99 stars 162 forks source link

Failed to build server submodule #794

Open JiffyChen opened 4 months ago

JiffyChen commented 4 months ago

This issue is unique.

Operating System of DocumentServer

Docker

Version information

v8.0.1

Expected Behavior

Successfully built without serious warnings

Actual Behavior

Pkg converter and docservice failed with serious warning。 Warning Cannot resolve ''./' + config.get('services.CoAuthoring.server.editorDataStorage')' /build/build_tools/out/linux_64/onlyoffice/documentserver/server/DocService/sources/DocsCoServer.js Dynamic require may fail at run time, because the requested file is unknown at compilation time and not included into executable. Use a string literal as an argument for 'require', or leave it as is and specify the resolved file name in 'scripts' option.

Warning Cannot resolve ''./' + config.get('storage.name')' /build/build_tools/out/linux_64/onlyoffice/documentserver/server/Common/sources/storage-base.js Dynamic require may fail at run time, because the requested file is unknown at compilation time and not included into executable. Use a string literal as an argument for 'require', or leave it as is and specify the resolved file name in 'scripts' option. Warning Cannot include file %1 into executable. The file must be distributed with executable as %2. %1: ../build_tools/out/linux_64/onlyoffice/documentserver/server/DocService/node_modules/open/xdg-open %2: path-to-executable/xdg-open Warning Cannot include file %1 into executable. The file must be distributed with executable as %2. %1: ../build_tools/out/linux_64/onlyoffice/documentserver/server/DocService/node_modules/open/xdg-open %2: path-to-executable/xdg-open image

Reproduction Steps

download all source code

  1. cd server
  2. make
  3. pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/FileConverter --targets=node16-linux -o /build/converter

Additional information

No response

igwyd commented 1 month ago

Hello @JiffyChen, You can compile using build_tools, the guide is here. But its brocken right now #807.