Coder Social home page Coder Social logo

Comments (5)

iguessthislldo avatar iguessthislldo commented on May 27, 2024

Which should be the $DDS_ROOT ? is it the base folder of the cloned repository? I'm asking 'cause there's no setenv.sh across the cloned repository.

setenv.sh isn't part of PyOpenDDS, it is generated by OpenDDS when it's configured and should be in the root of the OpenDDS source directory. This is what CMake is complaining about in the middle of the log you posted; it can't find OpenDDS.

from pyopendds.

sinsalabim avatar sinsalabim commented on May 27, 2024

Quite embarrassing.
Thought that pyopendds would have installed OpenDDS automagically.
Quite naive of me.
However, I did managed to install open dds, sourced out setenv.sh and successfully installed pyopendds.

Absolutely easy peasy.

Only curios thing is that setenv.sh had no sha-bang at the very top.
Therefore I've added execution right with chmod +x and ran the script, and everything went right.
Just like one shot one kill.

This is a container built specifying arm64 architecture (as you can see in the docker file).
Right now I'll close the issue right away and let you know if it will run correctly into the real environment (https://developer.nvidia.com/embedded/jetson-nano-developer-kit)

Thank you very much for the given attention and super quick support.

from pyopendds.

iguessthislldo avatar iguessthislldo commented on May 27, 2024

Thought that pyopendds would have installed OpenDDS automagically.

That's something I have an issue for: #29

However in the case of arm64, I'm not sure if it'd be be automatic or not.

Only curios thing is that setenv.sh had no sha-bang at the very top.

It doesn't need a sha-bang. It's meant to be sourced from the shell or scripts using something like source OpenDDS/setenv.sh.

from pyopendds.

mitza-oci avatar mitza-oci commented on May 27, 2024

Only curios thing is that setenv.sh had no sha-bang at the very top.

It doesn't need a sha-bang. It's meant to be sourced from the shell or scripts using something like source OpenDDS/setenv.sh.

And the same concept applies to the file mode bits (chmod).

from pyopendds.

sinsalabim avatar sinsalabim commented on May 27, 2024

@iguessthislldo I've realized why sourcing wasn't working.
Container has shell terminal, not bash (check the ps aux command output)

# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.4 163320 36224 pts/0    Ssl+ 11:12   0:00 /usr/bin/qemu-aarch64 /usr/local/bin/python3 python3
root         8  0.0  0.0 148844  7188 pts/1    Ssl  11:12   0:00 /usr/bin/qemu-aarch64 /bin/sh /bin/sh
root        69  0.0  0.1 155252 10564 ?        Rl+  10:31   0:00 ps aux

Therefore the equivalent of "source" is the "." command.

That's why source gives me the following error:

# source OpenDDS/setenv.sh
/bin/sh: 35: source: not found

Instead I should have used the following:

# . OpenDDS/setenv.sh

Which runs smoothly.

from pyopendds.

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.