I want to install pjsip on Colibri i.MX6, the issue I’m having seems to be the same issue as in this post
I created a layer for pjsip and used the pjsip.bb in the answer from this similar question:
Here is the error I get when I try $bitbake pjsip
| make[2]: Leaving directory '/home/aaron/oe-core/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/pjsip/2.6-r0/pjproject-2.6/pjsip-apps/build'
| make[1]: Leaving directory '/home/aaron/oe-core/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/pjsip/2.6-r0/pjproject-2.6/pjsip-apps/build'
| NOTE: make
| python setup.py build
| running build
| running build_py
| running build_ext
| error: invalid Python installation: unable to open /home/aaron/oe-core/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/pjsip/2.6-r0/recipe-sysroot/usr/lib/python2.7/config/Makefile (No such file or directory)
| Makefile:2: recipe for target 'all' failed
| make: *** [all] Error 1 | ERROR: oe_runmake failed
| WARNING: /home/aaron/oe-core/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/pjsip/2.6-r0/temp/run.do_compile.25391:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/aaron/oe-core/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/pjsip/2.6-r0/temp/log.do_compile.25391) ERROR: Task (/home/aaron/oe-core/build/../layers/meta-pjsip/recipes-pjsip/pjsip/pjsip_2.6.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 1817 tasks of which 1816 didn't need to be rerun and 1 failed. NOTE: Writing buildhistory
Summary: 1 task failed: /home/aaron/oe-core/build/../layers/meta-pjsip/recipes-pjsip/pjsip/pjsip_2.6.bb:do_compile
I’m not clear on how I add python. The answer from the first question was this:
"I would create a base image (which has the sources defined etc, e.g. pjsip.inc) and then create one recipe for the main app (pjsip_$VER.bb) and one for the Python module (e.g. pjsip-python_$VER.bb). The latter would then include distutils and set the source directory directly to where setup.py is located (something like `S = “${WORKDIR}/pjsip-apps/src/python/” or similar). That said, I did not test that approach, the detail and whether that approach really works depends on various factors, such as whether the Python module has dependencies to the rest of the source… "
This is the meta-pjsip I created:
meta-pjsip/
├── conf
│ └── layer.conf
└── recipes-pjsip
└── pjsip
└── pjsip_2.6.bb
Do I add python in recipes-pjsip and create the .bb there?
meta-pjsip/
├── conf
│ ├── layer.conf
└── recipes-pjsip
├── pjsip
│ ├── pjsip_2.6.bb
└── pysip-python_2.7
How do I set the work directory to avoid the error above?
| error: invalid Python installation: unable to open /home/aaron/oe-core/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/pjsip/2.6-r0/recipe-sysroot/usr/lib/python2.7/config/Makefile (No such file or directory)