Compiling PiHPSDR

266 views
Skip to first unread message

J P Watters

unread,
Feb 28, 2021, 4:52:01 AM2/28/21
to Christoph v. Wüllen, Hermes-Lite

After installing and testing piHPSDR pre-compiled version I have attempted to compile from source and install the piHPSDR 


I was able to compile WDSP and install it from the source after updating the makefile command to include the MACOS makefile 

ie 

make -f Makefile.mac

make -f Makefile.mac install


when I tried to compile piHPSDR it appears to fails on prerequisites, even though they appear to be installed. 


% brew list --versions gtk+3 portaudio

gtk+3 3.24.26

portaudio 19.6.0


% make -f Makefile.mac app  

Package zlib was not found in the pkg-config search path.

Perhaps you should add the directory containing `zlib.pc'

to the PKG_CONFIG_PATH environment variable

Package 'zlib', required by 'gio-2.0', not found

cc -O -Wno-deprecated-declarations -D MIDI -D PURESIGNAL    -D LOCALCW -D STEMLAB_DISCOVERY -D NO_AVAHI `pkg-config --cflags libcurl`  -DPORTAUDIO -D GIT_DATE='"2021-02-10"' -D GIT_VERSION='"v1.2.3"'  `pkg-config --cflags gtk+-3.0` -c -o portaudio.o portaudio.c

Package libcurl was not found in the pkg-config search path.

Perhaps you should add the directory containing `libcurl.pc'

to the PKG_CONFIG_PATH environment variable

No package 'libcurl' found

Package zlib was not found in the pkg-config search path.

Perhaps you should add the directory containing `zlib.pc'

to the PKG_CONFIG_PATH environment variable

Package 'zlib', required by 'gio-2.0', not found

portaudio.c:17:10: fatal error: 'gtk/gtk.h' file not found

#include <gtk/gtk.h>

         ^~~~~~~~~~~

1 error generated.

make: *** [portaudio.o] Error 1

% 


Please reply with some guidance.


..jpw J P Watters

KC9KKO

Morris, IL USA



Sid Boyce

unread,
Feb 28, 2021, 8:45:44 AM2/28/21
to herme...@googlegroups.com
Missing the header package
"apt-get install libgtk-3-dev"
73 ... Sid.

On 28/02/2021 09:51, J P Watters wrote:
>
> After installing and testing piHPSDR pre-compiled version I have
> attempted to compile from source and install the piHPSDRÂ
>
>
> I was able to compile WDSP and install it from the source after
> updating the makefile command to include the MACOS makefileÂ
>
> ieÂ
>
> make -f Makefile.mac
>
> make -f Makefile.mac install
>
>
> when I tried to compile piHPSDR it appears to fails on prerequisites,
> even though they appear to be installed.Â
>
>
> % brew list --versions gtk+3 portaudio
>
> gtk+3 3.24.26
>
> portaudio 19.6.0
>
>
> % make -f Makefile.mac app Â
>
> Package zlib was not found in the pkg-config search path.
>
> Perhaps you should add the directory containing `zlib.pc'
>
> to the PKG_CONFIG_PATH environment variable
>
> Package 'zlib', required by 'gio-2.0', not found
>
> cc -O -Wno-deprecated-declarations -D MIDI -D PURESIGNAL   -D
> LOCALCW -D STEMLAB_DISCOVERY -D NO_AVAHI `pkg-config --cflags
> libcurl`Â -DPORTAUDIO -D GIT_DATE='"2021-02-10"' -D
> GIT_VERSION='"v1.2.3"'Â `pkg-config --cflags gtk+-3.0` -c -o
> portaudio.o portaudio.c
>
> Package libcurl was not found in the pkg-config search path.
>
> Perhaps you should add the directory containing `libcurl.pc'
>
> to the PKG_CONFIG_PATH environment variable
>
> No package 'libcurl' found
>
> Package zlib was not found in the pkg-config search path.
>
> Perhaps you should add the directory containing `zlib.pc'
>
> to the PKG_CONFIG_PATH environment variable
>
> Package 'zlib', required by 'gio-2.0', not found
>
> *portaudio.c:17:10: **fatal error: **'gtk/gtk.h' file not found*
>
> #include <gtk/gtk.h>
>
> *        ^~~~~~~~~~~*
>
> 1 error generated.
>
> make: *** [portaudio.o] Error 1
>
> %Â
>
>
> Please reply with some guidance.
>
>
> ..jpw J P Watters
>
> KC9KKO
>
> Morris, IL USA
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Hermes-Lite" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hermes-lite...@googlegroups.com
> <mailto:hermes-lite...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hermes-lite/CAGCXWQMUvmBvjHSjLOV2i%2BAe-%3D7beCfNrF9WWDsE0QhXwzahAQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/hermes-lite/CAGCXWQMUvmBvjHSjLOV2i%2BAe-%3D7beCfNrF9WWDsE0QhXwzahAQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Senior Staff Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks

Anthony and Sam

unread,
Feb 28, 2021, 9:28:28 AM2/28/21
to Hermes-Lite
following the instructions on this link worked for me on my Mac:


might this help?

Anthony - N1IG

J P Watters

unread,
Feb 28, 2021, 12:35:41 PM2/28/21
to DL1YCF, Hermes-Lite


Christoph,


That was the clue I needed. 


% brew list --versions pkg-config     

pkg-config 0.29.2_3

% pkg-config --cflags gtk+-3.0

Package zlib was not found in the pkg-config search path.

Perhaps you should add the directory containing `zlib.pc'

to the PKG_CONFIG_PATH environment variable

Package 'zlib', required by 'gio-2.0', not found

% 


fixed it by running

source ~/.bash_profile 


the variables were there, just not added to the current environment.



% cd /usr/local/lib/pkgconfig

% ln -s /usr/local/Cellar/zlib/1.2.11/lib/pkgconfig/zlib.pc

% ln -s /usr/local/Cellar/curl/7.60.0/lib/pkgconfig/libcurl.pc




% pkg-config --cflags gtk+-3.0

-I/usr/local/Cellar/libffi/3.3_2/include -I/usr/local/Cellar/gtk+3/3.24.26/include/gtk-3.0 -I/usr/local/Cellar/glib/2.66.7/include/gio-unix-2.0 -I/usr/local/Cellar/cairo/1.16.0_5/include/cairo -I/usr/local/Cellar/libepoxy/1.5.5_1/include -I/usr/local/Cellar/pango/1.48.2/include/pango-1.0 -I/usr/local/Cellar/harfbuzz/2.7.4_1/include/harfbuzz -I/usr/local/Cellar/pango/1.48.2/include/pango-1.0 -I/usr/local/Cellar/fribidi/1.0.10/include/fribidi -I/usr/local/Cellar/harfbuzz/2.7.4_1/include/harfbuzz -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/atk/2.36.0/include/atk-1.0 -I/usr/local/Cellar/cairo/1.16.0_5/include/cairo -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/local/Cellar/libxrender/0.9.10/include -I/usr/local/Cellar/libxext/1.3.4/include -I/usr/local/Cellar/libx11/1.7.0/include -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/local/Cellar/libxau/1.0.9/include -I/usr/local/Cellar/libxdmcp/1.1.3/include -I/usr/local/Cellar/gdk-pixbuf/2.42.2/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/glib/2.66.7/include -I/usr/local/Cellar/zlib/1.2.11/include -I/usr/local/Cellar/glib/2.66.7/include -I/usr/local/Cellar/glib/2.66.7/include/glib-2.0 -I/usr/local/Cellar/glib/2.66.7/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.44/include -I/usr/local/Cellar/xorgproto/2021.3/include

%


WDSP compile


gcc -shared                -o libwdsp.dylib linux_port.o amd.o ammod.o amsq.o analyzer.o anf.o anr.o bandpass.o calcc.o calculus.o cblock.o cfcomp.o cfir.o channel.o comm.o compress.o delay.o dexp.o div.o eer.o emnr.o emph.o eq.o fcurve.o fir.o firmin.o fmd.o fmmod.o fmsq.o gain.o gen.o icfir.o iir.o iobuffs.o iqc.o lmath.o main.o meter.o meterlog10.o nbp.o nob.o nobII.o osctrl.o patchpanel.o resample.o rmatch.o RXA.o sender.o shift.o siphon.o slew.o snb.o syncbuffs.o TXA.o utilities.o version.o varsamp.o wcpAGC.o wisdom.o -L/usr/local/lib -lfftw3 -lpthread 

jpwatters@Js-MBP-93 wdsp % make -f Makefile.Mac install

cp wdsp.h /usr/local/include

install_name_tool -id /usr/local/lib/libwdsp.dylib libwdsp.dylib

cp libwdsp.dylib /usr/local/lib


and 


PIHPSDR compile


gcc -o pihpsdr MacOS.o audio.o portaudio.o band.o configure.o discovered.o discovery.o filter.o version.o main.o new_menu.o about_menu.o rx_menu.o exit_menu.o radio_menu.o ant_menu.o display_menu.o dsp_menu.o pa_menu.o cw_menu.o oc_menu.o xvtr_menu.o equalizer_menu.o step_menu.o meter_menu.o band_menu.o bandstack_menu.o mode_menu.o filter_menu.o noise_menu.o agc_menu.o vox_menu.o fft_menu.o diversity_menu.o tx_menu.o vfo_menu.o test_menu.o meter.o mode.o old_discovery.o new_discovery.o old_protocol.o new_protocol.o new_protocol_programmer.o rx_panadapter.o tx_panadapter.o property.o radio.o receiver.o rigctl.o rigctl_menu.o toolbar.o transmitter.o zoompan.o sliders.o vfo.o waterfall.o button_text.o vox.o update.o store.o store_menu.o memory.o led.o ext.o error_handler.o cwramp.o protocols.o   \

iambic.o ps_menu.o \

mac_midi.o midi2.o midi3.o stemlab_discovery.o -lm -lwdsp -lpthread -lportaudio  `pkg-config --libs gtk+-3.0`  `pkg-config --libs libcurl` -framework CoreMIDI -framework Foundation 


% sudo make -f Makefile.mac install

Password:

cp pihpsdr /usr/local/bin


% ls /usr/local/bin/pihpsdr

/usr/local/bin/pihpsdr


% ls -al /usr/local/bin/pihpsdr

-rwxr-xr-x  1 root  staff  500360 Feb 28 10:49 /usr/local/bin/pihpsdr



Thank YOU OM


..jpw J P Watters

KC9KKO

Morris, IL USA




On Sun, Feb 28, 2021 at 4:29 AM DL1YCF <dl1...@darc.de> wrote:
what is the output of the command


> pkg-config --cflags gtk+-3.0


if you type this in?
Reply all
Reply to author
Forward
0 new messages