Re: [Hamlib-developer] Building Python bindings
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: George B. <geo...@gm...> - 2025-04-08 11:50:11
|
It's looking for python, you probably only have python3. You need to add PYTHON_VERSION=3 to the command. On Tue, Apr 8, 2025, 1:32 AM Phil <phi...@gm...> wrote: > > On 7/4/25 17:29, Nate Bargmann wrote: > > Hi Phil. > > I presume you're on Linux, which distribution? > > Xubuntu 24.10 > > Thank you Nate for taking the time to answer. > > Running configure this time the result is : (previously I ran "env > PYTHON=/usr/bin/python3 ./configure --with-python-binding" which did find > python) > > /phil@phil-ThinkPad-X1-Carbon-Gen-11:~/Downloads/Hamlib$ ./configure --with-python-binding > checking for gcc... gcc > checking whether the C compiler works... yes > checking for C compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether the compiler supports GNU C... yes > checking whether gcc accepts -g... yes > checking for gcc option to enable C11 features... none needed > checking whether gcc understands -c and -o together... yes > checking for stdio.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for strings.h... yes > checking for sys/stat.h... yes > checking for sys/types.h... yes > checking for unistd.h... yes > checking for wchar.h... yes > checking for minix/config.h... no > checking whether it is safe to define __EXTENSIONS__... yes > checking whether _XOPEN_SOURCE should be defined... no > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a race-free mkdir -p... /usr/bin/mkdir -p > checking for gawk... no > checking for mawk... mawk > checking whether make sets $(MAKE)... yes > checking whether make supports the include directive... yes (GNU style) > checking whether make supports nested variables... yes > checking dependency style of gcc... gcc3 > checking whether make supports nested variables... (cached) yes > checking for gcc... (cached) gcc > checking whether the compiler supports GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for gcc option to enable C11 features... (cached) none needed > checking whether gcc understands -c and -o together... (cached) yes > checking for g++... g++ > checking whether the compiler supports GNU C++... yes > checking whether g++ accepts -g... yes > checking for g++ option to enable C++11 features... none needed > checking dependency style of g++... gcc3 > checking how to run the C preprocessor... gcc -E > checking for gawk... (cached) mawk > checking whether ln -s works... yes > checking for g++... yes > checking for ar... ar > checking the archiver (ar) interface... ar > checking for inline... inline > checking AM_CFLAGS for maximum warnings... -Wall > checking AM_CXXFLAGS for maximum warnings... -Wall > checking for errno.h... yes > checking for fcntl.h... yes > checking for getopt.h... yes > checking for limits.h... yes > checking for locale.h... yes > checking for malloc.h... yes > checking for netdb.h... yes > checking for sgtty.h... yes > checking for stddef.h... yes > checking for termio.h... yes > checking for termios.h... yes > checking for values.h... yes > checking for arpa/inet.h... yes > checking for dev/ppbus/ppbconf.hdev/ppbus/ppi.h... no > checking for linux/hidraw.h... yes > checking for linux/ioctl.h... yes > checking for linux/parport.h... yes > checking for linux/ppdev.h... yes > checking for netinet/in.h... yes > checking for sys/ioccom.h... no > checking for sys/ioctl.h... yes > checking for sys/param.h... yes > checking for sys/socket.h... yes > checking for sys/stat.h... (cached) yes > checking for sys/time.h... yes > checking for sys/select.h... yes > checking for glob.h... yes > checking build system type... x86_64-pc-linux-gnu > checking host system type... x86_64-pc-linux-gnu > checking for ws2tcpip.h... no > checking for wspiapi.h... no > checking for library containing nanosleep... none required > checking for pthread.h... yes > checking for sys/types.h... (cached) yes > checking for windows.h... no > checking for winioctl.h... no > checking for winbase.h... no > checking for getopt... yes > checking for getopt_long... yes > checking for usleep... yes > checking for sleep... yes > checking for nanosleep... yes > checking for gettimeofday... yes > checking for struct timezone... yes > checking for ssize_t... yes > checking for getopt... (cached) yes > checking for getopt_long... (cached) yes > checking for usleep... (cached) yes > checking for gettimeofday... (cached) yes > checking for Sleep... no > checking for the pthreads library -lpthreads... no > checking whether pthreads work without any flags... yes > checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE > checking if more special flags are required for pthreads... no > checking for PTHREAD_PRIO_INHERIT... yes > checking POSIX termios... yes > checking for size_t... yes > checking for siginfo_t... yes > checking for sig_atomic_t... yes > checking for sin... no > checking for connect... yes > checking for gethostbyname... yes > checking for gethostbyname... (cached) yes > checking for timeBeginPeriod... no > checking for main in -lwinmm... no > checking for gcc options needed to detect all undeclared functions... none needed > checking for struct addrinfo... yes > checking whether gai_strerror is declared... yes > checking for getaddrinfo... (cached) yes > checking for cfmakeraw... yes > checking for floor... no > checking for getpagesize... yes > checking for getpagesize... (cached) yes > checking for gettimeofday... (cached) yes > checking for inet_ntoa... yes > checking for ioctl... yes > checking for memchr... yes > checking for memmove... yes > checking for memset... yes > checking for pow... no > checking for rint... no > checking for select... yes > checking for setitimer... yes > checking for setlocale... yes > checking for sigaction... yes > checking for signal... yes > checking for snprintf... yes > checking for socket... yes > checking for sqrt... no > checking for strchr... yes > checking for strdup... yes > checking for strerror... yes > checking for strncasecmp... yes > checking for strrchr... yes > checking for strstr... yes > checking for strtol... yes > checking for glob... yes > checking for socketpair... yes > checking for working alloca.h... yes > checking for alloca... yes > checking how to print strings... printf > checking for a sed that does not truncate output... /usr/bin/sed > checking for grep that handles long lines and -e... /usr/bin/grep > checking for egrep... /usr/bin/grep -E > checking for fgrep... /usr/bin/grep -F > checking for ld used by gcc... /usr/bin/ld > checking if the linker (/usr/bin/ld) is GNU ld... yes > checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B > checking the name lister (/usr/bin/nm -B) interface... BSD nm > checking the maximum length of command line arguments... 1572864 > checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop > checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop > checking for /usr/bin/ld option to reload object files... -r > checking for file... file > checking for objdump... objdump > checking how to recognize dependent libraries... pass_all > checking for dlltool... no > checking how to associate runtime and link libraries... printf %s\n > checking for archiver @FILE support... @ > checking for strip... strip > checking for ranlib... ranlib > checking command to parse /usr/bin/nm -B output from gcc object... ok > checking for sysroot... no > checking for a working dd... /usr/bin/dd > checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 > checking for mt... mt > checking if mt is a manifest tool... no > checking for dlfcn.h... yes > checking for objdir... .libs > checking if gcc supports -fno-rtti -fno-exceptions... no > checking for gcc option to produce PIC... -fPIC -DPIC > checking if gcc PIC flag -fPIC -DPIC works... yes > checking if gcc static flag -static works... yes > checking if gcc supports -c -o file.o... yes > checking if gcc supports -c -o file.o... (cached) yes > checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes > checking whether -lc should be explicitly linked in... no > checking dynamic linker characteristics... GNU/Linux ld.so > checking how to hardcode library paths into programs... immediate > checking whether stripping libraries is possible... yes > checking if libtool supports shared libraries... yes > checking whether to build shared libraries... yes > checking whether to build static libraries... no > checking how to run the C++ preprocessor... g++ -E > checking for ld used by g++... /usr/bin/ld -m elf_x86_64 > checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes > checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes > checking for g++ option to produce PIC... -fPIC -DPIC > checking if g++ PIC flag -fPIC -DPIC works... yes > checking if g++ static flag -static works... yes > checking if g++ supports -c -o file.o... yes > checking if g++ supports -c -o file.o... (cached) yes > checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes > checking dynamic linker characteristics... (cached) GNU/Linux ld.so > checking how to hardcode library paths into programs... immediate > checking for windres... no > checking whether C99 struct/array initializers are supported... yes > checking whether to build USB dependent backends... yes > checking for libusb_init in -lusb-1.0... yes > checking for libusb.h... no > checking for libusb-1.0/libusb.h... yes > checking whether to use readline in rigctl/rotctl... yes > checking for a readline compatible library... no > configure: WARNING: readline support not found, using internal input handling. > checking whether to use INDI in rigctl/rotctl... checking whether to build HTML rig feature matrix... check > checking for gd.h... no > checking whether to build rigmem XML support... no > checking whether to build USRP backend... no > checking whether to build C++ binding... yes > checking whether to build perl binding... no > checking whether to build python binding... yes > checking for python... no > configure: error: Cannot find python in your system path > > This all looks good, except for python not found. > > I have the latest hamlib from github, I wonder if that differs from the > version that you have? > > git clone https://github.com/Hamlib/Hamlib.git > > -- > Regards, > Phil > > _______________________________________________ > Hamlib-developer mailing list > Ham...@li... > https://lists.sourceforge.net/lists/listinfo/hamlib-developer > |