The library template is only set up to cross-compile for Android and iOS. My guess is that if you have a Ubuntu/armv7l cross-compiler setup already, you could probably make it work just by setting the CC:
make CC="/path/to/your/armv7l/armeabi-gcc" .hc On 09/19/2012 03:12 PM, johnny zithers wrote: > Awesome! Thanks so much hc.. successfully compiling externals on ubuntu > now. > I am wondering about the template.. there's probably no easy way for > cross-compilation to be achieved, is there? > Specifically I am looking to compile for armv7l. > > Thanks again! > > On Tue, Sep 18, 2012 at 6:21 PM, Hans-Christoph Steiner <[email protected]>wrote: > >> I'll update the docs, this just means you don't have debhelper installed: >> >> dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 7.0.50~) >> dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; >> aborting. >> >> >> So 'sudo apt-get install debhelper' >> >> .hc >> >> On 09/18/2012 07:25 PM, johnny zithers wrote: >>> Wow, that's awesome, Thanks! >>> >>> I don't have time to get real into it today, but I did quickly try to >>> debuild the template that I got from subversion. >>> Maybe this was naive of me (I didn't change code or anything), but it >> fails >>> this way: >>> >>> calum@MrFabulous:~/Desktop/DM/beaglebone/template$ debuild -uc -us >>> dpkg-buildpackage -rfakeroot -D -us -uc >>> dpkg-buildpackage: set CFLAGS to default value: -g -O2 >>> dpkg-buildpackage: set CPPFLAGS to default value: >>> dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions >>> dpkg-buildpackage: set FFLAGS to default value: -g -O2 >>> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 >>> dpkg-buildpackage: source package pd-template >>> dpkg-buildpackage: source version 0.0-1 >>> dpkg-buildpackage: source changed by Hans-Christoph Steiner < >> [email protected]> >>> dpkg-buildpackage: host architecture i386 >>> dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 7.0.50~) >>> dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; >>> aborting. >>> dpkg-buildpackage: warning: (Use -d flag to override.) >>> debuild: fatal error at line 1340: >>> dpkg-buildpackage -rfakeroot -D -us -uc failed >>> >>> >>> On Tue, Sep 18, 2012 at 3:31 PM, Hans-Christoph Steiner <[email protected] >>> wrote: >>> >>>> I updated the instructions to have a simple method: >>>> https://puredata.info/docs/developer/DebianTemplate >>>> >>>> h/c >>>> >>>> On 09/18/2012 02:45 PM, johnny zithers wrote: >>>>> Thanks! I got the template and adjusted as directed. >>>>> I am trying to make an external for Ubuntu, so I am following the >> debian >>>>> instructions. >>>>> >>>>> I have hit a problem with using cowbuilder, however. >>>>> Cowbuilder is installed, but when I run sudo cowbuilder --create I get >>>> the >>>>> error: >>>>> >>>>> "Package cowdancer is not available, but is referred to by another >>>> package. >>>>> This may mean that the package is missing, has been obsoleted, or is >> only >>>>> available from another source >>>>> E: Package cowdancer has no installation candidate.." >>>>> >>>>> >> http://askubuntu.com/questions/174378/cowbuilder-create-distribution-lucid-fails >>>>> That link recommends editing the /etc/pbuilderrc file, which is the >>>>> cowbuilder config file. >>>>> However, when I add the following line.. sudo cowbuilder --create just >>>>> hangs. >>>>> >>>>> Any help is appreciated ! Thanks >>>>> >>>>> >>>>> >>>>> >>>>> On Tue, Sep 18, 2012 at 10:07 AM, Hans-Christoph Steiner < >> [email protected] >>>>> wrote: >>>>> >>>>>> Check out the LibraryTemplate, it includes a simple external written >> in >>>> C >>>>>> and builds on many platforms: >>>>>> >>>>>> https://puredata.info/docs/developer/LibraryTemplate/ >>>>>> >>>>>> You can download a tarball here: >>>>>> https://puredata.info/downloads/template >>>>>> >>>>>> .hc >>>>>> >>>>>> >>>>>> On 09/18/2012 01:01 PM, johnny zithers wrote: >>>>>> >>>>>> Hello all, >>>>>> >>>>>> I have been looking through all the online documentation I can find, >> but >>>>>> still unsuccessful at compiling simple external (hello world example). >>>>>> I have looked through all the OSX/Windows docs to try and figure out >>>> what >>>>>> configuration my make file should have, but no luck. >>>>>> Needless to say I'm a n00b to creating my own makefiles.. any help is >>>>>> greatly appreciated! >>>>>> >>>>>> Thanks >>>>>> JZ >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> [email protected] mailing >>>> list >>>>>> UNSUBSCRIBE and account-management -> >>>> http://lists.puredata.info/listinfo/pd-list >>>>>> >>>>>> _______________________________________________ >>>>>> [email protected] mailing list >>>>>> UNSUBSCRIBE and account-management -> >>>>>> http://lists.puredata.info/listinfo/pd-list >>>>>> >>>>>> >> _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
