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

[compile error] build failed with mingw730 in win10 #6192

Closed
dongfangZh opened this issue Dec 7, 2024 · 1 comment
Closed

[compile error] build failed with mingw730 in win10 #6192

dongfangZh opened this issue Dec 7, 2024 · 1 comment
Labels
kind: compile error Type of issue status: triage Labels incomplete

Comments

@dongfangZh
Copy link

Describe the error

[ 78%] Linking CXX executable ..\bin\pcl_vtk2pcd.exe
D:/Dependences/MinGW_env/installed_lib/VTK_8.0.0_withQT_MPI/lib/libvtkCommonExecutionModel-8.2.a(vtkPolyDataAlgorithm.cxx.obj):vtkPolyDataAlgorithm.cxx:(.text+0x270): multiple definition of vtkPolyDataAlgorithm::GetOutput()' ../lib/libpcl_io.dll.a(d009293.o):(.text+0x0): first defined here D:/Dependences/MinGW_env/installed_lib/VTK_8.0.0_withQT_MPI/lib/libvtkCommonExecutionModel-8.2.a(vtkPolyDataAlgorithm.cxx.obj):vtkPolyDataAlgorithm.cxx:(.text+0x3a0): multiple definition of vtkPolyDataAlgorithm::SetInputData(vtkDataObject*)'
../lib/libpcl_io.dll.a(d009280.o):(.text+0x0): first defined here
D:/Dependences/MinGW_env/installed_lib/VTK_8.0.0_withQT_MPI/lib/libvtkCommonDataModel-8.2.a(vtkDataSetAttributes.cxx.obj):vtkDataSetAttributes.cxx:(.text+0x56f0): multiple definition of vtkDataSetAttributes::GetScalars()' ../lib/libpcl_io.dll.a(d009084.o):(.text+0x0): first defined here D:/Dependences/MinGW_env/installed_lib/VTK_8.0.0_withQT_MPI/lib/libvtkCommonDataModel-8.2.a(vtkDataSetAttributes.cxx.obj):vtkDataSetAttributes.cxx:(.text+0x5790): multiple definition of vtkDataSetAttributes::GetNormals()'
../lib/libpcl_io.dll.a(d009082.o):(.text+0x0): first defined here
D:/Dependences/MinGW_env/installed_lib/VTK_8.0.0_withQT_MPI/lib/libvtkCommonCore-8.2.a(vtkSmartPointerBase.cxx.obj):vtkSmartPointerBase.cxx:(.text+0x40): multiple definition of vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*)' ../lib/libpcl_io.dll.a(d008965.o):(.text+0x0): first defined here D:/Dependences/MinGW_env/installed_lib/VTK_8.0.0_withQT_MPI/lib/libvtkCommonCore-8.2.a(vtkSmartPointerBase.cxx.obj):vtkSmartPointerBase.cxx:(.text+0x70): multiple definition of vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*, vtkSmartPointerBase::NoReference const&)'
../lib/libpcl_io.dll.a(d008966.o):(.text+0x0): first defined here
D:/Dependences/MinGW_env/installed_lib/VTK_8.0.0_withQT_MPI/lib/libvtkCommonCore-8.2.a(vtkSmartPointerBase.cxx.obj):vtkSmartPointerBase.cxx:(.text+0xb0): multiple definition of vtkSmartPointerBase::~vtkSmartPointerBase()' ../lib/libpcl_io.dll.a(d008970.o):(.text+0x0): first defined here D:/Dependences/MinGW_env/installed_lib/VTK_8.0.0_withQT_MPI/lib/libvtkCommonCore-8.2.a(vtkSmartPointerBase.cxx.obj):vtkSmartPointerBase.cxx:(.text+0xe0): multiple definition of vtkSmartPointerBase::operator=(vtkObjectBase*)'
../lib/libpcl_io.dll.a(d008971.o):(.text+0x0): first defined here
D:/Dependences/MinGW_env/installed_lib/VTK_8.0.0_withQT_MPI/lib/libvtkCommonCore-8.2.a(vtkObjectFactory.cxx.obj):vtkObjectFactory.cxx:(.text+0x390): multiple definition of vtkObjectFactoryRegistryCleanup::vtkObjectFactoryRegistryCleanup()' ../lib/libpcl_io.dll.a(d011930.o):(.text+0x0): first defined here D:/Dependences/MinGW_env/installed_lib/VTK_8.0.0_withQT_MPI/lib/libvtkCommonCore-8.2.a(vtkObjectFactory.cxx.obj):vtkObjectFactory.cxx:(.text+0x650): multiple definition of vtkObjectFactoryRegistryCleanup::~vtkObjectFactoryRegistryCleanup()'
../lib/libpcl_io.dll.a(d011932.o):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [tools\CMakeFiles\pcl_vtk2pcd.dir\build.make:174: bin/pcl_vtk2pcd.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2149: tools/CMakeFiles/pcl_vtk2pcd.dir/all] Error 2
mingw32-make: *** [Makefile:155: all] Error 2

In order to help explain your problem, please consider adding

  • screenshots of the GUI issues
  • code snippets: syntax for code with correct language highlights
  • debugging information:
    • the output of cmake using cmake --debug
    • the failing build command(s) using VERBOSE=1 make, ninja -v or similar
    • steps taken to narrow down the problem

Your Environment (please complete the following information):

  • OS: [win10]
  • Compiler: [ GNU 7.3.0]
  • PCL Version [1.11.1, HEAD] (NB: please ensure you don't have multiple versions available)
  • PCL Type: [Compiled from source]

If PCL was compiled from source or failure in compiling PCL itself:

  • GPU, Kinfu, CUDA enabled? Yes
  • List and Version of dependencies used
  • Compilation flags are used
@dongfangZh dongfangZh added kind: compile error Type of issue status: triage Labels incomplete labels Dec 7, 2024
@mvieth
Copy link
Member

mvieth commented Dec 7, 2024

Duplicate of #6191

@mvieth mvieth marked this as a duplicate of #6191 Dec 7, 2024
@mvieth mvieth closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: compile error Type of issue status: triage Labels incomplete
Projects
None yet
Development

No branches or pull requests

2 participants