Re: [wsjt-devel] JTSDK hamlib3 build

2014-12-11 Thread ki7mt
Hi Alan,

The only time you would need to state the archiver, linker and other
support binaries is when those binaries are in the system path already,
cross compiling on Linux for example. Stating CC and CXX paths should
pull what's needed.

With JTSDK v2, none of the compiler tool-chains are on $PATH, this is
intentional, as it allows the use of both the Qt5 and MinGw32 tool
chains. When you open the MSYS shell, add the path to the tool-chain you
want to use;

export PATH="/c/JTSDK/qt5/Tools/mingw48_32/bin:$PATH"

Then run the configure script with something like:

../src/autogen.sh --prefix=$PREFIX \
--enable-shared \
--disable-static \
--disable-winradio \
--without-cxx-binding \
CC=$TC/gcc.exe \
CXX=$TC/g++.exe \
CFLAGS='-fdata-sections -ffunction-sections' \
LDFLAGS='-Wl,--gc-sections'

When you log out, and back in, the path will be re-set to what it was.
There other ways to switch PATH profiles, but that's is an easy way to
begin with.

To note, on Windows, there is "nothing fast" about building packages the
size of Hamlib. MSYS / Mingw is slow, there's no two ways around it.

It takes maybe a minute in Linux, 15+ minutes on Windows with MinGW32
tools chains, same box, same hardware. The speed has nothing to do with
the script.

73's
Greg KI7MT

On 12/11/2014 04:56 PM, Alan VK2ZIW wrote:
> Hi Mike,
> 
> the PATH to "ar" never should be. It's been the unix "archiver tool" since 
> 1977.
> It's always in the "default" PATH for all users. eg. "/bin" or "/usr/bin".
> 
> "ar" pre-dates "tar" and "cpio"
> 
> Alan VK2ZIW, see my footer.
> 
> On Tue, 9 Dec 2014 23:00:31 -0600, Michael Black wrote
>> Trying to build hamlib3 under JTSDK without using the script which 
>> takes WAY too long and does a bunch of stuff I don't want it to do.
>>  
>> But building doesn't work since the PATH to ar isn't included in the shell.
>>  
>> Mike
>> W9MDB
>>  
>> Black@Black-PC~/g4wjs-hamlib/build/yaesu$ make
>>   CC   newcat.lo
>>  CCLD libhamlib-yaesu.la
>> ../libtool: line 1115: ar: command not found
>> Makefile:382: recipe for target `libhamlib-yaesu.la' failed
>> make: *** [libhamlib-yaesu.la] Error 127
>>  
> 
> Alan
> 
> Man's greatest waste of time: Worshipping the wrong God. 
> Consider Jesus. 
> --- 
> Alan Beard   Unix Support Technician from 1984 to today 
> 70 Wedmore Rd.   Sun Solaris, AIX, HP/UX, Linux, SCO OpenServer 5.0.X 
> Emu Heights N.S.W. 2750  Routers, terminal servers, printers, terminals etc.. 
> +61 2 47353013 (h)   Support Programming, shell scripting, "C", assembler 
> 0414 353013 (mobile) After uni, electr
>  
> 
> 
> 
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> 
> 
> 
> ___
> wsjt-devel mailing list
> wsjt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wsjt-devel
> 

-- 
-
The worth of man in reveled in his attitude to ordinary things
when he is not before the footlights. (cf John 1:36)
   Oswald Chambers

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel


Re: [wsjt-devel] JTSDK hamlib3 build

2014-12-11 Thread Alan VK2ZIW
Hi Mike,

the PATH to "ar" never should be. It's been the unix "archiver tool" since 1977.
It's always in the "default" PATH for all users. eg. "/bin" or "/usr/bin".

"ar" pre-dates "tar" and "cpio"

Alan VK2ZIW, see my footer.

On Tue, 9 Dec 2014 23:00:31 -0600, Michael Black wrote
> Trying to build hamlib3 under JTSDK without using the script which 
> takes WAY too long and does a bunch of stuff I don't want it to do.
>  
> But building doesn't work since the PATH to ar isn't included in the shell.
>  
> Mike
> W9MDB
>  
> Black@Black-PC~/g4wjs-hamlib/build/yaesu$ make
>   CC   newcat.lo
>  CCLD libhamlib-yaesu.la
> ../libtool: line 1115: ar: command not found
> Makefile:382: recipe for target `libhamlib-yaesu.la' failed
> make: *** [libhamlib-yaesu.la] Error 127
>  

Alan

Man's greatest waste of time: Worshipping the wrong God. 
Consider Jesus. 
--- 
Alan Beard               Unix Support Technician from 1984 to today 
70 Wedmore Rd.           Sun Solaris, AIX, HP/UX, Linux, SCO OpenServer 5.0.X 
Emu Heights N.S.W. 2750  Routers, terminal servers, printers, terminals etc.. 
+61 2 47353013 (h)       Support Programming, shell scripting, "C", assembler 
0414 353013 (mobile)     After uni, electr
 
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk___
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel