jd-boyd/python-lzo

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):

  1. Download and extract the .tar.gz file as noted in https://github.com/jd-boyd/python-lzo#windows
  2. Extract it in C:\src\lzo-2.09\*source files here*
  3. Open a new shell in the directory above
  4. mkdir build && cd build
  5. cmake ..
  6. Project files for VisualStudio should be generated. Open lzo.sln.
  7. Build the lzo_static sub-project
  8. You should now have a C:\src\lzo-2.09\build\Release\lzo2.lib
  9. Duplicate above file as C:\src\lzo-2.09\lzo.lib
  10. Open a new shell where you've downloaded Python-LZO
  11. set LZO_DIR=C:\src\lzo-2.09
  12. python.exe setup.py install
  13. 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.