Closed jerokpradeep closed 1 year ago
Same issue here, have you solved it?
I've gotten it to work with the following procedure (prerequisites: VisualStudio + CMake installed):
C:\src\lzo-2.09\*source files here*
mkdir build && cd build
cmake ..
lzo.sln
. lzo_static
sub-projectC:\src\lzo-2.09\build\Release\lzo2.lib
C:\src\lzo-2.09\lzo.lib
set LZO_DIR=C:\src\lzo-2.09
python.exe setup.py install
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.
This should be fixed with 1.15.
I encountered this problem trying to install python-lzo==1.15 with lzo version 2.10. My system is running Windows 11, using 2022 BuildTools
Encountered meaning you encountered and solved it? Installing python-lzo 1.15 still works fine for me. Cmake and Visual Studio 2022 Build Tools (with C++ Desktop tools installed), I used this method in a Developer Terminal for VS 2022, with a base path of C:\Users\Max\temp\
.
(Adapt paths as needed.)
git clone -b "v1.15" https://github.com/jd-boyd/python-lzo.git
cd python-lzo
cd lzo-2.10
mkdir build && cd build
cmake -G "Visual Studio 17 2022" ..
msbuild lzo_static_lib.vcxproj -p:Configuration=Release;Platform=x64;OutDir=C:\Users\Max\temp\python-lzo\lzo-2.10\
That should have generated C:\Users\Max\temp\python-lzo\lzo-2.10\lzo2.lib
Then just
pip install .
in the original python-lzo directory (C:\Users\Max\temp\python-lzo\
) in this example.
Yes correct, I basically followed those steps with a couple differences -- I just wasn't aware that building the lzo2.lib was required, it wasn't clear from the README. Thanks
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