Author Topic: SFML Project Template  (Read 12897 times)

Offline Wavesonics

  • Multiple posting newcomer
  • *
  • Posts: 43
SFML Project Template
« on: July 04, 2008, 05:19:15 am »
Hi all,

been a while since I posted here, and I have posted about this idea before, but it was just before 8.02 was going to release and things were too hectic to fit it in.

But SFML - Simple Fast Media Library ( https://www.sfml-dev.org ) is a simply fantastic library for creating multimedia apps (games, or what ever) and it would be awesome to support them by providing a Project Template in the create project dialog.

What do you guys think?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9703
Re: SFML Project Template
« Reply #1 on: July 04, 2008, 06:13:27 am »
What do you guys think?
I'd say: Start coding! Project wizards are really easy. Take e.g. FLTK (or any other) and "adjust" it to SFML. We are happy to apply a patch into that direction.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Wavesonics

  • Multiple posting newcomer
  • *
  • Posts: 43
Re: SFML Project Template
« Reply #2 on: July 06, 2008, 05:06:41 am »
Ok, i checked out the trunk and am going to give it a shot.

Offline Wavesonics

  • Multiple posting newcomer
  • *
  • Posts: 43
Re: SFML Project Template
« Reply #3 on: July 06, 2008, 07:05:49 am »
Well that was indeed pretty easy :)

I've got it all set to go, but I'm having a strange problem when trying to create the patch:

I just did a normal SVN Checkout to a directory. And now when I try to create a patch from that same directory it tells me that it is not a working copy. Any idea why that could be?

Offline Wavesonics

  • Multiple posting newcomer
  • *
  • Posts: 43
Re: SFML Project Template
« Reply #4 on: July 06, 2008, 07:23:31 am »
Ah, i had just upgraded my Tortis SVN to 1.5 and not restarted yet, so it was unhappy.

Now I went through and created the patch, but I am a bit confused, because in addition to source changes and additions, I had to add 2 images.

How do these get included with the patch?

As for now I have rar-ed up the .patch along with the 2 images and put there on my site: http://www.darkrockstudios.com/files/sfmlWizard.rar

I also uploaded it as a patch:
http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2512&group_id=5358

Is there a different way I should have done it? (not rar-ing them together?)
« Last Edit: July 06, 2008, 07:28:45 am by Wavesonics »

Offline Wavesonics

  • Multiple posting newcomer
  • *
  • Posts: 43
Re: SFML Project Template
« Reply #5 on: July 06, 2008, 06:23:27 pm »
I'm working on a 2nd version which will add more to the wizard. But I still need to know how to patch with new images.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: SFML Project Template
« Reply #6 on: July 06, 2008, 06:43:40 pm »
But I still need to know how to patch with new images.

Afaik there is no way do do it directly.

Create a patch of the text-files and copy the binary-files manually.
It's the best way to put them into packed archive. I prefer 7z, because it's freeware and creates very small archives, but any other format should do also.

Offline Wavesonics

  • Multiple posting newcomer
  • *
  • Posts: 43
Re: SFML Project Template
« Reply #7 on: July 06, 2008, 09:33:40 pm »
ok thanks, good to know.
« Last Edit: July 06, 2008, 09:37:10 pm by Wavesonics »

Offline Wavesonics

  • Multiple posting newcomer
  • *
  • Posts: 43
Re: SFML Project Template
« Reply #8 on: July 06, 2008, 10:28:48 pm »
I updated the patch:
Quote
- Removed path dialog, now C::B global variable "sfml" is used for the library path

- Added custom dialog for SFML package selection, enforces package dependencies, and correctly sets linking options

you can try it out here:
http://www.darkrockstudios.com/files/CBdevel.zip (Win32 build)
« Last Edit: July 06, 2008, 10:36:33 pm by Wavesonics »

Offline Wavesonics

  • Multiple posting newcomer
  • *
  • Posts: 43
Re: SFML Project Template
« Reply #9 on: July 08, 2008, 07:06:41 am »
I haven't heard of any complaints or problems with the last version of the patch so unless anyone brings up something I will consider it done.

Hope the devs find it good to apply for the next nightly :)