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 #6191

Open
dongfangZh opened this issue Dec 7, 2024 · 2 comments
Open

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

dongfangZh opened this issue Dec 7, 2024 · 2 comments
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
@mvieth
Copy link
Member

mvieth commented Dec 7, 2024

Can you run this and post the result: VERBOSE=1 make (maybe as a .txt file if it is too long)

@mvieth
Copy link
Member

mvieth commented Dec 14, 2024

@dongfangZh If you do not respond, I will assume that you solved the problem yourself, and close this issue soon.

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