areaDetector / ADAravis

areaDetector driver for GenICam cameras using the Aravis library on Linux.
https://areadetector.github.io/master/ADAravis/ADAravis.html
6 stars 8 forks source link

Build failure on Ubuntu 22.04 #28

Open davidwx opened 2 weeks ago

davidwx commented 2 weeks ago
  1. Aravis build problem: Aravis can not be built successfully if I issued git checkout from ARAVIS_0_8_3 to ARAVIS_0_8_13. There are no obvious errors: Configuring arv-viewer-0.8.appdata.xml using configuration Configuring arv-viewer.desktop.in using configuration viewer/data/meson.build:11:0: ERROR: Function does not take positional arguments. A full log can be found at /usr/local/aravis/build/meson-logs/meson-log.txt If I use the main branch, not issued git chechout command, then aravis will be built successfully. However the aravis tool is arv-tool-0.10, and the header file directory is /usr/local/include/aravis-0.10. So when I compile ADAravis-R2-3, it failed: /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X8664 -DUNIX -Dlinux -O3 -g -Wall -std=c++11 -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc-I../../../include/os/Linux -I../../../include -I/home/control/epics/synApps_6_2_1/support/asyn-R4-42/include -I/home/control/epics/synApps_6_2_1/support/areaDetector-R3-11/ADSupport/include/os/Linux -I/home/control/epics/synApps_6_2_1/support/areaDetector-R3-11/ADSupport/include -I/home/control/epics/synApps_6_2_1/support/areaDetector-R3-11/ADCore/include -I/home/control/epics/base/include/compiler/gcc -I/home/control/epics/base/include/os/Linux -I/home/control/epics/base/include -I/home/control/epics/synApps_6_2_1/support/areaDetector-R3-11/ADGenICam/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/local/include/aravis-0.8 -c ../arvFeature.cpp In file included from ../arvFeature.cpp:5: ../arvFeature.h:8:14: fatal error: arv.h: No such file or directory 8 | #include I think it is the problem of aravis version. I've tried to change aravis-0.8 to aravis-0.10 in file of ADAravis/.github/workflows/ci-scripts.yml and ADAravis/aravisApp/src/Makefile, but there is no effect.
davidwx commented 2 weeks ago
  1. I have just fixed the problem of aravis building by issued git checkout 0.8.20 which is still the version of aravis-0.8. However the compiling of ADAravis still not successful, the error info is below: /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X8664 -DUNIX -Dlinux -O3 -g -Wall -std=c++11 -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc-I../../../include/os/Linux -I../../../include -I/home/control/epics/synApps_6_2_1/support/asyn-R4-42/include -I/home/control/epics/synApps_6_2_1/support/areaDetector-R3-11/ADSupport/include/os/Linux -I/home/control/epics/synApps_6_2_1/support/areaDetector-R3-11/ADSupport/include -I/home/control/epics/synApps_6_2_1/support/areaDetector-R3-11/ADCore/include -I/home/control/epics/base/include/compiler/gcc -I/home/control/epics/base/include/os/Linux -I/home/control/epics/base/include -I/home/control/epics/synApps_6_2_1/support/areaDetector-R3-11/ADGenICam/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/local/include/aravis-0.8 -c ../arvFeature.cpp In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/local/include/aravis-0.8/arvenums.h:31, from /usr/local/include/aravis-0.8/arvtypes.h:30, from /usr/local/include/aravis-0.8/arv.h:28, from ../arvFeature.h:8, from ../arvFeature.cpp:5: /usr/include/glib-2.0/glib/gtypes.h:32:10: fatal error: glibconfig.h: No such file or directory 32 | #include I find the glibconfig.h is in /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h, not in -I/usr/lib64/glib-2.0/include. So I think this is the issue. How can I fix it?
  2. I still wish to know how to adjust if the aravis tool is 0.10.
MarkRivers commented 2 weeks ago

The first problem, not finding glibconfig.h, means you need to edit areaDetector/configure/CONFIG_SITE.local to correctly define GLIB_INCLUDE.

I will need to test with aravis 0.10 to answer the second question.