Re: Need help: SWIG related build error for python-pivy?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 13, 2019 at 10:36 AM Jerry James <loganjerry@xxxxxxxxx> wrote:
On Thu, Sep 12, 2019 at 10:51 AM Richard Shaw <hobbes1069@xxxxxxxxx> wrote:
> On Thu, Sep 5, 2019 at 9:18 PM Jerry James <loganjerry@xxxxxxxxx> wrote:
>> The errors indicate that the compiler cannot find the standard C++
>> headers.  These are the first things I would check:
>> 1. Does the spec file include BuildRequires: gcc-c++?
>
> I didn't (hadn't needed it before) but I added it with no change to the errors...
>
>> 2. Is setup.py choosing g++ as the compiler?
>
> I can't tell, it's just running swig with the -c++ option which is correct. I don't know what swig is doing in the background...
>
>> 3. Is -nostdinc++ showing up in the build flags?
>
> Not that I can tell...

Okay, and then I also said:

>> If all of those check out, maybe you could share your spec files.

I'm happy to help you look at this, but you'll need to provide a way
to reproduce the issue.

I actually did make some progress... Pivy currently passes -includeall to swig, and from my googling that's generally a bad idea so I'm applying a patch to remove it. 

I still don't know much about swig but my understanding is that keeps it from trying to process all the headers and instead just the ones in the swig template. 

Now the error is narrowed down to:

But it's erroring on the second 2nd binding (and there's many more)

=== Generating pivy/coin_wrap.cpp for coin ===
swig -w302,306,307,312,314,325,361,362,467,389,503,509,510 -py3 -c++ -python -D__PIVY__ -I. -Ifake_headers -I"/usr/include" -Iinterfaces  -o pivy/coin_wrap.cpp interfaces/coin.i
=== Generating pivy/gui/soqt_wrap.cpp for soqt ===
swig -w302,306,307,312,314,325,361,362,467,389,503,509,510 -py3 -c++ -python -D__PIVY__ -I. -Ifake_headers -I"/usr/include" -Iinterfaces  -o pivy/gui/soqt_wrap.cpp interfaces/soqt.i
SWIG did not generate wrappers successfully! ** Aborting **

BUILDSTDERR: Inventor/fields/SoField.i:10: Warning 303: %extend defined for an undeclared class SoField.
BUILDSTDERR: Inventor/SbString.i:17: Warning 303: %extend defined for an undeclared class SbString.
BUILDSTDERR: /usr/include/Inventor/Qt/devices/SoQtDevice.h:73: Error: Syntax error in input(1).

Next I'm going to patch it to run swig with debugging so I can get more details... My guess is there was an incompatible change between Coin3 and Coin4 but I'm running the latest checkout of Pivy and it's all the same upstream. If that's the case then they messed up.

Thanks,
Richard
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux