Re: Launching after 0compile with dup-src
Thomas Leonard <[email protected]>
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <CAG4opy85zvhg2b+39sk2Avp4PazQFxAiMvvBNGDt-Jq_XcKswg@mail.gmail.com> |
On 9 July 2015 at 20:21, Björn Pollex <[email protected]> wrote: > Hi all, > > I’m trying to create a local feed for a project of mine that enables me to > build it using 0compile. So far all that I am trying is to just call make > and then run the build binary. My feed looks like this: > > <?xml version="1.0"?> > <interface > xmlns="http://zero-install.sourceforge.net/2004/injector/interface" > > xmlns:compile="http://zero-install.sourceforge.net/2006/namespaces/0compile"> > <name>my-application</name> > > <group> > <implementation arch="*-src" id="." local-path="." version="0.1-pre" > compile:dup-src="true"> > <command name="compile" shell-command="make"> > <compile:implementation> > <command name="run" path=“my-application" /> > </compile:implementation> > </command> > </implementation> > </group> > </interface> > > I am using dup-src because the makefile only works correctly if it is > executed from the source root. Something like make -f $SRCDIR/Makefile > causes build errors. I will fix this soon, but I’d like to get this to work > first. > > To build it, I run the following commands: > > 0compile setup my-application.xml > cd my-application > 0compile build > > This works and compiles everything. However, when I try to run it, it > doesn’t find the executable: > > Path > '/Users/bjoern/my-application/my-application/my-application-darwin-x86_64/my-application' > does not exist: see <command> at > /Users/bjoern/my-application/my-application/my-application-darwin-x86_64/0install/feed.xml:7:103 > ... building command for > /Users/bjoern/my-application/my-application/my-application-darwin-x86_64/0install/feed.xml > ... running my-application-darwin-x86_64/0install/feed.xml > > After the build, the executable is at my-application/build/my-application. > How do I have to write the run command to find that executable? Your Makefile needs to copy the executable (and anything else you want in the final package) from build to $DISTDIR. -- Dr Thomas Leonard http://roscidus.com/blog/ GPG: DA98 25AE CAD0 8975 7CDA BD8E 0713 3F96 CA74 D8BA ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Zero-install-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/zero-install-devel