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

Pages: [1]
1
General / Re: Compiling example project
« on: February 11, 2017, 02:42:04 pm »
I solved my problem by not using static libraries. As I said I was getting black window, I solved that by coping game files (fonts, graphics, etc) to main directory and now it works but I can't understand why I have to copy those files, I think it should work without that.

I forget: my OS is Ubuntu 16.04.1, SFML 2.4.1, gcc 5.4

2
General / Re: Compiling example project
« on: February 09, 2017, 03:56:51 am »
I have two folders with SFML, one with source code where is include folder and another with compiled SFML where is lib folder, which should I choose for SFML_ROOT? Should I copy include to build directory? I tried your suggestion with expanding the advanced options and I set those libraries with same paths as dynamic libs but again after compilation I get black window.

3
General / Compiling example project
« on: February 09, 2017, 12:53:29 am »
Hi,

I was trying to compile project from this topic: http://en.sfml-dev.org/forums/index.php?topic=11260.msg77960#msg77960
I tried to do that in two ways:

1. First with using SFML_STATIC_LIBS and MAN_STATIC_STD_LIBS. Something went wrong and I get this:

Code: [Select]
Could NOT find SFML (missing:  SFML_GRAPHICS_LIBRARY SFML_WINDOW_LIBRARY SFML_SYSTEM_LIBRARY)

-> SFML directory not found. Set SFML_ROOT to SFML's top-level path (containing "include" and "lib" directories).
-> Make sure the SFML libraries with the same configuration (Release/Debug, Static/Dynamic) exist.

So I tried to set SFML_ROOT and realized that there is no include folder in build folder. In tutorials I have seen path to this folder several times.

2. Without using those static libs, everything has been configured and compiled without any errors or warnings but I am seeing only black window.

4
General / Re: Cannot find debug libraries.
« on: February 08, 2017, 12:36:55 pm »
Thanks, now everything works fine.

5
General / Re: Cannot find debug libraries.
« on: February 08, 2017, 03:11:50 am »
How can I build debug libraries?

EDIT: Now I see I didn't build those libraries... Just made makefile with cmake.

6
General / Cannot find debug libraries.
« on: February 08, 2017, 02:41:49 am »
Hi,

I have compiled SFML by myself with tutorial given on this site and also configured Code::Blocks 16.01 with another. It works with release mode but when I am switching to debug I am getting this:

||=== Build: Debug in SFML (compiler: GNU GCC Compiler 5.4) ===|
ld||cannot find -lsfml-graphics-d|
ld||cannot find -lsfml-window-d|
ld||cannot find -lsfml-system-d|
ld||cannot find -lsfml-audio-d|
ld||cannot find -lsfml-network-d|
||error: ld returned 1 exit status|
||=== Build failed: 6 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

I am using Ubuntu 16.04.1 and SFML 2.4.1.

Pages: [1]