schoolpost / PiDNG

Create Adobe DNG RAW files using Python. Works with any Bayer RAW Data including native support for Raspberry Pi cameras.
MIT License
199 stars 37 forks source link

Install Issue #62

Closed atkinsr57 closed 2 years ago

atkinsr57 commented 2 years ago

I run into the following error when installing pidng:

_Creating library build\temp.win-amd64-3.8\Release\src/pidng\ljpegCompress.cp38-win_amd64.lib and object build\temp.win-amd64-3.8\Release\src/pidng\ljpegCompress.cp38-win_amd64.exp lj92.obj : error LNK2001: unresolved external symbol __builtin_clz build\lib.win-amd64-3.8\ljpegCompress.cp38-winamd64.pyd : fatal error LNK1120: 1 unresolved externals error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\link.exe' failed with exit status 1120

Same error on 2 different W'10 machines with different versions of VC. Any help resolving this would be appreciated as I am a hardware guy. FYI we are told the conversion works for the Luxonis OAK-1 camera as well.

Thanks, Bob

schoolpost commented 2 years ago

I do not have any immediate fix you can perform to solve this on Windows. I would recommend Linux installation if you can make that accomodation.

It is an issue with an underlying C library and the compilation is failing in a Windows environment.

atkinsr57 commented 2 years ago

Thank you - works as described in a Linux environment

unpapardo commented 2 years ago

I'm also getting this issue, but tbf I'm only interested on writing DNGs and setting up Linux is too much of a hassle. Can I strip all the C code and still make it work? Or is the C code required to write DNGs?

schoolpost commented 2 years ago

I'm also getting this issue, but tbf I'm only interested on writing DNGs and setting up Linux is too much of a hassle. Can I strip all the C code and still make it work? Or is the C code required to write DNGs?

The C Code is present for Lossless Compression. If you know how to omit the c code yourself, then yes it shouldn't affect the rest of the library otherwise.