Seeking an working XCode 2.x Template to build a plugin

View: New views
7 Messages — Rating Filter:   Alert me  

Seeking an working XCode 2.x Template to build a plugin

by hitechrolf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I've started playing around with the 4D Plugin Wizard. The dummy code generated by this database is fine. However I'm using the XCode 2.x and the project will be, as proposed by the IDE, converted. From now on I stuck.

I can build the plugin but it won't be recognized by 4D 2004. So my question is,  to all the plugin developers out there, who is willing and sending me a dummy project for XCode 2.x which I can build and running from the beginning ? Or has anyone a tipp how to get it running?

thx rolf 


--
Hitech - 4D.COM
Rolf Bachmann
Hirschengasse 63
CH - 5416 Kirchdorf

Mobil      +41 (0)78 626 33 33
rolf@hitech-4d.com




Re: Seeking an working XCode 2.x Template to build a plugin

by Koen Van Hooreweghe-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rolf,

I think you might be compiling for the 'wrong' platform. If on an Intel Mac, by default, you will get only Intel native code. 4D 2004 is PPC via Rosetta.

Go to the target in XCode and select the plugin. Choose File - Get info and choose the Build tab. Change the Architectures property to Standard (32-bit Universal) to get a universal binary. Or other... ppc to get a ppc only plugin.

HTH
Koen

Op 11-jun-08, om 11:36 heeft Rolf Bachmann het volgende geschreven:

I can build the plugin but it won't be recognized by 4D 2004. So my question is,  to all the plugin developers out there, who is willing and sending me a dummy project for XCode 2.x which I can build and running from the beginning ? Or has anyone a tipp how to get it running?

--------------------
Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium



Re: Seeking an working XCode 2.x Template to build a plugin

by hitechrolf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry Guys to bother you again

Still looking for some help to get a silly dummy plugin running on intel mac. An here is what I did and discovered:

- The Plugin Wizard creates a project file for the version 1.2
- Opening this with project XCode 3 coverts it, fine. 
- What I've discovered is, that the header file "4DPlugin.h" is not included in the project file. Which I added manually. Probably correct or not ?

Second I'v adjusted the Info Settings:
- "Valid Architectures" to ppc. I removed the other options "ppc64, ppc7400, ppc970, i386 and x86_64"
- Further more I checked the option "Architectures for to build" to 32 bit.

However building the plugin 4D does not know it. Did I miss something?
So, one more call has someone a demo project where I can see the correct settings and where 4d can use it?

Thanks in advance
Rolf


On 11.06.2008, at 20:40, Koen Van Hooreweghe wrote:

Rolf,

I think you might be compiling for the 'wrong' platform. If on an Intel Mac, by default, you will get only Intel native code. 4D 2004 is PPC via Rosetta.

Go to the target in XCode and select the plugin. Choose File - Get info and choose the Build tab. Change the Architectures property to Standard (32-bit Universal) to get a universal binary. Or other... ppc to get a ppc only plugin.

HTH
Koen

Op 11-jun-08, om 11:36 heeft Rolf Bachmann het volgende geschreven:



Re: Seeking an working XCode 2.x Template to build a plugin

by Neil Dennis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

To let you know that people do at least listen...

I have never created a mac intel native plugin for 4D 2004, mine run in rosetta along with 4D.

Neil

On Jun 18, 2008, at 10:25 AM, Rolf Bachmann wrote:

Sorry Guys to bother you again

Still looking for some help to get a silly dummy plugin running on intel mac. An here is what I did and discovered:

- The Plugin Wizard creates a project file for the version 1.2
- Opening this with project XCode 3 coverts it, fine. 
- What I've discovered is, that the header file "4DPlugin.h" is not included in the project file. Which I added manually. Probably correct or not ?

Second I'v adjusted the Info Settings:
- "Valid Architectures" to ppc. I removed the other options "ppc64, ppc7400, ppc970, i386 and x86_64"
- Further more I checked the option "Architectures for to build" to 32 bit.

However building the plugin 4D does not know it. Did I miss something?
So, one more call has someone a demo project where I can see the correct settings and where 4d can use it?

Thanks in advance
Rolf


On 11.06.2008, at 20:40, Koen Van Hooreweghe wrote:

Rolf,

I think you might be compiling for the 'wrong' platform. If on an Intel Mac, by default, you will get only Intel native code. 4D 2004 is PPC via Rosetta.

Go to the target in XCode and select the plugin. Choose File - Get info and choose the Build tab. Change the Architectures property to Standard (32-bit Universal) to get a universal binary. Or other... ppc to get a ppc only plugin.

HTH
Koen

Op 11-jun-08, om 11:36 heeft Rolf Bachmann het volgende geschreven:




Re: Seeking an working XCode 2.x Template to build a plugin

by hitechrolf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

just to clarify. I want to do the same. at least as long 4d as 4d 2004 is not universal :-)
anyway thanks for the response
regards rolf

On 18.06.2008, at 16:40, Neil Dennis wrote:

To let you know that people do at least listen...

I have never created a mac intel native plugin for 4D 2004, mine run in rosetta along with 4D.

Neil

On Jun 18, 2008, at 10:25 AM, Rolf Bachmann wrote:

Sorry Guys to bother you again

Still looking for some help to get a silly dummy plugin running on intel mac. An here is what I did and discovered:

- The Plugin Wizard creates a project file for the version 1.2
- Opening this with project XCode 3 coverts it, fine. 
- What I've discovered is, that the header file "4DPlugin.h" is not included in the project file. Which I added manually. Probably correct or not ?

Second I'v adjusted the Info Settings:
- "Valid Architectures" to ppc. I removed the other options "ppc64, ppc7400, ppc970, i386 and x86_64"
- Further more I checked the option "Architectures for to build" to 32 bit.

However building the plugin 4D does not know it. Did I miss something?
So, one more call has someone a demo project where I can see the correct settings and where 4d can use it?

Thanks in advance
Rolf


On 11.06.2008, at 20:40, Koen Van Hooreweghe wrote:

Rolf,

I think you might be compiling for the 'wrong' platform. If on an Intel Mac, by default, you will get only Intel native code. 4D 2004 is PPC via Rosetta.

Go to the target in XCode and select the plugin. Choose File - Get info and choose the Build tab. Change the Architectures property to Standard (32-bit Universal) to get a universal binary. Or other... ppc to get a ppc only plugin.

HTH
Koen

Op 11-jun-08, om 11:36 heeft Rolf Bachmann het volgende geschreven:






Re: Seeking an working XCode 2.x Template to build a plugin

by Neil Dennis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't think that I can be of much help for your setup.

For my 2004 plugin development I still use code warrior (not supported for a long time). I use a v6.8 generated plugin project to which I had to rewrite (wrap) some of the header files to get them to work properly, especially with array parameters.

I'm hanging on to this patchy but working method of creating plugins until I migrate to v11. For the v11 migration I will switch my Mac compiler to use XCode and I will use Visual C++ for the windows compiler.

I don't know what you are missing.

Neil

On Jun 18, 2008, at 11:13 AM, Rolf Bachmann wrote:

just to clarify. I want to do the same. at least as long 4d as 4d 2004 is not universal :-)
anyway thanks for the response
regards rolf

On 18.06.2008, at 16:40, Neil Dennis wrote:

To let you know that people do at least listen...

I have never created a mac intel native plugin for 4D 2004, mine run in rosetta along with 4D.

Neil

On Jun 18, 2008, at 10:25 AM, Rolf Bachmann wrote:

Sorry Guys to bother you again

Still looking for some help to get a silly dummy plugin running on intel mac. An here is what I did and discovered:

- The Plugin Wizard creates a project file for the version 1.2
- Opening this with project XCode 3 coverts it, fine. 
- What I've discovered is, that the header file "4DPlugin.h" is not included in the project file. Which I added manually. Probably correct or not ?

Second I'v adjusted the Info Settings:
- "Valid Architectures" to ppc. I removed the other options "ppc64, ppc7400, ppc970, i386 and x86_64"
- Further more I checked the option "Architectures for to build" to 32 bit.

However building the plugin 4D does not know it. Did I miss something?
So, one more call has someone a demo project where I can see the correct settings and where 4d can use it?

Thanks in advance
Rolf


On 11.06.2008, at 20:40, Koen Van Hooreweghe wrote:

Rolf,

I think you might be compiling for the 'wrong' platform. If on an Intel Mac, by default, you will get only Intel native code. 4D 2004 is PPC via Rosetta.

Go to the target in XCode and select the plugin. Choose File - Get info and choose the Build tab. Change the Architectures property to Standard (32-bit Universal) to get a universal binary. Or other... ppc to get a ppc only plugin.

HTH
Koen

Op 11-jun-08, om 11:36 heeft Rolf Bachmann het volgende geschreven:







Re: Seeking an working XCode 2.x Template to build a plugin

by Matthias Schmidt-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am/On Wed, 18 Jun 2008 16:25:39 +0200 schrieb/wrote Rolf Bachmann:

>Sorry Guys to bother you again
>
>Still looking for some help to get a silly dummy plugin running on
>intel mac. An here is what I did and discovered:
>
>- The Plugin Wizard creates a project file for the version 1.2
>- Opening this with project XCode 3 coverts it, fine.
>- What I've discovered is, that the header file "4DPlugin.h" is not
>included in the project file. Which I added manually. Probably correct
>or not ?

I just buikd a "blank" Plugin and noticed the same.
Adding it or not didn't made any difference, as the header was included
with the .c file.

>
>Second I'v adjusted the Info Settings:
>- "Valid Architectures" to ppc. I removed the other options "ppc64,
>ppc7400, ppc970, i386 and x86_64"
>- Further more I checked the option "Architectures for to build" to 32
>bit.

I'd say this was a misstake.
For me it just worked "out of the box".

You might want to adjust the SDK to 10.4 universal instead of using
"Current OS", which probably is 10.5



cheers,

Matthias

------------------------------------------------------------------------
Admilon Consulting GmbH
Am Wiesengrund 9a, 90584 Allersberg, Germany
Geschäftsführer: Peter Frank, Matthias Schmidt
Amtsgericht Nürnberg: HRB 21750
Tel.: +49-9174 - 6646 Fax: +49-9174 - 6647
<http://www.admilon-consulting.de>
-------------------------------------------------------------------------


**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/


    Did you know?  The 4D Partner Program now gives you
    access to Hotfix releases as soon as they are available!
    To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************