Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install C++ on Windows 11 (fatal error LNK1169 on ext_zlib) #6134

Open
3 tasks done
DavidV1603 opened this issue May 5, 2023 · 1 comment
Open
3 tasks done
Labels
build/install Build or installation issue

Comments

@DavidV1603
Copy link

DavidV1603 commented May 5, 2023

Checklist

Steps to reproduce the issue

Hello,

I've tried to install C++ Open3D on my Windows 11 PC, to get the .dll-file for further usage. When trying the ALL_BUILD cmake, it fails because of the attached LNK2005 error, that says that multiple things like "inflate" or "crc32" are already defined. Therefore I also cannot execute the INSTALL command. So far, I've tried multiple different cmake arguments, but nothing has changed this error.

Other things I've tried:

Is there another easier way, to get the complete Open3D-dll including e.g. the surface reconstruction to use it further in C++ code?

Thank you for your help :)

Error message

Performing build step for 'ext_zlib'
  MSBuild version 17.5.1+f6fdcf537 for .NET Framework

zlib.lib(zlib1.dll) : error LNK2005: inflate ist bereits in inflate.obj definiert. [C:\src\Open3D-0.17.0\build\zlib\src
\ext_zlib-build\zlib.vcxproj] [C:\src\Open3D-0.17.0\build\ext_zlib.vcxproj]
zlib.lib(zlib1.dll) : error LNK2005: inflateEnd ist bereits in inflate.obj definiert. [C:\src\Open3D-0.17.0\build\zlib\
src\ext_zlib-build\zlib.vcxproj] [C:\src\Open3D-0.17.0\build\ext_zlib.vcxproj]
zlib.lib(zlib1.dll) : error LNK2005: crc32 ist bereits in crc32.obj definiert. [C:\src\Open3D-0.17.0\build\zlib\src\ext
_zlib-build\zlib.vcxproj] [C:\src\Open3D-0.17.0\build\ext_zlib.vcxproj]
zlib.lib(zlib1.dll) : error LNK2005: inflateInit2_ ist bereits in inflate.obj definiert. [C:\src\Open3D-0.17.0\build\zl
ib\src\ext_zlib-build\zlib.vcxproj] [C:\src\Open3D-0.17.0\build\ext_zlib.vcxproj]
zlib.lib(zlib1.dll) : error LNK2005: get_crc_table ist bereits in crc32.obj definiert. [C:\src\Open3D-0.17.0\build\zlib
\src\ext_zlib-build\zlib.vcxproj] [C:\src\Open3D-0.17.0\build\ext_zlib.vcxproj]
       Bibliothek "C:/src/Open3D-0.17.0/build/zlib/src/ext_zlib-build/Release/zlib.lib" und Objekt "C:/src/Open3D-0.17.
  0/build/zlib/src/ext_zlib-build/Release/zlib.exp" werden erstellt.
C:\src\Open3D-0.17.0\build\zlib\src\ext_zlib-build\Release\zlib.dll : fatal error LNK1169: Mindestens ein mehrfach defi
niertes Symbol gefunden. [C:\src\Open3D-0.17.0\build\zlib\src\ext_zlib-build\zlib.vcxproj] [C:\src\Open3D-0.17.0\build\
ext_zlib.vcxproj]
    zlibstatic.vcxproj -> C:\src\Open3D-0.17.0\build\zlib\src\ext_zlib-build\Release\zlibstatic.lib
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5):
error MSB8066: Der benutzerdefinierte Build für "C:\src\Open3D-0.17.0\build\CMakeFiles\ea09ec484f8018e00fb9e6f18007f029
\ext_zlib-build.rule;C:\src\Open3D-0.17.0\build\CMakeFiles\ea09ec484f8018e00fb9e6f18007f029\ext_zlib-install.rule;C:\sr
c\Open3D-0.17.0\build\CMakeFiles\ec2248c979cc19bb9b7b133efeefa075\ext_zlib-complete.rule;C:\src\Open3D-0.17.0\build\CMa
keFiles\f2f41ea2859b820aa9e84ad32f00e71c\ext_zlib.rule" wurde mit dem Code 1 beendet. [C:\src\Open3D-0.17.0\build\ext_z
lib.vcxproj]

Open3D, Python and System information

- Operating system: Windows 11 64-bit
- Python version: Python 3.11 (I've also tried with 3.10., but it made no difference)
- Open3D version: master-build (0.17.0)
- System architecture: x64
- Is this a remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): gcc 7.5 / clang 7.0

Additional information

No response

@DavidV1603 DavidV1603 added the build/install Build or installation issue label May 5, 2023
@johnthagen
Copy link
Contributor

Specifically for the 3.11 part, see:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build/install Build or installation issue
Projects
None yet
Development

No branches or pull requests

2 participants