blikvm icon indicating copy to clipboard operation
blikvm copied to clipboard

[Bug] dev installation instructions fatal error: janus/plugins/plugin.h: No such file or directory

Open magore opened this issue 2 years ago • 10 comments

https://github.com/ThomasVon2021/blikvm/blob/master/dev-readme.md ustreamer build fails looking for #include <janus/plugins/plugin.h>

Perhaps you wanted to look in janus-gateway/src/plugins/plugin.h There is no janus/plugins/plugin.h directory

magore avatar Dec 09 '22 03:12 magore

Have you install janus before?

ThomasVon2021 avatar Dec 10 '22 11:12 ThomasVon2021

No, I have not built janus from source prior to your build dev-readme.md instructions for ustreamer. Although, external to your notes, I was aware that janus was also an available package from apt I chose the source route as you docmented it to be safe gven there were no other notes in your document. Note: Janus itself compiled fine as you documented it. However ustreamer failed if we includeded your ustreamer build option WITH_JANUS=1 - without that it builds - not sure what that breaks.

magore avatar Dec 17 '22 03:12 magore

You should build janus before. According to instructions to config janus.

ThomasVon2021 avatar Dec 26 '22 11:12 ThomasVon2021

Janis was built before ustreamer following instructions exactly ias outlined in your dev-readme.md I would suggest you build everything in a clean environment and update your dev-readme.md so they work correctly.

magore avatar Dec 27 '22 23:12 magore

I had builded in a clean environment.

ThomasVon2021 avatar Dec 28 '22 12:12 ThomasVon2021

As I said before there is no janus/plugins/plugin.h file just the janus-gateway/src/plugins/plugin.h. All of the other KVM projects edit the file to correct the path. This step is missing in your dev-readme.md instructions.

See for example of this being fixed: https://github.com/tiny-pilot/ansible-role-ustreamer/blob/master/tasks/install_janus.yml

magore avatar Dec 31 '22 07:12 magore

I encountered the same issue. Had to follow the official docs to mitigate the compiling errors of make WITH_JANUS=1:

ln -s /opt/janus/include/janus /usr/include/janus

and

sed \
  --in-place \
  --expression 's|^#include "refcount.h"$|#include "../refcount.h"|g' \
  /usr/include/janus/plugins/plugin.h

freeyoung avatar Jan 08 '23 09:01 freeyoung

As I said before there is no janus/plugins/plugin.h file just the janus-gateway/src/plugins/plugin.h. All of the other KVM projects edit the file to correct the path. This step is missing in your dev-readme.md instructions.

See for example of this being fixed: https://github.com/tiny-pilot/ansible-role-ustreamer/blob/master/tasks/install_janus.yml

According to freeyoung comment, have you solved your problem?

ThomasVon2021 avatar Jan 13 '23 07:01 ThomasVon2021

https://wiki.blicube.com/blikvm/en/flashing_os/ Hi, I have share the image which can run all of software OK. You can test base on this image.

ThomasVon2021 avatar Jan 24 '23 11:01 ThomasVon2021

Can this issue be closed?

m50S79sM6SRNp8Jn avatar Jan 10 '24 20:01 m50S79sM6SRNp8Jn