kopia lustrzana https://github.com/Hamlib/Hamlib
Set LD_LIBRARY_PATH for test programs
Setting LD_LIBRARY_PATH for testcpp and testrig in the generated test shell scripts corrects a long-standing bug that broke 'make check'. Add Hamlib_design.eps to allow 'make dvi' to succeed when running 'make distcheck'.Hamlib-3.0
rodzic
2f8b6c8d51
commit
69c2ceb957
9
INSTALL
9
INSTALL
|
@ -45,11 +45,6 @@ main directory and do the following:
|
||||||
|
|
||||||
$ make check
|
$ make check
|
||||||
|
|
||||||
Be careful: 'make check' needs an already installed hamlib library. That
|
|
||||||
means that this step has to wait until you finished step 4 (and 5).
|
|
||||||
|
|
||||||
TODO: Fix 'make check' to work before installation.
|
|
||||||
|
|
||||||
4. Type `make install' to install the programs and any data files and
|
4. Type `make install' to install the programs and any data files and
|
||||||
documentation. Type `make uninstall' to undo the installation.
|
documentation. Type `make uninstall' to undo the installation.
|
||||||
|
|
||||||
|
@ -227,8 +222,8 @@ find the X include and library files automatically, but if it doesn't,
|
||||||
you can use the `configure' options `--x-includes=DIR' and
|
you can use the `configure' options `--x-includes=DIR' and
|
||||||
`--x-libraries=DIR' to specify their locations.
|
`--x-libraries=DIR' to specify their locations.
|
||||||
|
|
||||||
Win32
|
MS Windows
|
||||||
=====
|
==========
|
||||||
- Debian system with mingw32msvc cross-compiler
|
- Debian system with mingw32msvc cross-compiler
|
||||||
|
|
||||||
./configure --with-included-ltdl --host=i586-mingw32msvc
|
./configure --with-included-ltdl --host=i586-mingw32msvc
|
||||||
|
|
|
@ -52,16 +52,20 @@ utility), and USB. Other connectivity will follow afterwards.
|
||||||
General Guidelines.
|
General Guidelines.
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
0. The top level directory looks like this as of 13 Feb 2011
|
0. The top level directory looks like this as of 07 May 2013
|
||||||
(Note, it has grown considerably).
|
(Note, it has grown considerably).
|
||||||
|
|
||||||
$ tree -d -I .git
|
$ tree -d -I .git
|
||||||
.
|
.
|
||||||
|
├── adat
|
||||||
├── alinco
|
├── alinco
|
||||||
|
├── amsat
|
||||||
|
├── android
|
||||||
├── aor
|
├── aor
|
||||||
├── ars
|
├── ars
|
||||||
├── bindings
|
├── bindings
|
||||||
├── c++
|
├── c++
|
||||||
|
├── celestron
|
||||||
├── doc
|
├── doc
|
||||||
├── drake
|
├── drake
|
||||||
├── dummy
|
├── dummy
|
||||||
|
@ -73,13 +77,13 @@ $ tree -d -I .git
|
||||||
├── heathkit
|
├── heathkit
|
||||||
├── icom
|
├── icom
|
||||||
├── include
|
├── include
|
||||||
│ └── hamlib
|
│ └── hamlib
|
||||||
├── jrc
|
├── jrc
|
||||||
├── kachina
|
├── kachina
|
||||||
├── kenwood
|
├── kenwood
|
||||||
├── kit
|
├── kit
|
||||||
├── kylix
|
├── kylix
|
||||||
│ └── tests
|
│ └── tests
|
||||||
├── lib
|
├── lib
|
||||||
├── lowe
|
├── lowe
|
||||||
├── m2
|
├── m2
|
||||||
|
@ -94,25 +98,28 @@ $ tree -d -I .git
|
||||||
├── rotorez
|
├── rotorez
|
||||||
├── rs
|
├── rs
|
||||||
├── sartek
|
├── sartek
|
||||||
|
├── scripts
|
||||||
├── skanti
|
├── skanti
|
||||||
├── spid
|
├── spid
|
||||||
├── src
|
├── src
|
||||||
├── tapr
|
├── tapr
|
||||||
├── tentec
|
├── tentec
|
||||||
├── tests
|
├── tests
|
||||||
│ ├── config
|
│ ├── config
|
||||||
│ ├── rigctl.test
|
│ ├── rigctl.test
|
||||||
│ ├── testbcd.test
|
│ ├── testbcd.test
|
||||||
│ ├── testfreq.test
|
│ ├── testfreq.test
|
||||||
│ └── testloc.test
|
│ └── testloc.test
|
||||||
|
├── ts7400
|
||||||
|
│ └── include
|
||||||
├── tuner
|
├── tuner
|
||||||
├── uniden
|
├── uniden
|
||||||
├── winradio
|
├── winradio
|
||||||
│ └── linradio
|
│ └── linradio
|
||||||
├── wj
|
├── wj
|
||||||
└── yaesu
|
└── yaesu
|
||||||
|
|
||||||
56 directories
|
61 directories
|
||||||
|
|
||||||
|
|
||||||
1. Building
|
1. Building
|
||||||
|
@ -123,12 +130,12 @@ file. This document introduces hacking the code of Hamlib.
|
||||||
|
|
||||||
1.1 Obtaining sources: git clone
|
1.1 Obtaining sources: git clone
|
||||||
|
|
||||||
git clone git://hamlib.git.sourceforge.net/gitroot/hamlib/hamlib
|
git clone git://git.code.sf.net/p/hamlib/code hamlib
|
||||||
|
|
||||||
The clone has to only be done the first time.
|
The clone has to only be done the first time.
|
||||||
|
|
||||||
After the initial clone, whenever you want to update your local
|
After the initial clone, whenever you want to update your local
|
||||||
repository, issue the following command in the root directory of hamlib.
|
repository, issue the following command in the root directory of Hamlib:
|
||||||
|
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
|
@ -138,6 +145,10 @@ combines two Git commands, fetch and merge into one that will first check
|
||||||
for conflicting changes between your local repository and the remote
|
for conflicting changes between your local repository and the remote
|
||||||
(origin) repository and will not apply any changes if conflicts are found.
|
(origin) repository and will not apply any changes if conflicts are found.
|
||||||
|
|
||||||
|
A pull can be restricted to just a single branch if desired:
|
||||||
|
|
||||||
|
git pull origin master
|
||||||
|
|
||||||
|
|
||||||
1.1.1 Obtaining more info on Git
|
1.1.1 Obtaining more info on Git
|
||||||
|
|
||||||
|
@ -239,7 +250,8 @@ distributions may differ).
|
||||||
* libtool 2.2.6b+ # libtool --version
|
* libtool 2.2.6b+ # libtool --version
|
||||||
* libltdl-dev 2.2.6b+
|
* libltdl-dev 2.2.6b+
|
||||||
* pkg-config 0.25 # pkg-config --version
|
* pkg-config 0.25 # pkg-config --version
|
||||||
* Git for connection to hamlib.git.sourceforge.net
|
* Git for connection to git.code.sf.net/p/hamlib/code
|
||||||
|
* texinfo 4.13a # makeinfo --version
|
||||||
|
|
||||||
N.B. Hamlib requires libtool >= 2.2.6b in compliance with CVE-2009-3736.
|
N.B. Hamlib requires libtool >= 2.2.6b in compliance with CVE-2009-3736.
|
||||||
|
|
||||||
|
@ -253,6 +265,7 @@ Optional, but highly recommended:
|
||||||
* libgd2 devel # gdlib-config --version
|
* libgd2 devel # gdlib-config --version
|
||||||
* libusb devel # libusb-config --version (not 1.0.0!)
|
* libusb devel # libusb-config --version (not 1.0.0!)
|
||||||
* libreadline devel # ver 5.2 or newer
|
* libreadline devel # ver 5.2 or newer
|
||||||
|
* texlive # 5.1 tested with 'make distcheck'
|
||||||
|
|
||||||
N.B.: The libusb package is required for building most of the 'kit' backend.
|
N.B.: The libusb package is required for building most of the 'kit' backend.
|
||||||
The older version is needed, not 1.0.0 or higher. Debian and derivatives
|
The older version is needed, not 1.0.0 or higher. Debian and derivatives
|
||||||
|
@ -297,7 +310,7 @@ following in the same parent directory of hamlib:
|
||||||
Note: In the examples above, passing the CFLAGS environment variable is
|
Note: In the examples above, passing the CFLAGS environment variable is
|
||||||
optional.
|
optional.
|
||||||
|
|
||||||
This will keep the binary output files seperate from the source tree and aid
|
This will keep the binary output files separate from the source tree and aid
|
||||||
in development by reducing clutter in the source tree.
|
in development by reducing clutter in the source tree.
|
||||||
|
|
||||||
Once you've run `autogen.sh', make sure you've got some recent config.guess
|
Once you've run `autogen.sh', make sure you've got some recent config.guess
|
||||||
|
@ -362,13 +375,14 @@ So far, Hamlib has been tested successfully under the following systems:
|
||||||
|
|
||||||
* Debian i386 (plus derivatives--Ubuntu, etc.)
|
* Debian i386 (plus derivatives--Ubuntu, etc.)
|
||||||
* Debian sid mipsel
|
* Debian sid mipsel
|
||||||
|
* Raspbian armhf (Raspberry Pi Debian derivative)
|
||||||
* RedHat i386
|
* RedHat i386
|
||||||
* Linux ppc
|
* Linux ppc
|
||||||
* Slackware i386
|
* Slackware i386
|
||||||
* FreeBSD & NetBSD
|
* FreeBSD & NetBSD
|
||||||
* Solaris 2.6
|
* Solaris 2.6
|
||||||
* Mac OS X
|
* Mac OS X
|
||||||
* win32: Cygwin, Mingw
|
* MS Windows: Cygwin, Mingw
|
||||||
|
|
||||||
|
|
||||||
2. How to add a new backend
|
2. How to add a new backend
|
||||||
|
@ -556,6 +570,15 @@ Portability issues to watch:
|
||||||
* printf/scanf of 64bit int: use PRIll and SCNll
|
* printf/scanf of 64bit int: use PRIll and SCNll
|
||||||
* printf/scanf of freq_t: use PRIfreq and SCNfreq
|
* printf/scanf of freq_t: use PRIfreq and SCNfreq
|
||||||
|
|
||||||
|
Testing:
|
||||||
|
|
||||||
|
* The acid test for the build system is 'make distcheck' which will
|
||||||
|
make a distribution tarball, extract, configure, and build it in a
|
||||||
|
subdirectory, run 'make check', install it, uninstall it, and clean
|
||||||
|
it up. When all those tests pass, the GNU build system declares the
|
||||||
|
package ready for distribution. This is a good test if you have
|
||||||
|
touched the build system files or added a backend.
|
||||||
|
|
||||||
|
|
||||||
8.2.1 Use of rig_debug() function
|
8.2.1 Use of rig_debug() function
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,19 @@ libhamlib___la_LDFLAGS = -no-undefined -version-info @ABI_VERSION@:@ABI_REVISION
|
||||||
libhamlib___la_LIBADD = $(top_builddir)/src/libhamlib.la
|
libhamlib___la_LIBADD = $(top_builddir)/src/libhamlib.la
|
||||||
|
|
||||||
check_PROGRAMS = testcpp
|
check_PROGRAMS = testcpp
|
||||||
TESTS = testcpp
|
|
||||||
|
|
||||||
testcpp_SOURCES = testcpp.cc
|
testcpp_SOURCES = testcpp.cc
|
||||||
testcpp_LDADD = libhamlib++.la
|
testcpp_LDADD = libhamlib++.la
|
||||||
testcpp_LDFLAGS = @BACKENDLNK@
|
testcpp_LDFLAGS = @BACKENDLNK@
|
||||||
testcpp_DEPENDENCIES = libhamlib++.la @BACKENDEPS@
|
testcpp_DEPENDENCIES = libhamlib++.la @BACKENDEPS@
|
||||||
|
|
||||||
|
check_SCRIPTS = testcpp.sh
|
||||||
|
|
||||||
|
TESTS = $(check_SCRIPTS)
|
||||||
|
|
||||||
|
|
||||||
|
testcpp.sh:
|
||||||
|
echo 'LD_LIBRARY_PATH=$(top_builddir)/dummy/.libs ./testcpp' > testcpp.sh
|
||||||
|
chmod +x ./testcpp.sh
|
||||||
|
|
||||||
|
CLEANFILES = testcpp.sh
|
||||||
|
|
Plik diff jest za duży
Load Diff
|
@ -1,4 +1,4 @@
|
||||||
EXTRA_DIST = hamlib.cfg index.doxygen hamlib.css footer.html
|
EXTRA_DIST = hamlib.cfg index.doxygen hamlib.css footer.html Hamlib_design.eps
|
||||||
|
|
||||||
dist_doc_DATA = Hamlib_design.png hamlib.html
|
dist_doc_DATA = Hamlib_design.png hamlib.html
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ TESTS = $(check_SCRIPTS)
|
||||||
|
|
||||||
|
|
||||||
testrig.sh:
|
testrig.sh:
|
||||||
echo './testrig 1' > testrig.sh
|
echo 'LD_LIBRARY_PATH=$(top_builddir)/dummy/.libs ./testrig 1' > testrig.sh
|
||||||
chmod +x ./testrig.sh
|
chmod +x ./testrig.sh
|
||||||
|
|
||||||
testfreq.sh:
|
testfreq.sh:
|
||||||
|
|
Ładowanie…
Reference in New Issue