Build error

Announce/Discuss projects you are working on for MiniMyth

Moderator: Pablo

Post Reply
Alfi
Member
Posts: 18
Joined: Tue Mar 29, 2005 7:29 pm
Location: Denmark

Build error

Post by Alfi »

Hi all

I'm trying to build gar-minimyth (version 0.18.4 and 0.18.5) on a Fedora 2 and 4, but i'm getting the following error during compilation

Code: Select all

sr_dialog.cpp: In constructor `RecOptDialog::RecOptDialog(ScheduledRecording*, MythMainWindow*, const char*)':
sr_dialog.cpp:13: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:14: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:15: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:17: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp: In member function `void RecOptDialog::LoadWindow(QDomElement&)':
sr_dialog.cpp:67: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:70: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp: In member function `void RecOptDialog::updateInfo(QPainter*)':
sr_dialog.cpp:160: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp: In member function `void RecOptDialog::updateBackground()':
sr_dialog.cpp:204: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
make[7]: *** [sr_dialog.o] Error 1
Any ideas :?:

Regards Alfi
Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo »

What steps did you go through to build it?
Alfi
Member
Posts: 18
Joined: Tue Mar 29, 2005 7:29 pm
Location: Denmark

Post by Alfi »

Hi Pablo

Like i the readme file

wget http://linpvr.org/dnload/releases/0.18. ... .5.tar.bz2
tar jxf gar-minimyth-0.18.1.5.tar.bz2
cd gar-minimyth
make clean
make garchive
cd script/meta/minimyth
make build

and then the error

/Alfi
Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo »

Did you set values in minimyth.conf.mk? In particular, did you set 'mm_HOME'?
Alfi
Member
Posts: 18
Joined: Tue Mar 29, 2005 7:29 pm
Location: Denmark

Post by Alfi »

Yes

mm_HOME ?= /home/minimyth/gar-minimyth
Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo »

I am not sure what is wrong.

I have never built the tarball and I have never built on FC4. I will build the tarball on one of my FC4 machines and see if I can reproduce the problem.
Alfi
Member
Posts: 18
Joined: Tue Mar 29, 2005 7:29 pm
Location: Denmark

Post by Alfi »

THX :D

I have tried on FC2, FC3, FC4 and got the same problem.

Thx for the help.

/Alfi
Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo »

Well, I found one glitch on FC4, but it happens in a package that builds after the myth/mythtv package you are building. Otherwise, I have no problem building it on FC4.

What microprocessor are you using?
How much disk space do you have left on the partition when it fails?
Does is fail at the same point on FC2, FC3 and FC4?
Do you have any make, compiler or QT environment variables defined (e.g. CXXFLAGS)?
Alfi
Member
Posts: 18
Joined: Tue Mar 29, 2005 7:29 pm
Location: Denmark

Post by Alfi »

Hmm okay

I have tried on 3 pc:

1. Fuld instal FC2 PIII 512mb ram and 5 GB free after error
2. Fuld instal FC3 PIIII 256mb ram and 66 GB free after error
3. Fuld instal FC4 PIIII 1024mb ram and 8 GB free after error

Same fail on all

Only one environment variables defined "P4ROOT=/home/minimyth" in .bash_profile

I must missing something

Code: Select all

make[8]: Entering directory `/home/minimyth/gar-minimyth/script/myth/mythtv/work/main.d/mythtv-0.18.1/libs/libmythtv'
i586-minimyth-linux-gnu-g++ -c -I/home/minimyth/gar-minimyth/gar-minimyth/images/main//usr/X11R6/include -I/home/minimyth/gar-minimyth/gar-minimyth/images/main//usr/include/mysql -L/home/minimyth/gar-minimyth/gar-minimyth/images/main//usr/X11R6/lib -L/home/minimyth/gar-minimyth/gar-minimyth/images/main//usr/lib/mysql -march=pentium-mmx -march=pentium-mmx -pipe -O3 -fomit-frame-pointer -Wall -W -O3 -Wall -Wno-switch -march=pentium-mmx -pipe -O3 -fomit-frame-pointer -fomit-frame-pointer `/home/minimyth/gar-minimyth/gar-minimyth/images/main///usr/bin/freetype-config --cflags` -D_REENTRANT -DPIC -fPIC  -DMMX -Di386 -DUSING_XRANDR -DUSING_XVMC -DUSING_XVMC_VLD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"//usr\" -DUSING_XV -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/home/minimyth/gar-minimyth/gar-minimyth/images/main/usr/lib/qt/mkspecs/default -I. -I../../../../../../../../gar-minimyth/images/main/usr/include -I../.. -I../libmyth -I.. -Idvbdev -Impeg -I../libavcodec -I../libmythmpeg2 -I../../../../../../../../gar-minimyth/images/main/usr/include -I../../../../../../../../gar-minimyth/images/main/usr/lib/qt/include -o sr_dialog.o sr_dialog.cpp
sr_dialog.cpp: In constructor `RecOptDialog::RecOptDialog(ScheduledRecording*, MythMainWindow*, const char*)':
sr_dialog.cpp:13: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:14: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:15: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:17: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp: In member function `void RecOptDialog::LoadWindow(QDomElement&)':
sr_dialog.cpp:67: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:70: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp: In member function `void RecOptDialog::updateInfo(QPainter*)':
sr_dialog.cpp:160: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp: In member function `void RecOptDialog::updateBackground()':
sr_dialog.cpp:204: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
make[8]: *** [sr_dialog.o] Error 1
Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo »

Alfi wrote:

Code: Select all

make[8]: Entering directory `/home/minimyth/gar-minimyth/script/myth/mythtv/work/main.d/mythtv-0.18.1/libs/libmythtv'
i586-minimyth-linux-gnu-g++ -c -I/home/minimyth/gar-minimyth/gar-minimyth/images/main//usr/X11R6/include
Something is wrong. Your script directory is '/home/minimyth/gar-minimyth/script'. This means that your images directory should be '/home/minimyth/gar-minimyth/images'. However, it is '/home/minimyth/gar-minimyth/gar-minimyth/images'. This would seem to indicate that mm_HOME is being set to '/home/minimyth/gar-minimyth/gar-minimyth'.

If you change mm_HOME or P4ROOT, you will need to do a 'make clean' in the gar-minimyth directory so that things are completely rebuilt.
Alfi
Member
Posts: 18
Joined: Tue Mar 29, 2005 7:29 pm
Location: Denmark

Post by Alfi »

From server 3

>3. Fuld instal FC4 PIIII 1024mb ram and 8 GB free after error<

export:

Code: Select all

declare -x G_BROKEN_FILENAMES="1"
declare -x HISTCONTROL="ignorespace"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="xxxxxxxxxxxxxxxxxxxxxxxxxx"
declare -x INPUTRC="/etc/inputrc"
declare -x KDEDIR="/usr"
declare -x LANG="en_US.UTF-8"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LOGNAME="root"
declare -x LS_COLORS="no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:"
declare -x MAIL="/var/spool/mail/root"
declare -x MC_SID="10356"
declare -x MC_TMPDIR="/tmp/mc-root"
declare -x OLDPWD="/home"
declare -x P4ROOT="/home"
declare -x PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin"
declare -x PWD="/"
declare -x QTDIR="/usr/lib/qt-3.3"
declare -x SHELL="/bin/bash"
declare -x SHLVL="2"
declare -x SSH_ASKPASS="/usr/libexec/openssh/gnome-ssh-askpass"
declare -x SSH_CLIENT="::ffff:xxxxxxxxxxxx1394 22"
declare -x SSH_CONNECTION="::ffff:xxxxxxxxxx1394 ::ffff:xxxxxxxxxxxx 22"
declare -x SSH_TTY="/dev/pts/4"
declare -x TERM="xterm"
declare -x USER="root"
make clean

make build

Code: Select all

i586-minimyth-linux-gnu-g++ -c -I/home/gar-minimyth/images/main//usr/X11R6/include -I/home/gar-minimyth/images/main//usr/include/mysql -L/home/gar-minimyth/images/main//usr/X11R6/lib -L/home/gar-minimyth/images/main//usr/lib/mysql -march=pentium-mmx -march=pentium-mmx -pipe -O3 -fomit-frame-pointer -Wall -W -O3 -Wall -Wno-switch -march=pentium-mmx -pipe -O3 -fomit-frame-pointer -fomit-frame-pointer `/home/gar-minimyth/images/main///usr/bin/freetype-config --cflags` -D_REENTRANT -DPIC -fPIC  -DMMX -Di386 -DUSING_XRANDR -DUSING_XVMC -DUSING_XVMC_VLD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"//usr\" -DUSING_XV -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/home/gar-minimyth/images/main/usr/lib/qt/mkspecs/default -I. -I../../../../../../../../images/main/usr/include -I../.. -I../libmyth -I.. -Idvbdev -Impeg -I../libavcodec -I../libmythmpeg2 -I../../../../../../../../images/main/usr/include -I../../../../../../../../images/main/usr/lib/qt/include -o datadirect.o datadirect.cpp
i586-minimyth-linux-gnu-g++ -c -I/home/gar-minimyth/images/main//usr/X11R6/include -I/home/gar-minimyth/images/main//usr/include/mysql -L/home/gar-minimyth/images/main//usr/X11R6/lib -L/home/gar-minimyth/images/main//usr/lib/mysql -march=pentium-mmx -march=pentium-mmx -pipe -O3 -fomit-frame-pointer -Wall -W -O3 -Wall -Wno-switch -march=pentium-mmx -pipe -O3 -fomit-frame-pointer -fomit-frame-pointer `/home/gar-minimyth/images/main///usr/bin/freetype-config --cflags` -D_REENTRANT -DPIC -fPIC  -DMMX -Di386 -DUSING_XRANDR -DUSING_XVMC -DUSING_XVMC_VLD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"//usr\" -DUSING_XV -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/home/gar-minimyth/images/main/usr/lib/qt/mkspecs/default -I. -I../../../../../../../../images/main/usr/include -I../.. -I../libmyth -I.. -Idvbdev -Impeg -I../libavcodec -I../libmythmpeg2 -I../../../../../../../../images/main/usr/include -I../../../../../../../../images/main/usr/lib/qt/include -o sr_dialog.o sr_dialog.cpp
sr_dialog.cpp: In constructor `RecOptDialog::RecOptDialog(ScheduledRecording*, MythMainWindow*, const char*)':
sr_dialog.cpp:13: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:14: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:15: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:17: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp: In member function `void RecOptDialog::LoadWindow(QDomElement&)':
sr_dialog.cpp:67: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp:70: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp: In member function `void RecOptDialog::updateInfo(QPainter*)':
sr_dialog.cpp:160: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
sr_dialog.cpp: In member function `void RecOptDialog::updateBackground()':
sr_dialog.cpp:204: error: invalid use of undefined type `struct XMLParse'
../libmyth/mythdialogs.h:20: error: forward declaration of `struct XMLParse'
make[8]: *** [sr_dialog.o] Error 1

Its look okay to me.
Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo »

Ok, it looks like you changed some things. In order to do a complete rebuild, the 'make clean' must be done in the 'gar-minimyth' directory, and the 'make build' must be done in the 'gar-minimyth/script/meta/minimyth' directory. Is that what you did?.

Also, I noticed the QTDIR is set in your environment. I do not have QTDIR set. This tells QT dependent software the root of the QT directory. Mythtv depends on a version of QT that is located in the build tree. It is possible, though unlikely, that the QTDIR in your environment is overriding the QTDIR in the makefile. Could you unset it and do a complete rebuild?
Alfi
Member
Posts: 18
Joined: Tue Mar 29, 2005 7:29 pm
Location: Denmark

Post by Alfi »

>Ok, it looks like you changed some things. In order to do a complete rebuild, the 'make clean' must be done in the 'gar-minimyth' directory, and the 'make build' must be done in the 'gar-minimyth/script/meta/minimyth' directory. Is that what you did?.<
Yes

>~ Could you unset it and do a complete rebuild?< Yes and same error :(

I am completely lost
Post Reply