mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
Build fail for web target #1521
Labels
No labels
bug
documentation
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rustdesk-rustdesk#1521
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hdcos on GitHub (Mar 14, 2023).
Bug Description
We followed the build steps for linux and build steps for the web client but running
flutter run -d chromegives us errors.Running the linux client works but the web fails.
We can make a connection to the remote when using only vitejs. But it fails because apparently we need to run through
flutter run -d chromeand this part fails.Seems like the problem comes from the dart ffi and win32 even though we are compiling on ubuntu.
Platform :
Also there is a problem when decompressing the files for web it should be done inside the js folder and not in the web folder other wise index html can't find the web deps.
Also protoc does not compile the boolean
retry_for_relayand tsc raises an exception.How to Reproduce
Just follow the documentation for building for the web on ubuntu, it should fail normally.
Expected Behavior
Following the documentation should work.
Operating system(s) on local side and remote side
ubuntu 22.04 LTS
RustDesk Version(s) on local side and remote side
master
Screenshots
Additional Context
No response
@hdcos commented on GitHub (Mar 14, 2023):
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:87:16:
Error: Only JS interop members may be 'external'.
external int cVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:89:16:
Error: Only JS interop members may be 'external'.
external int uiVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:91:16:
Error: Only JS interop members may be 'external'.
external int ulVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:93:16:
Error: Only JS interop members may be 'external'.
external int ullVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:95:16:
Error: Only JS interop members may be 'external'.
external int intVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:97:16:
Error: Only JS interop members may be 'external'.
external int uintVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:98:29:
Error: Only JS interop members may be 'external'.
external Pointer pdecVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:99:26:
Error: Only JS interop members may be 'external'.
external Pointer pcVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart💯28:
Error: Only JS interop members may be 'external'.
external Pointer puiVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:101:28:
Error: Only JS interop members may be 'external'.
external Pointer pulVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:102:28:
Error: Only JS interop members may be 'external'.
external Pointer pullVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:103:27:
Error: Only JS interop members may be 'external'.
external Pointer pintVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:104:28:
Error: Only JS interop members may be 'external'.
external Pointer puintVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:105:33:
Error: Only JS interop members may be 'external'.
external _VARIANT_Anonymous_3 __VARIANT_NAME_4;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:110:16:
Error: Only JS interop members may be 'external'.
external int vt;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:112:16:
Error: Only JS interop members may be 'external'.
external int wReserved1;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:114:16:
Error: Only JS interop members may be 'external'.
external int wReserved2;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:116:16:
Error: Only JS interop members may be 'external'.
external int wReserved3;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:117:33:
Error: Only JS interop members may be 'external'.
external _VARIANT_Anonymous_2 __VARIANT_NAME_3;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:121:33:
Error: Only JS interop members may be 'external'.
external _VARIANT_Anonymous_1 __VARIANT_NAME_2;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:122:20:
Error: Only JS interop members may be 'external'.
external DECIMAL decVal;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:133:33:
Error: Only JS interop members may be 'external'.
external _VARIANT_Anonymous_0 __VARIANT_NAME_1;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:408:16:
Error: Only JS interop members may be 'external'.
external int vt;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:410:16:
Error: Only JS interop members may be 'external'.
external int wReserved1;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:412:16:
Error: Only JS interop members may be 'external'.
external int wReserved2;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:414:16:
Error: Only JS interop members may be 'external'.
external int wReserved3;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:416:16:
Error: Only JS interop members may be 'external'.
external int val1;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/variant.dart:418:16:
Error: Only JS interop members may be 'external'.
external int val2;
^
../../../../.pub-cache/hosted/pub.dev/win32-3.1.3/lib/src/combase.dart:24:37:
Error: Only JS interop members may be 'external'.
external Pointer<Pointer> lpVtbl;
^
Error: Compilation failed.
#0 Dart2JSTarget.build (package:flutter_tools/src/build_system/targets/web.dart:225:7)
#1 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:847:9)
#2 Future.wait. (dart:async/future.dart:522:21)
#3 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:785:32)
#4 Future.wait. (dart:async/future.dart:522:21)
#5 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:785:32)
#6 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:614:16)
#7 buildWeb (package:flutter_tools/src/web/compile.dart:53:32)
#8 BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:135:5)
#9 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1257:27)
#10 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#11 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
#12 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
#13 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#14 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
#15 run.. (package:flutter_tools/runner.dart:64:9)
#16 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#17 main (package:flutter_tools/executable.dart:91:3)
Compiling lib/main.dart for the Web... 28.3s
Exception: Failed to compile application for the Web.
@rustdesk commented on GitHub (Mar 14, 2023):
#763
@TBG-FR commented on GitHub (Feb 5, 2024):
@hdcos If you build with docker and output the log to a file, you can actually see the "real" error log (before all the generated lines with
Error: Only JS interop members may be 'external'.)