Building API Dash on Ubuntu Fails
AcousticDeveloper opened this issue · comments
Describe the bug/problem
Trying to build apidash on a fresh install of Ubuntu fails.
This issue does not seem to be with my local flutter installation or any other components because a new flutter application runs without any error.
The issue can be due to mdk-sdk which has a build failure to the current master branch (though mentions in the commit that it is not released) which comes from fvp where version 0.16.0
mentions for preparing ffmpeg 7.0
(but currently listed version in pubspec.yaml
is ^0.14.0
), so that might be a reason for this issue.
I think the issue is due to mdk-sdk
because flutter run
downloads the nightly
build of the software.
Running flutter run
with -v
flag outputs the following (please note this is not the complete output, rather the part where the build fails)
For testing purposes, I've tried to manually install ffmpeg
using sudo snap install ffmpeg
which installs version 4.3.1
, but still the error remained.
Steps to Reproduce the bug/problem
- Install a fresh Ubuntu 22.04 on WSL2 on Windows 11.
- Install
flutter
using snap by running the following commandsudo snap install flutter --classic
. - Setup SSH key for git with Ubuntu.
- Fork and clone apidash.
- Install linux compilation tools as mentioned in the documentation.
- Run
flutter create --platforms=linux .
to setup flutter for linux. - Run
flutter run
.
Expected behavior
It should build successfully, and a new window with apidash shall open.
Device Info (The device where you encountered this issue):
- OS: Ubuntu 22.04 on WSL2, Windows 11
Note: I am labeling this as a bug for API Dash because building default flutter apps work without any error. Any setup instruction on a fresh installation of Ubuntu will be helpful and can solve the issue. Thanks.