Building from source (Linux) gives Python include error

All other Source.Python topics and issues.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Building from source (Linux) gives Python include error

Postby BackRaw » Mon Jul 16, 2012 12:08 am

Hey,

I compiled source-python on Winodws correctly, I got the source-python.dll file. But on Linux, when I use make after I "cmaked" the /src directory, I get the following somewhere near the beginning:

Code: Select all

/home/srcds/plugin/source-python/src/thirdparty/boost/boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory
/home/srcds/plugin/source-python/src/thirdparty/boost/boost/python/detail/wrap_python.hpp:75:24: error: patchlevel.h: No such file or directory
/home/srcds/plugin/source-python/src/thirdparty/boost/boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or higher is required for this version of Boost.Python.
/home/srcds/plugin/source-python/src/thirdparty/boost/boost/python/detail/wrap_python.hpp:142:21: error: Python.h: No such file or directory
Am I doing something wrong?
Omega_K2
Senior Member
Posts: 227
Joined: Sat Jul 07, 2012 3:05 am
Location: Europe
Contact:

Postby Omega_K2 » Mon Jul 16, 2012 12:12 am

the include directory is actually upper case for some reason [this is a bug, either in the make files or when creating the directory structure someone ingored that linux is case sensitive]
just go to src/thirdparty/python_linux and do ln -s Include include
your-name-here
Developer
Posts: 168
Joined: Sat Jul 07, 2012 1:58 am

Postby your-name-here » Mon Jul 16, 2012 12:21 am

I fucked up the naming of the directory structure, my bad. Fixed now.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Mon Jul 16, 2012 12:39 am

your-name-here wrote:I fucked up the naming of the directory structure, my bad. Fixed now.


So, should I hg update the project ?

EDIT: has no effect :/
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Mon Jul 16, 2012 12:41 am

He has not pushed this change yet. Wait until his next commit is pushed and you should be good to go.

Satoon
your-name-here
Developer
Posts: 168
Joined: Sat Jul 07, 2012 1:58 am

Postby your-name-here » Mon Jul 16, 2012 12:46 am

I spoke too soon. I committed it but I am having a ton of trouble pushing so I gotta redownload the source and build again.

I will post a zip file containing the full build for linux and windows.
Omega_K2
Senior Member
Posts: 227
Joined: Sat Jul 07, 2012 3:05 am
Location: Europe
Contact:

Postby Omega_K2 » Mon Jul 16, 2012 12:54 am

BackRaw wrote:So, should I hg update the project ?

EDIT: has no effect :/


Edit: You also need to do hg pull then hg update to get the current version; overlooked it in the guide - sorry :P

Edit2: Nevermind, source has been updated. Should work now without the workaroound.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Mon Jul 16, 2012 1:09 am

Yeah, 100% built target, thanks guys =)

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 18 guests