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

Pages: [1] 2
1
Feature requests / replace CMAKE_* by PROJECT_* in all CMakeLists.txt
« on: December 03, 2010, 01:55:14 pm »
yep, that's what i'm doing now.

Thanks for the help laurent

2
Feature requests / replace CMAKE_* by PROJECT_* in all CMakeLists.txt
« on: December 03, 2010, 01:13:41 pm »
Hi Laurent:

i just wanted to automatize all the build process (check sfml changes, build it, build my project and link sfml)

I just changed all cmake_source_dir, cause it points to my project dir, instead of SFML dir.

I think that if you just change al cmake_source_dir with SFML_dir or something similar, and then set it to ${CMAKE_SOURCE_DIR} if is not set by the user can give us more control over the compilation process and it would remain with the same functionality.

Also, I'm trying your suggestions, and using another script to build SFML independently, to see if there are differences with my current approach.

Thanks
Juanxo

3
Feature requests / replace CMAKE_* by PROJECT_* in all CMakeLists.txt
« on: December 02, 2010, 07:48:10 pm »
I use them as library and I include it in my project as different libraries, but i keep the source code and all the stuff needed to build them.

Let say i clone my repository, where i have all the source code and necessary things to build my project and extlibs (SFML included).
I build with cmake and compile my project and libraries( here i have to compile SFML)

Next, i make a change in my project, build it, and only my project is built, cause SFML keeps as a separate library project.

Examples aside, i just wanted a way to tweak some values of SFML compilation without having to modify the SFML cmake files, as i have to do now every time i pull a new version.

If you want, i can give you my cmakefiles, where i have done the changes needed to do this, so you can see if it worth the change

4
Feature requests / replace CMAKE_* by PROJECT_* in all CMakeLists.txt
« on: November 30, 2010, 11:57:03 pm »
i dont recompile SFML every time... but i like to handle all the libraries with the same cmake project.

Perhaps it's me who don't get it. I would like to automatize at most as possible the creation of the libraries... but perhaps I'm using a bad approach.You have talked about imported dependencies. Could you elaborate about them more, or point me to the right direction about them?

5
Feature requests / replace CMAKE_* by PROJECT_* in all CMakeLists.txt
« on: November 30, 2010, 10:02:13 pm »
hi Laurent:

I have created a project, and i have to face the same problem than Pompei.

I think you can create a "fake" PROJECT_SOURCE_DIR (i currently use SFML_ROOT_DIR in my local copy), so we can include SFML directly in our projects

Perhaps:
Code: [Select]

IF (NOT SFML_ROOT_DIR)
  set( SFML_ROOT_DIR ${CMAKE_SOURCE_DIR})
ENDIF()


That way you mantains compatibility with the current way (directly using CMAKE_SOURCE_DIR), you can create one project for each module (cause SFML_ROOT will keep pointing to the same location) and we can tweak SFML compilation to fit our needs

And to answer your question about why we want to include SFML in our projects, i think it's because we want to keep all organized and dont have SFML spread out of the project

Thx for the awesome work[/code]

6
Graphics / Error when compiling sfml-graphics
« on: August 25, 2010, 06:10:23 pm »
yes, you were right. I probably used some older version, my fault

Thanks Laurent

7
Graphics / Error when compiling sfml-graphics
« on: August 24, 2010, 11:52:57 pm »
i just have downloaded sfml2snapshot from the main sfml page.

8
Graphics / Error when compiling sfml-graphics
« on: August 24, 2010, 09:02:26 pm »
Hi:

First, congrats to switch to cmake.
I'm trying to build sfml with cmake, and I'm getting errors when building Graphics subsystem

Code: [Select]

1>------ Build started: Project: sfml-graphics, Configuration: Debug Win32 ------
1>  ImageLoader.cpp
1>..\..\..\..\src\SFML\Graphics\ImageLoader.cpp(35): fatal error C1083: Cannot open include file: 'png.h': No such file or directory


I'm using vs2010 and Win7.

Am i doing something wrong, or it's a bug?

Thx

Edit: I forgot to post in Graphics subforum. Sorry

9
SFML projects / Open Game Engine
« on: June 30, 2010, 08:18:00 pm »
why you dont use a vector of lists for layers?

10
General / "gdb.exe has stopped responding" codeblocks
« on: June 24, 2010, 07:08:50 pm »
are you using debug SFML libraries?

11
Window / Problem with anonymous enum in WindowStyle (Ubuntu)
« on: June 24, 2010, 08:59:34 am »
thx Laurent.

12
Window / Problem with anonymous enum in WindowStyle (Ubuntu)
« on: June 23, 2010, 11:42:49 am »
thx Laurent

I have found where "I" include it. it seems GLee uses Xlib.
Now the problem is that i cant include it before SFML, but SFML includes Opengl, and GLee need to be included before OpenGL.

This is crazy, man

13
Window / Problem with anonymous enum in WindowStyle (Ubuntu)
« on: June 21, 2010, 01:05:49 am »
cmake generates automatically makefiles for projects, and it seems to include xlib in linux. I don't include xlib in my code directly, causes i'm trying to programm cross-platform code.

I have the same code and the same cmakelists for windows and linux and i don't get any error in windows

14
Window / Problem with anonymous enum in WindowStyle (Ubuntu)
« on: June 20, 2010, 10:56:46 am »
i'm using cmake to create my project makefile and it seems that the makefile created by cmake includes xlib before sfml

15
Window / Problem with anonymous enum in WindowStyle (Ubuntu)
« on: June 20, 2010, 10:21:22 am »
thx Laurent.

I only use sfml and Assimp, so perhaps some sfml files include Xlib headers?

EDIT: i have seen that cmake includes xlib before sfml. I have to find a way to change this.

Thanks

Pages: [1] 2