Re: Questions about creating a development package
"Jan Niklas Hasse" <[email protected]>
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
> > > > Because I want to see more programs using it, I am trying to let my own > > programs use it. The first one i tried is a static library, the package > > installs the development version (.a, .hpp, .pc). > > I got 2 questions: > > - How can i require the dev versions of packages? E.g. i have to require > > libpng-dev. > You have to think in different terms. You don't *really* depend on > something named libpng-dev, you depend on header files and some libs, > right? You should check for these. My pkg-config file contains: Libs: -ljngl -lGL Requires: libpng glib-2.0 xxf86vm So i need to check if libpng, glib-2.0 and xxf86vm are available for pkg-config. Is there a command to do this? If the existing png-skeleton[1] doesn't do this already, you'll need > to either create a new skeleton or write the required code in your > [Prepare] section. > > > - What's wrong with the attached apspec? When i try to install the > created > > package i get: > > Installing libraries... > > Installing compile-time configuration files... > > Error: Package jngl Library could not be installed. > > It could be the copyFiles call that's failing because the directory > doesn't exist. > > You might wanna set DEBUGLEVEL to 3 and re-run the installation. That > should give you more detailed output: > export DEBUGLEVEL=3 > package install xyz.package I tried and got the following: jhasse@gutsy:~/svn/jngl$ package install jngl\ Library\ 0.5.package * trace:stub:59:verifying md5 of data payload * trace:stub:79:verified md5 of data payload * trace:stub:136:created working directory: /tmp/autopackage.2506126439 * trace:stub:142:created payload directory: /tmp/autopackage.2506126439/payload/@watteimdocht.de/jngl:0.5 * trace:stub:145:created meta directory: /tmp/autopackage.2506126439/meta/@ watteimdocht.de/jngl:0.5 * trace:stub:153:extracted metadata payload * trace:stub:162:set data payload filename: payload.tar.lzma * trace:stub:169:extracted data payload jhasse@gutsy:~/svn/jngl$ But these messages all appeared just before the password. I checked the installed file, and the only one coppied successful was jngl.pc. When i select "No Password" it works fine, but that isn't usefull, because pkg-config doesn't look in ~/.local.