GOCR for Windows From Linux
My last post was a major screw up. I admit it. Maybe I was high, but whatever I posted some shit, someone called me out on it. Ah well, big deal. I post some good stuff I reckon. Totally for free. If you can’t read through some of my bullshit to get to it then I will clean you up the proper info for a small fee of $600. But I guess you’re all just going to have to read my shit along with the good stuff. Am I retarded? Hell yeah. But I don’t give a fuck.
Anyway instead of rebooting your pc everytime you want to compile a program for windows it’s actually possible to compile straight from Linux with wine. This includes ImageMagick programs. Now I’m not sure but I think some other folks have tutorials on similar stuff but it’s a pain to get imagemagick included as well. Here’s how you do it.
Go download dev-cpp we’ll use this as our IDE
Now go get the latest MingW. You’ll know you’ve got the right one because in dev-cpp/bin/ you’ll find a load of same named files as in MinGW/bin/.
Copy the files from MinGW/bin/ over the dev-cpp/bin/ directory. This is basically an update of MinGW. Oh yeah copy over the libraries (lib/) too, I’m pretty sure you need those. Something about gettimeofday() not being present in older versions of mingw.
Download the ImageMagick for MinGW install. It’s listed under the unix binaries but runs on windows. No idea why. Anyway this will install a directory with some libraries in it. Libraries are files that have an .a extension like libMagick.a
Ok right if you’ve done all that you can go ahead and run Dev-Cpp. Like this (Make sure you’ve installed it using wine:
user[~]$ cd .wine/drive_c/Dev-Cpp/
user[Dev-Cpp]$ wine devcpp.exe
and make a commandline C++ project and set the include directory to C:\ImageMagick…\include\ and add these three libraries in this order:
C:/ImageMagick-6.3.7/lib/libMagick++.a
C:/ImageMagick-6.3.7/lib/libWand.a
C:/ImageMagick-6.3.7/lib/libMagick.a
That will now compile perfectly but when it comes to linking it will complain that there is a billion functions missing. That’s because they didn’t include all the other libraries you need. Which is what this tutorial is really about. Basically I went in search of them all and now I’ve got them I’ll zip them up for everyone. The other files you need are (you can probably just paste this into your project properties):
C:/Dev-Cpp/otherlib/libfreetype.a
C:/Dev-Cpp/otherlib/libjbig.a
C:/Dev-Cpp/otherlib/libjpeg.a
C:/Dev-Cpp/otherlib/liblcms.dll.a
C:/Dev-Cpp/otherlib/libpng.a
C:/Dev-Cpp/otherlib/libtiff.a
C:/Dev-Cpp/otherlib/libtiffxx.a
C:/Dev-Cpp/otherlib/libz.a
C:/Dev-Cpp/lib/libgdi32.a
Incidentally Dev-Cpp does come with libgdi32.a, which is handy.
Here’s the libraries. Enjoy.
All my programs so far in c++ will compile to a windows .exe from linux using this method. I find it handy. Especially as windows refuses to install because linux is on my first hard disk.



August 4th, 2008 at 5:15 pm
Why does someone want to struggle around with Windows, when there is Linux? I still can’t imagine…
August 4th, 2008 at 7:41 pm
No no no … Windows … noooo …
August 5th, 2008 at 3:11 am
I think it will not be too late to see that every OS can work together I guess.
August 5th, 2008 at 4:03 am
Come on guys, we all know at some point you’re going to want to run something on windows. Windows will find a way to infiltrate our lives.
August 5th, 2008 at 6:53 am
Ditto Martin…
It takes me less time to install Ubuntu on dual boot and set up the rest of “AMP” than it does to get WAMP working with all the extensions I need…. have a feeling it will be the same with this debacle… interesting post all the same
August 11th, 2008 at 4:39 am
Is it possible to do so?I have thought about this but failed to do any solution.
August 11th, 2008 at 3:41 pm
I have never used linux before..so i dont like tis article.
August 14th, 2008 at 3:20 am
I have tried several times this thing but can’t successful.This time I think the post will help me.
August 14th, 2008 at 4:41 am
Hah. The irony. I went to post a comment about all the s_p_am comments you have and my comment was blocked because of a “spam word”.
What BS.
August 20th, 2008 at 3:46 am
nice
August 22nd, 2008 at 1:41 pm
I have tried it but not working for me as well
August 25th, 2008 at 4:57 am
I look here again and again by and read the interesting and well written contributions. Here I would like to leave gladly a greeting from Thuringia in Germany!
August 25th, 2008 at 5:02 am
This is very much interesting.If we can use the feature of LINUX in Windows that will be funny.
August 28th, 2008 at 12:06 am
What an introduction! That’s so high but it made me smile!
For Portafill: I think it will never happen.
August 28th, 2008 at 12:11 pm
I like to use LINUX. Linux and windows have their own features.So we just need to check them out ourself!
August 29th, 2008 at 7:09 pm
Portafill: Lindows was almost the solution
August 30th, 2008 at 8:30 am
Hi. I will add this site to my favorite list because of it’s great articles.can you publish or refer about this subject more ?
September 4th, 2008 at 6:02 am
I think the post will help me.
September 9th, 2008 at 9:28 am
I have tried several times this thing but can’t successful.This time I think the post will help me.
September 15th, 2008 at 7:51 am
Is it from linux? I am not hearing any big news from linux sector for long time. what is going to happen to linux? can any one tell me..?
September 17th, 2008 at 6:47 pm
Was everyone unsuccessful here as it does not work for me whatsoever. Many tries, nothing works.
September 24th, 2008 at 5:23 am
Nice blog.Really informative.I like to use LINUX.
Regards,
image masking
September 25th, 2008 at 5:06 am
Is it from linux? I am not hearing any big news from linux sector for long time.
September 29th, 2008 at 1:14 am
I look here again and again by and read the interesting and well written contributions.
October 11th, 2008 at 6:06 am
I am waiting for the time when we will get a combined OS which will be containing all the strong sides of each OS.
October 11th, 2008 at 5:16 pm
Why does someone want to struggle around with Windows, when there is Linux? I still can’t imagine…
October 24th, 2008 at 9:41 am
I am not happy with windows . Can I install Linux on windows PC ? Help me.
October 24th, 2008 at 9:53 am
Why does someone want to struggle around with Windows, when there is Linux? I still can’t imagine…
October 30th, 2008 at 8:37 pm
Thanks for the Update…
Nick
November 8th, 2008 at 11:52 am
Hi,
I tried but i didn’t , after reading this i got some idea home i will make it successful this time , let c……….
November 10th, 2008 at 3:54 am
I like the post too much. thanks for the post. and keep posting.
November 10th, 2008 at 2:54 pm
Fantastic info. Thank you so much for posting this information. Actually i was searching for this info for a long time at last i found it. Thanks once again!
November 14th, 2008 at 9:24 am
Hi i got the knowledge about os thanks for sharing it here
November 16th, 2008 at 6:17 am
Cool info on the Internet. I am weak in OS and now i can able to manage independently thro this post. Thank you for sharing this info.
November 17th, 2008 at 3:47 am
nice post,useful info,thank you for sharing us!
November 19th, 2008 at 11:50 am
Why does someone want to struggle around with Windows, when there is Linux? I still can’t imagine…
November 19th, 2008 at 11:51 am
No no no … Windows … noooo …
November 20th, 2008 at 1:21 am
Linux is ready for most applications, he said, noting that there are telecommunications companies running mission-critical databases on Linux, and overall adoption levels are ramping up.Citing an HP-commissioned global study conducted by market-research company GCR earlier this year, Hergett said that three out of five decision makers were ready to deploy Linux for mission-critical applications within the next two years, while one in five saw that happening in five years’ time
—————————–
Ashleejames
SEO