| ResidentBiscuit (2650) | |
| Decided to grab SFML again, but this time for my Linux box. Anyway, after grabbing the latest 2.0-rc, unpacking in the right area, getting the OpenGL dependencies (I could have sworn Ubuntu came default with these, but whatever) I got more issues. Not with linking, but with the damn example Laurent has on his 2.0 set up page -_- All sorts of "x is not member of Y" or "No such function foo() in Y". Like what the shit, if you're gonna write a program for testing to see if your product is set up correctly, at least make sure the damn thing compiles. Ugh, rant over. I'm gonna go write my own SFML test, damnit. | |
|
|
|
| Disch (8617) | |
| I think the API changed greatly halfway through SFML2.0 development. I know one thing that changed was he switched to camelCase for function names. Maybe he just didn't get around to updating all the tutorials to reflect those changes? | |
|
|
|
| darkestfright (1128) | |
| One of the major reasons that it's still in RC is because the documentation isn't finished yet. I still used the examples as a Guideline but rely on Intellisense when the documentation is incomplete. | |
|
|
|
| ResidentBiscuit (2650) | |
|
I'm using Emacs, so no intellisense for me -_- I know the API changed a good deal, and I'm sure most of these are just formatting changed and he copy pasta'd an old test program now they don't compile. But as a user, I expect an API's test program to be compil-able. And the whole 1.6 vs 2.0 thing is annoying. How long has 2.0 not been officially out?? A year? Two? But he commonly states that, "Hey, 1.6 is way out of date. Use 2.0". Alright dude, that would be awesome and all but maybe update your crap to reflect how to use 2.0. Not just copy pasta the 1.6 stuff over and hope it works, even though you wrote it and know it won't work! | |
|
|
|
| darkestfright (1128) | ||
You poor soul. | ||
|
|
||
| Athar (4466) | ||
That's a problem you can easily fix yourself at any time. | ||
|
|
||
| ResidentBiscuit (2650) | |
| When I first got Emacs, I read that it was pretty much the rival of Vi/m. I figured it would be good. -_- | |
|
|
|
| ResidentBiscuit (2650) | |
After digging around my directories and looking at the source, I got the feeling that my include paths were pointing in the wrong direction. I unpacked everything in usr/local/SFML2.0. In the program however it points at just SFML/Header.hpp. Now there is an SFML directory, but it's at /usr/local/SFML2.0/include/SFML/, so I put that in the include path. That changed my error, now I get errors from the header I'm including, saying it can't find a file that exists in the same directory. For example, I'm currently only using Window.hpp, in my program I have the include path set to:#include </usr/local/SFML-2.0/include/SFML/Window.hpp> (For some reason there is two Window.hpp's residing in different directories. I think originally I was pointed to the first one which had no members or data defined, just a bunch of other includes) Window.hpp includes several files, the first 6ish are all in the same directory. The file it can't find is ContextSettings.hpp, which is includes like: <SFML/Window/ContextSettings.hpp>This is interesting because for one, it's in the same damn directory. Two, the file right above and below this one (the next 4 or so actually) are all also in the same directory and it has no problems finding them. So, basically I'm lost here. I'm not too sure why none of this working for me. I'm gonna eat lunch and hopefully have a solution figured out. Chances are, it's something really basic and small I'm doing wrong. | |
|
|
|
| naraku9333 (1038) | ||||
| ||||
|
|
||||
| naraku9333 (1038) | |
| I believe you should have the .../include directory in the PATH but not .../include/SFML | |
|
|
|
| ne555 (4385) | |
|
> I unpacked everything in usr/local/SFML2.0 ¿why? Use /usr/local/include (or simply /usr/include ) Edit: @naraku9333 ¿two slashes? | |
|
Last edited on
|
|
| ResidentBiscuit (2650) | ||
Moving it to /usr/local/include leads to the same errors I was getting before. Using naraku's code also gives the same errors, just more of them. Here's a snippet of the errors:
The first ~20 some odd errors are in the form of the first error I just pasted. The rest all "class X has no member Y". | ||
|
|
||
| Athar (4466) | ||
Well, the include does not refer to the same directory, it refers to SFML/Window/..., a subdirectory. You need to properly specify the include path via -I (e.g. /usr/local/SFML-2.0/include). Purge libsfml-dev if you've installed it, so you don't accidentally end up including SFML 1.6 headers (which is probably exactly what is happening right now). | ||
|
|
||
| ResidentBiscuit (2650) | ||
SOB... I totally forgot I installed libsfml last week, and then realized it was 1.6 but never deleted it. That would explain these errors, I figured it was something stupid of me. | ||
|
|
||
| ne555 (4385) | ||
|
To clarify, you've got /usr/local/include/SFML/Window.hpp ¿right? You could test with
Wait... /usr/include/SFML/Graphics/Color.hpp:40:16: ¿what? | ||
|
Last edited on
|
||
| ResidentBiscuit (2650) | |||
|
I just completely restarted. Purged libsfml-dev (should have already) and deleted everything from 2.0. Then I wget'd it again, and unpacked so I have /usr/local/include/SFML/<various headers and directories for headers> Tried building again with naraku's example, and once again a ton of build errors. -I /dir/to/SFML doesn't help either (I shouldn't need to, since it's in /usr/local/include though, right?).
Huh? Oh, I had a bunch of those. Like 20 or 30 of those types of errors. I just grabbed a random sample. EDIT: Not getting the same type of errors so I'll post a sample of them:
| |||
|
Last edited on
|
|||
| L B (3816) | |
| My problem with SFML is that the debug DLLs crash and the release DLLs don't even link. Me and two other people have the same problem. | |
|
|
|
| ResidentBiscuit (2650) | |
| You're having the same issue as I? Because I'm about to give up on this. Second time trying to use SFML in the last year and neither time has gone well at all. | |
|
|
|
| Athar (4466) | ||
The error message sort of tells you what's wrong:
Edit: actually it doesn't, I just can't read. Just make sure you only have one copy of the headers in the range of your include paths for the project - so either in /usr/include or /usr/local/include (the latter is preferred for things that weren't installed via the package manager). I just tested naraku's example with SFML 2.0 RC, it compiles fine. | ||
|
Last edited on
|
||
| ResidentBiscuit (2650) | |
| Then I don't know what the error is here. I have a feeling the message about data types is completely irrelevant... | |
|
|
|