PandABlocks / ADPandABlocks

EPICS areaDetector driver for streaming data from PandABlocks-server
0 stars 1 forks source link

how to compile without boost #4

Open LeeYangLBLBCS opened 1 year ago

LeeYangLBLBCS commented 1 year ago

I tried to compile ADPandABlocks on Ubuntu20.04. I got the following error. It looks like boost is required to compile? Is it possible to compile without boost?

thanks.

========================== T_A=linux-x86_64 install make[3]: Entering directory '/opt/epics/modules/ADPandABlocks/ADPandABlocksApp/tests/O.linux-x86_64' /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X8664 -DUNIX -Dlinux -O3 -Wall -Wall -Wextra -Wno-unused-parameter -mtune=generic -m64 -std=c++0x -pthread -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include -I/opt/epics/modules/synApps_6_1_epics7/support/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/asyn-R4-38/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/areaDetector-R3-7/ADCore/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/motor-R7-2-1/include -I/opt/epics/base-7.0.4/include/compiler/gcc -I/opt/epics/base-7.0.4/include/os/Linux -I/opt/epics/base-7.0.4/include -I/usr/include/libxml2 -MM -MF testingutilities.d ../testingutilities.cpp /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X8664 -DUNIX -Dlinux -O3 -Wall -Wall -Wextra -Wno-unused-parameter -mtune=generic -m64 -std=c++0x -pthread -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include -I/opt/epics/modules/synApps_6_1_epics7/support/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/asyn-R4-38/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/areaDetector-R3-7/ADCore/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/motor-R7-2-1/include -I/opt/epics/base-7.0.4/include/compiler/gcc -I/opt/epics/base-7.0.4/include/os/Linux -I/opt/epics/base-7.0.4/include -I/usr/include/libxml2 -MM -MF test_ADPandABlocks.d ../test_ADPandABlocks.cpp /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X8664 -DUNIX -Dlinux -O3 -Wall -Wall -Wextra -Wno-unused-parameter -mtune=generic -m64 -std=c++0x -pthread -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include -I/opt/epics/modules/synApps_6_1_epics7/support/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/asyn-R4-38/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/areaDetector-R3-7/ADCore/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/motor-R7-2-1/include -I/opt/epics/base-7.0.4/include/compiler/gcc -I/opt/epics/base-7.0.4/include/os/Linux -I/opt/epics/base-7.0.4/include -I/usr/include/libxml2 -MM -MF tests.d ../tests.cpp /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X8664 -DUNIX -Dlinux -O3 -Wall -Wall -Wextra -Wno-unused-parameter -mtune=generic -m64 -std=c++0x -pthread -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include -I/opt/epics/modules/synApps_6_1_epics7/support/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/asyn-R4-38/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/areaDetector-R3-7/ADCore/include -I/opt/epics/base-7.0.4/../modules/synApps_6_1_epics7/support/motor-R7-2-1/include -I/opt/epics/base-7.0.4/include/compiler/gcc -I/opt/epics/base-7.0.4/include/os/Linux -I/opt/epics/base-7.0.4/include -I/usr/include/libxml2 -c ../tests.cpp ../tests.cpp:3:10: fatal error: boost/test/unit_test.hpp: No such file or directory 3 | #include <boost/test/unit_test.hpp> | ^~~~~~ compilation terminated. make[3]: [/opt/epics/base-7.0.4/configure/RULES_BUILD:249: tests.o] Error 1 make[3]: Leaving directory '/opt/epics/modules/ADPandABlocks/ADPandABlocksApp/tests/O.linux-x86_64' make[2]: [/opt/epics/base-7.0.4/configure/RULES_ARCHS:58: install.linux-x86_64] Error 2 make[2]: Leaving directory '/opt/epics/modules/ADPandABlocks/ADPandABlocksApp/tests' make[1]: [/opt/epics/base-7.0.4/configure/RULES_DIRS:85: tests.install] Error 2 make[1]: Leaving directory '/opt/epics/modules/ADPandABlocks/ADPandABlocksApp' make: [/opt/epics/base-7.0.4/configure/RULES_DIRS:85: ADPandABlocksApp.install] Error 2

gilesknap commented 1 year ago

I was able to build this on ubuntu 20.04 without boost installed by removing this line from configure/CONFIG_SITE.linux-x86_64.Common

BOOST=/usr