LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-02-2014, 07:14 PM   #1
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,409

Rep: Reputation: 141Reputation: 141
How to set include path when compiling mythtv with Qt4.8.6?


I've just downloaded Qt4.8.6 and installed it to Debian Squeeze in the default location "/usr/local/Trolltech/Qt-4.8.6". I'm trying to compile mythtv 0.27. The problem is that I don't know how to tell it to use the new Qt4 in /usr/local/Trolltech/Qt-4.8.6. Is it a matter of setting some environment variable? Do I need to set something in the config for mythtv? Or is there some option I needed to set when compiling and installing Qt4?

Specifically the problem is that when compiling external/qjson, it's using /usr/include/Qt4 instead of /usr/local/Trolltech/Qt-4.8.6/include. There is a file CMakeLists.txt that has the following line, but I don't know what to do with it, if this is the problem.

Code:
INCLUDE( ${QT_USE_FILE} )
Using the Qt that comes with Squeeze is not an option. Neither is using the mythtv available with Squeeze.

Last edited by Quakeboy02; 05-02-2014 at 07:15 PM.
 
Old 05-02-2014, 09:23 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,647

Rep: Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655
haw are you using qmake?
in the Makefile option or using the *.pro

see: " qmake --help"

or are you going to be using the QT Creator IDE
 
Old 05-02-2014, 09:59 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,409

Original Poster
Rep: Reputation: 141Reputation: 141
Hi John,

A lot of effort has flowed under the bridge since I created this thread. I think that the following just may have solved it. At least I get a clean configure and a clean compile. I had to run qmake (with the proper qmake) in each of the subdirectories, but I'm not sure whether that was due to earlier steps that corrupted things, or whether mythtv has a bug in their Makefile setup related to Qt4.

Start off by removing all vestiges of Qt4 from Squeeze. Then install Qt-4.8.6 (http://anychimirror101.mirrors.tds.n...c-4.8.6.tar.gz) using their instructions. Don't forget to configure the mysql plugin (./configure -plugin-sql-mysql).

Then create this file in the mythtv directory and run it; making any changes necessary for your local situation.

File configureit.sh
Code:
#!/bin/sh
./configure --qmake=/usr/local/Trolltech/Qt-4.8.6/bin/qmake --qmakespecs=/usr/local/Trolltech/Qt-4.8.6/mkspecs/linux-g++
Now to address the usual issues related to installing a new mythtv client.

Last edited by Quakeboy02; 05-03-2014 at 12:28 PM.
 
Old 05-02-2014, 10:06 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,409

Original Poster
Rep: Reputation: 141Reputation: 141
Oops, I left out a couple of environment variables that are probably important, too. I don't know which one of these entries was the magic chicken, unfortunately.

Make changes as appropriate for your system:
Code:
QMAKE_INCDIR_QT=/usr/local/Trolltech/Qt-4.8.6/include
PATH=/usr/local/Trolltech/Qt-4.8.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
C_INCLUDE_PATH=/usr/local/Trolltech/Qt-4.8.6
CPLUS_INCLUDE_PATH=/usr/local/Trolltech/Qt-4.8.6
These were typed in manually, so I hope I don't have any typos.

NOTE:
As it turns out, these environment variables aren't needed to compile or run mythtv-0.27. Just use the configure stuff above.

Last edited by Quakeboy02; 05-04-2014 at 04:44 PM.
 
Old 05-03-2014, 08:20 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,409

Original Poster
Rep: Reputation: 141Reputation: 141
Deleted

Last edited by Quakeboy02; 05-04-2014 at 04:44 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set include tomcat lib in my fedora 13 path java Linux - Newbie 2 08-19-2010 11:06 AM
how to set include path sibtay Linux - Newbie 3 12-07-2004 08:42 AM
G++: How to set the include path lavachequirit Programming 5 10-20-2004 09:56 AM
Compiling errors with mythtv... make doesnt find correct path Samppa72 Linux - Software 2 08-17-2004 02:42 PM
how to set include path for fortran srkherad Linux - General 1 01-08-2003 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration