Closed kevinsmia1939 closed 3 years ago
Update.
I got it working now.
I don't know why, but flatpak prefer that I do something like this.
- name: libQGLViewer
buildsystem: qmake
subdir: QGLViewer
build-options:
env:
LIBRARY_PATH: "/app/lib:/usr/lib"
LD_LIBRARY_PATH: "/app/lib:/usr/lib"
config-opts:
- LIB_DIR=/app/lib
- INCLUDE_DIR=/app/include
- PREFIX=/app
sources:
- type: archive
url: http://www.libqglviewer.com/src/libQGLViewer-2.7.2.tar.gz
sha256: e2d2799dec5cff74548e951556a1fa06a11d9bcde2ce6593f9c27a17543b7c08
👍
On Sun, Apr 25, 2021 at 12:01 PM Kevin Tee @.***> wrote:
Closed #54 https://github.com/GillesDebunne/libQGLViewer/issues/54.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GillesDebunne/libQGLViewer/issues/54#event-4640985372, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOPFGRUIWLQFX34STSQNDLTKPR73ANCNFSM43Q4Y5VA .
Hello,
I am trying to add libQGLViewer as dependency for Gazebo for Flatpak package for linux.
The filesystem of Flatpak use
/app
instead of/usr
I cannot build libQGLViewer because of this error.
x86_64-unknown-linux-gnu/bin/ld: cannot find -lGLU
Running
ld -lGLU --verbose
give me this.I think that the correct directory should be
/app/lib
instead of/usr/lib
. How can I change this? Is it some path I can modify in QGLViewer.pro?i tried using
ln -s /app/lib/libGLU.so /usr/lib/libGLU.so
but does not work simple because/usr/lib
simply do not exist in Flatpak filesystem.I tried,
but ld still looking into
/usr
, the same as above, or did I use it wrong?Thank you.