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 - cdlink14

Pages: [1]
1
Window / Really annoying problem with windows not "opening"
« on: August 01, 2011, 10:32:51 am »
Ok thanks, an additional question.

How would I go about converting App.GetFrameTime into a string so I can alter it and output it as text on the screen to show the FPS?

2
Window / Really annoying problem with windows not "opening"
« on: August 01, 2011, 09:43:29 am »
Code: [Select]

        if (App.GetInput().IsKeyDown(sf::Key::RBracket)) Sprite.Scale(1.001f, 1.001f);
        if (App.GetInput().IsKeyDown(sf::Key::LBracket)) Sprite.Scale(1.001f, 1.001f);

My problem is on the second line, I have no idea how I do a float backwards (so the image downscales, instead of upscaling).

Can someone provide me info on how to do this I want to learn about this before moving to the next part of the tutorial?

3
Window / Really annoying problem with windows not "opening"
« on: July 31, 2011, 12:28:52 pm »
Ok I apologize if I seemed to get a bit angry, I have been having a bad time lately (I broke my ankle so I am stuck in my room until it gets better) so things are annoying me a lot recently.

I do have some other problems I want to post, but I'll post them later, for now I want to take a break and play some GTA IV.  :wink:

4
Window / Really annoying problem with windows not "opening"
« on: July 31, 2011, 04:04:45 am »
Ok so I downloaded MinGW from the MinGW website and installed that (I don't see why I should need too, but meh it's not like it wastes disk space on my already filled hard disk).

I've managed to run Cmake
I get this output:
Code: [Select]
The C compiler identification is GNU
The CXX compiler identification is GNU
Check for working C compiler: D:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Check for working C compiler: D:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: D:/Program Files (x86)/CodeBlocks/MinGW/bin/g++.exe
Check for working CXX compiler: D:/Program Files (x86)/CodeBlocks/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of void*
Check size of void* - done
Found OpenGL: opengl32
Found Freetype: D:/Users/user/Desktop/LaurentGomila-SFML-732b789/extlibs/libs-mingw/libfreetype.a
Found GLEW: D:/Users/user/Desktop/LaurentGomila-SFML-732b789/extlibs/libs-mingw/libglew.a
Found JPEG: D:/Users/user/Desktop/LaurentGomila-SFML-732b789/extlibs/libs-mingw/libjpeg.a
Found OpenAL: D:/Users/user/Desktop/LaurentGomila-SFML-732b789/extlibs/libs-mingw/libopenal32.a
Found SNDFILE: D:/Users/user/Desktop/LaurentGomila-SFML-732b789/extlibs/libs-mingw/libsndfile.a
Configuring done
Generating done


But no matter where I look there is no Library files?

I know it's still in very development but seriously does the SFML 2.0 tutorial have to be so complex? I sped through the 1.6 tutorial without a single problem but this 2.0 tutorial is seriously starting to grind my gears.

5
Window / Really annoying problem with windows not "opening"
« on: July 31, 2011, 03:44:14 am »
Well now I'm getting really Pi**ed off.

I've tried doing as danman said and I still get the same error about not being able to find the "build program".

I've even tried setting the PATH environment variable to the MinGW folder, and still the same error message!

Is there any particular reason why the libraries can't just be pre-compiled and included? Because this is giving me a serious headache. And I'm just considering giving up all together.

6
Window / Really annoying problem with windows not "opening"
« on: July 31, 2011, 03:35:30 am »
Quote from: "danman"
CMake is not a compiler ;) it's a very powerful compiler's "project" generation tools that you need to install from http://www.cmake.org/ .

edit : ahm, didn't read the entire post.

Open the cmake-gui, set it to SFML's directory, clear the cache (in file menu), then configure.
a window appear and you have 4 choices, choose native compiler, but with the option to define the compilers yourself, and then choose g++.exe for C++; gcc.exe for C ;) .

When I try that I get this:
Code: [Select]
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:D:/Users/user/Desktop/LaurentGomila-SFML-732b789-BUILD/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Could not find cmake module file:D:/Users/user/Desktop/LaurentGomila-SFML-732b789-BUILD/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
Configuring incomplete, errors occurred!

7
Window / Really annoying problem with windows not "opening"
« on: July 30, 2011, 10:16:35 pm »


Which one is the Cmake compiler I'm supposed to use?

8
Window / Really annoying problem with windows not "opening"
« on: July 30, 2011, 10:04:38 pm »
MinGW came installed with my code::blocks, where would I find the path variable to edit?

9
Window / Really annoying problem with windows not "opening"
« on: July 30, 2011, 09:24:25 pm »
Ok so I'm trying to compile them using Cmake, but when I try to compile for "CodeBlocks - MinGW Makefiles" or just "MinGW Makefiles" I get an error

CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

10
Window / Really annoying problem with windows not "opening"
« on: July 30, 2011, 09:04:04 pm »
Also I can't seem to find the lib folder in the archive.

11
Window / Really annoying problem with windows not "opening"
« on: July 30, 2011, 08:53:48 pm »
Am I able to just install SFML 2 and it'll work straight off the bat with my current code? Or will I need to recode some things?

12
Window / Really annoying problem with windows not "opening"
« on: July 30, 2011, 07:43:29 pm »
Yup ATI Radeon HD 5750 vapor-X 1GB if that helps.

13
Window / Really annoying problem with windows not "opening"
« on: July 30, 2011, 07:28:24 pm »
I need help with using SFML in Code::Blocks, I have it all set up correctly, and I'm using the tutorial to try and draw a basic window but it's not showing

Here's the code:

Code: [Select]

#include <SFML/Window.hpp>

int main()
{
// Create the main window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");

// Start main loop
bool Running = true;
while (Running)
{
App.Display();
}

return EXIT_SUCCESS;
}


I know SFML is set up correctly as the code in this tutorial works perfectly:
http://www.sfml-dev.org/tutorials/1.6/start-cb.php

When I run the application I just get the console window:
http://dl.dropbox.com/u/3901038/FP/sfml/SFM2L.JPG

I've tried compiling in Debug and Release (using their respective dependencies).

Well when I set it to debug it doesn't seem to reach any breakpoints, it doesn't even reach "int main()", which leads me to believe this is an error with an header file...

Any help on how to go about finding/fixing it?

Also this happens running SFML on VS2008 (using the correct files/tutorials).

Specs:
windows 7 Pro x64
Code::Blocks 10.05
Visual Studio 2008
SFML C++ FULL SDK 1.6
Need anything else just ask.

Pages: [1]