troubles installing brewtarget

Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum

Help Support Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

HH60gunner

Well-Known Member
Joined
Mar 20, 2010
Messages
387
Reaction score
15
Location
Tucson
Ok,

So I'm no linux wizard but I'm learning as I go along. I'm trying to install brewtarget but just can't seem to. I tried the deb package but it won't work on my 64 bit ubuntu. So I tried compiling the source (still new to that). Here's where I'm stuck.

So I run the ./configure and I get

---Configure script for Brewtarget.
OS: Linux...yay!
/usr/bin/qmake brewtarget.pro

You are now ready to run "/usr/bin/make" then "/usr/bin/make install".

So I type sudo /usr/bin/make and get this

enderusaf@GeekBox:~/Downloads/temp/brewtarget-1.2$ sudo /usr/bin/make
/usr/bin/uic-qt4 ui/aboutDialog.ui -o src/ui_aboutDialog.h
make: /usr/bin/uic-qt4: Command not found
make: *** [src/ui_aboutDialog.h] Error 127



What am I doing wrong?

if I use /usr/bin/qmake the command enters and gives me another prompt.

when I type enderusaf@GeekBox:~/Downloads/temp/brewtarget-1.2$ sudo /usr/bin/qmake install
Cannot find file: install.



What am I doing wrong?
 
It would appear you are missing the libqt4 development binaries and headers. On Debian you can install them by doing apt-get install libqt4-dev

-Chris
Debian Developer =)
 
It would appear you are missing the libqt4 development binaries and headers. On Debian you can install them by doing apt-get install libqt4-dev

-Chris
Debian Developer =)


enderusaf@GeekBox:~/Downloads/temp/brewtarget-1.2$ sudo make
/usr/bin/uic-qt4 ui/aboutDialog.ui -o src/ui_aboutDialog.h
/usr/bin/uic-qt4 ui/brewDayWidget.ui -o src/ui_brewDayWidget.h
/usr/bin/uic-qt4 ui/converterTool.ui -o src/ui_converterTool.h
/usr/bin/uic-qt4 ui/mainWindow.ui -o src/ui_mainWindow.h
/usr/bin/uic-qt4 ui/mashStepEditor.ui -o src/ui_mashStepEditor.h
/usr/bin/uic-qt4 ui/miscEditor.ui -o src/ui_miscEditor.h
/usr/bin/uic-qt4 ui/fermentableEditor.ui -o src/ui_fermentableEditor.h
/usr/bin/uic-qt4 ui/fermentableDialog.ui -o src/ui_fermentableDialog.h
/usr/bin/uic-qt4 ui/equipmentEditor.ui -o src/ui_equipmentEditor.h
/usr/bin/uic-qt4 ui/hopDialog.ui -o src/ui_hopDialog.h
/usr/bin/uic-qt4 ui/hopEditor.ui -o src/ui_hopEditor.h
/usr/bin/uic-qt4 ui/htmlViewer.ui -o src/ui_htmlViewer.h
/usr/bin/uic-qt4 ui/instructionWidget.ui -o src/ui_instructionWidget.h
/usr/bin/uic-qt4 ui/mashEditor.ui -o src/ui_mashEditor.h
/usr/bin/uic-qt4 ui/mashWizard.ui -o src/ui_mashWizard.h
/usr/bin/uic-qt4 ui/miscDialog.ui -o src/ui_miscDialog.h
/usr/bin/uic-qt4 ui/ogAdjuster.ui -o src/ui_ogAdjuster.h
/usr/bin/uic-qt4 ui/optionsDialog.ui -o src/ui_optionsDialog.h
/usr/bin/uic-qt4 ui/primingDialog.ui -o src/ui_primingDialog.h
/usr/bin/uic-qt4 ui/scaleRecipeTool.ui -o src/ui_scaleRecipeTool.h
/usr/bin/uic-qt4 ui/styleEditor.ui -o src/ui_styleEditor.h
'' isn't a valid widget
/usr/bin/uic-qt4 ui/timerListDialog.ui -o src/ui_timerListDialog.h
/usr/bin/uic-qt4 ui/timerWidget.ui -o src/ui_timerWidget.h
/usr/bin/uic-qt4 ui/yeastDialog.ui -o src/ui_yeastDialog.h
/usr/bin/uic-qt4 ui/yeastEditor.ui -o src/ui_yeastEditor.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_PHONON_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/phonon -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/qt4/phonon_compat -Isrc -Isrc -o Algorithms.o src/Algorithms.cpp
src/Algorithms.cpp: In function ‘double PlatoToSG_20C20C(double)’:
src/Algorithms.cpp:128: warning: comparison between signed and unsigned integer expressions
src/Algorithms.cpp: In function ‘double rootFind(double*, unsigned int, double, double)’:
src/Algorithms.cpp:92: warning: ‘newGuess’ may be used uninitialized in this function
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_PHONON_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/phonon -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/qt4/phonon_compat -Isrc -Isrc -o database.o src/database.cpp
In file included from src/TimerListDialog.h:26,
from src/MainWindow.h:57,
from src/brewtarget.h:28,
from src/database.cpp:45:
src/TimerWidget.h:31: fatal error: mediaobject.h: No such file or directory
compilation terminated.
make: *** [database.o] Error 1



ok, this is where I'm at now.
 
http://www.linuxquestions.org/quest...mediaobject-no-such-file-or-directory-728306/

I use Mandriva and ran into this problem. I just go into the makefile, if the file exists, and make changes to it there.

To see if the file exists I use locate.

locate mediaobject.h

If locate doesn't have a database installed, then....

updatdb

(you have to make a database of files to reference first)

This is the results of my locate mediaobject.h however I don't know what to do from there. For now I installed brewtarget on windows, but that makes me a sad panda.

enderusaf@GeekBox:~$ locate mediaobject.h
/home/enderusaf/Downloads/QtDownload/qt-everywhere-opensource-src-4.7.1/doc/html/phonon-mediaobject.html
/home/enderusaf/Downloads/QtDownload/qt-everywhere-opensource-src-4.7.1/include/phonon/mediaobject.h
/home/enderusaf/Downloads/QtDownload/qt-everywhere-opensource-src-4.7.1/src/3rdparty/phonon/ds9/mediaobject.h
/home/enderusaf/Downloads/QtDownload/qt-everywhere-opensource-src-4.7.1/src/3rdparty/phonon/gstreamer/mediaobject.h
/home/enderusaf/Downloads/QtDownload/qt-everywhere-opensource-src-4.7.1/src/3rdparty/phonon/mmf/mediaobject.h
/home/enderusaf/Downloads/QtDownload/qt-everywhere-opensource-src-4.7.1/src/3rdparty/phonon/phonon/mediaobject.h
/home/enderusaf/Downloads/QtDownload/qt-everywhere-opensource-src-4.7.1/src/3rdparty/phonon/qt7/mediaobject.h
/home/enderusaf/Downloads/QtDownload/qt-everywhere-opensource-src-4.7.1/src/3rdparty/phonon/waveout/mediaobject.h
/usr/share/doc/docbook-defguide/html/inlinemediaobject.html
/usr/share/doc/docbook-defguide/html/mediaobject.html
/usr/share/doc/docbook-xsl-doc-html/doc/common/template.is.acceptable.mediaobject.html
/usr/share/doc/docbook-xsl-doc-html/doc/common/template.select.mediaobject.html
/usr/share/doc/docbook-xsl-doc-html/doc/fo/use.role.for.mediaobject.html
/usr/share/doc/docbook-xsl-doc-html/doc/html/use.role.for.mediaobject.html
 
Hmm.. did you try Chris's suggestion?

apt-get install libqt4-dev

I haven't done anything Debian based in a while but I think that would install the libs instead of trying to download a tarball and installing from that?
 
You are also missing the phonon headers you can install the libphonon-dev package and re-run configure. That should fix most of those problems.
 
Ok,

So that brought me one step closer. I have installed both packages as recommended. Now the make command works with no errors but when I try to do the /usr/bin/make install no install command is found. Any ideas?
 
What is the exact error?

enderusaf@GeekBox:~/Downloads/Brewtemp/brewtarget-1.2$ sudo /usr/bin/make install
[sudo] password for enderusaf:
install -m 755 -p "brewtarget" "/usr/local/bin/brewtarget"
/bin/sh: install: not found
make: [install_target] Error 127 (ignored)
strip "/usr/local/bin/brewtarget"
strip: '/usr/local/bin/brewtarget': No such file
make: [install_target] Error 1 (ignored)
install -m 644 -p /home/enderusaf/Downloads/Brewtemp/brewtarget-1.2/database.xml /usr/local/share/brewtarget/
make: install: Command not found
make: [install_data] Error 127 (ignored)
install -m 644 -p /home/enderusaf/Downloads/Brewtemp/brewtarget-1.2/mashs.xml /usr/local/share/brewtarget/
make: install: Command not found
make: [install_data] Error 127 (ignored)
install -m 644 -p /home/enderusaf/Downloads/Brewtemp/brewtarget-1.2/options.xml /usr/local/share/brewtarget/
make: install: Command not found
make: [install_data] Error 127 (ignored)
install -m 644 -p /home/enderusaf/Downloads/Brewtemp/brewtarget-1.2/recipes.xml /usr/local/share/brewtarget/
make: install: Command not found
make: [install_data] Error 127 (ignored)
install -m 644 -p /home/enderusaf/Downloads/Brewtemp/brewtarget-1.2/README /usr/local/share/doc/brewtarget/
make: install: Command not found
make: [install_doc] Error 127 (ignored)
install -m 644 -p /home/enderusaf/Downloads/Brewtemp/brewtarget-1.2/COPYING /usr/local/share/doc/brewtarget/
make: install: Command not found
make: [install_doc] Error 127 (ignored)
install -m 644 -p /home/enderusaf/Downloads/Brewtemp/brewtarget-1.2/doc/manual/index.html /usr/local/share/doc/brewtarget/
make: install: Command not found
make: [install_doc] Error 127 (ignored)
enderusaf@GeekBox:~/Downloads/Brewtemp/brewtarget-1.2$
 
Ok, So I've tried using the install command with the parameters listed in the Makefile. I can open up brewtarget when in the folder it was decompressed to with ./brewtarget however it won't access it's associated database. So once I make any changes it closes. This is the error I get when I open brewtarget.



enderusaf@GeekBox:~/Downloads/temp/Testbrew/brewtarget-1.2$ ./brewtarget
WARNING: Could not open /home/enderusaf/.config/brewtarget/options.xml for reading.
ERROR: Could not open /home/enderusaf/.config/brewtarget/database.xml for reading.
ERROR: Could not open /home/enderusaf/.config/brewtarget/database.xml for reading.
ERROR: Could not open /home/enderusaf/.config/brewtarget/database.xml for reading.
Bus::eek:pen: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
ERROR: Could not open /home/enderusaf/.config/brewtarget/database.xml for reading.
 
[hermit@sorta ~]$ locate bin/install
/sbin/install-info
/sbin/installkernel
/usr/bin/install
/usr/bin/install-catalog
[hermit@sorta ~]$

I forget what you are using? Ubantu? Does the "apt-get install install" work for this? I'm not sure what package management systems it uses. Probably a gui tool built in somewhere? During install I'd guess you didn't choose 'development' as an option so you have to add these after the fact?

In the end a distro is just a collection of programs to go along with the kernel so you have to chose what you want. They put different things in by default based on 'whatever'. I think I did a trail install of Ubantu once but I don't remember much, if anything, about it. I don't know if there is a gui tool that would just let you choose 'development' and install the more common packages needed.
 
Ok, So I've tried using the install command with the parameters listed in the Makefile. I can open up brewtarget when in the folder it was decompressed to with ./brewtarget however it won't access it's associated database. So once I make any changes it closes. This is the error I get when I open brewtarget.



enderusaf@GeekBox:~/Downloads/temp/Testbrew/brewtarget-1.2$ ./brewtarget
WARNING: Could not open /home/enderusaf/.config/brewtarget/options.xml for reading.
ERROR: Could not open /home/enderusaf/.config/brewtarget/database.xml for reading.
ERROR: Could not open /home/enderusaf/.config/brewtarget/database.xml for reading.
ERROR: Could not open /home/enderusaf/.config/brewtarget/database.xml for reading.
Bus::eek:pen: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
ERROR: Could not open /home/enderusaf/.config/brewtarget/database.xml for reading.

Actually, you might be able to run the program now. These files didn't exist if you didn't have a previous version. At worst you can create an empty file for install to open with the touch command.

touch /home/enderusaf/.config/brewtarget/options.xml
etc. Just cut and paste but I THINK you can now run the program.

if just plain bretarget doesn't work on the command line, try...

updatedb
locate bin/brewtarget
 
no brewtarget is not in the ubuntu's repo. However doing some research I found my solution. It was solved in another post on this forum from a Rocketman.

https://www.homebrewtalk.com/f84/br...n-source-brewing-software-153755/index18.html

There's the link for anyone else who is also running into this problem.

Now I'm all good to go.


Thanks for the help guys, without it I wouldn't haven't gotten far enough to get the program up and running.
 
HH60gunner, sorry I didn't see this thread earlier! Glad to see it's solved though.

Chris (vortexla), you are a Debian dev? Can you get brewtarget into the Debian repos? I have had my package up on debian mentors for more than a year, and nothing.
 
HH60gunner, sorry I didn't see this thread earlier! Glad to see it's solved though.

Chris (vortexla), you are a Debian dev? Can you get brewtarget into the Debian repos? I have had my package up on debian mentors for more than a year, and nothing.

Wondered why you hadn't popped into the thread. If we see this stuff in the future maybe we should consider dropping you a PM just in case?
 
i tried to download for windows and it does nothing. i am obviously not computer savvy. please help.
 
Back
Top