Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38697

Compiling Python with static runtime library (VS2010)

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jonatan.magnusson@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'python)': 0.05; 'variant': 0.07; 'python': 0.09; 'core,': 0.09; 'runtime': 0.09; 'subject:library': 0.09; 'static': 0.13; 'library': 0.15; 'library"': 0.16; 'macro': 0.16; 'preprocessor': 0.16; 'received:10.11': 0.16; 'w9xpopen': 0.16; 'windows': 0.19; 'followed': 0.20; 'trying': 0.21; 'libraries': 0.22; 'supported': 0.26; 'fine': 0.28; '"python"': 0.29; "i'm": 0.29; '(including': 0.30; 'worked': 0.30; 'to:addr:python-list': 0.33; 'changed': 0.34; 'received:google.com': 0.34; 'project': 0.34; 'doing': 0.35; 'something': 0.35; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'visual': 0.36; 'subject:with': 0.36; 'charset:us-ascii': 0.36; 'subject: (': 0.36; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'build': 0.39; 'where': 0.40; 'skip:" 10': 0.40; 'link': 0.60; 'header:Message-Id:1': 0.62
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version:x-mailer; bh=lchL1fDh4jzciPs3cxKIFksSOtaS4ASjdpF+X7NVBfc=; b=B4A6QXQQ2jNJj6qVxy6/uewGAvTYxkyA+igCgL1dV0AipDtqHuFCtn7Bdi1tZfRgT/ Z5AfKsrJ0sSCohrD0vY8UWUM+NB7XNeJBOYd69hXIDu/hoK5tobaEZnmjCpTGLUbaN3T R2kGG1yJDtjV2xpRJnPLtPD1buw7v6c59nRDoNSPnmZwHkI9hbQNuzsXM8IpMdU6o+eL 2bynxUI9Cc9W0ZbAvgO0sCxGOrLwKXpv9cQfcTCoZPIrm4LTxgQMjmjzL8rCA14BKJSH q70KmykHlnyEaCZtZfeV+YcnCmcEd/b1afN/d7mBGUJVpXUrCUZzp1LlXM8KZ1ehcdMl BMGA==
X-Received by 10.112.17.194 with SMTP id q2mr5912568lbd.7.1360598149947; Mon, 11 Feb 2013 07:55:49 -0800 (PST)
From Jonatan Magnusson <jonatan.magnusson@gmail.com>
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding quoted-printable
Subject Compiling Python with static runtime library (VS2010)
Date Mon, 11 Feb 2013 16:55:48 +0100
To python-list@python.org
Mime-Version 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer Apple Mail (2.1499)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1662.1360598151.2939.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1360598152 news.xs4all.nl 6908 [2001:888:2000:d::a6]:46352
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38697

Show key headers only | View raw



Hi

I'm trying to build Python 3.3.0 on Windows using Visual Studio 2010 Express.

I opened the solution (pcbuild.sln) and built the "python" project (including its dependencies of course) and that worked fine with just a few warnings.

But I need to build Python using the the static C runtime so I followed the instructions:

 * Changed "Runtime Library" to non-DLL variant (/MT or /MTd) for each of the projects (make_buildinfo, make_versioninfo, kill_python, python core, w9xpopen and python)
 * Changed preprocessor macro Py_ENABLED_SHARED to Py_NO_ENABLE_SHARED in the pythoncore project
 * Changed configuration type from Dynamic Library to Static library for the pythoncore project

Then I recompiled and once again it built with just a few warnings, until the link stage where "__imp__Py_Main" was unresolved!

Is it no longer supported to build against the static runtime libraries or am I doing something wrong?


Regards,
Jonatan Magnusson

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Compiling Python with static runtime library (VS2010) Jonatan Magnusson <jonatan.magnusson@gmail.com> - 2013-02-11 16:55 +0100

csiph-web