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

Pages: 1 [2] 3 4 ... 10
16
General / Cmake Probelms SFML 2 MinGW
« on: January 23, 2011, 04:31:07 pm »
Quote from: "Laurent"
Your post is hard to follow and very confusing. Can you please make it clearer according to what you updated and fixed?


Just read from the top to the errors. That is my current problem and the other stuff I thought I would leave their to help other people with my problem figure it out.

I compiled the libraries for codeblocks, chose the directory for them, they are static, i included the include directory, defined SFML_STATIC, and then defined stuff like this in other linker optoins:

-lsfml-graphics-s-d
etc.

But then i try to compile and it doesnt work, and it worked in vc++

17
General / Make Shapes Dissappear when a object hits it.
« on: January 23, 2011, 12:24:31 am »
Quote from: "JAssange"
I'd do it by tracking MouseMove events and storing the parameters for your update function to use.


Hey you could do something like, if bool collision = true then it wouldnt draw the shape.

18
General / Cmake Probelms SFML 2 MinGW
« on: January 22, 2011, 08:08:28 pm »
Update: I got the makefile thing fixed but now I am having trouble with compiling.
Here are some of my errors.
Code: [Select]
Linking console executable: bin\Debug\GL_TestArea.exe
C:\Program Files (x86)\CodeBlocks\MinGW\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x51): undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\CodeBlocks\MinGW\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0xf3): undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\CodeBlocks\MinGW\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x17a): undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\CodeBlocks\MinGW\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.text+0x1e8): undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\CodeBlocks\MinGW\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: Dwarf Error: Offset (11020) greater than or equal to (null) size (4954657).
C:\Program Files (x86)\CodeBlocks\MinGW\lib/libsfml-graphics-s-d.a(Image.cpp.obj):Image.cpp:(.text+0x87): undefined reference to `_Unwind_Resume'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: Dwarf Error: found dwarf version '0', this reader only handles version 2 and 3 information.
C:\Program Files (x86)\CodeBlocks\MinGW\lib/libsfml-graphics-s-d.a(Image.cpp.obj):Image.cpp:(.text+0x170): undefined reference to `_Unwind_Resume'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: Dwarf Error: found dwarf version '20039', this reader only handles version 2 and 3 information.
C:\Program Files (x86)\CodeBlocks\MinGW\lib/libsfml-graphics-s-d.a(Image.cpp.obj):Image.cpp:(.text+0x259): undefined reference to `_Unwind_Resume'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: Dwarf Error: found dwarf version '11075', this reader only handles version 2 and 3 information.
C:\Program Files (x86)\CodeBlocks\MinGW\lib/libsfml-graphics-s-d.a(Image.cpp.obj):Image.cpp:(.text+0x2fb): undefined reference to `_Unwind_Resume'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: Dwarf Error: found dwarf version '11828', this reader only handles version 2 and 3 information.
C:\Program Files (x86)\CodeBlocks\MinGW\lib/libsfml-graphics-s-d.a(Image.cpp.obj):Image.cpp:(.text+0x3a4): undefined reference to `_Unwind_Resume'
 






















Previous stuff to help others that i figured out down here...

UPDATE:
Tried using vc++ libs but only got errors like this.
undefined reference to `sf::RenderWindow::~RenderWindow()'
So how do I use a makefile?


Update:
I made makefiles but I can't figure out how to compile them..
I tried a codeblocks makefile and when opened in CB nothing happened either. It said
 'make.exe -s -f Makefile all' in 'C:\SFML\Build\CodeBlocks' failed.

Update:
I installed mingw.
I went into cmd and typed this: set PATH=%PATH%;C:\MinGW\bin cmake
Then I went back to cmake and it said. Missing libgmp-10.dll.




Original Post:

Ok well I have the latest source from the svn and I tried opening it up in cmake and setting the files the mingw make files. And then it gave me this:






Here are my errors:
Code: [Select]

CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:C:/SFML/Build/CodeBlocks/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:C:/SFML/Build/CodeBlocks/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Configuring incomplete, errors occurred!



Also that shell script thing i dont understand! IDK what to do about it. I think that is my problem.

19
General / How do I create my own GetPosition() Function?
« on: January 03, 2011, 06:11:59 am »
Quote from: "Lupinius"
Yes.
You can access the members of a returned value like you would with a value you stored in a variable.


Thanks!
I am just returning maps for fun now lol. it looks quite funny.
Return()["var1"];
lol I get the picture now thanks!

20
General / How do I create my own GetPosition() Function?
« on: January 02, 2011, 10:18:29 pm »
Quote from: "Lupinius"
When the GetPosition function returns an object that has an x and an y member variable you can use is that way. The SFML Vector classes have attributes like that.


Ok so I have to return a class and then do the . for its variables?

21
General / How do I create my own GetPosition() Function?
« on: January 02, 2011, 07:04:39 am »
Quote from: "Terrydil"
If you are using pure OpenGL I think what you want to do is pushmatrix->translate to where your object is->rotate->draw->popmatrix.

Are you trying to get coordinates of an object or of the mouse?  The object should know its own coordinates (if its drawing its own vertexes), the mouse you could get window coords and offset by the view offset.


Well I am trying to be able to do this GetPosition().x or GetPosition().y

22
General / Collision and moving depends on collision point
« on: December 29, 2010, 08:35:31 pm »
Quote from: "darekg11"
Oh yeah, damn it was simple x_x
So it shoud looks like:


And if Angle will be over or below certain values then I decide where I can move, right? Damn thank You, I was thinking about somethign like this but I was not sure how it should look.

On regular I am patient guy ;) Happy Christmas by the way, lol.

P.S How to calculate it? Well probably i will find it on google so.


Hey can you help me with collision? skype is TTT_Dutch

23
General / How do I create my own GetPosition() Function?
« on: December 28, 2010, 05:07:32 am »
Well I am working with OpenGL now and I want to return the position of the 3DRect like this. GetPosition().x or GetPosition.y or GetPosition().z. So how would I do this?

Also on a side note. How do I rotate around a local origin and not a world origin. Like rotate in place?

24
Graphics / GluPerspective vs. GlOrtho
« on: December 27, 2010, 08:38:38 am »
Quote from: "tntexplosivesltd"
Well, at the moment, moving the mouse moves the blocks. This is a bad idea. Why not just rotate everything based on the mouse movement? This is a lot faster, and easier to understand.


Well how would I go about this? Would it be like where ever the mouse's x position / y position is the angle of the rotation? I was just moving with the mouse for some tests and it looks like it screwed up my other tests, whoops! Btw I cant seem to figure out glFrustum, I only have gluPerspective working.

25
Graphics / GluPerspective vs. GlOrtho
« on: December 26, 2010, 09:50:59 am »
Quote from: "tntexplosivesltd"
For a start, it is a bad idea to use a negative number in gluPerspective() for zNear. I find gluPerspective annoying to use personally.


Well I got it too work but I had to use sfml's example, so should I use glFrustrum? BTW, can you help me out with mouse look, like when the mouse is centering it turns your guy.

26
Graphics / GluPerspective vs. GlOrtho
« on: December 25, 2010, 09:14:02 am »
Quote from: "tntexplosivesltd"
Where from? The .zip from the HTML link has everything, except a glossary.


IDK what I am doing wrong but I cant see anything.. Help?
I think its has to do with my gluPerspective function or something
Here is my main code,
http://pastebin.com/9Qy8vkft

27
Graphics / GluPerspective vs. GlOrtho
« on: December 23, 2010, 01:35:16 am »
Quote from: "tntexplosivesltd"
Where from? The .zip from the HTML link has everything, except a glossary.


Oh wait 1 sec.

Uhh I will just use my pdf.. lol

28
Graphics / GluPerspective vs. GlOrtho
« on: December 23, 2010, 01:31:42 am »
Quote from: "tntexplosivesltd"
What do you mean? I'm assuming you went to the HTML version and got the .zip?


No I got a pdf version.

29
Graphics / GluPerspective vs. GlOrtho
« on: December 23, 2010, 01:25:32 am »
Quote from: "tntexplosivesltd"
It is written in Java. It uses LWJGL (Light Weight Java Game Library), which has an interface to OpenGL (much like SFML)


Crap the one I got doesnt have an outline. Link in pm?

30
Graphics / GluPerspective vs. GlOrtho
« on: December 23, 2010, 01:21:40 am »
Quote from: "tntexplosivesltd"
It is written in Java. It uses LWJGL (Light Weight Java Game Library), which has an interface to OpenGL (much like SFML)


Oh ok thx, anyway I will put this book onto my ipod so that I can read it tonight!

Pages: 1 [2] 3 4 ... 10