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 ... 10
1
You must add the WIN32 flag to the add_executable command (it is explained in the CMake documentation).

Awesome! Thankyou Laurent!

2
Hello all,

I am trying to make a gui application with code blocks, SFML, and Cmake but on windows I have a problem of the console window being displayed. I do not want it to be displayed.

I am using cmake to generate my project. I am generating Codeblocks Mingw32 makefiles. Once I generate those makefiles I open up the generated codeblocks project and try to change the setting from console to GUI in properties but it doesn't work.

I believe the problem is that I am setting a variable in codeblocks even though codeblocks is using Mingw32 as a tool to compile so the setting has no effect. Is there any way to set my program to be a GUI in the Cmake file?

Right now I have a workaround of using windows.h to find the console windows and hide it with this command function in my console class:
void ConsoleWindow::HideConsoleWindow (void){
//----------------------------------------------------------------------------------------------------
   ShowWindow(this->CONSOLE, SW_HIDE);
}

I like how this works, but I don't like how the console pops up on the start of the program then disappears. Is there anyway I can fix this via Cmake or codeblocks?

Thanks,
Brent

3
Feature requests / OpenGL Forward Compatible Context
« on: May 31, 2011, 05:48:46 am »
Quote from: "Laurent"
Choosing the GL version of the context is already implemented. Are you talking about something else?


Oh it is? Sorry maybe I read this thread wrong. How do I use it?

4
Feature requests / OpenGL Forward Compatible Context
« on: May 30, 2011, 08:14:39 am »
Sorry to bump this but will this be implemented any time soon? I would like to be able to call setting.SetLowestGLVersion(3.3); Or at least something similar.

Regards,
Brent

5
Graphics / GetEvent() Deprecated? - SFML 2
« on: April 18, 2011, 11:05:42 pm »
Quote from: "Laurent"
Indeed... SFML is constantly changing, the doc is not always up-to-date, so look at headers to know what has changed ;)

GetEvent is now PollEvent.


Ok thanks! I checked there when it first popped up but it wasn't changed yet so that was my problem.

6
Graphics / GetEvent() Deprecated? - SFML 2
« on: April 18, 2011, 10:01:54 pm »
Well after I updated my repo and re-built SFML I noticed that there was no GetEvent() function because when I tried to build my project I got this:

class sf::RenderWindow’ has no member named ‘GetEvent’

Could someone please help me out here?

7
Graphics / Drawing form custom class lags the program up...
« on: January 31, 2011, 01:23:14 am »
Jpg is not compressed so it looks really nice up close but that also means it has a lot to load. Png is almost as great and doesn't usually lag..

8
General / Cmake Probelms SFML 2 MinGW
« on: January 26, 2011, 03:14:43 am »
Quote from: "Fierce_Dutch"
Quote from: "Laurent"
You need to check again your versions and your compile commands, you still have something wrong ;)


I have the mingw folder I used to compile sfml selected.. And what should I do about compile commands?


Hey I got it too work! Thanks for all your help! I had to included the stuff in the local and global areas..

9
General / Cmake Probelms SFML 2 MinGW
« on: January 26, 2011, 02:46:26 am »
Quote from: "Laurent"
You need to check again your versions and your compile commands, you still have something wrong ;)


I have the mingw folder I used to compile sfml selected.. And what should I do about compile commands?

10
General / Cmake Probelms SFML 2 MinGW
« on: January 24, 2011, 03:45:35 pm »
Quote from: "Laurent"
In fact everything compiled, but nothing linked (these are two separate steps).


Oh ok!! So what do I need to do? Sorry I thought I fixed it..

11
General / Cmake Probelms SFML 2 MinGW
« on: January 24, 2011, 03:11:51 pm »
Quote from: "Laurent"
This is still the same problem.


What? But like half of it compiled...

12
General / Cmake Probelms SFML 2 MinGW
« on: January 24, 2011, 08:33:06 am »
Quote from: "Laurent"
In Code::Blocks you can go to the compiler options and see the path of the gcc it's using.


Ok So I think I got the compiler somewhat working because it build half my project then get's here and freaks out...

Errors:
Code: [Select]
C:\Users\Owner\Documents\CodeBlocks\GL_TestArea\src\/TextureManager.h: In member function 'GLuint Texture::GetTexture(std::string)':
C:\Users\Owner\Documents\CodeBlocks\GL_TestArea\src\/TextureManager.h:48:1: warning: control reaches end of non-void function
Linking console executable: bin\Debug\GL_TestArea.exe
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../crt2.o:crt1.c:(.text+0x28): undefined reference to `__dyn_tls_init_callback'
obj\Debug\src\Rect3D.o: In function `Rect3D':
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:3: undefined reference to `__gxx_personality_sj0'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:3: undefined reference to `_Unwind_SjLj_Register'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:25: undefined reference to `_Unwind_SjLj_Unregister'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:26: undefined reference to `_Unwind_SjLj_Resume'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:3: undefined reference to `__gxx_personality_sj0'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:3: undefined reference to `_Unwind_SjLj_Register'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:25: undefined reference to `_Unwind_SjLj_Unregister'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:26: undefined reference to `_Unwind_SjLj_Resume'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:31: undefined reference to `__gxx_personality_sj0'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:31: undefined reference to `_Unwind_SjLj_Register'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:54: undefined reference to `_Unwind_SjLj_Unregister'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:55: undefined reference to `_Unwind_SjLj_Resume'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:31: undefined reference to `__gxx_personality_sj0'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:31: undefined reference to `_Unwind_SjLj_Register'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:54: undefined reference to `_Unwind_SjLj_Unregister'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:55: undefined reference to `_Unwind_SjLj_Resume'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:64: undefined reference to `__gxx_personality_sj0'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:64: undefined reference to `_Unwind_SjLj_Register'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:88: undefined reference to `_Unwind_SjLj_Unregister'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:89: undefined reference to `_Unwind_SjLj_Resume'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:64: undefined reference to `__gxx_personality_sj0'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:64: undefined reference to `_Unwind_SjLj_Register'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:88: undefined reference to `_Unwind_SjLj_Unregister'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:89: undefined reference to `_Unwind_SjLj_Resume'
obj\Debug\src\Rect3D.o:C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:223: undefined reference to `__gxx_personality_sj0'
obj\Debug\src\Rect3D.o:C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:223: undefined reference to `_Unwind_SjLj_Register'
obj\Debug\src\Rect3D.o:C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:243: undefined reference to `_Unwind_SjLj_Resume'
obj\Debug\src\Rect3D.o:C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:256: undefined reference to `_Unwind_SjLj_Resume'
obj\Debug\src\Rect3D.o:C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:269: undefined reference to `_Unwind_SjLj_Resume'
obj\Debug\src\Rect3D.o:C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:282: undefined reference to `_Unwind_SjLj_Resume'
obj\Debug\src\Rect3D.o:C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:295: undefined reference to `_Unwind_SjLj_Resume'
obj\Debug\src\Rect3D.o:C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:308: undefined reference to `_Unwind_SjLj_Unregister'
obj\Debug\src\Rect3D.o:C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:308: undefined reference to `_Unwind_SjLj_Resume'
obj\Debug\src\Rect3D.o: In function `~Rect3D':
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:377: undefined reference to `__gxx_personality_sj0'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:377: undefined reference to `_Unwind_SjLj_Register'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:386: undefined reference to `_Unwind_SjLj_Unregister'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:386: undefined reference to `_Unwind_SjLj_Resume'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:377: undefined reference to `__gxx_personality_sj0'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:377: undefined reference to `_Unwind_SjLj_Register'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:386: undefined reference to `_Unwind_SjLj_Unregister'
C:/Users/Owner/Documents/CodeBlocks/GL_TestArea/src/Rect3D.cpp:386: undefined reference to `_Unwind_SjLj_Resume'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 5 seconds)
42 errors, 1 warnings
 

13
General / Cmake Probelms SFML 2 MinGW
« on: January 24, 2011, 08:18:55 am »
Quote from: "Laurent"
Code: [Select]
set PATH=%PATH%;my\chosen\mingw\bin
mingw32-make blah blah...

If you have no MinGW path in your PATH environment variable, you make sure that direct calls like this
Code: [Select]
mingw32-make blah blah...
will produce an error ("mingw32-make is not a program"), and thus you're sure that the first command above will use the version of MinGW located under my\chosen\mingw.


Ok I have MinGW installed with CodeBlocks and I have it seperate.
I made sfml like this.
set PATH=%PATH%;C:\MinGW\bin (enter)
mingw32-make (my make files folder)

Everything build fine. But when I go into codeblocks I don't see mingw compiler. I know it uses gcc but which one? there are like 4.. SO I just use gnu-gcc.

14
General / Cmake Probelms SFML 2 MinGW
« on: January 23, 2011, 11:35:25 pm »
Quote from: "Laurent"
Ok so just make sure that you use the same for both your application and SFML.

The safest way is to put none of them in the global PATH, and add one locally before compiling something. So that there's no compiler available by default, and you're sure that you use the one that you explicitely put in the PATH.


How do I chose which one to use with sfml? I made a mingw makefile.. Then compiled ti in cmd with mingw32-make and then put it in my cb folder.

15
General / Cmake Probelms SFML 2 MinGW
« on: January 23, 2011, 07:40:19 pm »
Quote from: "Laurent"
This is weird, it looks like you're compiling your application and SFML with two different versions of gcc. Do you have several versions installed?


Well I have a dual boot of linux and I have cygwin and mingw..
But i kinda have to keep both.. I use cygwin for hacking and mingw for codeblocks..

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