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
compile a program with gtk+3 for Windows ? #5584
Comments
@mrcyberfighter, it seems that you use mingw32 - this compiler is quite old. Please try to switch to mingw-w64. |
I have try it with the mingw-w64 from MSYS2: Nothing to do, it doesn't work. It compile right (the opencv3 library) only with the opencv-master.zip from github but nothing else: the installers (opencv 3.0, opencv 3.0 beta, opencv 2.4.11) from opencv website won't compile. I let Windows in her shit, in others words i give up, so that windows can go fuck to hell. Under Linux all work perfectly, except that the opencv version from the package-manager is compiled with GTK+2 instead of GTK+3, Else i get no problem during my holyday where i write a big part of my program on a MAC. Why opencv.org do not provide us prebuilded bundle like she do for vs for mingw ? Now i must capitulate in front of the worse ugly bitch of the world: Windows. |
Because mingw compilation has been fixed after 3.0 release: #5282
Because mingw is not officially supported. |
Ok i try to compile my program with a not officially supported compiler, like an idiot !!! But how to fix: fixed GNUC version checks (for correctness and convenience) Because a something with gnu_* was in my tracebacks. |
I have found the diff of the files here of your mingw hack from opencv source but they are many changes to apply and i ask you if you don't get a downloadable bundle of your modified sources or better the compiled binaries of your mingw fork, maybe at mshabunin/opencv but i make a diff from a file and it doesn't correspond ? It seems very hard to do all the changes manually for me. Thanks for your answers. |
@mrcyberfighter, these changes has already been integrated on master branch. You can just take latest from GitHub ant it should compile. |
Thanks but i download this repository and IT'S WORK. But now, because i develop my program on Linux, i hit on problems like the function |
Hello,
i recently success to compile the opencv library from the source, for code-block mingw, according this tutorial.
So i get all requirement to compile my program including
gtk+3.0
,SDL2_mixer
andopencv
but...The compilation fail and code-block try to build a library called something like opencv_gtk_test.a what's the name of my code-block project ???
I think the compilation fail due of the conjunction of the GTK+3.0 library with the opencv library because i soon have compile opencv from source for Linux and the cmake print a GTK+ take in charge which doesn't appear by Windows...???
Must I recompile OpenCV, it's was a little bit hard the last time to get viable libs on Windows and i have try to set the GTK+3 path into the PATH variable before compiling, or i'm in error ?
I get following code-block Build messages:
And following code-block Build log:
The text was updated successfully, but these errors were encountered: