SFML community forums

Help => General => Topic started by: edumoette on July 07, 2012, 06:42:33 pm

Title: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette on July 07, 2012, 06:42:33 pm
-Downloaded Cmake
-Downloaded sfml
-Created a folder in C: named sfml. Put sfml 2.0 into that folder
-Directories added to Path enviromental Variable: ;C:\Program Files (x86)\CMake 2.8\bin\; C:\Program files (x86)\CodeBlocks\MinGW\bin\;
-Ive never ran cmake with this sfml directory
-Command Lines:
>sfml/sfml2
>cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=TRUE -D
STATIC_STD_LIBS=FALSE c:/sfml/sfml2/
The Problem:
Cmake error: The Source directory C:/Sfml/sfml2/ does not appear to contain Cmakelists.txt

What am i doing wrong why wont it configure the files and create what ive specified? Thank you in advance
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: eXpl0it3r on July 07, 2012, 07:18:09 pm
-Downloaded sfml
From where and which version did you download?

Have you tried to redownload it? IIRC I once also had the problem that the file was missing (although no idea how) a redownload 'fixed' the problem.
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: Laurent on July 07, 2012, 07:54:09 pm
What's in your C:/Sfml/sfml2/ folder?
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette on July 07, 2012, 08:05:59 pm
It version 2.0 the one at the bottom of the download page that says "Final version in beta for bug testing" or something similar.
sfml/sfml2 contains: bin, cmake, doc, examples, include, lib.


txt documents:
Readme
Licence
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: Laurent on July 07, 2012, 08:09:06 pm
Oh, but the precompiled RC doesn't contain source code. You must download it from Github.
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette on July 07, 2012, 09:18:11 pm
Your right. I thought they both were the same when i was following the tutorial. When i changed them i got all these errors.

[attachment deleted by admin]
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: Laurent on July 07, 2012, 09:29:50 pm
You did something wrong, read the tutorial carefully and try again from scratch (clear your build folder).
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette on July 07, 2012, 09:36:04 pm
In the video im following it says that you need to unzip the file twice but i could only unzip it once using winrar. could this be the problem?
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: Laurent on July 07, 2012, 09:37:20 pm
I don't know which video you're watching, but you should rather follow the official tutorial.

And by the way, why do you want to compile SFML yourself?
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette on July 07, 2012, 09:43:52 pm
...i thought you had to to use it with codeblocks...
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: Laurent on July 07, 2012, 09:47:11 pm
Of course not ;)
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette on July 08, 2012, 02:35:31 am
Where can i find a tutorial for 2.0 than if im doing it wrong?
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: eXpl0it3r on July 08, 2012, 08:08:34 am
Frontpage->Tutorials->SFML 2.0

Wasn't that hard, was it? ;-)
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette on July 10, 2012, 10:44:59 pm
how to i get the lib dlls without compiling using cmake than. the snapshot doesnt even come with the lib files...and the pre comp version doesnt have the dlls
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: Laurent on July 10, 2012, 11:00:33 pm
Quote
the snapshot doesnt even come with the lib files...
It is a snapshot of the source repository. It's not supposed to contain any compiled file.

Quote
and the pre comp version doesnt have the dlls
It does.
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette 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
 
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: Laurent on July 11, 2012, 08:15:49 am
Read the f**** online doc and tutorials ;)
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette 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]
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: Hiura 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. (http://www.sfml-dev.org/documentation/2.0/classsf_1_1RenderWindow.php)

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.
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: Laurent 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.
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette 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.. .__.
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: eXpl0it3r 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 (http://www.sfml-dev.org/tutorials/2.0/start-vc.php)
Title: Re: SFML 2.0 MinGW Make "Does not contain Cmakelists.txt
Post by: edumoette 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....