michaelrsweet / recipes-pappl

Yocto recipes for the Printer Application Framework
https://www.msweet.org/pappl
Apache License 2.0
0 stars 2 forks source link

failed in building the recipe #1

Open saberdsl opened 1 year ago

saberdsl commented 1 year ago

I added the recipe without modification (except the uri of the package), I got the following error message

| DEBUG: Executing shell function do_compile | NOTE: make -j 4 | Makefile:10: Makedefs: No such file or directory | make: *** No rule to make target 'Makedefs'. Stop. | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command.

It seemed ./configure should be run to create the Makedefs file. So I added "autotools" at the end the "inherit" statement to run the configure . Different error message appeared

| DEBUG: Python function autotools_aclocals finished | DEBUG: Executing shell function do_compile | NOTE: make -j 4 | make: *** No targets specified and no makefile found. Stop. | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command.

I am new to Yocto,anytging will help.

michaelrsweet commented 1 year ago

OK, so the autotools stuff actually will break PAPPL - configure needs to be run for the build but not aclocal/automake/autoconf/etc. I will look into this but this was working for Kirkstone and other older Yocto releases...

michaelrsweet commented 1 year ago

OK, try the current repo - should be fixed now...

saberdsl commented 1 year ago

Thanks , Michael.

I have tried the new pappl recipe with the original cups recipe in poky layer.I got the following error: ERROR: pappl-1.3.2-r0 do_package_qa: QA Issue: File /usr/lib/libpappl.so.1 in package pappl doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags] ERROR: pappl-1.3.2-r0 do_package_qa: Fatal QA errors were found, failing task. ERROR: Logfile of failure stored in: /home/dean/var-fsl-yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pappl/1.3.2-r0/temp/log.do_package_qa.58812 ERROR: Task (/home/dean/var-fsl-yocto/sources/meta-titan/recipes-printing/pappl/pappl_1.3.2.bb:do_package_qa) failed with exit code '1'

I was trying to fix it with the solution from Yocto by adding TARGET_CC_ARCH += "${LDFLAGS}" .Unfortunately, it was still not working.

I tried your cups recipe , but got the error ERROR: Nothing RPROVIDES 'cups-lib' which was required .

saberdsl commented 1 year ago

Thanks , Michael.

I have tried the new pappl recipe with the original cups recipe in poky layer.I got the following error: ERROR: pappl-1.3.2-r0 do_package_qa: QA Issue: File /usr/lib/libpappl.so.1 in package pappl doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags] ERROR: pappl-1.3.2-r0 do_package_qa: Fatal QA errors were found, failing task. ERROR: Logfile of failure stored in: /home/dean/var-fsl-yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pappl/1.3.2-r0/temp/log.do_package_qa.58812 ERROR: Task (/home/dean/var-fsl-yocto/sources/meta-titan/recipes-printing/pappl/pappl_1.3.2.bb:do_package_qa) failed with exit code '1'

I was trying to fix it with the solution from Yocto by adding TARGET_CC_ARCH += "${LDFLAGS}" .Unfortunately, it was still not working.

I tried your cups recipe , but got the error ERROR: Nothing RPROVIDES 'cups-lib' which was required .

I still stucked here , tried a lot even chat-gpt.

saberdsl commented 1 year ago

After several attemps, I got following error:

/home/dean/var-fsl-yocto_my/build-xwayland/tmp/work/armv8a-fslc-linux/pappl/1.3.2-r0/recipe-sysroot-native/usr/bin/aarch64-fslc-linux/../../libexec/aarch64-fslc-linux/gcc/aarch64-fslc-linux/11.3.0/ld: ../pappl/libpappl.a(system-accessors.o): in function _papplSystemSetHostNameNoLock': | /usr/src/debug/pappl/1.3.2-r0/pappl-1.3.2/pappl/system-accessors.c:1815: undefined reference tocupsSetServerCredentials' | collect2: error: ld returned 1 exit status | make[1]: [Makefile:73: testmainloop] Error 1 | make[1]: Waiting for unfinished jobs.... | make: *** [Makefile:28: all] Error 1 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command.

"cupsSetServerCredentials" is defined in cups.h , I think the cups-lib is not in the correct location so pappl cannot find it when building.