Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in cmake using tesseract cmake example #71

Open
Ghost295 opened this issue Jun 12, 2021 · 4 comments
Open

Exception in cmake using tesseract cmake example #71

Ghost295 opened this issue Jun 12, 2021 · 4 comments
Labels
question Further information is requested

Comments

@Ghost295
Copy link

I'm probably missing something obvious but now that I got sw working. When I try to try the tesseract cmake example it gives this error:

Exception in file D:/dev/cppan2/client2/src/sw/driver/module.cpp:120, function operator (): error in module (C:/Users/USER/.sw/storage/tmp/cfg/181123/loc.sw.self.1800ba-0.0.28.dll): Exception in file D:/dev/cppan2/client2/src/sw/driver/target/native.cpp:699, function findCompiler: Cannot find compiler org.gnu.gcc->=8.1.0 <8.2.0 for settings: {"native":{"configuration":"debug","library":"shared","mt":"false","program":{"asm":"org.gnu.gcc->=8.1.0 <8.2.0","c":"org.gnu.gcc->=8.1.0 <8.2.0","cpp":"org.gnu.gpp->=8.1.0 <8.2.0","lib":"org.gnu.binutils.ar"}},"os":{"arch":"x86_64","kernel":"org.mingw"}}
sw command: D:/sw-package-manager/sw.exe -shared -platform x64 -compiler gcc-8.1 -os mingw -d D:/TestProject/cmake-build-debug/.sw/cmake -config d integrate -cmake-deps
D:/TestProject/cmake-build-debug/.sw/cmake/sw.txt -cmake-file-version 6

I am using Clion if that makes a difference.
I know it says that it cannot find the compiler but I have mingw64 installed.

@Ghost295 Ghost295 added the question Further information is requested label Jun 12, 2021
@egorpugin
Copy link
Contributor

Do you have Visual Studio C++ compiler installed?
C++ workflow in VS installer.
Try to run cmake with VS generator.


If you run cmake with mingw, it may have issues actually.
First, I'd update mingw/gcc version to gcc-11. This could be achieved with msys2 package.

@Ghost295
Copy link
Author

What do you mean by Visual Studio C++ compiler?

I installed msys2 for mingw/gcc but now its version 10 not 11. Still getting the same error.

@egorpugin
Copy link
Contributor

I see.
Can you send your CMakeLists.txt?
Mingw workflows are not very well tested yet.

@Ghost295
Copy link
Author

Sure, no problem.
CMakeLists.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants