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

Pages: 1 ... 3 4 [5] 6 7 ... 10
61
General / Re: CMake doesn't link with SFML libaries
« on: September 12, 2012, 07:10:27 pm »
Ok.

Now i delete "libs" and "includes" of SFML from my system and im using the libraries from project.

It is compiling with success now.

But when i will open the binary, i got error and it close. I think that the libraries need be copied/bundle with binary.

Can you help me? The changes are commited to github.

With this project and the target of this project is clone the repository and compile the project without need lose time with libraries, it will turn easy the gamers life. You need focus on the code, not arch.

Can you help me?


62
General / Re: CMake doesn't link with SFML libaries
« on: September 12, 2012, 06:49:26 pm »
Im not an expert of CMake but i didn't found any example that dont use the "FindSFML". I dont use it.

I already have the includes and libraries in my project, i want link with this. As you see in github "library" path.

But is too hard find anything about it.


63
General / Re: CMake doesn't link with SFML libaries
« on: September 12, 2012, 05:23:56 pm »
Ok man.

Thanks for your help. Im learning cmake, but i dont read about commands ordering, i dont know about it, but 99%of the file was correct.

But it is compiling now.

But i want do another think. I want link not with system library. I want distribute the project with the compiled libraries for win32/mac/linux as i do with the project:

https://github.com/prsolucoes/sfml-project

I want now learn how to link with the libraries in "library/mac" and "library/win32" using cmake and include the include files under "library" path too.

Can you help me?

64
General / Re: CMake doesn't link with SFML libaries
« on: September 12, 2012, 05:12:36 pm »
Sorry.

Now the message is:

Quote
Found SFML: /usr/local/include
CMake Error at CMakeLists.txt:19 (target_link_libraries):
  Cannot specify link libraries for target "sfml-cmake" which is not built by
  this project.


-- Configuring incomplete, errors occurred!

65
General / Re: CMake doesn't link with SFML libaries
« on: September 12, 2012, 05:10:59 pm »
I change the variable name, but not solved. Changes was commited to GITHUB. You can see. The same error message  was showed.

66
General / Re: CMake doesn't link with SFML libaries
« on: September 12, 2012, 05:05:14 pm »
Same problem.

The message is not related with it :(

67
General / CMake doesn't link with SFML libaries
« on: September 12, 2012, 04:53:59 pm »
Hi

I make a small project to compile projects using CMake. But when i will link the libraries of SFML i got the error:

Quote
MacBook-Pro-de-Paulo-Coutinho-2:build paulo$ ./build.sh
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Found SFML: /usr/local/include
CMake Error at CMakeLists.txt:19 (target_link_libraries):
  Cannot specify link libraries for target
  "/usr/local/lib/libsfml-system.dylib" which is not built by this project.


-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.

The project is located here:

https://github.com/prsolucoes/sfml-cmake

To build, you need enter in "build" directory and call "sh build.sh" and to clear temp. files, call in "build" directory "sh clean.sh".

The libraries was installed using default cmake files of SFML package.

Thans for any help.

68
General discussions / Re: SFML2 and Box2D Debug Draw
« on: August 12, 2012, 04:59:03 pm »
Hi Walker,

Here you can get one and the required files:

https://github.com/slok/Box2D-and-SFML-demo

Path:

/src/DebugDraw.cpp
/src/DebugDraw.h
/src/Globals.h

69
General discussions / Re: SFML2 and Box2 Debug Draw
« on: August 12, 2012, 11:09:40 am »
On title have BOX2D, and debug draw is a feature of it.

70
General discussions / SFML2 and Box2D Debug Draw
« on: August 12, 2012, 10:56:16 am »
Hi,

Im searching for a debug draw for SFML2 and Box2D 2.2.1, because i only find old versions on DebugDraw.

Some problems on old classes:

sf::Shape polygon;  <- Shape cannot be created more, it is protected
polygon.AddPoint <- Add point to poligon dont work :*

the correct class name is: b2Draw not b2DebugDraw

Can anyone share it?

71
Graphics / SFML2 and Qt
« on: August 11, 2012, 10:57:13 pm »
Hi,

Im trying use Qt with SFML2, but the "Update" method is not called and i only see a blank area on my window.

See the screenshot attached.

Get the code here:

http://www.prsolucoes.com/downloads/robot-explorer.zip

There is a way to use the canvas class in thread?

Thanks.

[attachment deleted by admin]

72
General / Re: SFML2 +QtCreator + MacOSX
« on: May 03, 2012, 06:00:49 am »
Hi sorry ,

You can get here https://github.com/prsolucoes/sfml-project

73
General discussions / Project: sfml-project
« on: April 21, 2012, 10:34:55 am »
I have created a template project for QtCreator for anyone that use QtCreator as IDE.

You can see the article here:
http://www.prsolucoes.com/blog/projetos/qtcreator-mac-osx-sfml/

74
General / Re: SFML2 +QtCreator + MacOSX
« on: April 21, 2012, 08:44:51 am »
Hi.

I solve the problem. Thanks!

75
General / Re: SFML2 +QtCreator + MacOSX
« on: April 20, 2012, 08:45:42 pm »
Hi Hiura,

Yu are correct. After post here i try found the problem and correct, and if i copy the dylib files and all frameworks to "Frameworks" path in my build, it works.

Example:

My project when build, generate the path:

/Users/paulo/Pessoal/workspaces/qt/sfml-project-build-desktop-Qt_4_8_1__gcc__Debug/sfml-project.app/Contents/MacOS/
 
If i run the binary inside it, called: sfml-project , i get that error

So what i do? I have created a new directory:

/Users/paulo/Pessoal/workspaces/qt/sfml-project-build-desktop-Qt_4_8_1__gcc__Debug/sfml-project.app/Contents/Frameworks

And copy all this files to it:


SFML.framework             libsfml-graphics.2.0.dylib libsfml-network.2.dylib    libsfml-system.dylib       sfml-audio.framework       sfml-window.framework
libsfml-audio.2.0.dylib    libsfml-graphics.2.dylib   libsfml-network.dylib      libsfml-window.2.0.dylib   sfml-graphics.framework    sndfile.framework
libsfml-audio.2.dylib      libsfml-graphics.dylib     libsfml-system.2.0.dylib   libsfml-window.2.dylib     sfml-network.framework
libsfml-audio.dylib        libsfml-network.2.0.dylib  libsfml-system.2.dylib     libsfml-window.dylib       sfml-system.framework

And when i run the binary, it works!

But i need do it direct from QtCreator or link/auto-copy it to correct location.



Pages: 1 ... 3 4 [5] 6 7 ... 10