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

Pages: 1 2 [3] 4 5
31
Graphics / Re: calculating pixels in xy
« on: October 25, 2015, 01:39:52 am »
If you are setting the size of your window on creation then you know it's dimensions.  The top left corner is 0,0.  The bottom right is window width, window height.  You can figure out what you need from there, but just in case you are allowing window resizing you can get the size of the current render area of the window with http://www.sfml-dev.org/documentation/2.3.2/classsf_1_1Window.php#ad2b55a731ba1680fe67292991ef1610e then calculate positions from there.

32
General / Re: Problem compiling project in CodeLite
« on: September 19, 2015, 08:27:23 pm »
In the long run, adding the install location to ld.so.conf and running ldconfig once and for all is simpler.
Or set the correct rpath in the app when you build it.

I agree, but had I posted that Laurent would have chimed in saying that is bad so I did the temporary method :)

33
General / Re: Problem compiling project in CodeLite
« on: September 19, 2015, 07:16:59 pm »
Following this guide for linux, http://www.sfml-dev.org/tutorials/2.3/start-linux.php, is what you need to do.  Compiling and installing with cmake on linux installs SFML to /usr/local in a couple of directories.  Do this
Quote
export LD_LIBRARY_PATH=<sfml-install-path>/lib && ./sfml-app
as per the above tutorial and you should be fixed.  Change ./sfml-app to your app name.

34
General / Re: Building mechanic?
« on: August 31, 2015, 08:22:06 pm »
As Nexus said, you really aren't all that clear on specifics of what you want.  But for a suggestion try https://github.com/nothings and look at the obbj section.  Sean Barret occasionally streams his coding on this project so if you catch him on you could pose questions.

35
General / Re: Visual Studio Setup Installer: Redistributable Package
« on: August 08, 2015, 06:40:14 am »
You didn't mention which version of VS you are using, but there is a simple remedy.  Find the download for the redistributable package for your build(x86 or amd64) and version of visual studio on microsoft's website and in the doc for your project you can put a link to it for the end user to download.  Bit of a pain, but it's roughly a 3 meg download.  Not sure if you can just include the installer in your project and distribute it that way, but pretty sure you can.  Check microsoft's site to be sure.

36
General / Re: SFML & TGUI installation
« on: March 02, 2015, 12:50:56 am »
A lot of distributions still only have SFML 1.6 in them so the first thing for you to check would be what version of SFML you installed.  I'm guessing it wasn't 2.0+.  Otherwise just remove that version and compile/install the git repo and all should work fine.

37
Graphics / Re: Random Offset of scene [LinuxMint SFML git]
« on: February 24, 2015, 07:09:52 am »
Hello there,

I try to develop some SFML app on Linux Mint but I get random offsets in my scene. I would like to know if this has something to do with SFML or maybe with my desktop manager.

This problem occurs about half the time, no matter what configuration (Debug/Release).

Thanks for any help in advance.

I also run mint(17.1) with the cinnamon desktop.  I like it better, but it's buggy and sluggish at times, but meh I like it.
I compiled what you posted(comment out the include for tmx as it wasn't needed for the code provided) and ran the executable 10 times in debug and 10 times in release and they all displayed properly.  I could run them more, but you mention your problem happening half the time so with 20 tries total I'd think it would show up on my end by then, but it didn't.

Oh and I also compile and use the latest git code for SFML.  Not sure what to tell you about this one.

38
Just wondering since I'm busy setting up the C++ version of SFML for once in a hundred years and forgot the order.  Also was wondering if we still needed to have it in a particular order like back in 1.6.


Also for those of you that link to a lib folder within your own projects is there a way to shorten the path and do something like this: ~\ExternalLibs\SFML   ???

If using G++ then yes it needs to be linked in a certain order.  Check here http://www.sfml-dev.org/tutorials/2.2/start-cb.php and here http://www.sfml-dev.org/tutorials/2.2/start-vc.php.  If on linux then the order is still the same.

39
Graphics / Re: rendering image
« on: February 19, 2015, 03:43:20 am »
and here this is my project configuration:
http://persianupload.com/kleeja/do.php?imgf=142430139487671.png

am  i doing wrong? :-\

thanks
You are linking the static libraries(the ones like sfml-graphics-s.lib), but you didn't set SFML_STATIC for the preprossesor.  If you want to use static libs you have to do that.  If not, you don't want to link static libs.  Re-read http://www.sfml-dev.org/tutorials/2.2/start-vc.php.  It's all in there.

40
C / Re: CSFML dependencies
« on: February 12, 2015, 10:02:12 pm »
Cmake is a program listed under 'Programming' on the menuing system.  I can run it from terminal as 'cmake-gui' though.  Both yield the same results.  This version is the one from the repository.  I also have a current version of cmake I downloaded from their website.  It is not installed, but runs as a stand alone download.  Running it yields the same behaviour.

41
C / Re: CSFML dependencies
« on: February 12, 2015, 09:31:54 pm »
Nop, cmake-gui does nothing until you hit the "Configure" button for the first time. You can "Add Entry" before  "Configure".

For me cmake does do a check right after selecting which build file type to create.  It checks for the compilers and goes through the CMakeLists.txt file and checks what is in it.  It does this on its own.  After that is done the initial status report is given and I am allowed to make changes.  This is when I 'Add Entry' to set up the options, but so far I have had no luck doing this so I am looking over the cmake docs for help.

After making changes I just hit configure to check for errors and so far I haven't been able to clear them up.

42
C / Re: CSFML dependencies
« on: February 12, 2015, 08:35:52 pm »
Don't guess things. Read the docs or search ;)
I did look over the docs.  The CSFML page clearly states there are no docs for CSFML so use the docs for SFML.  I did search the forums as well before posting.

If you're using cmake-gui you can add variables before configuring. If you use the command line you must use -DCMAKE_MODULE_PATH=<path>.
Cmake does an auto configure right after selecting which type of build files it should create.  That can't be avoided in the gui that I am aware of.  All I can do is edit after this step and before I hit the configure button myself.  I use the gui because that is the only example of use for cmake that I have found so far on the site so I am unsure of what all cmake flags I need to add on the command line.

Learning this kind of things is not fun but it will save you troubles next time you use CMake, so it may be worth it.
This is something I am working on, but for me it is hard to maneuver around the docs for specific information.  It's a bit disjointed to me so it is taking a while to test each step I am trying to recreate.

43
C / Re: CSFML dependencies
« on: February 12, 2015, 06:31:40 pm »
I have 2 cmake versions available.  Cmake 2.8.12.2 is the one installed from the repository, but recently a lib needed a higher version so I have a self contained cmake v3.1.0.  When setting up initial directories and cmake generation type there is no way to skip the initial configuration step that I know of so cmake does it's thing then reports the error of not knowing where the FindSFML.cmake file is.  On both versions the variable field named 'SFML_Dir' shows as it's target 'SFMLDIR-NOTFOUND'.  I then left click the field and that pops up the '...' browse button.  That then loads a UI for hopping through the file system.  I navigate that way to where the file actually is, but it's not selectable.  nothing in that directory is.

I believe that's the CMake variable you asked for, but not sure of 'which type'.  The 'SFML_Dir' variable field is the only one reporting an error.

44
C / Re: CSFML dependencies
« on: February 12, 2015, 05:57:41 pm »
Don't build the latest commit, but rather the 2.1 tag (for both SFML and CSFML).

The path to FindSFML.cmake must be added to the CMAKE_MODULE_PATH variable before configuring. Or you can copy FindSFML.cmake to your CMake's Module directory.

No problem building SFML2.1, but same problem with the FindSFML.cmake file.  I know exactly where it is and browse to it with the cmake-gui version of cmake, but once the browser is in the directory everything is greyed out and nothing can be selected.  I tried checking the CMakeLists.txt file of CSFML to see if I could set it in there, but I have little knowledge of cmake thus far.  I was learning more in order to give CLion a shot and managed to get external library configuration to work, but that's about the extent of my cmake knowledge.  Whenever people ship libs with cmake as the build system it just always works for me so troubleshooting is still an issue I have.

45
C / Re: CSFML dependencies
« on: February 12, 2015, 03:06:06 pm »
Compilation is actually the first thing I tried and couldn't get it going.  I have SFML 2.2 compiled from source installed.  Can't give an exact date on it, but it's from toward the end of January.  I downloaded the current CSFML repository and it says it's for SFML 2.1.  I gave compilation a shot, but it fails in cmake saying it can't find FindSFML.cmake.  I can point it exactly where it is on my system using the browse feature on the cmake gui, but once I get it to the directory where FindSFML.cmake is it keeps that file greyed out and won't let me select it.  I did a few forum searches here and saw others with that issue, but no suggestions that helped me.  That's why I went the prebuilt route.

Pages: 1 2 [3] 4 5