Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Japanese
  4. PySide のビルドエラー

PySide のビルドエラー

Scheduled Pinned Locked Moved Japanese
3 Posts 2 Posters 3.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    miklabo
    wrote on 25 Jun 2014, 08:32 last edited by
    #1

    はじめまして、現在下記サイトを参考に PySide のビルドをしようとしているのですが、
    エラーが出て対処法が不明なため質問させていただきます。

    Building PySide on a Windows System — PySide 1.2.2 documentation
    http://pyside.readthedocs.org/en/latest/building/windows.html

    ■ 環境
    Windows7 Pro 32bit
    Python 3.3.5
    Qt 4.8.5 ( qt-win-opensource-4.8.5-vs2010 )
    CMake 3.0.0
    Windows SDK v7.1
    OpenSSL 1.0.1h(32-bit)

    ■ 作業

    必要なソフトをインストール

    下記パスを追加

    C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin;C:\Program Files\Microsoft Visual Studio 10.0\VC\bin;C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files\CMake\bin

    PySide-1.2.2.tar.gz をダウンロード、解凍しコマンドを実行

    @cd PySide-1.2.2

    python setup.py build --qmake=C:\Qt\4.8.5\bin\qmake.exe --openssl=C:\OpenSSL-Win32\bin@

    結果して下記のような Warning と Error が発生しました。
    ( 長いため一部を抜き出し、改行を削除しています )

    @CMake Warning at CMakeLists.txt:2 (project):
    To use the NMake generator, cmake must be run from a shell that can use the
    compiler cl from the command line. This environment does not contain
    INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
    work.

    CMake Error at C:/Program Files/CMake/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61 (message):
    The C compiler "C:/Program Files/Microsoft Visual Studio
    10.0/VC/bin/cl.exe" is not able to compile a simple test program.

    LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
    LINK Pass 1 failed. with 1104
    NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' :
    return code '0xffffffff'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
    10.0\VC\bin\nmake.exe"' : return code '0x2'
    Stop.@

    パスを追加するなどしてみましたが解決せずどうしたらよいか分からない状態です。
    何か対処法などありましたらご教授お願いします。

    1 Reply Last reply
    0
    • T Offline
      T Offline
      takumiasaki
      wrote on 30 Jun 2014, 10:13 last edited by
      #2

      Visual Studio のコンパイラを利用する環境が整ってないように見えます。
      Visual Studio 関連の環境変数を手作業で設定するのは大変なので、
      C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat を使うか、Visual Studioのスタートメニュー内にあるコマンドプロンプトから利用することをお勧めします。

      1 Reply Last reply
      0
      • M Offline
        M Offline
        miklabo
        wrote on 1 Jul 2014, 05:01 last edited by
        #3

        vcvarsall.bat を実行したところ以下のエラーが発生しました。
        @Setting environment for using Microsoft Visual Studio 2010 x86 tools.
        ERROR: Cannot determine the location of the VS Common Tools folder.@

        また、Visual Studio のメニューはなかったため、Microsoft Windows SDK v7.1のWindows SDK 7.1 Command Prompt を使って コマンドを実行したところ、以前より進んだのですが、以下のエラーが発生しました。
        @c:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\intrin.h(26) : fatal error C1083: Cannot open include file: 'ammintrin.h': No such file or directory
        NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe' : return code '0x2'
        Stop.
        NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe"' : return code '0x2'
        Stop.
        NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe"' : return code '0x2'
        Stop.
        error: Error compiling shiboken@

        うまくは行ってませんが、環境に問題がありそうだということはわかったので、
        もうちょっと自分で調べてみたいと思います。

        返信有難うございました。

        1 Reply Last reply
        0

        1/3

        25 Jun 2014, 08:32

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved