Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codegen Tutorials: Incorrect app paths #3014

Closed
bauhaus93 opened this issue Sep 27, 2019 · 1 comment

Comments

@bauhaus93
Copy link

commented Sep 27, 2019

It seems that in the codegen/tree and codegen/econf example READMEs, the kdb mount commands for the cmake and pkgconfig setup are executed from the build directory, while they are expected to be executed from the directory of the README.md (since specload "app=$PWD/cmake/build/application" in case of the cmake setup).

tree/README.md, cmake setup, comments added:

mkdir "$PWD/cmake/build" && cd "$PWD/cmake/build"

cmake ..
cmake --build .

# Directory isn't changed, since $PWD contains current directory
cd "$PWD"

# kdb mount executed from the build directory,
sudo kdb mount -R noresolver codegen_tree_example.conf "spec/sw/example/tree/#0/current" specload "app=$PWD/cmake/build/application"
sudo kdb spec-mount "/sw/example/econf/#0/current"

After kdb mount, there is the error message:

The command kdb mount terminated unsuccessfully with the info:
Was not able to load such a plugin!

Maybe you misspelled it, there is no such plugin or the loader has problems.
You might want to try to set LD_LIBRARY_PATH, use kdb-full or kdb-static.
Errors/Warnings during loading were:
Sorry, module specload issued the error C01100:
Resource: App '<FULL_PATH>/libelektra/examples/codegen/tree/cmake/build/cmake/build/application' doesn't exist or is not executable

The same problem appears in econf/README.md.

The third tutorial, menu/README.md works, expecting $PWD to be the build directory, where application is located:

sudo kdb mount -R noresolver codegen_menu_example.conf "spec/sw/example/menu/#0/current" specload "app=$PWD/application"
@markus2330

This comment has been minimized.

Copy link
Contributor

commented Sep 27, 2019

Thank you so much for reporting it!

@kodebach is this an easy fix?

@kodebach kodebach referenced this issue Oct 9, 2019
4 of 16 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.