Emulator Issues #889
closedDolphin Doesn't Work in Mac OS X
Added by youme9 over 15 years ago.
0%
Description
What steps will reproduce the problem?
- Compiled the binary with scons.
- Opened the program.
- Crashed. When core executable was opened in Terminal it produced
following output. Last login: Wed Apr 22 21:43:11 on ttys001
Macintosh:~ (withheld)$ /Users/(withheld)/Important
Files/dolphin-emu-read-only/Binary/Darwin-i386/Dolphin.app/Contents/MacOS/Dolphin
; exit;
55:10:258 N: BOOT Loading Settings from ./User/Config/Dolphin.ini
handler instance 0x0
55:10:278 N: BOOT Starting application
55:10:278 N: BOOT Loading Settings from ./User/Config/Dolphin.ini
55:10:307 W: COMMON IsDirectory: stat failed on
./USER/WII/TITLE/00000001/00000002/CONTENT: No such file or directory
Segmentation fault
logout
[Process completed]
What is the expected output? What do you see instead?
The expected output is the program window launching, and staying up.
However, I see the program window for about fie seconds, before the program
crashes.
What version of the product are you using? On what operating system?
I am using the SVN build 2962 on Mac OS X.
Please provide any additional information below.
Updated by Josesmp over 15 years ago
have the same problem on my mac leopard 10.5.6,the program start then crash about a
few seconds
Updated by Sonicadvance1 over 15 years ago
This should be fixed in rev 3058, but to compile, you need to change a few lines,
which is annoying.
Updated by youme9 over 15 years ago
@ Sonicadvance: thanks, I'll check it out, and update this issue as needed. I might
even create, and post a pre-compiled mac version online for those not "nerd" enough
to compile it themselves, but I'll still make a list of dependencies.
Updated by youme9 over 15 years ago
@ Sonicadvance1, specifically what few lines,because I know there are some mistakes
in some source files, but I can't seem to find the things to correct. For example,
one source file was ./Scource/Core/AudioCommon/src/OpenAlStream.cpp, where there was
"an invalid conversion" of a variable known as AlCubyte, to const AlCchar, but I
can't find either of them in the source file! help!
Updated by Sonicadvance1 over 15 years ago
Rev 3074 and on you shouldn't need to change anything now and it will compile on a
vanilla checkout.
Updated by Sonicadvance1 over 15 years ago
- Status changed from New to Work started
Updated by sikandsak over 15 years ago
I still get this during compilation
Compiling Build/Darwin-i386-release/Source/Core/AudioCommon/Src/OpenALStream.o
Source/Core/AudioCommon/Src/Mixer.h:28: warning: 'class CMixer' has virtual functions but non-virtual
destructor
Source/Core/AudioCommon/Src/OpenALStream.cpp: In member function 'virtual bool OpenALStream::Start()':
Source/Core/AudioCommon/Src/OpenALStream.cpp:37: error: invalid conversion from 'ALCubyte*' to 'const
ALCchar*'
Source/Core/AudioCommon/Src/OpenALStream.cpp:37: error: initializing argument 1 of 'ALCdevice*
alcOpenDevice(const ALCchar*)'
Source/Core/AudioCommon/Src/OpenALStream.cpp: In member function 'virtual void
OpenALStream::SoundLoop()':
Source/Core/AudioCommon/Src/OpenALStream.cpp:141: warning: unused variable 'ulBytesWritten'
scons: *** [Build/Darwin-i386-release/Source/Core/AudioCommon/Src/OpenALStream.o] Error 1
scons: building terminated because of errors.
svn r3089
Updated by Sonicadvance1 over 15 years ago
Seems my configuration is different than most, I will be committing a new version in
a bit to address this.
Updated by youme9 over 15 years ago
@ Sonicadvance
Nope, scons still complains about the variables.
Updated by Sonicadvance1 over 15 years ago
Try again with rev 3100, should be fixed to compile now.
Updated by youme9 over 15 years ago
@ sonicadvance
wow... you know, i think you have a very different system than most. Still, the
compiler complains!
Updated by youme9 over 15 years ago
here it is: scons: Reading SConscript files ...
Checking for pkg-config version > 0.15.0... (cached) yes
Looking for macports... (cached) Adding port lib and include path(cached) yes
Looking for fink... (cached) no
Checking for sdl lib version > 1.0.0... (cached) yes
Checking for bluez... (cached)
Looking for framework bluez... (cached)
Using pkg-config for bluez... (cached) no
Looking for lib bluez... (cached) no
Checking for ao... (cached)
Looking for framework ao... (cached)
Using pkg-config for ao... (cached) yes
Checking for openal... (cached)
Looking for framework openal... (cached) yes
Checking for sfml... (cached)
Looking for framework sfml... (cached)
Using pkg-config for sfml... (cached) no
Looking for lib sfml... (cached) no
Checking for wxWidgets >= 2.8... (cached) yes
Checking for OpenGL... (cached)
Looking for framework OpenGL... (cached) yes
Checking for Cg... (cached)
Looking for framework Cg... (cached) yes
Checking for GLEW... (cached)
Looking for framework GLEW... (cached)
Using pkg-config for glew... (cached) no
Looking for lib GLEW... (cached) yes
Plugin_PadSimpleEvnt Doesn't work without testgl
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: Build/Darwin-i386-release
Compiling Build/Darwin-i386-release/Source/Core/AudioCommon/Src/OpenALStream.o
Source/Core/AudioCommon/Src/Mixer.h:28: warning: 'class CMixer' has virtual functions
but non-virtual destructor
Source/Core/AudioCommon/Src/OpenALStream.cpp: In member function 'virtual bool
OpenALStream::Start()':
Source/Core/AudioCommon/Src/OpenALStream.cpp:37: error: invalid conversion from
'ALCubyte*' to 'const ALCchar*'
Source/Core/AudioCommon/Src/OpenALStream.cpp:37: error: initializing argument 1 of
'ALCdevice* alcOpenDevice(const ALCchar*)'
Source/Core/AudioCommon/Src/OpenALStream.cpp: In member function 'virtual void
OpenALStream::SoundLoop()':
Source/Core/AudioCommon/Src/OpenALStream.cpp:141: warning: unused variable
'ulBytesWritten'
scons: *** [Build/Darwin-i386-release/Source/Core/AudioCommon/Src/OpenALStream.o] Error 1
scons: building terminated because of errors.
Updated by youme9 over 15 years ago
@ sonicadvance
All fixed! Thanks for all the help. As promised, I'll try to find a place to post the
compiled build.
Updated by Sonicadvance1 over 15 years ago
Nice
This issue is about the binary crashing though, so I need information of it crashing
or not on other people's computers. :D
Updated by youme9 over 15 years ago
All you need is to get the latest reision using svn, then you need to comment out
line 37 of OpenAlStream.cpp. The program now runs, and does fine without line 37 of
the code, but has some issues with the preferences windows.
Updated by youme9 over 15 years ago
I don't think the issues with the preference windows are due to OpenAlStream.cpp
though, since it handles audio (which is sort of incomplete on dolphin to begin with.)
Updated by Sonicadvance1 over 15 years ago
Indeed it's not. I've looked in to those and I can't find out why it doesn't work.
Updated by nicola.chiesa over 15 years ago
It does compile correctly on my system and does not crash on start (r3100).
However I am not able to start any game and the setting windows opens but with a
warning (Could not read ./User/Wii/shared2/sys/SYSCONF. Please resover the SYSCONF
file to that location.) No seting can be changed in the setting window.
And when I try to run a game I get the Warnng: SetupWiiMem: Cant find the setting
file. and Dolphin crashes.
when run from the terminal this is the output:
$ Binary/Darwin-i386/Dolphin.app/Contents/MacOS/Dolphin
32:28:337 N: BOOT Loading Settings from ./User/Config/Dolphin.ini
handler instance 0x0
32:28:383 N: BOOT Starting application
32:28:383 N: BOOT Loading Settings from ./User/Config/Dolphin.ini
32:28:427 W: COMMON IsDirectory: stat failed on
./USER/WII/TITLE/00000001/00000002/CONTENT: No such file or directory
36:30:376 N: BOOT Saving Settings to ./User/Config/Dolphin.ini
wiiuse v0.12 loaded.
By: Michael Laforest <thepara[at]gmail{dot}com>
http://wiiuse.net http://wiiuse.sf.net
[INFO] Found 1 bluetooth device(s).
[INFO] Connected to wiimote [id 1].
36:34:258 N: BOOT Booting /Volumes/LaCie/Dolphin/ISO/GuinnessWorldRecordsTheVideoGame.iso
Bus error
Updated by Sonicadvance1 over 15 years ago
I wouldn't trust Wii game booting. And no wiimote control under OSX kinda stops it a bit.
Updated by nicola.chiesa over 15 years ago
ok, both warnings are gone by moving the Sys and User folders under
/Library/Application Support/Dolphin/
still loading a game crash Dolphin:
$ Binary/Darwin-i386/Dolphin.app/Contents/MacOS/Dolphin
24:56:096 N: BOOT Loading Settings from ./User/Config/Dolphin.ini
handler instance 0x0
24:56:142 N: BOOT Starting application
24:56:142 N: BOOT Loading Settings from ./User/Config/Dolphin.ini
24:56:180 W: COMMON IsDirectory: stat failed on
./USER/WII/TITLE/00000001/00000002/CONTENT: No such file or directory
2009-04-29 00:25:02.304 Dolphin[7442:50ab] An uncaught exception was raised
2009-04-29 00:25:02.305 Dolphin[7442:50ab] Error (1007) creating CGSWindow
2009-04-29 00:25:02.305 Dolphin[7442:50ab] *** Terminating app due to uncaught
exception 'NSInternalInconsistencyException', reason: 'Error (1007) creating CGSWindow'
2009-04-29 00:25:02.306 Dolphin[7442:50ab] Stack: (
2441457931,
2531491387,
2441457387,
2441457450,
2430412176,
2430407027,
2429471777,
2429468891,
2429467286,
382292684,
382254227,
382251506,
1082320,
419663,
2532602005,
2532601682
)
Trace/BPT trap
In OpenGL plugin window is shown for the Full screen video mode
and Windowed resolution.
Updated by youme9 over 15 years ago
@nicola.chiesa
Try getting the latest version of Dolphin, recompiling it, then, run it without
removing the directories.If scons turns up an error message about OpenAlStream.cpp,
just comment out (type "//" in front of) line 27 of that source file.
Updated by sl1nk3.s over 15 years ago
Try to boot a GC game, AFAIK, Wii games don't even work on Linux there's nearly no
chance for it to work on OSX :(
Updated by Sonicadvance1 over 15 years ago
Well, I've actually gotten Wii games working, I've even played a full match in SSBB.
There is 0% chance of it working in OSX though with how Wiiuse isn't even implemented.
Updated by youme9 over 15 years ago
Yeah, Mac support really has to get better. They really need to implement Wiimote
support. There's only so much debugging can do...
Updated by Anonymous over 15 years ago
Issue 1013 has been merged into this issue.
Updated by XTra.KrazzY over 15 years ago
dunno if mac actually works. Does it?
I heard sonic1 made compiling with xcode a huge success but no more than that...
Updated by XTra.KrazzY over 15 years ago
Issue 601 has been merged into this issue.
Updated by XTra.KrazzY over 15 years ago
Issue 900 has been merged into this issue.
Updated by Sonicadvance1 over 15 years ago
Works halfway. WX has a high chance of crashing Dolphin, Wii games don't work, at
least the ones I tried, and the graphics are screwed up, not sure why that is. I
blame bugs being in the OS X Nvidia driver, I had to work around a few bugs in my own
code for it.
Updated by peter.schwarz over 15 years ago
For the graphics fixes, or just to work in general? I've had to make a few code
changes as well.
Updated by XTra.KrazzY over 15 years ago
wii games don't work on all non-windows machines.
Updated by sl1nk3.s over 15 years ago
Issue 1141 has been merged into this issue.
Updated by peter.schwarz over 15 years ago
Sonicadvance: Could you list your graphics bug work-arounds in the forum for Mac OS
X svn builds ( http://forums.dolphin-emu.com/thread-1429.html )?
Updated by Sonicadvance1 over 15 years ago
I didn't do any work arounds, I just had to run it multiple times and hope WX would
stop crashing me.
Updated by celgilles over 15 years ago
The trick is to use the dolphin's build option "wxconfig=/opt/local/bin/wx-config" so that it uses wxWidgets
2.8.10 installed by the Macports collection instead of the one installed by Mac OS X in /usr/lib/wx/ &
/usr/include/wx.Then you can also configure the Graphics-plugin...however some basic settings (Dual-Core)
can't be set via the wx GUI (you can however enable Dual-Core via the Dolphin.ini file in your
~/Library/Application Support/Dolphin/User/
Compile the dolphin-svn (I tried with svn-3917) with:
#/usr/bin/svn checkout http://dolphin-emu.googlecode.com/svn/trunk/ dolphin-emu-read-only
#cd dolphin-emu-read-only/
#scons verbose=yes wxconfig=/opt/local/bin/wx-config CC=gcc-4.2 CXX=g++-4.2
You don't even need to change SConscript to use gcc-4.2 and g++-4.2, the command above will do it!
It will just stop and display the error with OpenALStream.o: It's easy just open the header file:
"Source/Core/AudioCommon/Src/OpenALStream.h"
and change the lines 30-33:
#elif defined(APPLE)
#include "openal/al.h"
#include "openal/alc.h"
#else
to:
#elif defined(APPLE)
#include "../../../../Externals/OpenAL/include/al.h"
#include "../../../../Externals/OpenAL/include/alc.h"
#else
then compile again:
#scons verbose=yes wxconfig=/opt/local/bin/wx-config CC=gcc-4.2 CXX=g++-4.2
and it should build you "Dolphin.app" for Mac OS X in "dolphin-emu-read-only/Binary/Darwin-i386/"
Open "Dolphin.app" and try to configure the "Graphics" plug-in and this should work....
Updated by tmator over 15 years ago
You not need to modify "Source/Core/AudioCommon/Src/OpenALStream.h", you need openal
1.1 and it will work without modification
Updated by celgilles over 15 years ago
thanks for the tip.
However the macports.org collection just lists version 1.0 of OpenAL, and OpenAL-website has only version 1.0
too to download for Mac OS X....correct me if I'm wrong.
Updated by tmator over 15 years ago
I update the wiki page http://code.google.com/p/dolphin-emu/wiki/MacOSX_Build with
openal installation
Updated by celgilles over 15 years ago
Thanks a lot! Can you also update the Mac OS X wiki page on how to build dolphin with "scons" so that gcc and
g++ must be version 4.2 ? Default XCode gcc is 4.0....
In fact to use the command:
#scons verbose=yes wxconfig=/opt/local/bin/wx-config CC=gcc-4.2 CXX=g++-4.2
Or patch the file "SConstruct" to use gcc-4.2 and g++-4.2.
Updated by Sonicadvance1 almost 15 years ago
For those watching, Dolphin works in OSX, although it's slow, and at least Snow
Leopard is recommended. just need to compile with jittest=true since regular JIT crashes.
Updated by celgilles almost 15 years ago
Nice and encouraging to hear that it works on OS X Snow Leopard...I tried with jittest=true but not go :-(
Please can you tell which version of wxWidgets you have on OS X 10.6 ? The 2.9-svn branch ? And which dolphin-
svn version ?
It always stops compiling on Snow Leopard with this error:
{{{
scons: *** [Build/Darwin-i386-release/Source/Core/AudioCommon/Src/AudioCommon.o] Error 1
}}}
I try to build with wxWidgets-2.9-svn from source, which installs in /usr/local/bin/ (since Macports wxWidgets-
2.8.9 doesn't work):
{{{
scons verbose=yes wxconfig=/usr/local/bin/wx-config osx=64cocoa noao=true jittest=true
}}}
Any suggestions and help will be greatly appreciated ;-)
Updated by Sonicadvance1 almost 15 years ago
You can try compiling without wx with the nowx=true option
Updated by celgilles almost 15 years ago
hmmm...tried to build dolphin-svn 4613 (removed old directory and fresh checkout) with these commands on
Snow Leopard and the latest Macports (without wxWidgets of course):
#scons verbose=yes osx=64cocoa jittest=true nowx=true
#scons verbose=yes jittest=true nowx=true
but get tons of errors:
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:166: error: expected unqualified-id
before '-' token
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:170: error: expected unqualified-id
before '-' token
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:171: error: expected unqualified-id
before '-' token
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:173: error: expected unqualified-id
before '-' token
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:174: error: expected unqualified-id
before '-' token
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:181: error: expected constructor,
destructor, or type conversion before 'extern'
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:186: error: expected constructor,
destructor, or type conversion before '' token
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:190: error: expected constructor,
destructor, or type conversion before '' token
In file included from /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:28,
from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13,
from Source/Plugins/Plugin_VideoSoftware/Src/../../Plugin_VideoOGL/Src/cocoaGL.h:1,
from Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.h:55,
from Source/Plugins/Plugin_VideoSoftware/Src/HwRasterizer.h:24,
from Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp:27:
/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h:60: error: expected
unqualified-id before ',' token
/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h:60: confused by earlier errors,
bailing out
scons: *** [Build/Darwin-i386-release/Source/Plug
Any suggestions and help will be greatly appreciated ;-)
Updated by karkisuni almost 15 years ago
I'm getting the same crazy framework errors. It's as if it's not recognizing obj-c syntax
at all. Seems like an easy fix to just tell it to interpret it as obj-c, but I'm not sure how.
Updated by leon.oosterwijk almost 15 years ago
I got as far as karkisuni did. I compiles but then errors like so:
woodstock:dolphin-emu-read-only leon$ scons verbose=yes osx=64cocoa jittest=true nowx=true
CC=gcc-4.2 CXX=g++-4.2
scons: Reading SConscript files ...
Checking for pkg-config version > 0.15.0... (cached) yes
Looking for macports... (cached) Adding port lib and include path(cached) yes
Looking for fink... (cached) no
Checking for sdl lib version > 1.0.0... (cached) yes
Checking for bluez... (cached)
Looking for framework bluez... (cached)
Using pkg-config for bluez... (cached) no
Looking for lib bluez... (cached) no
Checking for ao... (cached)
Looking for framework ao... (cached)
Using pkg-config for ao... (cached) yes
Checking for alsa... (cached)
Looking for framework alsa... (cached)
Using pkg-config for alsa... (cached) no
Looking for lib alsa... (cached) no
Checking for sfml-network... (cached)
Looking for framework sfml-network... (cached)
Using pkg-config for sfml-network... (cached) no
Looking for lib sfml-network... (cached) no
WX not found or disabled, not building GUI
Checking for OpenGL... (cached)
Looking for framework OpenGL... (cached) yes
Checking for Cg... (cached)
Looking for framework Cg... (cached) yes
Checking for GLEW... (cached)
Looking for framework GLEW... (cached)
Using pkg-config for glew... (cached) no
Looking for lib GLEW... (cached) yes
Checking for OpenGL... (cached)
Looking for framework OpenGL... (cached) yes
Checking for GLEW... (cached)
Looking for framework GLEW... (cached)
Using pkg-config for glew... (cached) no
Looking for lib GLEW... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: Build/Darwin-i386-release
g++-4.2 -o Build/Darwin-i386-release/Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.os -c -fno-
exceptions -fno-strict-aliasing -msse2 -Wall -Wwrite-strings -Wshadow -Wpointer-arith -Wpacked -
Wno-conversion -fvisibility-inlines-hidden -fPIC -fno-exceptions -fno-strict-aliasing -msse2 -Wall -
Wwrite-strings -Wshadow -Wpointer-arith -Wpacked -Wno-conversion -arch x86_64 -m64 -fPIC -
D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DGCC_HASCLASSVISIBILITY -D_GNU_SOURCE=1 -
D_THREAD_SAFE -ISource/Core/Common/Src -ISource/Core/DiscIO/Src -ISource/PluginSpecs -
ISource/Core/Core/Src -ISource/Core/DebuggerWX/Src -IExternals/Bochs_disasm -IExternals/LZO -
IExternals/SOIL -IExternals/Lua -IExternals/WiiUseSrc/Src -ISource/Core/VideoCommon/Src -
ISource/Core/InputCommon/Src -ISource/Core/AudioCommon/Src -
ISource/Core/DebuggerUICommon/Src -ISource/Core/DSPCore/Src -I/opt/local/include -
I/opt/local/include/SDL Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8,
from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from Source/Plugins/Plugin_VideoSoftware/Src/../../Plugin_VideoOGL/Src/cocoaGL.h:1,
from Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.h:56,
from Source/Plugins/Plugin_VideoSoftware/Src/HwRasterizer.h:24,
from Source/Plugins/Plugin_VideoSoftware/Src/DebugUtil.cpp:27:
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:180: error: stray '@' in
program
Updated by tmator almost 15 years ago
- Status changed from Work started to Fixed
Updated by celgilles almost 15 years ago
I have wxwidgets 2.8 from macports working on Snow Leopard and all the other macports libraries...however it
stops at the beginning when launching "scons":
{{{
Checked out revision 4741.
scons: Reading SConscript files ...
Checking for pkg-config version > 0.15.0... (cached) yes
Looking for macports... (cached) Adding port lib and include path(cached) yes
Looking for fink... (cached) no
Checking for sdl lib version > 1.0.0... (cached) yes
Checking for bluez... (cached)
Looking for framework bluez... (cached)
Using pkg-config for bluez... (cached) no
Looking for lib bluez... (cached) no
Checking for ao... (cached)
Looking for framework ao... (cached)
Using pkg-config for ao... (cached) yes
Checking for alsa... (cached)
Looking for framework alsa... (cached)
Using pkg-config for alsa... (cached) no
Looking for lib alsa... (cached) no
Checking for sfml-network... (cached)
Looking for framework sfml-network... (cached)
Using pkg-config for sfml-network... (cached) no
Looking for lib sfml-network... (cached) no
Checking for wxWidgets >= 2.8... (cached) yes
AttributeError: 'tuple' object has no attribute 'startswith':
File "/Downloads/dolphin/dolphin-emu-read-only/SConstruct", line 431:
duplicate=0
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-
1.2.0/SCons/Script/SConscript.py", line 612:
return apply(method, args, kw)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-
1.2.0/SCons/Script/SConscript.py", line 549:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-
1.2.0/SCons/Script/SConscript.py", line 259:
exec file in call_stack[-1].globals
File "/Downloads/dolphin/dolphin-emu-read-only/Build/Darwin-i386-
release/Externals/Bochs_disasm/SConscript", line 18:
CCFLAGS = env.filterWarnings(env['CCFLAGS']),
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/scons-1.2.0/SCons/Environment.py",
line 217:
return apply(self.method, nargs, kwargs)
File "SconsTests/utils.py", line 8:
for flag in flags
File "SconsTests/utils.py", line 9:
if not flag.startswith('-W')
}}}
any suggestions ?