Coder Social home page Coder Social logo

Comments (10)

Bastian-Krause avatar Bastian-Krause commented on June 15, 2024

Very strange. Could you please post the complete output of these commands?

$ rm -rf build
$ git status
$ git show -s
$ ls -la
$ meson setup --debug --wipe build

from rauc-hawkbit-updater.

lreinecke avatar lreinecke commented on June 15, 2024

I tried a bit with your commands. This was the result:
Console Output 1
Console Output 2
Console Output 3
The git show -s resulted in this:
git show -s

I have a fork, where I add new features for my company, but there it is the same.

from rauc-hawkbit-updater.

Bastian-Krause avatar Bastian-Krause commented on June 15, 2024

What version of meson are you using? Is there a wrapper around your meson or is it called directly?

You could add "strace" before meson to see where it's actually looking for the meson.build. But if these basic operations do not work as intended, I don't have high hopes that everything works as expected if this error is gone..

from rauc-hawkbit-updater.

lreinecke avatar lreinecke commented on June 15, 2024

It worked fine, without the crosscompiler. So its a problem with the crosscompiler, and not with your code.

from rauc-hawkbit-updater.

Bastian-Krause avatar Bastian-Krause commented on June 15, 2024

Yes, I suspected that.

from rauc-hawkbit-updater.

lreinecke avatar lreinecke commented on June 15, 2024

Thanks for your time. I suppose I have to solve this problem fo my own.

from rauc-hawkbit-updater.

Bastian-Krause avatar Bastian-Krause commented on June 15, 2024

If the solution might help others, please post it here. Thanks.

from rauc-hawkbit-updater.

eli-schwartz avatar eli-schwartz commented on June 15, 2024

but everytime I run meson setup build ther is an error ERROR: Neither directory contains a build file meson.build.. I use this command in the base folder of the project .../rauc-hawkbit-updater/. Do you know how to fix this?

The two directories in question that "neither" contains a build file meson.build are either:

  • the current working directory
  • build/
    or else, for versions of Meson before 0.42 (when meson setup was introduced):
  • setup/
  • build/

I believe it is vanishingly unlikely you are using versions of Meson older than 0.42, but at the same time you've strongly indicated that ls reports a meson.build file.

So it's probable that your cross compiler is actually overwriting the definition of the meson program, but posting the output of type -a meson (bash or zsh) or whence -ca ls (optional for zsh) could help clarify that.

from rauc-hawkbit-updater.

lreinecke avatar lreinecke commented on June 15, 2024

The meson of my crosscompiler is version 0.53.2
There is an meson.build file in the base directory of the project where it should be.
If I only type meson setup or meson build it finds the meson.build but throws the Error ERROR: Unable to determine dynamic linker
If I use strace it shows, that it looks only in the subdirectories setup/ and build/ for the file. There are none and so it fails.

from rauc-hawkbit-updater.

lreinecke avatar lreinecke commented on June 15, 2024

@eli-schwartz @Bastian-Krause I have found a solution for (all of) my problems. My crosscompiler overwrites the PATH variable in a way that it used a meson-binary with the version 0.53.2. This version didn't work for me. So i had to use the local meson by typing /usr/bin/meson setup build --cross-file meson.cross. Then it works fine.

from rauc-hawkbit-updater.

Related Issues (20)

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.