Build standalone OpenCV library for Linux (C++)
6 USDГоспода! Делал я себе лабораторные по распознаванию образов на следующий год, чтоб значит все экстерном закрыть, и тут возникла проблема. Заключается она в том, что лабораторную надо показывать на компе препода и она должна быть выполнена под 64-битный Linux. Это означает, что программу надо скомпилировать под Release, чтобы можно было легко перенести на чистый комп без передустановки opencv на нем. Это предполагает использование static библиотек (маздай - dll, линух - a). Я использовал 3.4.5 сборку opencv и на винде все было хорошо: кинул рядом с прогой opencv_world345 - и все в ажуре, можно свободно кидать прогу с этой dll-кой на любой чистый виндовый комп - все работает. А вот в линухе все пошло под откос. Готовой сборки opencv под него нет. Я сначала просто собрал opencv по этому примеру (https://techcave.ru/posts/43-ustanovka-opencv-na-ubuntu-ili-debian.html , да, я на дебиан 9 работаю), и программа успешна скомпилилась и работает, но работает с shared библиотеками и при переносе на чужой комп требует их. Попытка скомпилить со static библиотеками ничего не дала - программа просто нескомпилилась, ощетинившись кучей undefined reference errors на функции и методы opencv. Возникла мысль: а почему просто не сделать opencv_world на линухе - и дело в шляпе. Но окончилось дело медным тазом, т. к. при попытке подключиться к opencv_world (что .so, что .a, что в /usr/local/lib, что в кастомной директории) приводит только к undefined reference. Полагаю, что проблема в неправильной сборке - что-то пропустил. 3 дня экспериментов и заплывов по форумам ничего не дало: либо это какое-то ценное таинство, либо народ не сталкивался с моей проблемой (что врядли).
Так вот, задача - обучить этому сильному колдунству, чтобы иметь возможность запускать прогу на чистом линухе (дебиан/убунту/пр.). Интересует алгоритм действий для личного воспроизведения, если такой вообще возможен.
Уже самому интересно разобраться.
-
Привет!
Каким именно компилером собираешь?
Флаг
-DBUILD_SHARED_LIBS=OFFпытался ставить при сборке, как я понимаю?
-

-
Current freelance projects in the category AI & Machine Learning
Improve the performance of Claude Code and work on software development.I am currently developing CRM and Analytics software. I am using Claude Code, but I understand that the results are not the best in terms of changes. There are 2 tasks - Need help creating a preset for skills, MD, and so on to improve quality. Take verified ones that have been… AI & Machine Learning, Python ∙ 1 day 4 hours back ∙ 21 proposals |
A specialist is needed for training a model for object detection in architectural drawings.1. Task ObjectiveIt is necessary to train or adapt a model for the automatic detection and classification of elements in architectural drawings of interior projects.The system should find objects on the plans, outline them with a bbox/contour, determine the class of the object,… AI & Machine Learning ∙ 1 day 5 hours back ∙ 5 proposals |
AI agent in Telegram for online store
451 USD
Task: creating an AI agent in Telegram for live communication with customers and processing orders in the online store on OpenCart. It is also necessary to implement customer notifications regarding order statuses, store operating hours, working conditions, delivery times, and… AI & Machine Learning, Bot Development ∙ 1 day 18 hours back ∙ 67 proposals |
Improvement of the website on Claude Code
180 USD
WE are creating a website for real estate publication. The main part of the project, the landing page, and the admin panel are already in place. Everything is functioning correctly, but there are improvements that require attention and professionalism. We will provide more… AI Art, AI & Machine Learning ∙ 1 day 23 hours back ∙ 45 proposals |
Development of an intelligent control system for an oil refinery
5822 USD
We are looking for an experienced team or specialists to implement an industrial AI platform for monitoring and managing oil production (sunflower, cold and hot pressing). Stack and technologies: Beckhoff TwinCAT 3 (Structured Text) · Python 3.11 · Node-RED · InfluxDB 2 ·… AI & Machine Learning, Embedded Systems & Microcontrollers ∙ 1 day 23 hours back ∙ 30 proposals |