problem compiling wview on synology

1,016 views
Skip to first unread message

Vlad

unread,
Nov 30, 2011, 4:10:40 PM11/30/11
to wview
Hi all,
I am not very experienced with Linux and I would like to make wview
working on my Synology DS211+ NAS. I have installed Optware on NAS,
compiled radlib and got all possible libs and tools, but I am not able
to finish configure script on wview. It quits with sqlite3 error. I
have installed Sqlite - 3.7.3-1 through Optware, but it seems to be
not enough. I haven't found sqlite-dev package, there is no other
sqlite3 package in Optware repository. It looks like some sqlite libs
are also installed by default by Synology system, so I am little bit
confused, how should I continue.
I have searched the web for Sqlite package and found some source codes
on http://www.sqlite.org/download.html, but I don't know if compiling
another sqlite will help and even if it won't corrupt native Synology
system, which I would like to keep in working condition as it's main
purpose is network storage.
Thanks for any hint...
Vlad

List of installed optware packages :
apr - 1.4.5-1 - Apache Portable Runtime library
apr-util - 1.3.12-1 - Apache Portable Runtime utilities library
autoconf - 2.68-1 - Creating scripts to configure source code packages
using templates
automake - 1.11.1-2 - Creates GNU standards-compliant Makefiles from
template files
bash - 3.2.49-1 - A bourne style shell
binutils - 2.19.1-1 - The GNU assembler and linker and related tools
bison - 2.4.1-1 - a general-purpose parser generator that converts an
annotated context-free grammar into an LALR(1) or GLR parser for that
gramm
bzip2 - 1.0.6-1 - Very high-quality data compression program
coreutils - 8.4-1 - Bunch of heavyweight *nix core utilities
cyrus-sasl-libs - 2.1.23-2 - Provides client or server side
authentication (see RFC 2222).
diffutils - 3.1-1 - contains gnu diff, cmp, sdiff and diff3 to display
differences between and among text files
e2fslibs - 1.41.14-1 - Ext2 Filesystem Libraries
expat - 2.0.1-1 - XML Parser library
file - 5.09-1 - Ubiquitous file identification utility.
findutils - 4.2.32-1 - File finding utilities
flex - 2.5.35-1 - Generates programs that perform pattern-matching on
text.
fontconfig - 2.8.0-0 - Font configuration library
freetype - 2.3.6-1 - Free truetype library
gawk - 4.0.0-1 - Gnu AWK interpreter
gcc - 4.2.3-1 - The GNU Compiler Collection.
gconv-modules - 2.5-1 - Provides gconv modules missing from the
firmware. These are used by glibc iconv() implementation.
gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use
extensible hashing. It works similar to the standard UNIX dbm
routines.
glib - 2.20.4-1 - The GLib library of C routines.
groff - 1.19.2-2 - front-end for the groff document formatting system
gzip - 1.4-4 - GNU Zip data compression program
libc-dev - 2.5-5 - libc development files.
libdb - 4.2.52-3 - Berkeley DB Libraries
libgd - 2.0.35-6 - An ANSI C library for the dynamic creation of
images
libjpeg - 6b-3 - collection of jpeg tools
libnsl - 2.5-4 - Network Services Library
libpng - 1.2.44-1 - Portable Network Graphics Libraries
libstdc++ - 6.0.9-6 - Standard C++ library, needed for dynamically
linked C++ programs
libtool - 1.5.26-1 - Library tools.
libxml2 - 2.7.8-1 - Libxml2 is the XML C parser and toolkit developed
for the Gnome project.
m4 - 1.4.16-1 - gnu macro processor and compiler front end
make - 3.82-1 - examines files and runs commands necessary for
compilation
mc - 4.7.5.5-1 - Midnight Commander File Manager
ncurses - 5.7-1 - NCurses libraries
ncursesw - 5.7-1 - NCurses libraries with wide char support
neon - 0.29.3-1 - an HTTP and WebDAV client library, with a C
interface
openldap-libs - 2.3.43-2 - Open Lightweight Directory Access Protocol
openssl - 0.9.8p-1 - Openssl provides the ssl implementation in
libraries libcrypto and libssl, and is needed by many other
applications and librari
patch - 2.6.1-1 - applies a diff to produce a patched file
perl - 5.10.0-6 - Practical Extraction and Report Language.
pkgconfig - 0.15.0-2 - Package configuration tool
psmisc - 22.13-1 - A set of some small useful utilities that use the
proc filesystem.
python25 - 2.5.6-1 - Python is an interpreted, interactive, object-
oriented programming language.
readline - 6.1-2 - The GNU Readline library provides a set of
functions for use by applications that allow users to edit command
lines as they are
rsync - 3.0.8-1 - fast remote file copy program (like rcp)
sed - 4.2.1-1 - Stream editor.
slang - 2.2.3-1 - S-Lang is a multi-platform library designed to allow
a developer to create robust multi-platform software.
sqlite - 3.7.3-1 - SQLite is a small C library that implements a self-
contained, embeddable, zero-configuration SQL database engine.
svn - 1.6.17-1 - a compelling replacement for CVS
tar - 1.26-1 - heavyweight version of the Tape ARchiver
tcl - 8.4.19-2 - The Tool Command Language
wget - 1.12-2 - A network utility to retrieve files from the Web
zlib - 1.2.5-1 - zlib is a library implementing the 'deflate'
compression system.
Successfully terminated.

Output from configure :
checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... armv5tel-unknown-linux-gnueabi
checking host system type... armv5tel-unknown-linux-gnueabi
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking for strncpy in -lc... yes
checking for gdImageCreate in -lgd... yes
checking for exp in -lm... yes
checking for png_write_chunk in -lpng... yes
checking for sqlite3_open in -lsqlite3... no
libsqlite3 is missing!

Mark S. Teel

unread,
Nov 30, 2011, 4:22:25 PM11/30/11
to wv...@googlegroups.com
"libsqlite3 is missing" - this means you need the development library
for SQLite3 in addition to the user space application you have installed.

Mark

On 11/30/11 3:10 PM, Vlad wrote:
> libsqlite3 is missing

Vlad

unread,
Nov 30, 2011, 4:32:02 PM11/30/11
to wview
Thanks you for very quick reply Mark.

Synology is running on ARM and I don't know, where to find appropriate
sqlite-dev package. Is it possible to download binaries for ARM
directly or do I have to compile it from source ?

Thanks.

Vlad

Vlad

unread,
Dec 13, 2011, 7:23:25 PM12/13/11
to wview
Finally solved problems with missing libsqlite3-dev (btw. was caused
by mismatched versions of libphtread.so) and now having similar
problem when executing "make". It stops with following error :
.
.
.
.
Invoking recipe from Makefile:355 to update target `wvutils.o'.
make[3]: Entering directory `/volumeUSB1/wview-5.19.0/stations/
Simulator'
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../common -I../../stations/common
-I/usr/local/include -D_GNU_SOURCE -DWV_CONFIG_DIR=\"/usr/local/etc/
wview\" -DWV_RUN_DIR=\"/usr/local/var/wview\" -DBUILD_WVIEWD -g -O2
-MT wvutils.o -MD -MP -MF .deps/wvutils.Tpo -c -o wvutils.o `test -f
'../../common/wvutils.c' || echo './'`../../common/wvutils.c
Putting child 0x75db8 (wvutils.o) PID 25363 on the chain.
Live child 0x75db8 (wvutils.o) PID 25363
In file included from ../../common/wvutils.c:52:
../../common/wvconfig.h:43:23: error: radsqlite.h: No such file or
directory
Reaping losing child 0x75db8 PID 25363
make[3]: *** [wvutils.o] Error 1
Removing child 0x75db8 PID 25363 from chain.
make[3]: Leaving directory `/volumeUSB1/wview-5.19.0/stations/
Simulator'
Reaping losing child 0x4bcb0 PID 25357
make[2]: *** [all-recursive] Error 1
Removing child 0x4bcb0 PID 25357 from chain.
make[2]: Leaving directory `/volumeUSB1/wview-5.19.0/stations'
Reaping losing child 0x47628 PID 25351
make[1]: *** [all-recursive] Error 1
Removing child 0x47628 PID 25351 from chain.
make[1]: Leaving directory `/volumeUSB1/wview-5.19.0'
Reaping losing child 0x47398 PID 25350
make: *** [all] Error 2
Removing child 0x47398 PID 25350 from chain.

Any ideas ?
Thanks for help.


On Nov 30, 10:22 pm, "Mark S. Teel" <mteel2...@gmail.com> wrote:

John Rye

unread,
Dec 14, 2011, 5:26:13 AM12/14/11
to wv...@googlegroups.com
On Tue, 13 Dec 2011 16:23:25 -0800 (PST)
Vlad wrote:

> Finally solved problems with missing libsqlite3-dev (btw. was caused
> by mismatched versions of libphtread.so) and now having similar
> problem when executing "make". It stops with following error :

You need to radlib installed before trying to compile wview. You can get
the latest stable source via a link on the left side of the Wview
Homepage<http://www.wviewweather.com/>

John

DCoe

unread,
Jul 19, 2012, 10:50:22 PM7/19/12
to wv...@googlegroups.com
Vlad, I would also like to compile wview to run on my Synology DS410 running DSM 4.0. Were you ultimately successful in doing this? If so, would you mind sharing the non-obvious parts of the procedure? - Thanks

Internet Inventor

unread,
Aug 8, 2012, 1:32:00 AM8/8/12
to wv...@googlegroups.com
I've installed WVIEW successfully on my DS410j and DS212j.  Attached is a PDF document with the details that I was able to put together from various sources to complete the task.  Since I have a Davis Vantage Pro2 with the USB-serial interface, I also had to build the kernel driver usbserial.ko, which is described in a second attachment.
Procedures for installing WVIEW.pdf
CrossCompile setup.pdf

michael

unread,
Apr 19, 2013, 3:23:38 PM4/19/13
to wv...@googlegroups.com
I was able to get it to build!

I was doing great, until I tried to make wview. I got this error:

gcc -DHAVE_CONFIG_H -I. -I../.. -I../../common -I../../stations/common -I/opt/include -D_GNU_SOURCE -DWV_CONFIG_DIR=\"/opt/etc/wview\" -DWV_RUN_DIR=\"/opt/var/wview\" -DBUILD_WVIEWD    -g -O2 -MT hidapi-linux.o -MD -MP -MF .deps/hidapi-linux.Tpo -c -o hidapi-linux.o `test -f '../../stations/common/hidapi-linux.c' || echo './'`../../stations/common/hidapi-linux.c
../../stations/common/hidapi-linux.c:80:31: error: libusb-1.0/libusb.h: No such file or directory

Ok, no problem. I downloaded libusb-1.0.9 from my mac, copied it over, then made it

DiskStation> ./configure --prefix=/opt
DiskStation> make
DiskStation> make install

and now wview makes correctly!

It would be *much* easier if you could share your binary for usb-serial. Would you?

-Michael
Reply all
Reply to author
Forward
0 new messages