Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable set to NOTFOUND #6

Open
mrmurphy opened this issue Mar 23, 2012 · 25 comments
Open

Variable set to NOTFOUND #6

mrmurphy opened this issue Mar 23, 2012 · 25 comments

Comments

@mrmurphy
Copy link

Hi there! I'm trying to install on CentOs 6 using the buildscripts.
I followed the instructions in the readme, and I end up having the configuration fail on pyside install with this error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_PHONON_INCLUDE_DIR
   used as include directory in directory /home/murphyra/repos/BuildScripts/pyside/build/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Checking for VideoCaptureDevice in phonon -- not found
CMake version greater than 2.8 necessary to run tests
-- QT_SRC_DIR variable not set or graphviz not found, apidoc generation targets disabled.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_PHONON_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/murphyra/repos/BuildScripts/pyside/PySide/phonon

-- Configuring incomplete, errors occurred!

I've checked, and the directory /usr/include/phonon exists.
I even tried setting that env variable, but it has no effect on the error.

Even after scouring the interwebs, I can't find a fix to this. Any advice?

@thp
Copy link
Member

thp commented Mar 23, 2012

How have you installed Qt, and which version do you use?

@thp thp closed this as completed Mar 23, 2012
@thp thp reopened this Mar 23, 2012
@mrmurphy
Copy link
Author

I have:
QT SDK Version 4.8.
I installed it from the offline installation binary downloaded from the QT website.

I did set the environment variable QT_SDK_HOME to where the sdk lives:
/home/murphyra/QtSDK

I was able to temporarily circumvent the issue by setting the variable myself in the cmake script to : /usr/includes/phonon
but I ended up with make errors after reaching 95% built in the pyside directory.

Murphy Randle
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Friday, March 23, 2012 at 4:43 PM, Thomas Perl wrote:

How have you installed Qt, and which version do you use?


Reply to this email directly or view it on GitHub:
#6 (comment)

@thp
Copy link
Member

thp commented Mar 24, 2012

On Fri, Mar 23, 2012 at 07:51:14PM -0700, murphyspublic wrote:

I have:
QT SDK Version 4.8.
I installed it from the offline installation binary downloaded from the QT website.

I did set the environment variable QT_SDK_HOME to where the sdk lives:
/home/murphyra/QtSDK

Did you also try installing Qt 4.8 via Homebrew? The Homebrew version of
installing it is more tested than using the Qt SDK, so before we start
trying other things, I'd like you to test it via Homebrew ("brew install
qt") and remove the QT_SDK_HOME from the environment.sh script.

Thanks,
Thomas

@mrmurphy
Copy link
Author

Hmm, I'd love to do that, but I'm only finding Homebrew for OS X. Am I missing something?
I'm running on CentOs 6. Is there a way that I should get Qt 4.8 through yum?
---- Edit ----
If I write the command:
yum install qt.x86_64

It tells me:
Package 1:qt-4.6.2-20.el6.x86_64 already installed and latest version

It seems that that is saying I have QT 4.6 installed. But I check the InstallationLog.txt file in the SDK directory, and I see lines like this:
addDownloadable "qt-4.8.0-desktop-gcc.7z"
Which make me think I have qt 4.8 installed.
Thanks for your patience!

Murphy Randle

On Saturday, March 24, 2012 at 8:37 AM, Thomas Perl wrote:

On Fri, Mar 23, 2012 at 07:51:14PM -0700, murphyspublic wrote:

I have:
QT SDK Version 4.8.
I installed it from the offline installation binary downloaded from the QT website.

I did set the environment variable QT_SDK_HOME to where the sdk lives:
/home/murphyra/QtSDK

Did you also try installing Qt 4.8 via Homebrew? The Homebrew version of
installing it is more tested than using the Qt SDK, so before we start
trying other things, I'd like you to test it via Homebrew ("brew install
qt") and remove the QT_SDK_HOME from the environment.sh (http://environment.sh) script.

Thanks,
Thomas


Reply to this email directly or view it on GitHub:
#6 (comment)

@thp
Copy link
Member

thp commented Mar 24, 2012

Hi,

On Sat, Mar 24, 2012 at 07:54:34AM -0700, murphyspublic wrote:

Hmm, I'd love to do that, but I'm only finding Homebrew for OS X. Am I
missing something?
I'm running on CentOs 6. Is there a way that I should get Qt 4.8 through yum?

Oh yeah, sorry - I somehow assume you run OS X. Of course, if you are
running CentOS, get it via yum or (if the packages are too hold) build
Qt 4.8 from source and install system-wide. You might be able to use the
Fedora dependencies script included in the BuildScripts.

HTH.
Thomas

@mrmurphy
Copy link
Author

Okay, that's probably where I got the Qt that's installed. I ran the dependency scripts and all of them installed successfully. Do you think I'm confusing my system by having the SDK installed as well? Should I just start over and install fresh, without installing the SDK?
(I'm running CentOs on a virtual machine, so it wouldn't be too hard to nuke it and start over.)

@thp
Copy link
Member

thp commented Mar 24, 2012

On Sat, Mar 24, 2012 at 09:06:32AM -0700, murphyspublic wrote:

Okay, that's probably where I got the Qt that's installed. I ran the
dependency scripts and all of them installed successfully. Do you
think I'm confusing my system by having the SDK installed as well?
Should I just start over and install fresh, without installing the
SDK?
(I'm running CentOs on a virtual machine, so it wouldn't be too hard
to nuke it and start over.)

Yes, if you can, starting over would be the easiest solution. Also, if
you don't have a specific reason for using CentOS, feel free to try
Ubuntu 11.10 and use the dependencies script for that. It definitely
works with 11.10 and the dependencies script without the Qt SDK.

HTH :)
Thomas

@mrmurphy
Copy link
Author

Okay, I'm starting over.
I'd love to use Ubuntu, but I need to distribute to machines running Redhat 5, so I'm trying to get as close as I can with the virtual machine so as to ease the distribution process.

I'll let you know how it goes. Thank you!

@mrmurphy
Copy link
Author

Okay, I started over. I did not install the SDK at all, I'm running on CentOs 6.2.
I ran the dependencies install script, and everything installs just fine. After doing that, if I type:

yum -y install qt

It says that QT is already installed.

When I run the build_and_install script, I get the same problem as before:
QT_PHONON_INCLUDE_DIR set to NOTFOUND.

Any more ideas?

@thp
Copy link
Member

thp commented Mar 27, 2012

Which version of Qt is installed? ("qmake -version" should tell you the Qt version)

@mrmurphy
Copy link
Author

Okay, maybe that's the issue. When I try to run qmake, it says "command not found".
The same thing happened when I installed the SDK, however, so maybe I didn't have my path set up right before.
It appears that the install of qt from yum is not complete, then? Maybe it's just the qt development headers that were installed.

What do you suggest is the best way for me to get a complete setup of QT that will work with these PySide set up scripts?

@thp
Copy link
Member

thp commented Mar 27, 2012

Search for "qt-devel" packages or similar. Make sure that all these are installed. Also, have a look if there are separate "-devel" packages for phonon and/or qmake. Make sure that the Qt version is at least 4.7 for best results (4.6 should also work, but it's the minimum, and won't include Qt Declarative). I'd assume that CentOS might have a really old version of Qt, but I'm not sure.

@mrmurphy
Copy link
Author

Ok, great! I'll do some searching. Thank you!

@mrmurphy
Copy link
Author

Ah, I see that I'm using qt 4.6.2.
I had to issue this command to find it:

/usr/bin/qmake-qt4 --version

I'll try and update it to 4.7.

@mrmurphy
Copy link
Author

Okay, I've upgraded to Qt 4.7, and I've searched for packages such as phonon-devel (finding none).
I still get the same problem I had originally.
Do you think I'm running an older version of something that expects phonon to be in a different place?

@ramblex
Copy link

ramblex commented Aug 22, 2012

I came across this problem on Centos 6.3 too when using build_and_install and worked around it by using the following cmake in pyside (essentially adding -DQT_PHONON_INCLUDE_DIR):

cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/pkg/pyside-sandbox -DBUILD_TYPE=Release -DENABLE_ICECC=0 -DQT_PHONON_INCLUDE_DIR=/usr/include/phonon

@thp
Copy link
Member

thp commented Nov 5, 2012

Does the solution suggested by ramblex work for all affected users in this issue?

@NgoHuy
Copy link

NgoHuy commented Mar 3, 2013

wao, ramblex's solution works for me 👍

@alflanagan
Copy link

Getting same error using "pip install pyside" on CentOS release 6.3 (Final).

QT-related CentOS packages installed are:
qt-x11-4.6.2-24.el6.x86_64
qt-mysql-4.6.2-24.el6.x86_64
qt-4.6.2-24.el6.x86_64
qt-devel-4.6.2-24.el6.x86_64

I'm afraid it's not clear from ramblex's answer where to make that change. I'm trying to get PySide because it's a dependency of IPython's qtconsole, not to use it directly.

@metaperl
Copy link

metaperl commented Apr 1, 2013

I am getting this same error using Qt-4.6.2 on RHEL. I do not know how to implement the solutions suggested by either ramblex or murphyrandle, because neither of them made it clear what file they edited and how.

@ramblex
Copy link

ramblex commented Apr 1, 2013

@metaperl It's a while since I did this but you can try adding:

-DQT_PHONON_INCLUDE_DIR=/usr/include/phonon \

after line 54 in build_and_install

@thp
Copy link
Member

thp commented Apr 1, 2013

I'd appreciate if someone could come up with a patch to fix this, and I'd happily merge it.

@metaperl
Copy link

metaperl commented Apr 1, 2013

@ramblex - I dont have a build_and_install file. I typed pip install pyside.. but i do appreciate your efforts. This is what the build directory looks like:

  /home/tbrannon/prg/webbot/build/pyside:
  total used in directory 180 available 268120564
  drwxrwxr-x. 8 tbrannon tbrannon  4096 Apr  1 13:05 .
  drwxrwxr-x. 3 tbrannon tbrannon  4096 Apr  1 13:05 ..
  -rw-rw-r--. 1 tbrannon tbrannon 16239 Apr  1 13:05 distribute_setup.py
  -rw-rw-r--. 1 tbrannon tbrannon  1245 Apr  1 13:05 MANIFEST.in
  drwxrwxr-x. 3 tbrannon tbrannon  4096 Apr  1 13:05 pip-egg-info
  -rw-rw-r--. 1 tbrannon tbrannon 20885 Apr  1 13:05 PKG-INFO
  -rw-rw-r--. 1 tbrannon tbrannon 10564 Apr  1 13:05 popenasync.py
  -rw-rw-r--. 1 tbrannon tbrannon  9930 Apr  1 13:05 popenasync.pyc
  drwxrwxr-x. 2 tbrannon tbrannon  4096 Apr  1 13:05 PySide
  drwxrwxr-x. 3 tbrannon tbrannon  4096 Apr  1 13:05 pyside_build
  drwxrwxr-x. 3 tbrannon tbrannon  4096 Apr  1 13:05 pyside_install
  -rw-rw-r--. 1 tbrannon tbrannon  6107 Apr  1 13:05 pyside_postinstall.py
  drwxrwxr-x. 2 tbrannon tbrannon  4096 Apr  1 13:05 pysideuic
  -rw-rw-r--. 1 tbrannon tbrannon  1512 Apr  1 13:05 qtinfo.py
  -rw-rw-r--. 1 tbrannon tbrannon  2320 Apr  1 13:05 qtinfo.pyc
  -rw-rw-r--. 1 tbrannon tbrannon 15272 Apr  1 13:05 README.txt
  -rw-rw-r--. 1 tbrannon tbrannon    64 Apr  1 13:05 setup.cfg
  -rw-rw-r--. 1 tbrannon tbrannon 26861 Apr  1 13:05 setup.py
  drwxrwxr-x. 7 tbrannon tbrannon  4096 Apr  1 13:05 sources
  -rw-rw-r--. 1 tbrannon tbrannon  6220 Apr  1 13:05 utils.py
  -rw-rw-r--. 1 tbrannon tbrannon  5965 Apr  1 13:05 utils.pyc

  /home/tbrannon/prg/webbot/build/pyside/PySide:
  total used in directory 8 available 268120564
  drwxrwxr-x. 2 tbrannon tbrannon 4096 Apr  1 13:05 .
  drwxrwxr-x. 8 tbrannon tbrannon 4096 Apr  1 13:05 ..

  /home/tbrannon/prg/webbot/build/pyside/pyside_build:
  total used in directory 12 available 268120564
  drwxrwxr-x. 3 tbrannon tbrannon 4096 Apr  1 13:05 .
  drwxrwxr-x. 8 tbrannon tbrannon 4096 Apr  1 13:05 ..
  drwxrwxr-x. 4 tbrannon tbrannon 4096 Apr  1 13:08 py2.7-qt4.6.2-64bit-release

  /home/tbrannon/prg/webbot/build/pyside/pyside_build/py2.7-qt4.6.2-64bit-release:
  total used in directory 16 available 268121728
  drwxrwxr-x. 4 tbrannon tbrannon 4096 Apr  1 13:08 .
  drwxrwxr-x. 3 tbrannon tbrannon 4096 Apr  1 13:05 ..
  drwxrwxr-x. 6 tbrannon tbrannon 4096 Apr  1 13:08 pyside
  drwxrwxr-x. 9 tbrannon tbrannon 4096 Apr  1 13:08 shiboken

  /home/tbrannon/prg/webbot/build/pyside/pyside_build/py2.7-qt4.6.2-64bit-release/pyside:
  total used in directory 76 available 268121728
  drwxrwxr-x.  6 tbrannon tbrannon  4096 Apr  1 13:08 .
  drwxrwxr-x.  4 tbrannon tbrannon  4096 Apr  1 13:08 ..
  -rw-rw-r--.  1 tbrannon tbrannon 47698 Apr  1 13:08 CMakeCache.txt
  drwxrwxr-x.  5 tbrannon tbrannon  4096 Apr  1 13:08 CMakeFiles
  -rw-rw-r--.  1 tbrannon tbrannon  1179 Apr  1 13:08 cmake_uninstall.cmake
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 libpyside
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 plugins
  drwxrwxr-x. 17 tbrannon tbrannon  4096 Apr  1 13:08 PySide

  /home/tbrannon/prg/webbot/build/pyside/pyside_build/py2.7-qt4.6.2-64bit-release/pyside/CMakeFiles:
  total used in directory 108 available 268121728
  drwxrwxr-x. 5 tbrannon tbrannon  4096 Apr  1 13:08 .
  drwxrwxr-x. 6 tbrannon tbrannon  4096 Apr  1 13:08 ..
  -rw-r--r--. 1 tbrannon tbrannon  1014 Apr  1 13:08 CMakeCCompiler.cmake
  -rw-rw-r--. 1 tbrannon tbrannon    85 Apr  1 13:08 cmake.check_cache
  -rw-r--r--. 1 tbrannon tbrannon 33716 Apr  1 13:08 CMakeCheckQtClassTest.log
  -rw-r--r--. 1 tbrannon tbrannon  1078 Apr  1 13:08 CMakeCXXCompiler.cmake
  -rwxrwxr-x. 1 tbrannon tbrannon  6997 Apr  1 13:08 CMakeDetermineCompilerABI_C.bin
  -rwxrwxr-x. 1 tbrannon tbrannon  7283 Apr  1 13:08 CMakeDetermineCompilerABI_CXX.bin
  -rw-r--r--. 1 tbrannon tbrannon  6564 Apr  1 13:08 CMakeError.log
  -rw-r--r--. 1 tbrannon tbrannon  9354 Apr  1 13:08 CMakeOutput.log
  -rw-r--r--. 1 tbrannon tbrannon   438 Apr  1 13:08 CMakeSystem.cmake
  drwxrwxr-x. 3 tbrannon tbrannon  4096 Apr  1 13:08 CMakeTmp
  drwxrwxr-x. 2 tbrannon tbrannon  4096 Apr  1 13:08 CompilerIdC
  drwxrwxr-x. 2 tbrannon tbrannon  4096 Apr  1 13:08 CompilerIdCXX

  /home/tbrannon/prg/webbot/build/pyside/pyside_build/py2.7-qt4.6.2-64bit-release/pyside/PySide:
  total used in directory 88 available 268121724
  drwxrwxr-x. 17 tbrannon tbrannon  4096 Apr  1 13:08 .
  drwxrwxr-x.  6 tbrannon tbrannon  4096 Apr  1 13:08 ..
  drwxrwxr-x.  2 tbrannon tbrannon  4096 Apr  1 13:08 CMakeFiles
  -rw-rw-r--.  1 tbrannon tbrannon   181 Apr  1 13:08 __init__.py
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 phonon
  -rw-rw-r--.  1 tbrannon tbrannon 15297 Apr  1 13:08 pyside_global.h
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtCore
  drwxrwxr-x.  4 tbrannon tbrannon  4096 Apr  1 13:08 QtGui
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtHelp
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtMultimedia
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtNetwork
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtOpenGL
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtScript
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtSql
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtSvg
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtTest
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtUiTools
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtXml
  drwxrwxr-x.  3 tbrannon tbrannon  4096 Apr  1 13:08 QtXmlPatterns

  /home/tbrannon/prg/webbot/build/pyside/pyside_build/py2.7-qt4.6.2-64bit-release/pyside/PySide/phonon:
  total used in directory 12 available 268121724
  drwxrwxr-x.  3 tbrannon tbrannon 4096 Apr  1 13:08 .
  drwxrwxr-x. 17 tbrannon tbrannon 4096 Apr  1 13:08 ..
  drwxrwxr-x.  2 tbrannon tbrannon 4096 Apr  1 13:08 CMakeFiles

  /home/tbrannon/prg/webbot/build/pyside/pyside_build/py2.7-qt4.6.2-64bit-release/pyside/PySide/phonon/CMakeFiles:
  total used in directory 8 available 268121724
  drwxrwxr-x. 2 tbrannon tbrannon 4096 Apr  1 13:08 .
  drwxrwxr-x. 3 tbrannon tbrannon 4096 Apr  1 13:08 ..

  /home/tbrannon/prg/webbot/build/pyside/pyside_install:
  total used in directory 12 available 268120564
  drwxrwxr-x. 3 tbrannon tbrannon 4096 Apr  1 13:05 .
  drwxrwxr-x. 8 tbrannon tbrannon 4096 Apr  1 13:05 ..
  drwxrwxr-x. 6 tbrannon tbrannon 4096 Apr  1 13:08 py2.7-qt4.6.2-64bit-release

  /home/tbrannon/prg/webbot/build/pyside/pyside_install/py2.7-qt4.6.2-64bit-release:
  total used in directory 24 available 268121736
  drwxrwxr-x. 6 tbrannon tbrannon 4096 Apr  1 13:08 .
  drwxrwxr-x. 3 tbrannon tbrannon 4096 Apr  1 13:05 ..
  drwxrwxr-x. 2 tbrannon tbrannon 4096 Apr  1 13:08 bin
  drwxrwxr-x. 3 tbrannon tbrannon 4096 Apr  1 13:08 include
  drwxrwxr-x. 5 tbrannon tbrannon 4096 Apr  1 13:08 lib
  drwxrwxr-x. 3 tbrannon tbrannon 4096 Apr  1 13:08 share

  /home/tbrannon/prg/webbot/build/pyside/pyside_install/py2.7-qt4.6.2-64bit-release/bin:
  total used in directory 1940 available 268121736
  drwxrwxr-x. 2 tbrannon tbrannon    4096 Apr  1 13:08 .
  drwxrwxr-x. 6 tbrannon tbrannon    4096 Apr  1 13:08 ..
  -rwxr-xr-x. 1 tbrannon tbrannon 1975514 Apr  1 13:08 shiboken

  /home/tbrannon/prg/webbot/build/pyside/sources:
  total used in directory 28 available 268120564
  drwxrwxr-x.  7 tbrannon tbrannon 4096 Apr  1 13:05 .
  drwxrwxr-x.  8 tbrannon tbrannon 4096 Apr  1 13:05 ..
  drwxrwxr-x.  2 tbrannon tbrannon 4096 Apr  1 13:05 patchelf
  drwxrwxr-x.  8 tbrannon tbrannon 4096 Apr  1 13:05 pyside
  drwxrwxr-x.  3 tbrannon tbrannon 4096 Apr  1 13:05 pyside-examples
  drwxrwxr-x.  6 tbrannon tbrannon 4096 Apr  1 13:05 pyside-tools
  drwxrwxr-x. 12 tbrannon tbrannon 4096 Apr  1 13:05 shiboken



@lck
Copy link

lck commented Apr 2, 2013

Hi,
pip install pyside uses PySide/pyside-setup build scripts to build PySide not PySide/BuildScripts
R.

@conerbob
Copy link

The fix for this on CentOS 6.4 is to change the following file: PySide-1.2.1/source/pyside/PySide/phonon/CMakeLists.txt

add in:
set (QT_PHONON_INCLUDE_DIR "/usr/include/phonon")

Then it will compile past this issue, however, there is another issue that appears later on in the compile. Will post on that separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants