lzo.lib file not found error in Windows 10
jerokpradeep opened this issue · 5 comments
Hi,
While trying to install this I'm getting this error. The lzo.lib is not found anywhere in the library as well under the src folder. Please help as I know I'm doing something worn over here.
LINK : fatal error LNK1181: cannot open input file 'C:\src\lzo-2.09\lzo.lib'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe' failed with exit status 1181
Thanks
Pradeep K
Same issue here, have you solved it?
I've gotten it to work with the following procedure (prerequisites: VisualStudio + CMake installed):
- Download and extract the .tar.gz file as noted in https://github.com/jd-boyd/python-lzo#windows
- Extract it in
C:\src\lzo-2.09\*source files here*
- Open a new shell in the directory above
mkdir build && cd build
cmake ..
- Project files for VisualStudio should be generated. Open
lzo.sln
. - Build the
lzo_static
sub-project - You should now have a
C:\src\lzo-2.09\build\Release\lzo2.lib
- Duplicate above file as
C:\src\lzo-2.09\lzo.lib
- Open a new shell where you've downloaded Python-LZO
set LZO_DIR=C:\src\lzo-2.09
python.exe setup.py install
- Should now end with
Finished processing dependencies for ubidump==1.0.0
without error.
>python ubidump.py
usage: ubidump.py [-h] [--savedir DIRECTORY] [--preserve] [--cat FILE] [--listfiles] [--dumptree] [--verbose]
[--debug] [--encoding ENCODING] [--masteroffset MASTEROFFSET] [--root ROOT] [--rawdump]
[--volume VOLUME] [--hexdump LEB:OFF:N] [--nodedump LEB:OFF]
FILES [FILES ...]
ubidump.py: error: the following arguments are required: FILES
How can i open a shell where i have downloaded Python-LZO to set the LZO_DIR when i need to set the LZO_DIR to install python-lzo?
You can download Python-LZO without installing it, I just meant you git clone
this repository (or zip downloaded it).
Python-LZO and the LZO (C) source code are two different things.