Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFGUI (0.4.0 released)  (Read 350951 times)

0 Members and 2 Guests are viewing this topic.

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
SFGUI
« Reply #210 on: January 07, 2012, 10:16:28 pm »
Can you run it in debug mode and post the callstack/backtrace when it crashes? It's easier to tell where the exception was thrown that way.

Edit: Just so I don't forget to check this out when I have time, you might want to add this to our issue tracker on GitHub.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Elgan

  • Jr. Member
  • **
  • Posts: 77
    • AOL Instant Messenger - Flat+1,+17+st+Cl
    • View Profile
SFGUI
« Reply #211 on: January 07, 2012, 11:39:00 pm »
yep, but I think I need sfgui in debug mode too for more info, but not got it compiled just yet, I do not like cmake,

always get "project files may be invalid"...I can not get sfml dir right :S> I'm getting rather frustrated, nearly thinking about doing my chem calculations :@

SFML latest snapshot in sfml

sfml build and cmpiled into sfml/make

where should sfml_dir go?
the libs and dirs from sfml/debug/lib/debug I moved.

whats this cmakeconfig.cmake? where , what, how is this made, found, discovered?

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
SFGUI
« Reply #212 on: January 08, 2012, 12:28:42 am »
Quote from: "Elgan"

whats this cmakeconfig.cmake? where , what, how is this made, found, discovered?


Never heard of such a file before.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Elgan

  • Jr. Member
  • **
  • Posts: 77
    • AOL Instant Messenger - Flat+1,+17+st+Cl
    • View Profile
SFGUI
« Reply #213 on: January 08, 2012, 03:26:56 am »
Code: [Select]

CMake Error at CMakeLists.txt:9 (find_package):
  Could not find module FindSFML.cmake or a configuration file for package
  SFML.

  Adjust CMAKE_MODULE_PATH to find FindSFML.cmake or set SFML_DIR to the
  directory containing a CMake configuration file for SFML.  The file will
  have one of the following names:

    SFMLConfig.cmake
    sfml-config.cmake


Well according to the docs of:
find_package( SFML 2.0 REQUIRED GRAPHICS WINDOW SYSTEM )

I should have a SFML.cmake  
else it looks for SFMLConfig.cmake

you say where sfml is installed...what does "installed" actually mean...? There is no SFML global variable as long as I know?
there is compiled...

sorry for all the hassle. I get angry enough at cmake...

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
SFGUI
« Reply #214 on: January 08, 2012, 03:47:40 am »
Check this post.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

xethm55

  • Newbie
  • *
  • Posts: 11
    • View Profile
SFGUI
« Reply #215 on: January 08, 2012, 04:38:09 am »
Elgan,
Your initial unhandled exception sounds very similar to the problem that I was having.  Please try defining
Code: [Select]

_HAS_ITERATOR_DEBUGGING=0

under the project properties as a C++ preprocessor define and see if that fixes your problems.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
SFGUI
« Reply #216 on: January 08, 2012, 08:54:54 am »
Check this and this.

binary1248's guide will work too, however it's quite complicated and not the CMake-way of doing it :D.

Elgan

  • Jr. Member
  • **
  • Posts: 77
    • AOL Instant Messenger - Flat+1,+17+st+Cl
    • View Profile
SFGUI
« Reply #217 on: January 08, 2012, 03:33:54 pm »
Woo! thank you !
build sfgui-s-d.lib

Right:

SFML_STATIC
SFGUI_STATIC
SFGUI_EXPORTS
_HAS_ITERATOR_DEBUGGING=0

and now it crashes here:
Code: [Select]


sf::Vector2f Engine::GetTextMetrics( const sf::String& string, const sf::Font& font, unsigned int font_size ) const {
[color=red]sf::Text text( string, font, font_size );[/color]
return sf::Vector2f( text.GetLocalBounds().Width, text.GetLocalBounds().Height );
}

call stack = http://imageshack.us/f/638/32141209.png/

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
SFGUI
« Reply #218 on: January 08, 2012, 04:46:25 pm »
Tank updated the Hello World code on the website. Try compiling that. It shouldn't crash like it did before anymore.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Elgan

  • Jr. Member
  • **
  • Posts: 77
    • AOL Instant Messenger - Flat+1,+17+st+Cl
    • View Profile
SFGUI
« Reply #219 on: January 08, 2012, 06:05:23 pm »
works wonderful :)

Thank you for patience

edit:


but the function OnButtonClick does not run, at all

  button->OnClick.Connect( &OnButtonClick );

not connecting.


, ill play..

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
SFGUI
« Reply #220 on: January 08, 2012, 11:46:12 pm »
Could you please do a 'cout' in the handler to see if it's really not called?

Elgan

  • Jr. Member
  • **
  • Posts: 77
    • AOL Instant Messenger - Flat+1,+17+st+Cl
    • View Profile
SFGUI
« Reply #221 on: January 08, 2012, 11:50:01 pm »
Quote from: "Tank"
Could you please do a 'cout' in the handler to see if it's really not called?


already tried, plus breakpoint, nope :\

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
SFGUI
« Reply #222 on: January 10, 2012, 09:03:47 pm »
Really strange. We're using fast delegates which were made possible using a LOT of hacks for various compilers, however there weren't issues with MSVC10 yet.

Just to make sure: Would you  mind uploading your full project somewhere so we can check?

Elgan

  • Jr. Member
  • **
  • Posts: 77
    • AOL Instant Messenger - Flat+1,+17+st+Cl
    • View Profile
SFGUI
« Reply #223 on: January 10, 2012, 09:12:48 pm »
Quote from: "Tank"
Really strange. We're using fast delegates which were made possible using a LOT of hacks for various compilers, however there weren't issues with MSVC10 yet.

Just to make sure: Would you  mind uploading your full project somewhere so we can check?


can't reproduce?

no worries, though it happens with the tutorial code, just 1 cpp file.... ill upload once ive written my chem up.

the code however is exactly that of the new tutorial. ....

also the lib compiled with no problems..


....also it is Visual Studio 2008

Elgan

  • Jr. Member
  • **
  • Posts: 77
    • AOL Instant Messenger - Flat+1,+17+st+Cl
    • View Profile
SFGUI
« Reply #224 on: January 10, 2012, 11:31:37 pm »
http://www.2shared.com/file/SFDcoOyd/sftest.html

think that's all, sorrya bout dlls, has static linking :\