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 - Jwake315@aol.com

Pages: [1]
1
General discussions / wxSFMLcanvas with sizers problem
« on: September 08, 2011, 03:25:58 am »
I'm trying to integrate this Canvas (from the SFML tutorials)  into my GUI but whenever I try to use it in conjunction with sizers It locks the size of the window at around (100,100) give or take. as long as I dont call Sizer->fit or sizer->layout it will size itself right but then all of my other controls end up out of whack. (I'm adding controls at run time so I have to call these.) No matter what i do this thing wont budge.

Code: [Select]
   ///graphics panel
    //sfmlSizer is a child of GraphicsPanelSizer

    wxSFMLCanvas * Canvas = new wxSFMLCanvas(GraphicsPanel,wxID_ANY , wxDefaultPosition, wxSize(250,250), wxEXPAND );    
    sfmlSizer->Add(Canvas,wxEXPAND);
    GraphicsPanelSizer->Layout();


I know its more wxWidgets oriented but I figure I'd have more luck on this forum. Just wondering if anyone ever ran into this and made it out...

2
General / Code blocks: No such file or directory - SFML\system.hpp
« on: March 12, 2011, 08:29:16 pm »
Oh yeah whoops. fixed that but same error

I just Figured it out though. didn't think it was necessary but I put the SFML/include/SFML folder into my mingw/include folder. after that everything compiled good. so i guess its looking in mingw/include. I never told it to look there though and I would think by adding those SFML/include and lib directories in the global compiler settings and the Project Build options it would look there as well. hmm

If anybody has any thoughts there that would be cool. Now I'm curious.

But dont fix what isn't broken though i guess.

3
General / Code blocks: No such file or directory - SFML\system.hpp
« on: March 12, 2011, 06:21:53 pm »
Hi, new to C++ and trying to install SFML. I Followed the getting started tutorial but think I might have missed something. I'm sure moderators are sick of seeing this question but i cant seem to find the solution.

Im using Code::blocks 10.05. and believe mingw is installed correctly. I can run any typical console program.

Global Compiler search directories are set to the SFML include and lib folders. Project Build options compiler paths are also pointing there.

Under project build options 'Test - release':
Linking one library; 'libsfml-system.a' One  linker option '-libsfml-system'

Just trying to compile the "First SMFL program" tutorial

Code: [Select]
#include <iostream>
#include <SFML\System.hpp>

int main()
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;




When i try to run it gives me the error;
fatal error: SFML\System.hpp: No such file or directory

It feels to me like in the line
Code: [Select]
#include <SFML\System.hpp>
SFML is a path variable

If i replace SFML with the path to SFML include folder it will continue to compile until it comes to the headers within system.hpp which also have the same #include <SFML\etc.> setup.

So basically where is this variable set. Global variables , User variables or am I not even in the ballpark?

Pages: [1]