> On Feb 14, 2020, at 1:48 PM, Andy Johnson <
an...@asjohnson.com> wrote:
>
> TinyCore. I'm building the package for the distro.
I continue to be amazed how many distros there are... :-)
> I get this when using the build script:
>
> [ 66%] Building CXX object CMakeFiles/subsurface.dir/qrc_map-widget.cpp.o
> make[2]: *** No rule to make target '/mnt/sda1/lamp64/test/Subsurface-4.9.3/install-root/lib/libdivecomputer.a', needed by 'subsurface'. Stop.
> make[1]: *** [CMakeFiles/Makefile2:472: CMakeFiles/subsurface.dir/all] Error 2
> make: *** [Makefile:141: all] Error 2
There has got to be an error before that in the output because the build script builds libdivecomputer before ever calling cmake on Subsurface.
I would really prefer to fix the build script than to debug issues like this in 'I am manually building things' mode.
Also, please note that Subsurface as a project generally discourages distros from including a Subsurface package (unless they are "rolling release" or "build from source" distros like Arch or Gentoo, respectively.
Debian, Ubuntu, Fedora, OpenSUSE and many others have respected this request.
>
> Which is why I'm trying to build it directly using cmake/make. I have a libdivecomputer.a in /usr/local/lib that it finds but then it complains about these:
Oh, if you build libdivecomputer from their upstream then you are out of luck, anyway, as Subsurface requires our own flavor of libdivecomputer.
> I'm using the Subsurface source tarball. Commands in the script like git fail because it's not a git repository. If I put the libdc source tarball in the subsurface source tree where it belongs then when build.sh runs the libdivecomputer configure it doesn't see hidapi
So where did this libdc tar ball come from?
Fundamentally this is a way of building Subsurface that we don't support.
> So we're back where we started. Does libdivecomputer need hidapi, or will some computers not work without it?
Under Linux you can build without hidapi and it should still work for all HID divecomputers that I'm aware of.
/D