Crystal Space
Welcome, Guest. Please login or register.
August 29, 2014, 02:58:01 am

Login with username, password and session length
Search:     Advanced search
9008 Posts in 2043 Topics by 8357 Members
Latest Member: Msyexelcarl03
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Crystal w/Python Won't Build
« previous next »
Pages: [1] Print
Author Topic: Crystal w/Python Won't Build  (Read 24638 times)
Lokked
Newbie
*
Posts: 4


View Profile Email
« on: September 28, 2013, 04:35:44 am »

Hello,

Base Information:
- Version of CS - 2.0 (stable release, downloaded Sept 25/13)
- Version of winlibs package (if on windows) - x64 2.0_002
- Operating system - Windows 7 x64 Professional
- Compiler - Whatever MSVC 2010 SP1 uses with Windows SDK 7.1
- Video card - NVidia Geforce x680
- Driver - ...

Using Windows + MSVC 2010, I am successful in building, from the msvc10 folder, the wkstypical Solution.

I recently tried to build wkspytypical and all but the Python-related projects built (13 failed).

The general error is:
Error C3861 'PyString_AsString': Identifier not found

There are a lot of these, with different functions, obviously.

I build in x64 and Debug/ReleaseWithDll

Here are the versions of Software I have:
MSVC 2010 SP1
Windows SDK 7.1
Crystal Space Source 2.0 (stable)
Python 3.3 (installed)
SWIG 2.0.11 (I could not determine how or whether it is necessary to "Install" this. It was extracted from it's ZIP to its own folder 1 level below the CS Project Folder)
cs-winlibs-x64-2.0_002.exe (installed as VC Typical, to the root directory of the CS Project)

Here is exactly what I did:
1. Extract CS Source to .\CS\
2. Install Python 3.3
3. Extract SWIG to .\SWIG 2.0.11\
4. Install the cs-winlibs to .\CS\
5. Set Environment Variables:
- CRYSTAL = .\CS\
- PATH = [python path]; .\CS\include\bindings\python\
- PYTHON_INCLUDE = [python path]\include\
- PYTHON_LIB = [python path]\libs\
- PYTHONPATH = .\CS\scripts\python\frozen\
6. In MSVC, set Include Directories:
- PYTHON_INCLUDE; .\CS\include; .\CS\winlibs\x64\include
7. In MSVC, set Library Directories:
- PYTHON_LIB; .\CS\libs; .\CS\winlibs\x64\lib; .\SWIG 2.0.11\Libs  (!! I guessed at this last one. I'm honestly not sure how SWIG is incorporated during the building of CS)

And Build. All but the 13 Python projects build.

What's going on? I can try an older version of Python, perhaps...
« Last Edit: September 28, 2013, 04:38:39 am by Lokked » Logged
Lokked
Newbie
*
Posts: 4


View Profile Email
« Reply #1 on: September 28, 2013, 07:50:47 pm »

I resolve my own problem:

From python.org, I downloaded an older version of Python (1.7) and this fixed the issue above. It introduced something new, however. Some linker errors having to do with delayimp.lib. I found this in my Program Files(x86)/MSVS2010/VC folder, so adding this as a Library Directory resolved that.

Hooray!
Logged
Karenlucy
Newbie
*
Posts: 1


View Profile Email
« Reply #2 on: November 19, 2013, 11:30:16 am »

 max is the shoes you need, which is one of the most modern sporting shoes designed for running. They always demand the principle of combining fashion and comfort. The most recent style of this line is the 2012, revealed just few months ago. If you are a crazy fan of sports, you'll love this Cheap Max 2012 model at the first picture. Every style of is appreciated and well-liked by customers. 2012 are also popular. It has made a new hot fashion trend these days. Comfort and quality are the two foremost key elements that will make Max 2012 so well liked. The design of Nike jogging shoes is modern with two-layer fine mesh high. This specific latest 2012 model is certainly the best style of the line. Ways to get cheap max 2012 shoes is to visit wholesale Nike online store who supplies discount 2012.
Logged

karen
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.208 seconds with 16 queries.