Revision: 7474
http://playerstage.svn.sourceforge.net/playerstage/?rev=7474&view=rev
Author: rtv
Date: 2009-03-13 07:37:13 +0000 (Fri, 13 Mar 2009)
Log Message:
-----------
working webstage demo
Modified Paths:
--------------
code/websim/examples/Makefile
code/websim/examples/simple.cc
code/websim/src/parser.cc
Modified: code/websim/examples/Makefile
===================================================================
--- code/websim/examples/Makefile 2009-03-13 07:36:29 UTC (rev 7473)
+++ code/websim/examples/Makefile 2009-03-13 07:37:13 UTC (rev 7474)
@@ -1,9 +1,9 @@
# set this to the directory that you installed websim
-WSPREFIX=/Users/vaughan/Stage-3.0
+# WSPREFIX=/Users/vaughan/Stage-3.0
-WSLDFLAGS=-L${WSPREFIX}/lib -lwebsim `pkg-config --libs glib-2.0`
-WSCFLAGS=-g -W -Wall -I${WSPREFIX}/include `pkg-config --cflags glib-2.0`
+WSLDFLAGS=`pkg-config --libs websim`
+WSCFLAGS=`pkg-config --cflags websim`
all: clean websimple
Modified: code/websim/examples/simple.cc
===================================================================
--- code/websim/examples/simple.cc 2009-03-13 07:36:29 UTC (rev 7473)
+++ code/websim/examples/simple.cc 2009-03-13 07:37:13 UTC (rev 7474)
@@ -1,4 +1,4 @@
-#include "websim/websim.hh"
+#include "websim.hh"
class MinWebSim : public websim::WebSim
{
Modified: code/websim/src/parser.cc
===================================================================
--- code/websim/src/parser.cc 2009-03-13 07:36:29 UTC (rev 7473)
+++ code/websim/src/parser.cc 2009-03-13 07:37:13 UTC (rev 7474)
@@ -42,10 +42,15 @@
{
GError* err = NULL;
GKeyFile* keyfile = g_key_file_new();
- g_key_file_load_from_file( keyfile,
-
filename.c_str(),
-
G_KEY_FILE_NONE,
- &err
);
+ if( ! g_key_file_load_from_file( keyfile,
+
filename.c_str(),
+
G_KEY_FILE_NONE,
+
&err ) )
+ {
+ printf( "[websim] Can't find the federation file %s.\n",
+ filename.c_str() );
+ exit( 0 );
+ }
if( ! g_key_file_has_group( keyfile, "federation" ) )
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit