Comments (10)
This issue is produced when you run the appimage-builder twice over the same AppDir without redeploying all the binaries. You need to wipe out or redeploy all the binaries in AppDir before running appimage-builder.
Long description:
appimage-builder uses patchelf to change the PT_INTERP path in the elf executable, and uses the existent value to discover which interpreter the executable requires. If you run appimage-builder twice it will think that the required interpreter is the "pointer" one which causes the malfunction you're seeing.
ref #44
from appimage-builder.
What do you mean under "redeploy"?
It seems i don't run appimage-builder
twice
My Dockerfile:
FROM ubuntu:bionic
WORKDIR /home
COPY main main
COPY libfile.so libfile.so
RUN apt update
RUN apt install -y neovim git cmake build-essential qtbase5-dev qtdeclarative5-dev python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot
RUN pip3 install --upgrade pip && pip3 install appimage-builder
COPY AppImageBuilder.yml .
RUN apt install wget
RUN wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /opt/appimagetool && \
chmod +x /opt/appimagetool && \
cd /opt/ && \
/opt/appimagetool --appimage-extract && \
mv /opt/squashfs-root /opt/appimagetool.AppDir && \
ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool
RUN appimage-builder --skip-tests
from appimage-builder.
By "redeploy" I mean to run appimage-builder two or more times over the same AppDir. You need to rm -rf AppDir
before running appimage-builder. Then you install things there, check out the link below:
from appimage-builder.
By the way you can also use https://hub.docker.com/repository/docker/appimagecrafters/appimage-builder for your builds
from appimage-builder.
@azubieta wait, if i rm -rf AppDir
, then how do I specify which file is executable and which are shared libraries, etc?
from appimage-builder.
@xahon the idea is to start fresh every time, because appimage-builder modifies the AppDir contents and also uses the same data to do the modifications. You can do something like this:
# erase the AppDir
rm -rf ./AppDir
# deploy everything again
make install DESTDIR=AppDir
cp my_file.so AppDir/usr/lib/x86_64-linux-gnu/
# run appimage-builder, tests don't work inside docker
appimage-builder --skip-test
from appimage-builder.
Warning has disappeared but "Unable to read file: ...so" is still showing up
from appimage-builder.
Warning has disappeared but "Unable to read file: ...so" is still showing up
That's weird, could you please post the whole log?
It would be useful if you could share your AppImageBuilder.yml file too.
from appimage-builder.
HIDDEN OUTPUT
from appimage-builder.
Also please share the full error log. If you want we could communicate faster on the appimage irc channel at freenode.org
from appimage-builder.
Related Issues (20)
- appimage-builder wants to be run as root because of `pacman -Fy` HOT 22
- deploying package with apt throws an error in version.py HOT 3
- deploying via pacman require root permissions HOT 1
- Standardize on zstd compression HOT 2
- IndexError: list index out of range
- Debug "cannot open shared object file: no such file or directory"
- When AppDir contains a space character, apt package installation fails
- appimage-builder InvalidVersion(f"Invalid version: '{version}'") HOT 7
- How to run gdk-pixbuf-query-loaders --update-cache HOT 2
- Can't select my binary during recipe generation
- E: No packages found
- Generated appimage produces a segmentation fault
- Built images are not respecting XDG spec when it comes to default XDG_DATA_DIRS issue
- FilePackageResolver dpkg-query -S | OSError: [Errno 7] Argument list too long: '/bin/sh'
- strace, dpkg-query, and incorrect library paths
- Appimage creation fails for Retroarch - Arch Linux
- Error running on github workflow HOT 5
- exited with code 127 HOT 2
- Verify release executable file
- Can't execute binaries with sudo inside AppImage - "command not found"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appimage-builder.