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

Author Topic: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt  (Read 16383 times)

0 Members and 1 Guest are viewing this topic.

edumoette

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
« Reply #15 on: July 11, 2012, 12:07:42 am »
ok, the dlls are in bin, not lib. but whenever i try to build anything it always tells me that class members arent available that should be for example:

#include <SFML/Graphics.hpp>

int main()
{
        sf::RenderWindow Window(sf::VideoMode(800, 600, 32), "SFML Sample Application");

        while (Window.IsOpened())
        {
                sf::Event Event;
                while (Window.PollEvent(Event))
                {
                        switch (Event.Type)
                        {
                        case sf::Event::Closed:
                                Window.Close();
                                break;
                        default:
                                break;
                        }
                }

                Window.Clear(sf::Color(255, 0, 155));
                Window.Display();
        }

        return 0;
}
 

a code this simple gives me these errors
-------------- Build: Debug in SFMLSAMPLEAPP ---------------

Compiling: main.cpp
C:\Users\Owner\Desktop\xxx.cpp\xxx\aaa\sdf\SFMLSAMPLEAPP\main.cpp: In function 'int main()':
C:\Users\Owner\Desktop\xxx.cpp\xxx\aaa\sdf\SFMLSAMPLEAPP\main.cpp:7: error: 'class sf::RenderWindow' has no member named 'IsOpened'
C:\Users\Owner\Desktop\xxx.cpp\xxx\aaa\sdf\SFMLSAMPLEAPP\main.cpp:10: error: 'class sf::RenderWindow' has no member named 'PollEvent'
C:\Users\Owner\Desktop\xxx.cpp\xxx\aaa\sdf\SFMLSAMPLEAPP\main.cpp:12: error: 'class sf::Event' has no member named 'Type'
C:\Users\Owner\Desktop\xxx.cpp\xxx\aaa\sdf\SFMLSAMPLEAPP\main.cpp:15: error: 'class sf::RenderWindow' has no member named 'Close'
C:\Users\Owner\Desktop\xxx.cpp\xxx\aaa\sdf\SFMLSAMPLEAPP\main.cpp:22: error: 'class sf::RenderWindow' has no member named 'Clear'
C:\Users\Owner\Desktop\xxx.cpp\xxx\aaa\sdf\SFMLSAMPLEAPP\main.cpp:23: error: 'class sf::RenderWindow' has no member named 'Display'
Process terminated with status 1 (0 minutes, 3 seconds)
6 errors, 0 warnings
 
« Last Edit: July 11, 2012, 08:16:11 am by Laurent »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
« Reply #16 on: July 11, 2012, 08:15:49 am »
Read the f**** online doc and tutorials ;)
Laurent Gomila - SFML developer

edumoette

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
« Reply #17 on: July 11, 2012, 07:06:41 pm »
Ive read it about 10 times, reinstalled sfml, 10 times. uninstalled cb/ 3 times. and reinstalled... maybe i should HERE. IVE DONE. EVERYTHING.



[attachment deleted by admin]

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
« Reply #18 on: July 11, 2012, 07:38:21 pm »
Your error is not related to the linker. Look at it more carefully.

Quote
main.cpp:7: error: 'class sf::RenderWindow' has no member named 'IsOpened'

Does sf::RenderWindow have a method named IsOpened ? No.

A lot of things have changed since 1.6. You should read the tutorial for SFML 2.0 (at least the ones already available now) to get (re)started with this new version.
SFML / OS X developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
« Reply #19 on: July 11, 2012, 08:51:38 pm »
Quote
Ive read it about 10 times
All I can say is that you surely read the wrong one.
It's not hard:
website > tutorials > 2.0
website > documentation > 2.0

If something's not clear don't hesitate to ask.
Laurent Gomila - SFML developer

edumoette

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
« Reply #20 on: July 11, 2012, 09:36:14 pm »
I think theres something wrong with the 2.0 tutorials...theres only like 5 of them. Maybe im still doing something wrong.. .__.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10901
    • View Profile
    • development blog
    • Email
Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
« Reply #21 on: July 11, 2012, 10:06:19 pm »
I think theres something wrong with the 2.0 tutorials...theres only like 5 of them. Maybe im still doing something wrong.. .__.
Yes the tutorials aren't complete yet. Surprise surprise...

That's another reason why the documentation should be your source number one!

But if you had just looked at the ones that exist (or the documentation), you've had noticed that the names have changed, e.g. http://www.sfml-dev.org/tutorials/2.0/start-vc.php
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

edumoette

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
« Reply #22 on: July 12, 2012, 12:21:26 am »
Youve got to be kidding me... -.- ive been reading the wrong docs and tutorials the whole time....