Compiling...

Help center. Members helping members
Forum rules
This topic is 17 years and 7 months old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
Grundee
Member
Posts: 14
Joined: August 14th, 2006
Location: USA
Reputation: 0

Postby Grundee » Mon Aug 14, 2006 5:51 pm

Can anyone get this to compile on linux?

I am running x86-64 Kubuntu 6.06 and I have had trouble not only with the game, but with the stuff it depends on.

I am having problems getting PyAmanith to compile mostly.

I get this when I try to run python setup.py install:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.4
copying amanith.py -> build/lib.linux-x86_64-2.4
running build_ext
building '_amanith' extension
--swig-cpp is deprecated - use --swig-opts=-c++
swigging amanith.i to amanith_wrap.cpp
swig -python -c++ -o amanith_wrap.cpp amanith.i
ownership.i:7: Error: Syntax error in input(1).

After that I get a few more pages of warnings, but that error there appears to be what is messing the whole thing up.

I attempted to remove the include from amanith.i just to see what it would do, it got past this part, but failed while compiling amanith_wrap.cpp.

Anyone else having these problems?
stjarvitude
Member
Posts: 1
Joined: August 15th, 2006
Reputation: 0

Postby stjarvitude » Tue Aug 15, 2006 2:44 am

i'm having the same problem on OS X:

Code: Select all

running install
running build
running build_py
copying amanith.py -> build/lib.macosx-10.4-fat-2.4
running build_ext
building '_amanith' extension
--swig-cpp is deprecated - use --swig-opts=-c++
swigging amanith.i to amanith_wrap.cpp
swig -python -c++ -o amanith_wrap.cpp amanith.i
ownership.i:7: Syntax error in input.
build/amanith/include/amanith/geometry/ginterval.h:146: Warning(362): operator= ignored
build/amanith/include/amanith/geometry/gvect.h:141: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gvect.h:146: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gquat.swig.h:146: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gquat.swig.h:152: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:314: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:319: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/gclassid.h:110: Warning(362): operator= ignored
build/amanith/include/amanith/gelement.h:155: Warning(362): operator= ignored
build/amanith/include/amanith/1d/ghermitecurve1d.h:95: Warning(362): operator= ignored
build/amanith/include/amanith/1d/gpolylinecurve1d.h:78: Warning(362): operator= ignored
build/amanith/include/amanith/2d/ghermitecurve2d.h:93: Warning(362): operator= ignored
build/amanith/include/amanith/2d/gmesh2d.h:614: Warning(362): operator= ignored
build/amanith/include/amanith/2d/gpolylinecurve2d.h:78: Warning(362): operator= ignored
build/amanith/include/amanith/2d/gtesselator2d.h:126: Syntax error in input.
build/amanith/include/amanith/2d/gtesselator2d.h:159: Syntax error in input.
build/amanith/include/amanith/rendering/gdrawstyle.h:627: Warning(362): operator= ignored
build/amanith/include/amanith/geometry/gvect.h:141: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gvect.h:146: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gvect.h:141: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gvect.h:146: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gvect.h:141: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gvect.h:146: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gquat.swig.h:146: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gquat.swig.h:152: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:314: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:319: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:314: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:319: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:314: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:319: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:314: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:319: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:314: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:319: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:314: Warning(389): operator[] ignored (consider using %extend)
build/amanith/include/amanith/geometry/gmatrix.h:319: Warning(389): operator[] ignored (consider using %extend)
typemaps.i:95: Warning(453): Can't apply (Amanith::GReal &OUTPUT). No typemaps are defined.
typemaps.i:96: Warning(453): Can't apply (Amanith::GPixelMap &INOUT). No typemaps are defined.
build/amanith/include/amanith/support/gutilities.h:147: Warning(509): Overloaded ToString(unsigned int const,char const *) is shadowed by ToString(int const,char const *) at build/amanith/include/amanith/support/gutilities.h:145.
build/amanith/include/amanith/support/gutilities.h:149: Warning(509): Overloaded ToString(short const,char const *) is shadowed by ToString(int const,char const *) at build/amanith/include/amanith/support/gutilities.h:145.
build/amanith/include/amanith/support/gutilities.h:151: Warning(509): Overloaded ToString(unsigned short const,char const *) is shadowed by ToString(int const,char const *) at build/amanith/include/amanith/support/gutilities.h:145.
build/amanith/include/amanith/support/gutilities.h:153: Warning(509): Overloaded ToString(signed char const,char const *) is shadowed by ToString(int const,char const *) at build/amanith/include/amanith/support/gutilities.h:145.
build/amanith/include/amanith/support/gutilities.h:155: Warning(509): Overloaded ToString(unsigned char const,char const *) is shadowed by ToString(int const,char const *) at build/amanith/include/amanith/support/gutilities.h:145.
build/amanith/include/amanith/support/gutilities.h:159: Warning(509): Overloaded Amanith::StrUtils::ToString(double const,char const *) is shadowed by ToString(float const,char const *) at build/amanith/include/amanith/support/gutilities.h:157.
build/amanith/include/amanith/gelement.h:283: Warning(509): Overloaded Amanith::GKeyValue(int const) is shadowed by Amanith::GKeyValue(bool const) at build/amanith/include/amanith/gelement.h:281.
build/amanith/include/amanith/gelement.h:281: Warning(509): Overloaded Amanith::GKeyValue(bool const) is shadowed by Amanith::GKeyValue(int const) at build/amanith/include/amanith/gelement.h:283.
build/amanith/include/amanith/gelement.h:295: Warning(509): Overloaded Amanith::GKeyValue(Amanith::GTimeValue const,int const) is shadowed by Amanith::GKeyValue(Amanith::GTimeValue const,bool const) at build/amanith/include/amanith/gelement.h:293.
build/amanith/include/amanith/gelement.h:293: Warning(509): Overloaded Amanith::GKeyValue(Amanith::GTimeValue const,bool const) is shadowed by Amanith::GKeyValue(Amanith::GTimeValue const,int const) at build/amanith/include/amanith/gelement.h:295.
build/amanith/include/amanith/gelement.h:307: Warning(509): Overloaded SetValue(int const) is shadowed by SetValue(bool const) at build/amanith/include/amanith/gelement.h:305.
build/amanith/include/amanith/gelement.h:305: Warning(509): Overloaded SetValue(bool const) is shadowed by SetValue(int const) at build/amanith/include/amanith/gelement.h:307.
build/amanith/include/amanith/gmath.h:73: Warning(509): Overloaded Amanith::GMath::Abs(double const) is shadowed by Amanith::GMath::Abs(float const) at build/amanith/include/amanith/gmath.h:69.
build/amanith/include/amanith/gmath.h:97: Warning(509): Overloaded Amanith::GMath::Ceil(double const) is shadowed by Amanith::GMath::Ceil(float const) at build/amanith/include/amanith/gmath.h:93.
build/amanith/include/amanith/gmath.h:116: Warning(509): Overloaded Amanith::GMath::Floor(double const) is shadowed by Amanith::GMath::Floor(float const) at build/amanith/include/amanith/gmath.h:112.
build/amanith/include/amanith/gmath.h:239: Warning(509): Overloaded Amanith::GMath::Acos(double const) is shadowed by Amanith::GMath::Acos(float const) at build/amanith/include/amanith/gmath.h:220.
build/amanith/include/amanith/gmath.h:288: Warning(509): Overloaded Amanith::GMath::Asin(double const) is shadowed by Amanith::GMath::Asin(float const) at build/amanith/include/amanith/gmath.h:269.
build/amanith/include/amanith/gmath.h:319: Warning(509): Overloaded Amanith::GMath::Atan(float const) is shadowed by Amanith::GMath::Atan(double const) at build/amanith/include/amanith/gmath.h:305.
build/amanith/include/amanith/gmath.h:351: Warning(509): Overloaded Amanith::GMath::Atan2(double const,double const) is shadowed by Amanith::GMath::Atan2(float const,float const) at build/amanith/include/amanith/gmath.h:341.
build/amanith/include/amanith/gmath.h:378: Warning(509): Overloaded Amanith::GMath::Cos(double const) is shadowed by Amanith::GMath::Cos(float const) at build/amanith/include/amanith/gmath.h:370.
build/amanith/include/amanith/gmath.h:401: Warning(509): Overloaded Amanith::GMath::Exp(double const) is shadowed by Amanith::GMath::Exp(float const) at build/amanith/include/amanith/gmath.h:395.
build/amanith/include/amanith/gmath.h:430: Warning(509): Overloaded Amanith::GMath::Log(float const) is shadowed by Amanith::GMath::Log(double const) at build/amanith/include/amanith/gmath.h:417.
build/amanith/include/amanith/gmath.h:455: Warning(509): Overloaded Amanith::GMath::Log2(float const) is shadowed by Amanith::GMath::Log2(double const) at build/amanith/include/amanith/gmath.h:446.
build/amanith/include/amanith/gmath.h:484: Warning(509): Overloaded Amanith::GMath::Log10(float const) is shadowed by Amanith::GMath::Log10(double const) at build/amanith/include/amanith/gmath.h:471.
build/amanith/include/amanith/gmath.h:546: Warning(509): Overloaded Amanith::GMath::Pow(float const,float const) is shadowed by Amanith::GMath::Pow(double const,double const) at build/amanith/include/amanith/gmath.h:536.
build/amanith/include/amanith/gmath.h:573: Warning(509): Overloaded Amanith::GMath::Sin(float const) is shadowed by Amanith::GMath::Sin(double const) at build/amanith/include/amanith/gmath.h:561.
build/amanith/include/amanith/gmath.h:600: Warning(509): Overloaded Amanith::GMath::Tan(float const) is shadowed by Amanith::GMath::Tan(double const) at build/amanith/include/amanith/gmath.h:588.
build/amanith/include/amanith/gmath.h:635: Warning(509): Overloaded Amanith::GMath::Sqrt(float const) is shadowed by Amanith::GMath::Sqrt(double const) at build/amanith/include/amanith/gmath.h:622.
build/amanith/include/amanith/gmath.h:660: Warning(509): Overloaded Amanith::GMath::BesselJ0(float const) is shadowed by Amanith::GMath::BesselJ0(double const) at build/amanith/include/amanith/gmath.h:648.
build/amanith/include/amanith/gmath.h:684: Warning(509): Overloaded Amanith::GMath::BesselJ1(float const) is shadowed by Amanith::GMath::BesselJ1(double const) at build/amanith/include/amanith/gmath.h:672.
build/amanith/include/amanith/gmath.h:708: Warning(509): Overloaded Amanith::GMath::BesselJN(int const,float const) is shadowed by Amanith::GMath::BesselJN(int const,double const) at build/amanith/include/amanith/gmath.h:696.
build/amanith/include/amanith/gmath.h:733: Warning(509): Overloaded Amanith::GMath::BesselY0(float const) is shadowed by Amanith::GMath::BesselY0(double const) at build/amanith/include/amanith/gmath.h:721.
build/amanith/include/amanith/gmath.h:757: Warning(509): Overloaded Amanith::GMath::BesselY1(float const) is shadowed by Amanith::GMath::BesselY1(double const) at build/amanith/include/amanith/gmath.h:745.
build/amanith/include/amanith/gmath.h:781: Warning(509): Overloaded Amanith::GMath::BesselYN(int const,float const) is shadowed by Amanith::GMath::BesselYN(int const,double const) at build/amanith/include/amanith/gmath.h:769.
build/amanith/include/amanith/gmath.h:835: Warning(509): Overloaded Amanith::GMath::BesselI0(float const) is shadowed by Amanith::GMath::BesselI0(double const) at build/amanith/include/amanith/gmath.h:809.
build/amanith/include/amanith/gmath.h:890: Warning(509): Overloaded Amanith::GMath::BesslI1(float const) is shadowed by Amanith::GMath::BesslI1(double const) at build/amanith/include/amanith/gmath.h:863.
build/amanith/include/amanith/gmath.h:919: Warning(509): Overloaded Amanith::GMath::Hypot(float const,float const) is shadowed by Amanith::GMath::Hypot(double const,double const) at build/amanith/include/amanith/gmath.h:905.
build/amanith/include/amanith/gmath.h:1012: Warning(509): Overloaded Amanith::GMath::RangeRandom(double const,double const) is shadowed by Amanith::GMath::RangeRandom(float const,float const) at build/amanith/include/amanith/gmath.h:1005.
build/amanith/include/amanith/gmath.h:1005: Warning(509): Overloaded Amanith::GMath::RangeRandom(float const,float const) is shadowed by Amanith::GMath::RangeRandom(double const,double const) at build/amanith/include/amanith/gmath.h:1012.
build/amanith/include/amanith/gmath.h:1040: Warning(509): Overloaded Amanith::GMath::Deg2Rad(double const) is shadowed by Amanith::GMath::Deg2Rad(float const) at build/amanith/include/amanith/gmath.h:1030.
build/amanith/include/amanith/gmath.h:1061: Warning(509): Overloaded Amanith::GMath::Rad2Deg(double const) is shadowed by Amanith::GMath::Rad2Deg(float const) at build/amanith/include/amanith/gmath.h:1051.
build/amanith/include/amanith/gmath.h:1297: Warning(509): Overloaded Amanith::GMath::AngleConversion(double const,Amanith::GAnglesMeasureUnit const,Amanith::GAnglesMeasureUnit const) is shadowed by Amanith::GMath::AngleConversion(float const,Amanith::GAnglesMeasureUnit const,Amanith::GAnglesMeasureUnit const) at build/amanith/include/amanith/gmath.h:1179.
build/amanith/include/amanith/numerics/gfilter.h:88: Warning(509): Overloaded Amanith::BoxFilter(float const) is shadowed by Amanith::BoxFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:80.
build/amanith/include/amanith/numerics/gfilter.h:109: Warning(509): Overloaded Amanith::TriangleFilter(float const) is shadowed by Amanith::TriangleFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:99.
build/amanith/include/amanith/numerics/gfilter.h:148: Warning(509): Overloaded Amanith::QuadraticFilter(float const) is shadowed by Amanith::QuadraticFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:129.
build/amanith/include/amanith/numerics/gfilter.h:191: Warning(509): Overloaded Amanith::CubicFilter(float const) is shadowed by Amanith::CubicFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:170.
build/amanith/include/amanith/numerics/gfilter.h:220: Warning(509): Overloaded Amanith::CatmullRomFilter(float const) is shadowed by Amanith::CatmullRomFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:206.
build/amanith/include/amanith/numerics/gfilter.h:229: Warning(509): Overloaded Amanith::GaussianFilter(float const) is shadowed by Amanith::GaussianFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:225.
build/amanith/include/amanith/numerics/gfilter.h:237: Warning(509): Overloaded Amanith::SincFilter(float const) is shadowed by Amanith::SincFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:233.
build/amanith/include/amanith/numerics/gfilter.h:251: Warning(509): Overloaded Amanith::BesselFilter(float const) is shadowed by Amanith::BesselFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:244.
build/amanith/include/amanith/numerics/gfilter.h:279: Warning(509): Overloaded Amanith::BellFilter(float const) is shadowed by Amanith::BellFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:265.
build/amanith/include/amanith/numerics/gfilter.h:353: Warning(509): Overloaded Amanith::HanningFilter(float const) is shadowed by Amanith::HanningFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:349.
build/amanith/include/amanith/numerics/gfilter.h:362: Warning(509): Overloaded Amanith::HammingFilter(float const) is shadowed by Amanith::HammingFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:358.
build/amanith/include/amanith/numerics/gfilter.h:371: Warning(509): Overloaded Amanith::BlackmanFilter(float const) is shadowed by Amanith::BlackmanFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:367.
build/amanith/include/amanith/numerics/gfilter.h:426: Warning(509): Overloaded Amanith::NormalFilter(float const) is shadowed by Amanith::NormalFilter(double const) at build/amanith/include/amanith/numerics/gfilter.h:420.
error: command 'swig' failed with exit status 3
Grundee
Member
Posts: 14
Joined: August 14th, 2006
Location: USA
Reputation: 0

Postby Grundee » Thu Aug 17, 2006 12:36 am

That is the exact same error I get.

I emailed the guy about it, but he hasn't replied yet (I guess he has a ton of "Your game has a virus" emails to sort through).
pKp
Member
Posts: 71
Joined: August 12th, 2006
Location: Besançon, France
Reputation: 0

Postby pKp » Sat Aug 19, 2006 6:21 pm

A rather common problem :(
Have you got the latest version & graphic drivers ?
Grundee
Member
Posts: 14
Joined: August 14th, 2006
Location: USA
Reputation: 0

Postby Grundee » Sat Aug 19, 2006 7:08 pm

The latest version of what, Python?
I should probably check, but I know I have the latest available using apt-get.

Actually the error looks like it is with swig...
Last edited by Grundee on Sat Aug 19, 2006 7:08 pm, edited 1 time in total.
Slith
Member
Posts: 1
Joined: August 27th, 2006
Location: Aus
Reputation: 0

Postby Slith » Mon Aug 28, 2006 3:24 am

Compiling as root?

Return to “Tech Support”

Who is online

Users browsing this forum: No registered users and 32 guests