Giter Club home page Giter Club logo

Comments (3)

codecalypse avatar codecalypse commented on August 11, 2024

Thank you for confirmation, I also figured out that this works indeed for building. Very helpful.
However, did you also encountered the issue with:

import pyaos as LFR
ImportError: libglfw.so.3: cannot open shared object file: No such file or directory

even I can confirm that the file libglfw.so.3 is located in the /usr/lib directory?
I am currently not sure why this is happening.

I will try now to build the libglfw once more. (x11 for manjaro linux)

from aos.

codecalypse avatar codecalypse commented on August 11, 2024

Ok, I tried to install also the 32-bit versions of the library and point the linker to that files (usr/lib32).
sadly he writes out, to skip them and ends up with the 64-bit versions again (usr/lib).

Here are the last few lines of the output of setup_Unix:

g++ -pthread -B /home/nidhoeggr/miniconda3/envs/cv2023/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /home/nidhoeggr/miniconda3/envs/cv2023/compiler_compat -L/home/nidhoeggr/miniconda3/envs/cv2023/lib -Wl,-rpath=/home/nidhoeggr/miniconda3/envs/cv2023/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-cpython-37/../src/AOS.o build/temp.linux-x86_64-cpython-37/../src/gl_utils.o build/temp.linux-x86_64-cpython-37/../src/glad.o build/temp.linux-x86_64-cpython-37/../src/image.o build/temp.linux-x86_64-cpython-37/../src/utils.o build/temp.linux-x86_64-cpython-37/pyaos.o -L/usr/lib32 -lglfw -lassimp -o "/home/nidhoeggr/JKU/UE_CV/AOS/AOS for Drone Swarms/LFR/python/pyaos.cpython-37m-x86_64-linux-gnu.so"
/usr/bin/ld: skipping incompatible /usr/lib32/libglfw.so when searching for -lglfw
/usr/bin/ld: skipping incompatible /usr/lib32/libassimp.so when searching for -lassimp
/usr/bin/ld: skipping incompatible /usr/lib32/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib32/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib32/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib32/libc.a when searching for -lc

with the directory pointing directly to /usr/lib, g++ command is the only thing I get in the end of the script.
Nothing changes, the ImportError remains.
Any suggestion is highly appreciated.

from aos.

codecalypse avatar codecalypse commented on August 11, 2024

Update:
I did copy the .so-files into the LFR/lib folder.
added runtime_library_dirs=["../lib"] in the setup_unix file
installd dependancy of assimp:

conda install -c conda-forge gcc=12.1.0

not it works.
Maybe i was wrong adding the libs on the host /usr/lib directory.
But now it works. Maybe this can proof useful to someone else.

from aos.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.