Thanks Tim, Jean-Paul, and Barry for your input!

I've managed to set various variables appropriately but It does concern me that this didn't happen at the time of installing the packages. I've still not got qt4 building successfully yet. Let me break down the entire saga as it has happen thus far. I have a project that compiles and runs fine on my laptop under Ubuntu (qt4 v. 4.5.2). I copied to my SL box (SL 5.4) and qt4 will not recognize my project. I somewhat understand this since the project was created in a newer version. I also copied my binary file which was built under Ubuntu, and it wouldn't run either. ( "[r...@....]# ./myprog" ) This is where I thought that maybe if I just re-built it under SL it would run. That's where I ran into the variable issues. I resolved those manually, and I can build but I get the following error:

Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Segmentation fault

So then I had the bright idea to just un-install completely, download the latest greatest from Trolltech and go from there. Actually I wanted the same version that was on my laptop but I couldn't find anything but the latest version to download. I followed the directions exactly as stated from the ./configure. (by the way, this is not just qt4, this was qtcreator IDE which seems to be a nice environment) So after installation, everything seemed great. The new QtCreator opens my project, has all my files, etc but when I try to build within QtCreator, I get the following error:

No valid Qt version set. Set one in Tools/Options
Error while building project controller_v_0-01
When executing build step 'QMake'
Canceled build.

Now I go and try to do as I'm told, but I can't change the Qt in PATH option. I'm really thinking I'm completely missing something somewhere. I feel like these issues would not be here if I had installed properly.

Any ideas?

Thanks in advance!

Dave


Tim Edwards wrote:
On 04/03/10 01:30, David McLean wrote:
  
Hi all,
Typically, I try to figure these type issues out myself but I'm
currently under a time crunch, hence the email blast! Now to the point:

Has anyone had any issues with installing Qt4 and getting it working
properly? It seems as though the basic Qt4 package does not include the
make utility "qmake". Therefore I tried uninstalling it and downloading
direct from Trolltech and building it from source which still leaves me
some issues. I do appear to have qmake but I seem to have some
environment variable issues. When I try to compile a project, I get the
following error response:

[r...@dhcp...]# qmake
Could not find mkspecs for your QMAKESPEC(linux-g++) after trying:
        /usr/local/Trolltech/Qt-4.6.2/mkspecs
Error processing project file:
/home/dmclean/Desktop/VIIBRE/StageController/controller_v_0-01/controller_v_0-01.pro

Looks like I've got something looking in the wrong place but the
"/usr/local/Trolltech/Qt-4.6.2/mkspecs" is the correct path to the
"mkspecs" directory. I do not have a lot of experience with
system/environment variables. Has anyone experienced anything similar to
this?
    

yum whatprovides "*/qmake"
>From the output of that you can see it looks like qt4-devel is needed:

yum install qt4-devel

Tim Edwards
  


--

David L. McLean
Research Automation Engineer

VIIBRE -Vanderbilt Institute for Integrative Biosystems Research and Education

6805.4 Stevenson Center
VU Station B 351807
Nashville, TN 37235-1807

Ph: 615.343.4124
Fx: 615.322.4977
www.vanderbilt.edu/viibre

[email protected]

Reply via email to