Hello,
I am trying to create an ipk package using gutenprint for OpenWRT. More specifically for use with the GL-iNet AR750. I am running Ubuntu 20.04 and have set up an OpenWRT build environment (using the instructions at https://openwrt.org/docs/guide-developer/helloworld/start)
Here is what I did to create the ipk package for gutenprint:
- Downloaded the gutenprint-5.3.3.tar.xz package and extracted it using file explorer (in the locationo /home/ubuntu20/gutenprint-5.3.3)
- Opened terminal in extracted folder and configured gutenprint using "./configure --enable-cups-ppds" and installed "libusb" (sudo apt-get install libusb-1.0-0-dev) to enable dyesub USB backend
- Then ran "make" and "sudo make install"
The SOURCE_DIR in the Makefile is /home/ubuntu20/gutenprint-5.3.3
in the OpenWRT build environment I ran "./scripts/feeds update mypackages" and "./scripts/feeds install -a -p mypackages" both of which run successfully (ending with the message "Installing all packages from feed mypackages"). Note I have created the feeds.conf file as indicated here (https://openwrt.org/docs/guide-developer/helloworld/chapter4) and specified mypackages feed.
I then run "make menuconfig" and able to find my device (Target system: "Atheros ATH79", Subtarget="Generic", Target Progile="GL-iNet GL-AR750"). I am also able to include the gutenprint package in the configuration (in printing > the highlight "gutenprint" and press "y") --> everything runs as expected up to this point
---- Here is where I'm running into problems :
- When I run "make package/gutenprint-5.3.3/compile -j1 V=s" (similar to the steps here https://openwrt.org/docs/guide-developer/helloworld/chapter5) I get the error in the attached file. How can I resolve this?
I am thinking something is not right with the Makefile or its missing something. It seems I can only attach 1 file per post, so I will try to attach the Makefile with a comment.
Any help would be appreciated. Thank you
Here is the gutenprint-5.3.3 Makefile that I am using. Stored in /home/ubuntu20/mypackages/printing/gutenprint-5.3.3
Do you have output from
make
within the Gutenprint source tree? I have no experience with OpenWRT.I'm quite new to all of this, so I'm not exactly sure how to do that. But replacing $(eval $(call BuildPackage,...)) with $(error $(call BuildPackage,...)) seems to output a lot more details (attached file)
This method is suggested by a commenter here https://forum.openwrt.org/t/debugging-package-makefile/13764/3.
But when I replace "eval" with "error" in the Makefile, I get an error when trying to update and install the feed
EDIT: if I update the package feeds twice, the error asking to fix the Makefile goes away
Last edit: Khurram 2021-09-21
Can you cd into the root of the Gutenprint source tree and run
make
there directly (after running configure)?Yes I can run "Make" after configure in the root of Gutenprint. Here is the result while configuring:
"Make" is still running I will post the result once its done. (it always runs successfully and as well as "sudo make install" after that)
Last edit: Khurram 2021-09-21
The text is quite long so I have attached the result from "make" from within the root Gutenprint source tree.
Something else that might be helpful is that when I run "make package/gutenprint-5.3.3/{clean,prepare, compile, install} V=s" in the OpenWRT build environment I get the following results saying "No rule to make target..." and stops at "prepare"
Again, I suggest you contact the OpenWRT people, since Gutenprint proper builds cleanly (albeit there are some warnings that we'll want to clean up). We aren't in a position to help with OpenWRT issues.
The Gutenprint portion did build correctly. You'd probably do best contacting the OpenWRT team for assistance.
Thank you will look into that.
I was wondering if there is a package available for gutenprint which can be be installed using the package manager on Ubuntu. For example right now I need to install the compressed file > extract it, then "make" and "make install' to install the package.
Is there a gutenprint package which can be installed with the default package manager on Ubuntu?
Thanks
No, I'm sorry, we don't provide pre-built packages for any system other than Macintosh.
On Tue, Sep 21, 2021 at 08:42:16PM -0000, Khurram wrote:
Ubuntu already provides a prebuilt gutenprint package, but it tends to
be a bit out of date.