On 27/11/15 11:04, Bill Somerville wrote:
> On 27/11/2015 10:44, Barry Jackson wrote:
>> I am a little confused as to why it actually needs to build anything at
>> all, let alone install.
>> Maybe it could have a switch to skip the install?
>>
>> The machine and OS version that I am building on is not the same as the
>> final build server, so building seems irrelevant, but maybe I'm missing
>> something. Cmake is not my forte.
>>
>> I cannot see anywhere in the script that it's picking up /usr/local so
>> I'm a bit stumped.
> Hi Barry,
>
> the build is only of Hamlib, it is not strictly necessary but it was so
> much easier to have it happen on the source tarball build than try to
> stop it happening.
>
> It is OK that you are preparing sources on a different host or even
> platform, the source tarball produced is absolutely generic.
>
> The Hamlib build in the superbuild script is internal and even though it
> runs an install phase, that install is to a directory within the build
> tree. The products of the build like the archive library we statically
> link to are picked up from that internal install tree.
>
> If you are seeing something trying to install outside of the build tree
> during the source tarball build then something is wrong. Can you reply
> with the command you are using and any environment variables you are
> setting?
>
> 73
> Bill
> G4WJS.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> wsjt-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wsjt-devel
>
Hi Bill,
I just ran the script that Greg supplied in his post above without any 
changes.
I think this may be a Cmake change, I have cmake version 3.0.2.
I have added "export DESTDIR=$INSTALLD" and this fixes the install path.
I also found that it only created the tarball for -d and -e so had to 
tweak it for -r builds but now it's doing what I need, although I have 
yet to test a build using the tarball ;)

Here is my current diff from Greg's script:

--- wsjtx-superbuild.sh.txt     2015-11-27 12:36:20.754828119 +0000
+++ wsjtx-sb.sh 2015-11-27 12:54:32.862318315 +0000
@@ -247,6 +247,9 @@
  case $SELECT in
         dev|DEV|-d|-D )
         SRCPKG="wsjtx_$VERSION-r$WSJTXV.orig.tar.gz" ;;
+
+       -r )
+       SRCPKG="wsjtx_$VERSION-r$WSJTXV.tar.gz" ;;

         exp|EXP|-e|-E )
         SRCPKG="wsjtx_exp_$VERSION-r$WSJTXV.orig.tar.gz" ;;
@@ -322,6 +325,7 @@
  echo "-------------------------------------------"
  echo ''
  cd $BUILDD
+export DESTDIR=$INSTALLD
  cmake --build . --target install -- -j "$JJ"

  # Link KVASD Binary


Cheers,
Barry
G4MKT

------------------------------------------------------------------------------
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to