Compile Error, I think it's related to python

Compile Error, I think it's related to python

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
wazzubrad
Posts: 9
Joined: 22 May 2007, 03:37

Compile Error, I think it's related to python

Post by wazzubrad »

Here is what I am getting...

ude -I/usr/include/GL -I/usr/include/freetype2 -I/usr/include/SDL -I/usr/include/python2.4 tools/unitsync/pybind.cpp
tools/unitsync/pybind.cpp:4:20: error: Python.h: No such file or directory
tools/unitsync/pybind.cpp:66: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:75: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:84: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:92: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:99: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:106: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:113: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:123: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:132: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:140: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:149: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:156: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:164: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:172: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:180: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:189: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:196: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:205: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:214: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:222: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:229: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:237: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:296: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:334: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:342: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:350: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:358: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:365: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:373: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:381: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:389: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:397: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:405: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:413: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:420: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:428: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:436: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:445: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:460: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:468: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:476: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:486: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:494: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:503: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:516: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:525: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:541: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:551: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:563: error: expected initializer before '*' token
tools/unitsync/pybind.cpp:584: error: 'PyMethodDef' does not name a type
tools/unitsync/pybind.cpp:660: error: expected constructor, destructor, or type conversion before 'initunitsync'
scons: *** [build/unitsync/tools/unitsync/pybind.os] Error 1
scons: building terminated because of errors.

Thanks ahead of time, Brad
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Post 1 thread in 1 forum in 1 category. And look at other threads, this issue has already been discussed within the last 2 weeks.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Don't double post please.

Missing python development files. (Python.h)

Did scons configure work correctly? (If so it's a configure bug that it doesn't test for Python.h)
wazzubrad
Posts: 9
Joined: 22 May 2007, 03:37

Post by wazzubrad »

That is the error I get during scons.
wazzubrad
Posts: 9
Joined: 22 May 2007, 03:37

Post by wazzubrad »

I have python 2.5 installed with the headers
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Install python 2.4 with headers for now, I think I didn't finish migrating the source to detect python 2.5 too...
wazzubrad
Posts: 9
Joined: 22 May 2007, 03:37

Post by wazzubrad »

I am running Mandriva 2007.1 and I would be ok with installing 2.4 except when using mcc to remove python 2.5 and to install 2.4, it asks me to remove 121 other dependencies which I don't want to do. I checked rpmfind.net for the python-devel 2.4 header but I couldn't locate it. Any ideas? Thanks for the help and sorry for the double post.

Brad
Post Reply

Return to “Help & Bugs”