-
Notifications
You must be signed in to change notification settings - Fork 393
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
Cross-Compiling Leptonica for Windows on Arch Linux #749
Comments
I have not had any experience building windows programs from unix. |
Thank you very much for the quick response! I've re-read the mentioned paragraphs of the article and checked the necessery dependencies in section Sadly, I can't use MSYS2 or Cygwin for my purposes since both of them are for Windows-Only. I've also re-confirmed that all the packages mentioned in section Is there maybe a way to simulate a Windows environment on linux like what MSYS2 or Cygwin do for Windows? Thanks in advance! |
Sorry, I haven't used cross-compiling (mingw). |
Although Dave Bryan hasn't used gnu on linux when running mingw,
|
@Danny4021, do you have I use
The directory |
Hello @stweil, I'm currently on vacation so I'll get back to you all next monday when I get to try your suggested solutions. |
Hello again @stweil This is the output of my
(I honestly don't know why it doesn't find libtiff-4 even though I've copied the @DanBloomberg thanks for the help, I was able to find the lib folder thanks to the
Do you know if there's anything special about this library? I've copied the files of the library
This made me wonder: is this maybe the wrong library? Copying the Thanks for the help! |
You'll need |
Thanks for the quick response! I already have the |
Hello,
as stated in the title, I'm currently trying to cross-compile a Windows DLL for Leptonica on my Arch Linux System (Since our software needs to run on Windows and Linux) and I can't really get it to work.
I was trying to find anything inside the documentation about cross-compiling but I've not been able to find anything about it.
Here are the steps I took:
git clone https://github.com/DanBloomberg/leptonica.git
./autogen.sh
./configure --host=x86_64-w64-mingw32 --prefix=/home/leptonica/build --disable-static
make
After running these steps I get the following error:
But that's not the main issue, since I can circumvent it by copying the necessary header files into the
leptonica/src
folder on my system (For some reason this error only occurs when trying to cross-compile. It doesn't happen when I don't configure thehost
when running./configure
)After copying all the header files it's missing I get the following error after re-running
make
Now to my questions:
Am I doing something fundamentally wrong?
Does anyone have recent experience cross-compiling leptonica for Windows or does someone have a tutorial on this matter? (I've been looking for a while but I haven't been able to find anything)
I'd just like to know if I'm on the right track or if I'm doing something very wrong.
Any kind of help on that matter would be much appreciated.
Thanks in advance!
Kind regards
(If this helps, here are the packages I've installed on arch in order to compile it):
The text was updated successfully, but these errors were encountered: