David Ferlier wrote:
Corrected your build problem on rev 3624 (trunk). You can use
build-vcproj="yes" now.
Thanks.
There is still one bug (in that revision at least):
hone-classic\trunk>scons build-vcproj="yes" softphone softphone-runtime
scons: Reading SConscript files ...
NameError: name 'phapi_py_env' is not defined:
File "SConstruct", line 55:
env.SConscript(wifoScript)
File "C:\Python24\scons\SCons\Script\SConscript.py", line 508:
return apply(_SConscript, [self.fs,] + files, {'exports' : exports})
File "C:\Python24\scons\SCons\Script\SConscript.py", line 239:
exec _file_ in stack[-1].globals
File "wifo\trunk\SConscript", line 50:
env.WengoBuildInDir("phapi/SConscript", "wifo/phapi")
File "wengoscons\wengoscons\common\wengoenv.py", line 202:
duplicate = 1)
File "C:\Python24\scons\SCons\Script\SConscript.py", line 508:
return apply(_SConscript, [self.fs,] + files, {'exports' : exports})
File "C:\Python24\scons\SCons\Script\SConscript.py", line 239:
exec _file_ in stack[-1].globals
File "build-wengo\win32-debug\wifo\phapi\SConscript", line 150:
if phapi_py_env.WengoOsIsLinux() or phapi_py_env.WengoOsIsBSD():
Line 150 in softphone-classic\trunk\wifo\trunk\phapi\SConscript is
if phapi_py_env.WengoOsIsLinux() or phapi_py_env.WengoOsIsBSD():
phapi_py_env = phapi_env.Copy( )
phapi_py_env.WengoUseLibrary("phapi")
phapi_py_env["LIBPREFIX"] = ""
phapi_py_lib = phapi_py_env.WengoSharedLibrary("pyphapi", "pyphapi.c")
phapi_py_env.WengoAlias("phapi-python-wrapper", phapi_py_lib)
Without being familiar to Scons or WengoScons but just looking at this one file,
I'd guess the first line (150) should be
if phapi_env.WengoOsIsLinux() or phapi_env.WengoOsIsBSD():
Since I'm on Windows, I just commented out this portion entirely. After this it
works and I have my .vcproj files.
But I'm still of the opinion, if anyone has extra time to do it, the generation
of vcproj-files should be such that you don't need to compile anything. (This is
how Symbian SDK's work, for instance.) If there are syntax or other errors along
the way, scons will stop and you don't get your vcproj files, which is an
annoyance because you didn't want to compile anything in the first place. In
fact, you'd want to be able to open things into VS in order to fix the errors!
Even when it works, it kind of sucks to wait >1h because building the complete
WengoPhone is so slow. Of course now that I have the files, it's not a problem
for me personally, just an opinion.
Heh, it seems like this is the end of my last working day this year, so merry
christmas and a very happy new year to everybody on this list too.
henrik
--
[EMAIL PROTECTED]
+358-40-5697354
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel