XMP-Toolkit-SDK-2020.01/Ubuntu 18.04 / gcc 7.5.0/cmake 3.20.4
AlexImagineComm opened this issue · 3 comments
I try to build Linux version of the older libraries from here: https://www.adobe.com/devnet/xmp.html -> XMP-Toolkit-SDK-2020.01 . Can not build Linux libraries on Ubuntu 18.04:
ubuntu@ubuntu-VirtualBox:~/tmp/XMP-Toolkit-SDK-2020.1/build$ make ReleaseAll
./cmake.command 64 Dynamic Release ToolchainGCC.cmake Clean
---------------------------Config----------------------------------------
cmake_build_warning_as_error=Off
TOOLCHAIN=ToolchainGCC.cmake
cmake_buildbitdepth=On
cmake_modesubdir=_64
MACHTYPE=x86_64
cmake_buildtype=dynamic
cmake_buildmode=Release
cmake_build_static=Off
clean_cmakedir=On
cmake_libcpp=Off
Using toolchain ToolchainGCC.cmake
+++ Toolchain setup:
+++ /usr//
+++
+++
+++
+++
+++ Toolchain setup:
+++ /usr//
+++
+++
+++
+++
CMake Error at shared/SharedConfig_Common.cmake:94 (if):
if given arguments:
"LESS" "413"
Unknown arguments specified
Call Stack (most recent call first):
shared/SharedConfig_Linux.cmake:59 (SetupCompilerFlags)
shared/SharedConfig.cmake:55 (include)
XMP_ConfigCommon.cmake:34 (include)
XMP_Config.cmake:39 (include)
CMakeLists.txt:73 (include)
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release/CMakeFiles/CMakeOutput.log".
CmakeUtils.txt Failed.
cmake.command failed
Makefile:49: recipe for target 'DynamicRelease64' failed
make: *** [DynamicRelease64] Error 1
It seems this shared/SharedConfig_Common.cmake does not work at all:
workaround for visibility problem and gcc 4.1.x
if(${${COMPONENT}_VERSIONING_GCC_VERSION} LESS 413)
# only remove inline hidden...
string(REGEX REPLACE "-fvisibility-inlines-hidden" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
endif()
if(${${COMPONENT}_VERSIONING_GCC_VERSION} EQUAL 482)
#include path -I ${GNU_BASE}/include/c++/4.8.2/x86_64-unknown-linux-gnu
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I ${CMAKE_FIND_ROOT_PATH}/include/c++/4.8.2/x86_64-unknown-linux-gnu")
endif()
Here's the contain of the : XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release/CMakeFiles/CMakeOutput.log
The target system is: Linux - - x86_64
The host system is: Linux - 5.4.0-74-generic - x86_64
Please advise how to build the libraries ? Should I just delete all this "if" ? I would appreciate if you can please provide the Linux libraries built , it would eliminate my problem as well.
Regards,
Alex
I deleted the
if(${${COMPONENT}_VERSIONING_GCC_VERSION} LESS 413)
endif()
if(${${COMPONENT}_VERSIONING_GCC_VERSION} EQUAL 482)
endif()
From the shared/SharedConfig_Common.cmake.
Now I have the following problem DYnamicAll build fails:
ubuntu@ubuntu-VirtualBox:~/tmp/XMP-Toolkit-SDK-2020.1/build$ make DynamicAll
./cmake.command 64 Dynamic Release ToolchainGCC.cmake Clean
---------------------------Config----------------------------------------
cmake_build_warning_as_error=Off
TOOLCHAIN=ToolchainGCC.cmake
cmake_buildbitdepth=On
cmake_modesubdir=_64
MACHTYPE=x86_64
cmake_buildtype=dynamic
cmake_buildmode=Release
cmake_build_static=Off
clean_cmakedir=On
cmake_libcpp=Off
Using toolchain ToolchainGCC.cmake
+++ Toolchain setup:
+++ /usr//
+++
+++
+++
+++
+++ Toolchain setup:
+++ /usr//
+++
+++
+++
+++
-- ===========================================================================
-- XMPCore64
-- ===========================================================================
-- OUTPUT_DIR = /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPCore/build/../../public/libraries/i80386linux_x64/release
-- ===========================================================================
-- XMPFiles64
-- ===========================================================================
-- OUTPUT_DIR = /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPFiles/build/../../public/libraries/i80386linux_x64/release
-- ===========================================================================
-- XMPToolkitSDK
-- ===========================================================================
-- 64 bit build is: On
-- Static build is: Off
-- XMPToolkitSDK
-- -z defs -Xlinker -Bsymbolic -Wl,--no-undefined -m64 -lrt -Wl,--no-as-needed -ldl -lpthread /user/unicore/i80386linux_x64/compiler/gcc4.8.2/linux3.10_64/lib64/libssp.a
-- Compiler:
-- CC=/usr///bin/gcc
-- CXX=/usr///bin/g++
-- ===========================================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release
CmakeUtils.txt Success.
cmake.command Success
make -C ./gcc/dynamic/i80386linux_64/Release/
make[1]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
make[2]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
Consolidate compiler generated dependencies of target XMPCore
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
[ 1%] Linking CXX shared library /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/public/libraries/i80386linux_x64/release/libXMPCore.so
g++: error: /user/unicore/i80386linux_x64/compiler/gcc4.8.2/linux3.10_64/lib64/libssp.a: No such file or directory
/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPCore/build/gcc/dynamic/i80386linux_64/Release/CMakeFiles/XMPCore.dir/build.make:1696: recipe for target '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/public/libraries/i80386linux_x64/release/libXMPCore.so' failed
make[3]: *** [/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/public/libraries/i80386linux_x64/release/libXMPCore.so] Error 1
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
CMakeFiles/Makefile2:115: recipe for target '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPCore/build/gcc/dynamic/i80386linux_64/Release/CMakeFiles/XMPCore.dir/all' failed
make[2]: *** [/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPCore/build/gcc/dynamic/i80386linux_64/Release/CMakeFiles/XMPCore.dir/all] Error 2
make[2]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
Makefile:90: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
Makefile:49: recipe for target 'DynamicRelease64' failed
make: *** [DynamicRelease64] Error 2
ubuntu@ubuntu-VirtualBox:~/tmp/XMP-Toolkit-SDK-2020.1/build$
In the same time StaticAll finishes successfully:
ubuntu@ubuntu-VirtualBox:~/tmp/XMP-Toolkit-SDK-2020.1/build$ make StaticAll
./cmake.command 64 Static Release ToolchainGCC.cmake Clean
---------------------------Config----------------------------------------
cmake_build_warning_as_error=Off
TOOLCHAIN=ToolchainGCC.cmake
cmake_buildbitdepth=On
cmake_modesubdir=_64
MACHTYPE=x86_64
cmake_buildtype=static
cmake_buildmode=Release
cmake_build_static=On
clean_cmakedir=On
cmake_libcpp=Off
Using toolchain ToolchainGCC.cmake
+++ Toolchain setup:
+++ /usr//
+++
+++
+++
+++
+++ Toolchain setup:
+++ /usr//
+++
+++
+++
+++
-- ===========================================================================
-- XMPCore64
-- ===========================================================================
-- OUTPUT_DIR = /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPCore/build/../../public/libraries/i80386linux_x64/release
-- ===========================================================================
-- XMPFiles64
-- ===========================================================================
-- OUTPUT_DIR = /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPFiles/build/../../public/libraries/i80386linux_x64/release
-- ===========================================================================
-- XMPToolkitSDK
-- ===========================================================================
-- 64 bit build is: On
-- Static build is: On
-- XMPToolkitSDK
-- -z defs -Xlinker -Bsymbolic -Wl,--no-undefined -m64 -lrt -Wl,--no-as-needed -ldl -lpthread /user/unicore/i80386linux_x64/compiler/gcc4.8.2/linux3.10_64/lib64/libssp.a
-- Compiler:
-- CC=/usr///bin/gcc
-- CXX=/usr///bin/g++
-- ===========================================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release
CmakeUtils.txt Success.
cmake.command Success
make -C ./gcc/static/i80386linux_64/Release/
make[1]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
make[2]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
Consolidate compiler generated dependencies of target XMPCoreStatic
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
[ 1%] Linking CXX static library /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/public/libraries/i80386linux_x64/release/libstaticXMPCore.a
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
[ 43%] Built target XMPCoreStatic
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
Consolidate compiler generated dependencies of target XMPFilesStatic
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
[ 44%] Linking CXX static library /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/public/libraries/i80386linux_x64/release/libstaticXMPFiles.a
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
[100%] Built target XMPFilesStatic
make[2]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
make[1]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Release'
./cmake.command 64 Static Debug ToolchainGCC.cmake Clean
---------------------------Config----------------------------------------
cmake_build_warning_as_error=Off
TOOLCHAIN=ToolchainGCC.cmake
cmake_buildbitdepth=On
cmake_modesubdir=_64
MACHTYPE=x86_64
cmake_buildtype=static
cmake_buildmode=Debug
cmake_build_static=On
clean_cmakedir=On
cmake_libcpp=Off
Using toolchain ToolchainGCC.cmake
+++ Toolchain setup:
+++ /usr//
+++
+++
+++
+++
+++ Toolchain setup:
+++ /usr//
+++
+++
+++
+++
-- ===========================================================================
-- XMPCore64
-- ===========================================================================
-- OUTPUT_DIR = /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPCore/build/../../public/libraries/i80386linux_x64/debug
-- ===========================================================================
-- XMPFiles64
-- ===========================================================================
-- OUTPUT_DIR = /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPFiles/build/../../public/libraries/i80386linux_x64/debug
-- ===========================================================================
-- XMPToolkitSDK
-- ===========================================================================
-- 64 bit build is: On
-- Static build is: On
-- XMPToolkitSDK
-- -z defs -Xlinker -Bsymbolic -Wl,--no-undefined -m64 -lrt -Wl,--no-as-needed -ldl -lpthread /user/unicore/i80386linux_x64/compiler/gcc4.8.2/linux3.10_64/lib64/libssp.a
-- Compiler:
-- CC=/usr///bin/gcc
-- CXX=/usr///bin/g++
-- ===========================================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug
CmakeUtils.txt Success.
cmake.command Success
make -C ./gcc/static/i80386linux_64/Debug/
make[1]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
make[2]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
Consolidate compiler generated dependencies of target XMPCoreStatic
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
[ 1%] Linking CXX static library /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/public/libraries/i80386linux_x64/debug/libstaticXMPCore.a
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
[ 43%] Built target XMPCoreStatic
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
Consolidate compiler generated dependencies of target XMPFilesStatic
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
[ 44%] Linking CXX static library /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/public/libraries/i80386linux_x64/debug/libstaticXMPFiles.a
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
[100%] Built target XMPFilesStatic
make[2]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
make[1]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/static/i80386linux_64/Debug'
ubuntu@ubuntu-VirtualBox:~/tmp/XMP-Toolkit-SDK-2020.1/build$
The ReleaseAll gives the following results:
ubuntu@ubuntu-VirtualBox:~/tmp/XMP-Toolkit-SDK-2020.1/build$ make ReleaseAll
./cmake.command 64 Dynamic Release ToolchainGCC.cmake Clean
---------------------------Config----------------------------------------
cmake_build_warning_as_error=Off
TOOLCHAIN=ToolchainGCC.cmake
cmake_buildbitdepth=On
cmake_modesubdir=_64
MACHTYPE=x86_64
cmake_buildtype=dynamic
cmake_buildmode=Release
cmake_build_static=Off
clean_cmakedir=On
cmake_libcpp=Off
Using toolchain ToolchainGCC.cmake
+++ Toolchain setup:
+++ /usr//
+++
+++
+++
+++
+++ Toolchain setup:
+++ /usr//
+++
+++
+++
+++
-- ===========================================================================
-- XMPCore64
-- ===========================================================================
-- OUTPUT_DIR = /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPCore/build/../../public/libraries/i80386linux_x64/release
-- ===========================================================================
-- XMPFiles64
-- ===========================================================================
-- OUTPUT_DIR = /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPFiles/build/../../public/libraries/i80386linux_x64/release
-- ===========================================================================
-- XMPToolkitSDK
-- ===========================================================================
-- 64 bit build is: On
-- Static build is: Off
-- XMPToolkitSDK
-- -z defs -Xlinker -Bsymbolic -Wl,--no-undefined -m64 -lrt -Wl,--no-as-needed -ldl -lpthread /user/unicore/i80386linux_x64/compiler/gcc4.8.2/linux3.10_64/lib64/libssp.a
-- Compiler:
-- CC=/usr///bin/gcc
-- CXX=/usr///bin/g++
-- ===========================================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release
CmakeUtils.txt Success.
cmake.command Success
make -C ./gcc/dynamic/i80386linux_64/Release/
make[1]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
make[2]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
Consolidate compiler generated dependencies of target XMPCore
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
make[3]: Entering directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
[ 1%] Linking CXX shared library /home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/public/libraries/i80386linux_x64/release/libXMPCore.so
g++: error: /user/unicore/i80386linux_x64/compiler/gcc4.8.2/linux3.10_64/lib64/libssp.a: No such file or directory
/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPCore/build/gcc/dynamic/i80386linux_64/Release/CMakeFiles/XMPCore.dir/build.make:1696: recipe for target '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/public/libraries/i80386linux_x64/release/libXMPCore.so' failed
make[3]: *** [/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/public/libraries/i80386linux_x64/release/libXMPCore.so] Error 1
make[3]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
CMakeFiles/Makefile2:115: recipe for target '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPCore/build/gcc/dynamic/i80386linux_64/Release/CMakeFiles/XMPCore.dir/all' failed
make[2]: *** [/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/XMPCore/build/gcc/dynamic/i80386linux_64/Release/CMakeFiles/XMPCore.dir/all] Error 2
make[2]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
Makefile:90: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ubuntu/tmp/XMP-Toolkit-SDK-2020.1/build/gcc/dynamic/i80386linux_64/Release'
Makefile:49: recipe for target 'DynamicRelease64' failed
make: *** [DynamicRelease64] Error 2
ubuntu@ubuntu-VirtualBox:~/tmp/XMP-Toolkit-SDK-2020.1/build$
close the issue, it's duplication of the #8