You need to add -DHAVE_UNISTD_H to your build system somewhere.  Its used wrong in the Pd code, but that's where its at right now.

.hc

On Sep 20, 2010, at 12:54 AM, Chris Niven wrote:

Alright, so so far I've created a new XCode project and included 4 files from Bryan's pdlib. 

I've pushed it to my repository (http://gitorious.org/~virusys/pdlib/virusyss-pd-for-android). 
It doesn't build yet because I'm dealing with an annoying error:

/Users/niv/code/virusyss-pd-for-android/PdCore/PdLib/../jni/src/s_file.c:234: error: storage size of 'statbuf' isn't known

I know that this is a commonly dealt with issue, but I think someone else would be able to see it more easily than me 
at this point.

If not, I'll take a look at this again tomorrow.

Cheers,
Chris

On 2010-09-13, at 10:28 PM, Chris Niven wrote:

Ahhh, so basically what you said in your first response.

Sorry man, things get a little confusing with all of these projects that are named the same thing :)

On 2010-09-13, at 10:18 PM, Hans-Christoph Steiner wrote:


I haven't used that one, but it is apparently used in an app, iJam, that's in the app store.  So that project merged with http://gitorious.org/pdlib would be quite useful.

.hc

On Sep 13, 2010, at 8:12 PM, Chris Niven wrote:

Hello again,

So correct me if I'm mistaken, but the version of pdlib that I downloaded 
(from Bryan Sum's github at http://github.com/bryansum/pdlib) includes a PdController.m 
class, would this be what we're looking for?

It's been a headache (literally and figuratively — still fighting off this wicked bad fever)
trying to get it to build since neither of my machines have the 3.1.2 version of the iOS
SDK. I could waste more time trying to get the correct configuration on my XCode project,
or I could just send you the file and see what you think:

-c

<PdController.m>




On 2010-09-10, at 11:37 AM, Hans-Christoph Steiner wrote:


In terms of rjdj releasing their PdController code, I'll believe it when I see it.  Based on rjdj's past actions, I don't think its worth waiting for them to do it if we want libpd on iPhone.

.hc

On Sep 10, 2010, at 9:24 AM, Peter Brinkmann wrote:


Hi Chris,
The new libpd is a C library that gently attaches itself to the existing code base, requiring only minimal changes, the most important of which have already been accepted into the official version of pd.  On top of the C library there is some JNI glue for using libpd with Java (or Processing), and on top of the JNI glue there is a  lot of Android code, including a tentative RjDj client for Android.

Here's the current state of affairs on the iPhone:  I've been working with the RjDj crowd all week, and by now we've solidly integrated the new libpd into the setup at RjDj.  The main glue between libpd and RjDj is a PdController class in Objective C that wraps libpd, takes care of the necessary thread synchronization, and translates between pd and the iOS audio API.  I will make an attempt to persuade RjDj to release PdController with an open source license.  The initial reaction has been promising, but the final decision will have to wait until the CEO returns from his vacation.  I figure I'll have a definite answer in ten days or so.
Best,
     Peter


On Thu, Sep 9, 2010 at 6:20 PM, Hans-Christoph Steiner <hans@at.or.at> wrote:

Hey Chris,

Welcome back!  Actually, this is perfect timing.  We are currently in the process of merging all of the various libpd efforts, like iPd, iJam/pdlib, rjdj, ofxPd, and Pd/Android.  It would be super useful to have an iPhone version of iPd/iJam/pdlib that is based on the libpd that we are now working on.  You can get that source code here:

http://gitorious.org/pdlib/pd-for-android

Basically, you are going to want everything in PdCore/jni/src.  Mostly that's the sources from Pd 0.43 with the extra libpd stuff thrown in.

.hc


On Sep 9, 2010, at 3:12 PM, Chris Niven wrote:

Sorry for the double post — it seems that pdlib has already done it, like Hans mentioned
a while ago.

That's alright, I'm curious to see what it can do!

-c

On 2010-09-09, at 2:49 PM, Chris Niven wrote:

Hey everyone!

So summer is over and I finally have some more time to spend on this project.

I have been briefly skimming e-mails, and there seems to be a lot going on on the
Android side, but not much word for iOS (except for of course with RJDJ!).

Is there anything I should know before I get back into it? For example, if someone
already finished this without me, etc?

Cheers,

Chris Niven
B.Mus., Music Technology
514.591.9487


Chris Niven
B.Mus., Music Technology
514.591.9487


_______________________________________________
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev







----------------------------------------------------------------------------

"It is convenient to imagine a power beyond us because that means we don't have to examine our own lives.", from "The Idols of Environmentalism", by Curtis White






_______________________________________________
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev




----------------------------------------------------------------------------

All information should be free.  - the hacker ethic





Chris Niven
B.Mus., Music Technology
514.591.9487



----------------------------------------------------------------------------

Access to computers should be unlimited and total.  - the hacker ethic



Chris Niven
B.Mus., Music Technology
514.591.9487


Chris Niven
B.Mus., Music Technology
514.591.9487

_______________________________________________
Pd-dev mailing list
Pd-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev



----------------------------------------------------------------------------

There is no way to peace, peace is the way.       -A.J. Muste