How to link tesseract and leptonica libraries in clion? - c++11

I have a project in visual studios where I have used the properties options to link tesseract and leptonica libraries. However, in CLION using cmake I can include the headers fine, but when I try and link the .lib's I get undefined reference errors for every single related function. I have scoured the internet and cannot figure out how to set up tesseract-ocr with clion. I just want to be able to run the https://tesseract-ocr.github.io/tessdoc/Examples_C++.html examples in CLION.

Related

Cannot open source file "opencv2/face.hpp"

I have OpenCV 3.0.0 configured on Visual Studio 2013.
It gives the error :
'Cannot open source file "opencv2/face.hpp'
Does it not come with pre-built library in opencv 3.0.0?
So how shall I solve the problem?
Face Recognition is an extra module and not included as standard with OpenCV.
The repo for all the extra modules can be found here:
https://github.com/itseez/opencv_contrib
You can rebuild OpenCV and include it along with any other extra modules you need, instructions are given in the readme.

Linking FreeImage VS2013

Have been trying to link FreeImage to with Visual Studio Express 2013 and getting little stuck, have followed
Building & Linking FreeImage with Visual Studio Express 2013
and problem with having to include seems to been fixed with update FreeImage.
Have downloaded and extracted Lib, .h, and DLL and linked in VS but still getting LNK2019.
In solution folder is simple folders named lib + inc and linked in options
C/C++ - Additional Include Directories - .\inc
linker - general - additional lib directories - .\lib
and the DLL is in the folder with the .exe
Any help would be greatly appreciated
Rick
Ok found solution, well work around. Rather than linking the lib's etc myself by using NuGet was able to get FreeImage up and running. If only all things could have such a simple answer.
Any further details about how to get it working by linking the headers and lib etc would still be great help for future lib's i may need to link.
https://www.nuget.org/packages/freeimage/

Install CGAL library in visual 2013 using CMake

I recently install CGAL but it does't work.
I follow some steps:
1) Install visual 2013 ultimate.
2) Install boost 1_56_0 (successfully, I have tested it on visual)
3) Install Cmake 3.0.2 and CGAL 4.5 .exe and restart the windows
4) Make project CGAL by CMake and it said: configuring done, generating done.
5) I open project and run file .sln but it shows some errors
I do what you said, #user2942203, here what I got:
note: you can zoom your browser to see it clearly.
please help me, I hope it doesn't bore you much.
By default, on Windows, CGAL libraries will want to use the dynamic libraries (.lib/.dll) of Boost, instead of static libraries. The unresolved symbols that you copy-pasted have ""__declspec(dllimport)" in their name, showing that you are using the default.
It might be that you have installed only the static libraries of Boost, and not the dynamic libraries. Two solutions:
You can try to toggle the Boolean CGAL_Boost_USE_STATIC_LIBS, in the advanced configuration of CGAL, in CMake. That will configure CGAL libraries to search for Boost static libraries, instead of dynamic libraries.
You can reinstall/recompile Boost libraries, to include dynamic libraries as well.

C++, DeviL, Opengl and msvs2010 - It compiles and links, but cant load entry point in dll

I am trying to use the DevIl image library in Windows in my project, using MSVS2010. I have downloaded the sdk "DevIL 1.7.8 SDK for 32-bit Windows" from http://openil.sourceforge.net/download.php and put in a folder where all my others libraries are. I have configured my project to include its headers and to link with the .lib provided. I have copied the dll provided to the folder my .exe is. It compiles and links with no problem but when i try to execute it i have an error popup saying something like "procedure entry point _ilGetData#0 could not be located in DevIl.dll" (translation from spanish). I have followed the same steps as in all libraries i am using with no problems, so i donĀ“t know where the problem is.
Thanks for you help.
I believe the problem is that the binaries were built with an older version of Visual Studio... you may have to build the library yourself.

Optix sample without Cmake

i'm new in Optix world and i want to try to make new project in VS 2008.
My question: how can I use and modify the project "tutorial" without compiling all the examples included with SDK?
I try to create new project in VS2008 with "tutorial" files but don't work :/
Thanx for your help!
I am also new in optix and got the same problem.
I have compiled sample1 which give the green screen within Parallel Nsight 2.0 visual studio 2010.
You need to do the following if you are using nvidia parallel nsight:
change NVCC compilation type to PTX file in cuda c/c++ at project properties.
make sure you build optix-sdk samples files using cmake.
open optix-sample.sln and build the all projects.
new libraries has been created like sutil.lib which you need to link to your new project.
create a new cuda runtime project in my case i have used sample1 files.
make sure to do step 1 and then include optix header files and sutil.h from the optix-sdk.
link sutil.lib optix and opengl libraries like opengl32.lib and glut32.lib
You should now be able to build your project.
Finally you need optix sutil freeglut dll files to run your application.
just open Optix-samples sol file , there you can see all the projects attached, find tutorial among them, right click on it and select "set as a startup project" .
Now you can run and edit tutorial alone.

Resources