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

Pages: [1]
1
Window / error while running simple test on linux (sfml2)
« on: October 09, 2010, 01:25:48 am »
alright, so I should have read the FAQ first, compiz is apparently the culprit.

 However, the script provided in the faq doesn't seem to be working for me... This is the output of running the script:
Code: [Select]


sh ./toggle_compiz.sh
fordprefect@bistromath:~/sfml2TEST$ WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported!  This is an application bug!
compiz (cube) - Warn: Failed to load slide: /usr/share/gdm/themes/Human/ubuntu.png
WARNING: Application calling GLX 1.3 function "glXDestroyPixmap" when GLX 1.3 is not supported!  This is an application bug!


It seems to partially turn off compiz, but the same errors show up in the SFML app.
I'm sure I can find a different script to do the compiz toggle, but is there another way around this? Somewhere between switching off compiz and integrating an SFML context into GTK?

2
Window / error while running simple test on linux (sfml2)
« on: October 09, 2010, 12:19:09 am »
Ok, I've never run across this error before....

I built a snapshot of sfml2 and to test it, I compiled the code from the Window and events tutorial, and ran it inside of codeblocks. When I close the window, the terminal spits out this error msg:

Code: [Select]

do wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. Try adjusting the vblank_mode configuration parameter.


from a google search, it's apparently coming from a driver in the Mesa utilities package, so I'm not sure if this is an issue with my linux setup or with sfml, though I'm leaning towards the former.

Also, another oddity is that the window is not actually blank, there are some artifacts being drawn by App.Display(). These are totally random line sections.

I built the sfml2 libs with a simple "make && make install " , and I'm running this on Ubuntu 10.04, fully updated. What's confusing to me is that I'm running on a laptop using an Intel graphics chip and I'm using intel's drivers .... so I'd expect that the mesa package would not be involved.

I this just from calling App.Display() with nothing to render? Any suggestions?

Thanks...

edit:   just tried some quick Sprite drawing with a single image, Seems to work fine, no artifacts, image shows up.... but an extra error appears on close:
Code: [Select]
DRM_IOCTL_GEM_CLOSE 5 failed (region): Bad file descriptor

3
General / just another VS2010 linking question
« on: October 04, 2010, 06:41:27 am »
whoops, missed this reply.. sorry.

Makes sense. I just don't recall this happening when I've built sfml before this most recent time. Oh well.

4
General / just another VS2010 linking question
« on: September 25, 2010, 11:41:17 pm »
This one isn't too bad, just a minor annoyance......

I've build SFML 1.6 for vs 2010 and all's well, except I dont seem to have any debug symbols for any of the SFML debug libs.  Probably my mistake somewhere, having just started using 2010 regularly. I did the build by just using the auto conversion tool in VS on the 2008 projects.

Specifically,the linker complains that it cant find 'vc100.pdb'. Can anyone let me know how to fix this?

5
General discussions / porting the tutorial game engine over to linux....
« on: September 02, 2010, 09:59:38 pm »
Quote
What about true C++, like std::string and std::ostringstream?


Well,  I was shooting for as small of a change as possible... just while I get up and running.  sprintf seems to work as a quick-fix, for now.

But, if I were to use string and osstream, wouldn't that be a little costly inside of update and render methods? I'd think I'd at least need to restructure the logging so that I wasn't calling these constructors twice every frame.

6
General discussions / porting the tutorial game engine over to linux....
« on: September 01, 2010, 10:57:09 pm »
Hi, I just started messing around with SFML, and for the heck of it, I'm working on the game engine from the tutorials page. Mainly, I'm just trying to replace the win32 function calls with more cross-platform stuff, so I can play with this thing on Linux.

What's giving me trouble right now is the use of _snprintf_s, lines from IState.hpp in the Draw() method:

Code: [Select]

char frames[20];
....
_snprintf_s(frames, 20, 20, "FPS: %4.2f", (float)mFrames / mFrameClock.GetElapsedTime());




Yeah, im embarrassed, I don't know my c library..... is there a quick replacement func that does the same thing? I know there's a function for this somewhere, but offhand all I can think of is printf and its variants, which wont do the trick AFAIK.
Any suggestions?

Pages: [1]