kkoomen/pointless

Error while building Pointless

DilecPadovani opened this issue · 9 comments

Hi there, i'm currently trying to install Pointless. I'm interested in the project and i want to check it out, and maybe help in the development.
Like the ReadMe says, i run yarn install and then yarn run tauri build, at first i had to install few system libs but then when yarn was bundling, i came across this error below. I don't understant what i have to do next, i would appreciate for you to look into it. Thank you.

➜  pointless git:(master) yarn run tauri build
yarn run v1.22.19
$ tauri build
     Running beforeBuildCommand `npm run build`

> pointless@0.1.0 build
> react-scripts build

Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  109.14 kB  build/static/js/main.396e851f.js
  9.92 kB    build/static/css/main.06288039.css
  1.78 kB    build/static/js/787.8050ff47.chunk.js

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

Find out more about deployment here:

  https://cra.link/deployment

   Compiling pointless v0.1.0 (/home/dilec/pointless/src-tauri)
    Finished release [optimized] target(s) in 29.31s
    Bundling pointless_0.1.0_amd64.deb (/home/dilec/pointless/src-tauri/target/release/bundle/deb/pointless_0.1.0_amd64.deb)
    Bundling pointless_0.1.0_amd64.AppImage (/home/dilec/pointless/src-tauri/target/release/bundle/appimage/pointless_0.1.0_amd64.AppImage)
Error running CLI: failed to bundle project: error running appimage.sh: error running appimage.sh: `+ export ARCH=x86_64
+ ARCH=x86_64
+ mkdir -p pointless.AppDir
+ cp -r ../appimage_deb/data/usr pointless.AppDir
+ cd pointless.AppDir
++ dirname '{}'
+ find /usr/lib /usr/lib32 /usr/lib64 /usr/libexec /usr/libx32 -name WebKitNetworkProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
++ dirname '{}'
+ find /usr/lib /usr/lib32 /usr/lib64 /usr/libexec /usr/libx32 -name WebKitWebProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
++ dirname '{}'
+ find /usr/lib /usr/lib32 /usr/lib64 /usr/libexec /usr/libx32 -name libwebkit2gtkinjectedbundle.so -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
+ wget -q -4 -O AppRun https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64
+ chmod +x AppRun
+ cp usr/share/icons/hicolor/512x512@2x/apps/pointless.png .DirIcon
+ ln -s usr/share/icons/hicolor/512x512@2x/apps/pointless.png pointless.png
+ ln -s usr/share/applications/pointless.desktop pointless.desktop
+ cd ..
+ wget -q -4 -O linuxdeploy-plugin-gtk.sh https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
+ wget -q -4 -O linuxdeploy-x86_64.AppImage https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
+ chmod +x linuxdeploy-plugin-gtk.sh
+ chmod +x linuxdeploy-x86_64.AppImage
+ OUTPUT=pointless_0.1.0_amd64.AppImage
+ ./linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir pointless.AppDir --plugin gtk --output appimage
linuxdeploy version 1-alpha (git commit ID 56760df), GitHub actions build 85 built on 2022-06-14 00:36:51 UTC
`
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


@DILECPEDO Hi, are you using M1 macbook with amd64 or are you using Rosetta?

I'm currently using Ubuntu on an AMD processor.

I found some html files and put them in a web server, and used pointless via the browser. So the files are there, the only thing to fail I think is the bundling.

@DILECPEDO So the output of the build command above is done on your linux machine?

Hi, can you post the outputs of 1) yarn tauri info and 2) yarn tauri build --verbose please?

My first guess is that you're missing the librsvg2-dev package.

You guys should update to tauri stable, we fixed the bundler so it'll show you the complete error message.

yarn tauri info

yarn run v1.22.19
$ tauri info

Environment
  › OS: Ubuntu 22.04 X64
  › Node.js: 12.22.9
  › npm: 8.5.1
  › pnpm: Not installed!
  › yarn: 1.22.19
  › rustup: 1.24.3
  › rustc: 1.61.0
  › cargo: 1.61.0
  › Rust toolchain: stable-x86_64-unknown-linux-gnu 

Packages
  › @tauri-apps/cli [NPM]: 1.0.0-rc.10
  › @tauri-apps/api [NPM]: 1.0.0-rc.5
  › tauri [RUST]: 1.0.0-rc.8,
  › tauri-build [RUST]: 1.0.0-rc.7,
  › tao [RUST]: 0.8.4,
  › wry [RUST]: 0.15.1,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../build
  › devPath: http://localhost:3000/
  › framework: React

App directory structure
  ├─ screenshots
  ├─ build
  ├─ .git
  ├─ src-tauri
  ├─ src
  ├─ .husky
  ├─ .github
  ├─ public
  └─ node_modules
Done in 13.91s.

yarn tauri build --verbose

yarn tauri build --verbose.txt

I installed the librsvg2-dev library and things are going smoothly. Thank you for your contribution. if I may there is the need to be a file with all the needed system libraries.