maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   help compiling zygrib application (https://talk.maemo.org/showthread.php?t=29154)

Eric! 2009-05-25 14:52

help compiling zygrib application
 
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...section_ubuntu

TIA,
Eric

TA-t3 2009-05-25 19:26

Re: help compiling zygrib application
 
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! 2009-05-25 23:31

Re: help compiling zygrib application
 
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 2009-05-26 13:12

Re: help compiling zygrib application
 
When I built it on my Debian desktop I did the following to the Makefile:
Code:

--- 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 2009-05-26 13:35

Re: help compiling zygrib application
 
it builds fine on maemo too

TA-t3 2009-05-26 13:44

Re: help compiling zygrib application
 
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 2009-05-26 13:54

Re: help compiling zygrib application
 
1 Attachment(s)
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! 2009-05-28 02:26

Re: help compiling zygrib application
 
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.


All times are GMT. The time now is 00:08.

vBulletin® Version 3.8.8