From: <rem...@gm...> - 2013-04-26 21:20:31
|
Le 26.04.2013 12:34, Nate Bargmann a écrit : > Remi, take a look at the latest daily snapshot source tarball. http://n0nb.users.sourceforge.net/ hamlib-3.0~git-a16dd47-20130426.tar.gz ? By the way how do you manage to daily build Hamlib on Windows ? Compile farm ? I > committed a change last night that I had worked on for a few days that > changes the way libltdl is compiled. Rather than treating libltdl as a > sub-project with its own configuration script it is now configured and > built by the Hamlib configure script. Also, if the configure script > finds a system installed libltdl the libltdl sources in the Hamlib tree > will not be built. Ah good, very good ... I did my best to use the latest 1.2 version in MXE, but even with all possible configure options, no way to build with the existing MXE-provided ltdl lib. With some changes it sorts of work. With hamlib3 I could make it use its own libltdl but not the MXE one. > Otherwise, if no system libltdl is found or the > --with-included-ltdl option is passed to configure the libltdl sources > in the Hamlib tree will be built and used by the linker. You can view > the patch here: > > https://github.com/N0NB/hamlib/commit/74a6e7e6b9b906c7dd2f7819912cc465d7833dd6 > > With this change I found a compiler error when compiling under MinGW due > to a redefinition of the sleep() function for MS Windows which does not > have that function in its C library. A bit of Google fu found a > thread message: Funny that it was not seen before :) > > http://mingw.5.n7.nabble.com/Help-where-is-the-C-language-sleep-function-tp8921p8925.html > > covering this issue. I chose to use the C preprocessor to define > sleep() on MS Windows and it wraps Windows' Sleep() function. This > works on MinGW. This should have no effect on POSIX. You can view this > patch here: > > https://github.com/N0NB/hamlib/commit/a16dd4797af3b0c6874cd085f20ce753173b80ae So which direction do you suggest ? * Use hamlib3 ? It has to be available from a stable URL. http://n0nb.users.sourceforge.net/hamlib-3.0~git-a16dd47-20130426.tar.gz ? * Or fix hamlib1.2 : configure.ac, maybe add macros/ltdl.m4, maybe fix Makefile.am and src/Makefile.am ? Thanks Remi PS: FYI, the MXE setup is simple. In mxe/index.html, just add these lines: <tr> <td id="hamlib-package">hamlib</td> <td id="hamlib-version">1.2.15.3</td> <td id="hamlib-website"><a href="http://hamlib.org/">Hamlib</a></td> </tr> ... and in the directory mxe/src, create the new file hamlib.mk : # This file is part of MXE. # See index.html for further information. PKG := hamlib $(PKG)_IGNORE := $(PKG)_CHECKSUM := 15ab404ea37e5627abea89f9e051d393966918ba $(PKG)_SUBDIR := hamlib-$($(PKG)_VERSION) $(PKG)_FILE := hamlib-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://ignum.dl.sourceforge.net/project/hamlib/hamlib/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := gcc libxml2 define $(PKG)_BUILD cd '$(1)' && ./configure \ --host='$(TARGET)' \ --with-included-ltdl \ --prefix='$(PREFIX)/$(TARGET)' \ --enable-static $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= endef The checksum is calculated with "openssl sha1". |