View Full Version : help compiling zygrib application
Eric!
05-25-2009, 10:52 AM
Hi,
I was wondering if there is a kind sole out there who could compile zyGrib for easy debian or maemo? I know it works on debian, but I don't know what is involved in getting it working on the n800.
FYI zyGrib is a tool used for extracting/viewing world wide weather used mostly by sailors iin remote places. Here is the link to the source
http://www.zygrib.org/index.php?page=abstract_en#section_ubuntu
TIA,
Eric
TA-t3
05-25-2009, 03:26 PM
zyGrib needs qt4, so it won't build out of the box on maemo at least - although IIRC there are qt libs out there for Maemo somewhere. For easy Debian it'll probably be straight forward (I'm trying this on my desktop Debian right now), but I'm not set up for easy Debian unfortunately.
Eric!
05-25-2009, 07:31 PM
Easy debian would be great. I've been trying to build it on my n800 in easy debian, without much luck so far. I think I need the qt4 lib for easy deb (which I can't find), but I'm sure there is more. Could you give me a guess at what I need for building it and how? The make file generates pages of missing files.
Thanks
TA-t3
05-26-2009, 09:12 AM
When I built it on my Debian desktop I did the following to the Makefile:
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,19 @@
-QTBIN=/usr/lib/qt4/bin
+QTMAKE=qmake-qt4
all:
rm -f ./zyGrib
- cd src/bzip2; $(QTBIN)/qmake; make
- cd src/zlib-1.2.3; $(QTBIN)/qmake; make
- cd src/proj-4.6.0/src/; $(QTBIN)/qmake; make
- cd src; $(QTBIN)/qmake; make
+# cd src/bzip2; $(QTBIN)/qmake; make
+# cd src/zlib-1.2.3; $(QTBIN)/qmake; make
+# cd src/proj-4.6.0/src/; $(QTBIN)/qmake; make
+ cd src; $(QTMAKE); make
echo "-----------------------------------"
clean:
rm -f zyGrib
rm -f src/zyGrib
- cd src/bzip2; $(QTBIN)/qmake; make clean
- cd src/zlib-1.2.3; $(QTBIN)/qmake; make clean
- cd src/proj-4.6.0/src/; $(QTBIN)/qmake; make clean
- cd src; $(QTBIN)/qmake; make clean
+# cd src/bzip2; $(QTBIN)/qmake; make clean
+# cd src/zlib-1.2.3; $(QTBIN)/qmake; make clean
+# cd src/proj-4.6.0/src/; $(QTBIN)/qmake; make clean
+ cd src; $(QTMAKE); make clean
because
- zlib (zlib1g-dev), proj (libproj-dev), bzip2 are already available as system packages in Debian, so no need to build copies insize zyGrib
- the qmake/qt4 assumptions of the original Makefile doesn't fit Debian
Then it built without a hitch. Presumably that setup could work on easy Debian too. But qole (I guess) is the right one to answer that.
mikkov
05-26-2009, 09:35 AM
it builds fine on maemo too
TA-t3
05-26-2009, 09:44 AM
mikkov: I assume you had to install some qt4 tools/libs too, first?
BTW I guess you could provide Eric with a .deb then.. :)
mikkov
05-26-2009, 09:54 AM
as usual libraries have to be installed first. And qt4.5 has been available for quite a while now. :)
unfortunately zygrib is poorly made for proper packaging. I'd hope that somebody who really cares about this program would step up and make the dirty work
However I attached the zygrib binary file. You have to place it into zygrib source directory run it from there.
Depencies are listed below:
Depends: libbz2-1.0, libc6 (>= 2.5.0-1), libgcc1 (>= 1:3.4.4), libqt4-network (
>= 4.5.0), libqt4-xml (>= 4.5.0), libqtcore4 (>= 4.5.0), libqtgui4 (>= 4.5.0), l
ibstdc++6 (>= 3.4.4), zlib1g (>= 1:1.2.1)
PS: I didn't test this with tablet, so it might not even work
Eric!
05-27-2009, 10:26 PM
It runs on my n800! There is an error that comes up in french about a missing chart, but that is proobably just a configuration issue. Switching it to English doesn't seem to do anything though.
I couldn't figure out how to get the qt4 library until you guys spelled out the dependancies for me. apt-get install qt4 just didn't cut it.
Thanks for making the bin too.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.