News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

SFML Project Template and Wizard

Started by Svenstaro, November 14, 2009, 06:53:31 AM

Previous topic - Next topic

Svenstaro

Since so far multiple people have attempted to get SFML project support into Code::Blocks, here is my humble attempt. It provides both a wizard and a template. To test it, just put it to /usr/share/codeblocks/templatess/. I'd need this tested on Windows and Mac.
Hopefully we can get this merged this time ;)

[attachment deleted by admin]

Svenstaro


stahta01

#2
I suggest you learn how to make an SVN patch if you really care to have this patch added. But, It most likely makes no difference if all the files are new files. I have no idea what SFML is; no idea if the Code::Blocks dev team has a member who does or not.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

FYI:

I do suggest attaching the patch file to the patch on Berlios; the attachments to messages on this board are deleted on a regular basis to save space.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Svenstaro

Berlios only works with text files, this is a binary blob. I know how to do proper svn patches but this isn't really apropiate when I'm adding new files mostly. SFML is basically a faster, more modern SDL.

nanyu

Quote from: Svenstaro on November 14, 2009, 06:53:31 AM
Since so far multiple people have attempted to get SFML project support into Code::Blocks, here is my humble attempt. It provides both a wizard and a template. To test it, just put it to /usr/share/codeblocks/templatess/. I'd need this tested on Windows and Mac.
Hopefully we can get this merged this time ;)

thank you! I will try it.

MortenMacFly

Quote from: Svenstaro on November 24, 2009, 03:49:55 PM
http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2851&group_id=5358
I've taken it (as I had the other, too).

But I have to tell you the same as wavesonics: It can only be applied if it's ready for the automake build system, too. This is missing completely so it needs to be done before committing. I'm very limited in time currently so this may take a while... Alternatively you can provde the required files, too. Just have a look at the other wizards how they are built. It's very easy.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Svenstaro

Alright. I think I might have been too naive by doing this against the installed files only. Will provide a new package with auto* stuff a little later on.

Svenstaro

#8
Here you go, it includes patch and integrates wonderfully with trunk.

[attachment deleted by admin]

Svenstaro

So can this last patch I attached in the previous post be merged now or are there still issues? I included the necessary binary files and a patch.

MortenMacFly

Quote from: Svenstaro on December 01, 2009, 09:10:26 PM
So can this last patch I attached in the previous post be merged now or are there still issues? I included the necessary binary files and a patch.
I didn't have the time for testing (need to "install" SFML on Windows / Linux before) but it's on my todo list. Please be patient.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Svenstaro

Very well. Just making sure this actually goes somewhere this time since other people have attempted getting a SFML wizard in before and failed. I'll practice overwhelming patience now.

Svenstaro


MortenMacFly

Quote from: Svenstaro on February 06, 2010, 04:10:22 PM
Still more patience? :(
Well, still the build system is missing / invalid for the scripted wizard. So a commit would break compilation of C::B under Linux which is obviously not acceptable. I still need so time to setup the "Makefile.am"'s and test compilation under Linux.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]