Closed SimonBiggs closed 4 years ago
I solved my own problem! :) ... after much trial and error.
I installed Visual Studio Code 2013, opened up the solution file at vs12.0/jpeg/jpeg.sln
and then set the following:
Project > Properties > Configuration Properties > Linker > General > Force File Output
set this to Undefined Symbol Only (/FORCE:UNRESOLVED)
. This was as per the guidance found at https://stackoverflow.com/a/2326554/3912576.
This produced jpeg.exe
. For others to easily access it I have uploaded this executable to https://zenodo.org/record/3592182#.XgGeVUczZhE along with the source code.
The alternative if you're using MSYS2 is to change from -lc
to -lmsvcrt
in Makefile_Settings.gcc
:
LDLIBS = -lmsvcrt -lm $(EXTRA_LIBS) #gcc_s required for long division/multiplication on 32bit
Hi @thorfdbg,
I am attempting to support decoding of 1993 lossless JPEG natively on Windows and I cannot seem to find a compiled executable anywhere.
I have successfully compiled this library within Windows Services for Linux by doing the following:
This then allows me to successfully use the
jpeg
executable installed within~/bin/wavelet/jpeg
.Nevertheless, I would like to distribute this functionality to other PCs through my Medical Physics Python library, PyMedPhys and requesting they set up Windows Services for Linux is unfortunately not viable. I have been attempting to compile this library within MSYS2. I have done this by downloading msys2 from http://www.msys2.org/ and then using
pacman
to install a range of tools that appear necessary.Nevertheless, after all of that running:
presents me with the following error:
Any direction or nudge in the right direction would be massively appreciated.
I have also attempted using VS2013 with the provided
vs12.0/jpeg/jpeg.sln
file on a Windows 10 machine. When doing that I get the following errors:Cheers, Simon
For reference I have pasted the full output of the
./configure
command below.