English 中文(简体)
我无法建造Adalq
原标题:I cannot build Pythonqt
  • 时间:2010-04-19 11:43:45
  •  标签:
  • python
  • qt

It is PythonQt : pythonqt.sourceforge.net. I am using PythonQt-1.1 . Qt version 4.6.2 and Python 2.6.4.10 . Visual studio 2008 From instruction:

cd PythonQtRoot  
vcvars32  
qmake  
nmake

在我打了q后,它生成了文件,然后我输入了 n,但他说,“ake(22):fatal差错 U1000: syntax误差:......”在宏观职业中失踪。 我在这里错了什么?

预告......。

问题回答

我记得,在建造其他包裹时,在Win32的Qt最近释放时,遇到了类似的问题。 顺便说一句。 在进行了相当数量的洗bu之后,我发现,q正在使用错误的 m子。 促成这种情况的一件事就是强迫使用正确的pec子,例如:

export QMAKESPEC=win32-msvc2008 or export QMAKESPEC=win32-msvc

To find the list of all valid mkspecs, I looked in the directory: c:Qt4.6.0mkspecs or c:Qt2010.01qtmkspecs

对于一个具体的一揽子计划,我与我的系统安装的其他工具有一些冲突,不得不将实际的ks子卷宗引向使用绝对道路的正确工具,但像你这样认为,这不是你的问题。 象你这样的声音正在产生一种ake-兼容的成像文件,而不是一个ake-兼容的马克文件,因此这一固定办法应当发挥作用。

页: 1

我建议把“沙尔克”项目作为你与CMake的同一项目的一部分。

然后,你必须固定地将其建设成为您的项目的一部分(将SHARED从add_library移至,同时铭记,如果你愿意的话,你就必须从其基准代码上删除>>>>>(PythonQt),然后在适当的<代码>上添加“CMakeLists.tx。 基本文件如下:

if( PYTHON_QT_SUPPORT )
    message(STATUS ":::: Including support for PythonQT Shell ::::")
    # Include Python directories
    find_package(PythonLibs REQUIRED)
    include_directories("${PYTHON_INCLUDE_DIR}")
    # Include PythonQt 
    include_directories(YOURPATHTOPYTHONQT/pythonqt/src)
    add_subdirectory(YOURPATHTOPYTHONQT/pythonqt)
endif(PYTHON_QT_SUPPORT)

你们是否保证更新建筑群中的“灰色”/Qt版本,并将你们所需要的一切纳入你们的环境?

In buildpython.prf: update python version

使用视像演播室指挥器,并跳出 v32。

你们的环境道路:

set PATH=E:	oolkitsTrolltechQt-4.8.6Win_x64_6.1_v12_debuglib;%PATH%
set PATH=E:	oolkitsTrolltechQt-4.8.6Win_x64_6.1_v12_debugin;%PATH%
set PYTHON_PATH=E:	oolkitsPython2.7.9Win_x64_6.1_v12
set PYTHON_LIB=E:	oolkitsPython2.7.9Win_x64_6.1_v12libs

在这些道路上,你应当:

  • all qt libraries (QtCore4.dll, etc.)
  • all qt executables (uic, moc, etc)
  • python26.dll, python.exe

我也不得不更新其他文件。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签