Login  •  Register


Build UACPPSDK 1.7.1 (pubsub) shared linker error "-lipc"  Topic is solved

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Build UACPPSDK 1.7.1 (pubsub) shared linker error "-lipc"

Postby thomas.steiner » 03 Feb 2020, 17:37

I'm getting an linker error while building the UACPPSDK 1.7.1 shared:
Code: Select all
user@debian:/path/to/UACPPSDK$ ./buildSdk.sh -c RelWithDebInfo -s ON

Setting up the config to build CONFIGURATIONS=RelWithDebInfo
Setting up the config to build BUILD_SHARED_LIBS=ON
Setting up default default build ('make -j1')
Setting up build without toolchain file.
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
...
Scanning dependencies of target uapubsub
[ 27%] Building C object src/uapubsub/CMakeFiles/uapubsub.dir/uapubsub.c.o
[ 28%] Building C object src/uapubsub/CMakeFiles/uapubsub.dir/uapubsub_configloader.c.o
[ 28%] Building C object src/uapubsub/CMakeFiles/uapubsub.dir/uapubsub_writer.c.o
[ 28%] Building C object src/uapubsub/CMakeFiles/uapubsub.dir/uapubsub_samplingqueue.c.o
[ 28%] Building C object src/uapubsub/CMakeFiles/uapubsub.dir/uapubsub_writergroup.c.o
[ 28%] Building C object src/uapubsub/CMakeFiles/uapubsub.dir/uapubsub_reader.c.o
[ 28%] Building C object src/uapubsub/CMakeFiles/uapubsub.dir/uapubsub_connection.c.o
[ 28%] Building C object src/uapubsub/CMakeFiles/uapubsub.dir/uapubsub_dataset.c.o
[ 28%] Building C object src/uapubsub/CMakeFiles/uapubsub.dir/uapubsub_rawencoding.c.o
[ 28%] Building C object src/uapubsub/CMakeFiles/uapubsub.dir/uapubsub_dispatcher.c.o
[ 29%] Linking C shared library libuapubsub.so
/usr/bin/ld.gold: error: cannot find -lipc
collect2: error: ld returned 1 exit status
src/uapubsub/CMakeFiles/uapubsub.dir/build.make:225: recipe for target 'src/uapubsub/libuapubsub.so' failed
make[2]: *** [src/uapubsub/libuapubsub.so] Error 1
CMakeFiles/Makefile2:550: recipe for target 'src/uapubsub/CMakeFiles/uapubsub.dir/all' failed
make[1]: *** [src/uapubsub/CMakeFiles/uapubsub.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
make failed.


Do I miss some libraries?
Building it static is working.
thomas.steiner
Jr. Member
Jr. Member
 
Posts: 2
Joined: 04 Jul 2018, 15:23

Re: Build UACPPSDK 1.7.1 (pubsub) shared linker error "-lipc  Topic is solved

Postby thomas.steiner » 10 Feb 2020, 12:56

Answer from support team:

At the moment the pubsub variant cannot be linked dynamically.
Just remove the "ipc" dependency in the CMakeLists.txt
thomas.steiner
Jr. Member
Jr. Member
 
Posts: 2
Joined: 04 Jul 2018, 15:23


Return to C++ based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 0 guests

cron