Скачал отсюда https://gisinfo.ru/download/download_linux.htmsdk14_linux.zip, распаковал, попытался собрать примеры в папке impalpi, не удалось собрать ни один. Пробовал заходить в папки с примерами программируемых условных знаков и набирать команду "cmake ./", при этом в каждой из этих папок возникли ошибки.
в папке dfc:
Код
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.16)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Error at CMakeLists.txt:46 (add_library):
Cannot find source file:
/mapacces/simlist.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:46 (add_library):
No SOURCES given to target: dfc
CMake Generate step failed. Build files cannot be regenerated correctly.
в папке rscarmy:
Код
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.16)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Error at CMakeLists.txt:54 (add_library):
Cannot find source file:
rscarmy.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:54 (add_library):
No SOURCES given to target: violit2003
CMake Error at CMakeLists.txt:53 (add_library):
No SOURCES given to target: rscarmy
CMake Generate step failed. Build files cannot be regenerated correctly.
в папке s57navy:
Код
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.16)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Error at CMakeLists.txt:55 (add_library):
Cannot find source file:
/mapacces/mapprof.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:55 (add_library):
No SOURCES given to target: s57navy
CMake Generate step failed. Build files cannot be regenerated correctly.
в папке shape:
Код
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.16)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Error at CMakeLists.txt:64 (add_library):
Cannot find source file:
/mapacces/longstring.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:64 (add_library):
No SOURCES given to target: shape
CMake Generate step failed. Build files cannot be regenerated correctly.
в папке terrplan:
Код
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.16)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Error at CMakeLists.txt:52 (add_library):
Cannot find source file:
/mapacces/longstring.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:52 (add_library):
No SOURCES given to target: terrplan
CMake Generate step failed. Build files cannot be regenerated correctly.
в папке viet:
Код
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.16)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Error at CMakeLists.txt:78 (add_library):
Cannot find source file:
viet.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:78 (add_library):
No SOURCES given to target: viet
CMake Generate step failed. Build files cannot be regenerated correctly.
Для сборки SDK необходимо выполнить команду "cmake ./ && make" в корневом каталоге распакованного архива. Более подробно работа с SDK для ГИС Оператор SE и ГИС Панорама для Linux описана в файле readme.txt, входящем в состав архива.
Требуется собрать не SDK, а примеры implapi. В readme.txt в корневом каталоге распакованного архива написано про него только "каталог ./imlapi динамических библиотек условных знаков, написанных на интерфейсе IMLAPI". В файле CMakeLists.txt в корневом каталоге распакованного архива imlapi даже не упоминается, то есть нет никаких предпосылок к тому, что при выполнении команды "cmake ./ && make" в корневом каталоге распакованного архива произойдет сборка примеров imlapi. В файле readme.txt в каталоге imlapi описывается только содержимое каталога, про сборку ничего не говорится.
Обновили SDK для разработки прикладных задач для ГИС Оператор SE и ГИС Панорама для Linux (https://gisinfo.ru/download/download_linux.htm#13): - добавили в файл основного проекта сборку библиотек программируемых знаков iml; - расширили readme с описанием порядка сборки и использования прикладных задач и библиотек iml.
make[2]: *** Нет правила для сборки цели «MAPACCES_PATH-NOTFOUND», требуемой для «imlapi/dfc/dfc.iml». Останов.
Как я понимаю, это из-за того, что ему не найти файл libmapacces.so, расположенный по пути, хранящемуся в переменной SDK_INSTALL_PATH. В файле CMakeLists.txt, расположенном в корневом каталоге распакованного архива, имеется конструкция:
Код
# Путь к каталогу инсталляции
if (DEFINED ENV{SDK_INSTALL_PATH})
set(SDK_INSTALL_PATH $ENV{SDK_INSTALL_PATH})
else ()
if (EXISTS /usr/Operator14)
set(SDK_INSTALL_PATH /usr/Operator14)
else()
set(SDK_INSTALL_PATH /usr/Panorama14)
endif()
endif ()
После этой конструкции переменная SDK_INSTALL_PATH нигде не упоминается.
Обратите, пожалуйста, внимание, что для сборки SDK требуется наличие установленного в системе ГИС Оператор SE или ГИС Панорама версии 14.
Поиск библиотек происходит по стандартным путям установки ГИС Панорама (/usr/Panorama14) и ГИС Оператор (/usr/Operator14). Переменная окружения SDK_INSTALL_PATH служит для указания каталога конкретного продукта, если, например, установлены оба.
А с ГИС Панорама Мини должно работать? У меня установлена ГИС Панорама Мини, в папке /usr/PanoramaMini13 есть файл libmapacces.so. Пробовал присвоить переменной SDK_INSTALL_PATH значение "/usr/PanoramaMini13", при попытке собрать возникла эта ошибка.