QtAV icon indicating copy to clipboard operation
QtAV copied to clipboard

Unable to create the C++ code.

Open xDololow opened this issue 5 years ago • 3 comments

I'm trying to "python configure.py" but it gives me error: Unable to create the C++ code. Command: python configure.py --qmake D:\Qt\5.12.3\mingw73_32\bin\qmake.exe --qtav-base-dir C:\Users\xDololow\Desktop\kok\QtAV --no-qsci-api Output:

Configuring PyQtAV 1.12.0...
QtAV 5.12.3 is being used.
The QtAV .sip files will be installed in
C:\Users\xDololow\Desktop\kok\QtAV\share\sip.
PyQtAV will be installed in
C:\Users\xDololow\AppData\Local\Programs\Python\Python37\Lib\site-packages\PyQt5.
PyQt 5.11.3 is being used.
Qt 5.11.2 is being used.
sip 4.19.1 is being used.
The sip executable is
C:\Users\xDololow\AppData\Local\Programs\Python\Python37\sip.exe.
The PEP 484 stubs will be installed in
C:\Users\xDololow\AppData\Local\Programs\Python\Python37\Lib\site-packages\PyQt5.
Generating the C++ source for the QtAV module...
Error: Unable to create the C++ code.

xDololow avatar Sep 11 '19 06:09 xDololow

Did you ever find a fix for this? I'm having the same problem.

@aronbierbaum - I don't suppose you have some basic instructions/tutorial for using configure.py for someone with little-to-no C++ experience?

tctg-bryan avatar Jul 27 '21 16:07 tctg-bryan

Did you ever find a fix for this? I'm having the same problem.

nope

xDololow avatar Jul 28 '21 17:07 xDololow

I have not updated our build for a few years, but the configure.py script is very similar to the PyQt script. I believe the latest versions of PyQt have transitioned away from this method though. Here is an example of how I called the script.

python configure.py ^
   --destdir=%DEPS_ROOT%\qtav\install\Lib\python%PYTHON_VERSION%\site-packages ^
   --qtav-base-dir=%DEPS_ROOT%\qtav\install ^
   --pyqt-sipdir=%DEPS_ROOT%\pyqt\install\share\sip ^
   --sip-incdir=%DEPS_ROOT%\sip\install\include\python%PYTHON_VERSION% ^
   --verbose

python3 configure.py \
   --destdir=$DEPS_ROOT/qtav/install/lib/python$PYTHON_VERSION/site-packages \
   --qtav-base-dir=$DEPS_ROOT/qtav/install \
   --pyqt-sipdir=$DEPS_ROOT/pyqt/install/share/sip \
   --sip-incdir=$DEPS_ROOT/sip/install/include/python$PYTHON_VERSION \
   --verbose

aronbierbaum avatar Jul 28 '21 19:07 aronbierbaum