Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - the_composer

Pages: [1]
1
Graphics / Re: [SOLVED] sf::Text not appearing on the screen
« on: April 25, 2013, 06:23:41 am »
Could someone fix this on the documentation page? It explicitly says you don't need to load a font, which left me wondering why the Text wasn't rendering for far too long.

2
General / Re: Cannot run SFML program in CodeBlocks
« on: March 28, 2013, 12:25:43 am »
That did the trick! Thanks so much, both of you.

3
General / Re: Cannot run SFML program in CodeBlocks
« on: March 27, 2013, 11:57:35 pm »
Well I'll be damned. It works, but launching the console was causing an error "Can't launch console (xterm -T 'Program Console' -e sleep 80002439". I know I can disable the console in project settings, but I was hoping to use it for logging and debugging. Is there a way to launch both the game window and the console?

4
General / [SOLVED] Cannot run SFML program in CodeBlocks
« on: March 27, 2013, 11:19:00 pm »
I've compiled SFML 2 from source and created and configured a CodeBlocks project as per the tutorials. Everything builds fine, but when I run the program, it immediately terminates. However, if I compile and link the program via command line with g++, the result program runs fine. Any ideas?

System details:
Linux Mint 14 x86
g++ 4.7.2
CodeBlocks 12.11
Latest SFML 2 snapshot as of today (3/27)

5
General / Re: Getting started with Code Blocks on Windows
« on: March 07, 2013, 07:04:10 am »
So I followed the guide here, but when building I get the error: gcc\bin\ar.exe: *.o: Invalid argument

Image

ar.exe is set as the Linker for static libs in the toolchain executables. What's wrong here, and how can I fix it?

6
Graphics / Re: Load from resource file
« on: March 06, 2013, 07:42:18 pm »
Did anyone ever figure out how to do this? I'm using Visual Studion 2012, but I can't figure out how to load from a resource file.

7
General / Re: Is it possible to put media files into the .exe file?
« on: March 06, 2013, 04:25:57 pm »
I got the hint. :P

Thanks eXpl0it3r.

8
General / Re: Is it possible to put media files into the .exe file?
« on: March 06, 2013, 04:09:47 pm »
I know that this is possible with Visual Studio, I don't know about Code::Blocks.
What you need is called resources, so if you google something like "codeblocks resources" then you might find out more.
How would you do it in Visual Studio? (I'm using VS 2012)

9
General / Re: Getting started with Code Blocks on Windows
« on: March 05, 2013, 04:03:16 pm »
Whoops, sorry. Just woke up and the brain's not quite clicking yet. Thanks for your help!

10
General / Re: AW: Re: Getting started with Code Blocks on Windows
« on: March 05, 2013, 03:55:34 pm »
Actually no, I got the compiler from here. I got the 1/13/2013 weekly snapshot for gcc 4.8 and 64-bit Windows.
GCC 4.8 is still in development and thus undstable. I'd strongly advise against the useage of unstable compilers.

Any ideas?
Your compiler isn't compatible with your SFML  version. You need to rebuild SFML.
I believe you missed the part where I downloaded the latest version of MinGW and set that up in Code Blocks instead of the 4.8 compiler. The image above shows the errors I'm getting.

11
General / Re: Getting started with Code Blocks on Windows
« on: March 05, 2013, 04:32:56 am »
Update: So I downloaded and set up MinGW in CodeBlocks, and now I'm looking at a different set of errors:


Any ideas?

12
General / Re: Getting started with Code Blocks on Windows
« on: March 05, 2013, 01:01:28 am »
Actually no, I got the compiler from here. I got the 1/13/2013 weekly snapshot for gcc 4.8 and 64-bit Windows.

13
General / Re: Getting started with Code Blocks on Windows
« on: March 05, 2013, 12:57:46 am »
The search path is set in all three (SFML Test, Debug, and Release).
Both libsfml-graphics-s-d and libsfml-graphics-s-d.a produce the same error as sfml-graphics-s-d.

And yes, CB 12.11 with MinGW g++ compiler.

14
General / Re: Getting started with Code Blocks on Windows
« on: March 05, 2013, 12:43:37 am »
I moved SFML out of Program Files (now in C:\Dev\), and I'm still getting the same errors.

15
General / Getting started with Code Blocks on Windows
« on: March 05, 2013, 12:22:28 am »
I'm trying to get set up with SFML in Code Blocks on Windows 7. I'm currently following the official tutorial but running into some problems.

Following the guide, I have my linker settings as below:
Image
However, as you can see, when I build my project, I get errors of the type: "cannot find -lsfml-graphics-s-d".

However, if I select the .a files from the file browser using the Add library button, my settings look like this:
Image
Note the different set of errors.

I have my search directory set up correctly:
Image
And that is directory where I unpacked the library.

So... what am I doing wrong?

Pages: [1]