On Thursday 04 November 2010 19:57:44 Dan Halbert wrote:
> I have been trying to do a Windows build of the git head of Pyside, but
> have been having trouble. 
> 1. I am using full Visual Studio 2008 (not Express)
> 2. I had to change create_package.py in pyside-pkgsetup-0.4.2 to use
> shell=True. Otherwise it could not find the git executable (which is in
> %PATH%). I am a little mystified why this worked for anyone else. 
> def run_process(*args):
> p = subprocess.Popen(args, shell=True)   # was False
> ...
>  
> 3. Now, with the latest git head as of a couple of hours ago, I get this
> error late in the build: 
> [ 99%] Building CXX object
> tests/pysidetest/CMakeFiles/pysidetest.dir/moc_testobject.cxx.obj
> moc_testobject.cxx
> C:\Documents and
> Settings\dhalbert\Desktop\pyside-pkgsetup-0.4.2\modules\pyside\build\tests
> \pysidetest\moc_testobject.cxx(46) : warning C4273: 'staticMetaObject' :
> inconsistent dll linkage c:\documents and
> settings\dhalbert\desktop\pyside-pkgsetup-0.4.2\modules\pyside\build\tests
> \pysidetest\../../../tests/pysidetest/testobject.h(9) : see previous
> definition of 'public: static QMetaObject const
> TestObject::staticMetaObject' C:\Documents and
> Settings\dhalbert\Desktop\pyside-pkgsetup-0.4.2\modules\pyside\build\tests
> \pysidetest\moc_testobject.cxx(46) : error C2491:
> 'TestObject::staticMetaObject' : definition of dllimport static data
> member not allowed 
> Any ideas why this is not working? I'm a bit stuck at the moment, as I'm
> hitting the 0.4.2 crash on termination that has many duplicate bugs in
> Bugzilla and need a later version. If 0.4.3 is imminent, I could wait for
> that. Does anyone publish nightly (or more often) Windows builds? 
> Thanks,
> Dan

You can call cmake with -DBUILD_TESTS=FALSE to avoid this error.

By the error message I would say it's an issue related to different behavior 
of GCC and MSVC regarding to symbol visibility, as we don't test our code with 
MSVC very often, but always before any release, this kind of error could occur 
between releases.
  

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PySide mailing list
PySide@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Reply via email to