Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri May 25, 2018 9:22 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 6:32 am 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
Hi!

I'm working on my very first plugin, so please have patience with my (probably stupid) questions...
* What does it take to create a plugin?
* Where can I find some documentation on plugin creation?
* Last, but not least, can I create a plugin using Perl, or do I need one of the languages in the C/C++/Obj-C family?

Thanks! :D

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 7:07 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Hi,

watch a video here:

http://www.monkeybreadsoftware.de/realb ... nMac.shtml

Download the SDK from RS, read it, try examples.

And start learning C/C++. No perl.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 7:58 am 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
MonkeybreadSoftware wrote:
watch a video here:

http://www.monkeybreadsoftware.de/realb ... nMac.shtml

Thanks for the video, I'll check it out! :D

MonkeybreadSoftware wrote:
Download the SDK from RS, read it, try examples.

Is the SDK bundled with a RB installation, or do I need to get it from somewhere else?

MonkeybreadSoftware wrote:
And start learning C/C++. No perl.

Thanks! That's what I thought, but I wasn't sure...

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 8:07 am 
Offline
User avatar

Joined: Fri Sep 30, 2005 3:53 pm
Posts: 3261
Location: England
computerfreaker wrote:
Is the SDK bundled with a RB installation, or do I need to get it from somewhere else?

It should be in the extras folder next to the IDE.

If you haven't got it, and you're using a dialup connection, PM me and I'll email a zip of it to you

_________________
Steve Garman
Using REALbasic 2008r2 Professional on Windows Vista Ultimate
and REALbasic 2009r5.1 Professional on Linux Ubuntu 9.04 Desktop
and REAL Studio 2010r1 Personal on Linux Ubuntu 9.10 Desktop
Occasional blog


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 8:22 am 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
Thanks, Steve! :D
I think I have the SDK, though... just didn't know where to look for it. :oops:

Well, it's time to go get started! :mrgreen:
Any recommendations for the best compiler(s) to use?

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 9:01 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Don't ask. Look inside the SDK. There is not much choice.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 9:38 am 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
MonkeybreadSoftware wrote:
Look inside the SDK. There is not much choice.

Yeah, I see that... :?
Well, I'm NOT downloading the >900 MB XCode - it would take over 50 hours to get - and I'm building for the Mac only, so I think I'm going for gcc...

Thanks! :D

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 10:43 am 
Offline

Joined: Fri Jul 14, 2006 1:38 am
Posts: 82
Location: South Africa
Haha

Welcome to the second part of my anguish! With the NSStatusItem, I tried to do it in Python only to discover near the end that I had to go back to C. Aaargh!

Have you checked on your OS X install disks - Dev Tools for XCode is there...


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 10:58 am 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
GreGorGy wrote:
Welcome to the second part of my anguish! With the NSStatusItem, I tried to do it in Python only to discover near the end that I had to go back to C. Aaargh!

Sounds like a pain... fortunately, I'm a total newbie so I asked & saved myself a lot of trouble... although the SDK documentation could certainly use some improvements. :roll:

GreGorGy wrote:
Have you checked on your OS X install disks - Dev Tools for XCode is there...

My situation is actually quite weird... I'm developing on my Windows laptop & testing on my friend's Mac, and I don't want to install XCode there as I've probably done too much with the Mac already... adding another >1 GB worth of stuff would probably make him upset. ;)
I'm looking into gcc right now, but I can't seem to find any decent binaries... just the source & "build-it-yourself" instructions... aargh!!
Oh well, at least the actual coding is coming fairly nicely... :)

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 11:06 am 
Offline
User avatar

Joined: Wed Sep 28, 2005 8:39 am
Posts: 9341
Location: St Augusta, MN
MonkeybreadSoftware wrote:
Don't ask. Look inside the SDK. There is not much choice.


That's news to me. Any C or C++ compiler will work, so long as it can build a shared library. Some may require more work than others, sure. But it's certainly not like there are only two compilers on the planet that you can use.


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 11:25 am 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
Aaron Ballman wrote:
Any C or C++ compiler will work, so long as it can build a shared library. Some may require more work than others, sure. But it's certainly not like there are only two compilers on the planet that you can use.

WOW, nice! :D
Any recommendations?

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 12:21 pm 
Offline
User avatar

Joined: Wed Sep 28, 2005 8:39 am
Posts: 9341
Location: St Augusta, MN
If you're going for "free", then gcc will work just fine on Linux. Visual Studio Express on Windows has been known to work (though I've not used the Express version myself). XCode on the Mac is also another good choice. These are the compilers with examples in the SDK and will require the least amount of work for you to get a test plugin up and running.


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 12:30 pm 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
Aaron Ballman wrote:
If you're going for "free", then gcc will work just fine on Linux. Visual Studio Express on Windows has been known to work (though I've not used the Express version myself). XCode on the Mac is also another good choice. These are the compilers with examples in the SDK and will require the least amount of work for you to get a test plugin up and running.

Thanks for the suggestions! :)
Now comes the million-dollar question: can I build cross-platform?
In other words, if I'm using gcc on Linux, can I build a Mac plugin? If I'm using XCode, can I build a Windows plugin? etc. etc. etc.

Thanks! :D

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 12:58 pm 
Offline
User avatar

Joined: Wed Sep 28, 2005 8:39 am
Posts: 9341
Location: St Augusta, MN
computerfreaker wrote:
Now comes the million-dollar question: can I build cross-platform?
In other words, if I'm using gcc on Linux, can I build a Mac plugin? If I'm using XCode, can I build a Windows plugin? etc. etc. etc.


In theory, you can do it with gcc. In practice, I've never successfully done it that way. I've always used three separate compilers to make the various plugin parts.


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin creation - basic questions...
PostPosted: Wed Jul 22, 2009 1:35 pm 
Offline
User avatar

Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1786
Location: USA
Aaron Ballman wrote:
computerfreaker wrote:
Now comes the million-dollar question: can I build cross-platform?
In other words, if I'm using gcc on Linux, can I build a Mac plugin? If I'm using XCode, can I build a Windows plugin? etc. etc. etc.


In theory, you can do it with gcc. In practice, I've never successfully done it that way. I've always used three separate compilers to make the various plugin parts.

OK, thanks Aaron! Really appreciate all your help... :D

_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip! :D


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group