Unable to compile

Supporting 2.6 and up
Post Reply
Joe2k1
Fresh meat
Posts: 2
Joined: Fri Apr 14, 2023 7:37 am
Contact:

Unable to compile

Post by Joe2k1 »

Hello,

I recently upgraded my laptop running unbunto. Unfortunately, I am unable to compile phidgets. I just downloaded the tar to the download folder. I attempted to do the configure, make. It gives the error below during the make process.

I am running 5.15-0.69 generic #76 Ubuntu SMP - March 17 2023.

Edit: Yes, it’s 2.8.2 (f525b16) set to work with Phidgets. Again it worked fine before but after the upgrade. After some additional troubleshooting. It seems that the libphidget22 was not installed. I untarred into the downloads folder. I get an error message during the make process. Here is the error below:

rc/vint.h:96:19: note: by argument 4 of type 'const uint8_t *' {aka 'const unsigned char *'} to 'sendVINTDataPacket' declared here
96 | PhidgetReturnCode sendVINTDataPacket(mosiop_t iop, PhidgetChannelHandle channel,
| ^~~~~~~~~~~~~~~~~~
src/vintpackets.c:516:17: note: 'buf' declared here
516 | uint8_t buf[2];
| ^~~
src/vintpackets.c: In function 'sendDCC1000_POSITIONCONTROL_FAILSAFE':
src/vintpackets.c:6520:33: warning: 'buf' may be used uninitialized [-Wmaybe-uninitialized]
6520 | return (sendVINTDataPacket(bp->iop, ch, VINT_PACKET_TYPE_FAILSAFE_RESET, buf, 0));
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/phidget.h:219,
from src/phidgetbase.h:233,
from src/vintpackets.c:1:
src/vint.h:96:19: note: by argument 4 of type 'const uint8_t *' {aka 'const unsigned char *'} to 'sendVINTDataPacket' declared here
96 | PhidgetReturnCode sendVINTDataPacket(mosiop_t iop, PhidgetChannelHandle channel,
| ^~~~~~~~~~~~~~~~~~
src/vintpackets.c:6428:17: note: 'buf' declared here
6428 | uint8_t buf[8];
| ^~~
CC src/virtual.lo
CCLD libphidget22-edited
ar: u' modifier ignored since D' is the default (see `U')
Making phidget22.h
gcc -g -E -P -I./src -I./src/ext -I./src/ext/include -DPACKAGE_NAME="phidget22\ C\ Library" -DPACKAGE_TARNAME="libphidget22" -DPACKAGE_VERSION="1.14.20230331" -DPACKAGE_STRING="phidget22\ C\ Library\ 1.14.20230331" -DPACKAGE_BUGREPORT="support@phidgets" -DPACKAGE_URL="www.phidgets" -DPACKAGE="libphidget22" -DVERSION="1.14.20230331" -DP22_LIB_VERSION="1.14.20230331" -D_HOST_CPU=x86_64 -D_MACHINE=x86_64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DMOS_BYTE_ORDER=MOS_LITTLE_ENDIAN -D_MOS_PTHREADS=1 -DUNIX=1 -D_LINUX=1 -DLinux=1 -DLIBUSB_ASYNC=1 -DNDEBUG=1 -DTHREAD_LOCALE_LOCALE_H=1 -DEXTERNALPROTO ./src/phidget22int.h | sed -e "s/extern "C" //g" >> phidget22.h
User avatar
Patrick
Lead Developer
Posts: 3403
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Unable to compile

Post by Patrick »

I'd recommend installing from package on Ubuntu. If you're using kinetic or something, you can just use the jammy repo.

I will update the source to handle these warnings.

-Patrick
Joe2k1
Fresh meat
Posts: 2
Joined: Fri Apr 14, 2023 7:37 am
Contact:

Re: Unable to compile

Post by Joe2k1 »

I was using Linux Mint. I updated using the package install thanks to assistance from the technical support team. I was able to successfully install Phidgets. Many thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests