Menu

How can i build 3dforest open source using mingw-w64 compiler toolchain in win7

Anonymous
2017-08-28
2019-12-26
  • Anonymous

    Anonymous - 2017-08-28

    Hi.
    I am using 3DForest tool to analyze forest point cloud data acquired from trimble 3d scanner equipment.
    could you please explain how to build 3DForest open source with Mingw-w64 compiler in Windows environment? or Is there a project I can refer to?

    another question is below.
    when I execute terrain from octree operation with .pts file in XYZIRGB format 5352116 line or more, tool is crashed or terrain cloud is not generated. Is there a way to check if the file format is a problem or a hardware
    isssue?

     
  • Janek

    Janek - 2017-08-28

    Hi,
    building 3DForest from source code is in current version kind of pain, since we do not have makefiels ready. But I can provide you a brief example using code blocks IDE.
    First you ned to download the compiler, dependencies (i use source code of all dependencies also, since for PCl I use modified version) - Qt, PCL, VTK, Eigen, FLANN, LibLAS, BOOST and yource code of 3D Forest.

    more info how to install dependencies you will find on its web sites. For PCL please use version from here: https://github.com/janekT/pcl

    Afer you have succesfully install all dependencies, you can prepare code::blocks project for 3D Forest
    after creating new project add all files of 3dForest source code. Add libs of all dependencies into "Project ->Build Options->linker settings".
    Add include directories of dependencies to "Project ->Build Options->search directories -> compiler".
    In "Project ->Build Options->pre/post build steps" add those lines:
    rcc -name 3dforest 3dforest.qrc -o 3dforest.cpp
    moc mainwindow.h -o moc_mainwindow.cpp
    moc gui.h -o moc_gui.cpp
    moc segmentation.h -o moc_segmentation.cpp
    moc terrain.h -o moc_terrain.cpp
    moc reconstruction.h -o moc_reconstruction.cpp
    moc hemifoto.h -o moc_hemifoto.cpp

     now it should build and run.
    
     Jan
    
     
  • Janek

    Janek - 2017-08-28

    And for the second question. I am not sure I understand. If you import pts file into 3DForest project, it display OK or not? Also check if you have only one point cloud in file or more clouds are present? It should work like this: import as base cloud / create terrain using octree method and two new clouds should be created. one with terrain points and one with the rest.
    Jan

     
  • Anonymous

    Anonymous - 2017-09-26

    Hi,

    I want to build 3DForest open sourceswith Mingw-w64 compiler in Windows environment.
    you explain above code::blocks project environment.

    Could you please share your 3dForest development environment in code::blocks program ?

    I want to see 3dforest related project .cdp file.

    Thanks you in advance.

     
  • Janek

    Janek - 2017-10-02

    Hi sorry for late response. I will prepare for you cmakefile that will prepare the code::blocks project for you.
    Jan

     
  • Anonymous

    Anonymous - 2017-10-05

    Hi,
    I will wait for your cmakefile that use code::blocks project.

    I want to know your development environment before you give me cmakefiles.

    Which Windows or Linux distros operating system are you compiling using mingw64?
    for example,
    windows 7 64 bit , ubuntu 16.04

    What linker options did you use ?
    for example,
    -Wl,--allow-multiple-definition -mwindows

    What mingw64 versin did you use?
    for example,
    $ gcc.exe --version
    gcc.exe (Rev1, Built by MSYS2 project) 7.2.0
    Copyright (C) 2017 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

    Thanks you in advance.

     
  • Janek

    Janek - 2017-10-06

    Hi,
    right now I use windows 7, but it is quite easy to develop on mac or linux in any IDE you want, because 3D Forest use multiplatform dependencies (Qt, PCL, libLAS) that can be compiled and used almost anywhere. My current version of mingw is 5.3.0 on win, but I managed to complile also on mas osx Sierra with clang and linux (ubuntu) with latest gcc.
    I can navigate you with your favorite OS.
    Jan

     
  • Janek

    Janek - 2017-10-06

    Ok here is cmakefile that you can use for complile project with all libraies. Copy the file into the folder with source code. Maybe some error will show but i can solve them if htey will show.
    Jan

     
  • Anonymous

    Anonymous - 2017-10-06

    Hi,
    Thank you for your kindness.

    I use Windows 7 64 bit, intel Core i5.

    I downloaded attached CMakeLists.txt and ran Cmake-gui.exe program.

    I set it as follows

    Where is the source code:
    C:/Users/User/Documents/codeblocks/3dforest
    Where to build the binaries:
    C:/Users/User/Documents/codeblocks/3dforest/build

    then pressed 'Configure' button.

    Specify the generator for this project:
    CodeBlocks -MinGW Makefiles

    and error occurred during configure process.


    Make Error at CMakeLists.txt:18 (find_package):
    By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
    has asked CMake to find a package configuration file provided by
    "Qt5Widgets", but CMake did not find one.

    Could not find a package configuration file provided by "Qt5Widgets" with
    any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake
    

    Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
    "Qt5Widgets_DIR" to a directory containing one of the above files. If
    "Qt5Widgets" provides a separate development package or SDK, be sure it has
    been installed.


    i installed mingw64/mingw-w64-x86_64-qt4 4.8.7-4.
    but i didn't install Qt5.

    Do i need to install Qt5 to build 3DForest source?

    Do you tell me installed Boost, Eigen, FLANN, QHULL, QT , PCL, libLAS, Vtk version ?

    Do you tell me how to build Boost library( including options for exampes, –with-mpi ) ?

    Thank you in advances.

     

    Last edit: Anonymous 2017-10-06
    • Janek

      Janek - 2017-10-06

      You should find directory where qt is instaled and where file
      findQt5widget.cmake is( usually in lib dít) . Next step will be libLAS (
      cmake dir) and Pcl (share dir). after this it should configure.
      Jan

      Dne 6. 10. 2017 19:31 napsal uživatel noreply@in.sf.net:

      Hi,
      Thank you for your kindness.

      I downloaded attached CMakeLists.txt and ran Cmake-gui.exe program.

      I set it as follows

      Where is the source code:
      C:/Users/User/Documents/codeblocks/3dforest
      Where to build the binaries:
      C:/Users/User/Documents/codeblocks/3dforest/build

      then pressed 'Configure' button.

      Specify the generator for this project:
      CodeBlocks -MinGW Makefiles

      and error occurred during configure process.

      Make Error at CMakeLists.txt:18 (find_package):
      By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
      has asked CMake to find a package configuration file provided by
      "Qt5Widgets", but CMake did not find one.

      Could not find a package configuration file provided by "Qt5Widgets" with
      any of the following names:

      Qt5WidgetsConfig.cmake
      qt5widgets-config.cmake

      Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
      "Qt5Widgets_DIR" to a directory containing one of the above files. If
      "Qt5Widgets" provides a separate development package or SDK, be sure it has
      been installed.


      i installed mingw64/mingw-w64-x86_64-qt4 4.8.7-4.
      but i didn't install Qt5.

      Do i need to install Qt5 to build 3DForest source?

      Do you tell me installed Boost, Eigen, FLANN, QHULL, QT , PCL, libLAS, Vtk
      version ?

      Thank you in advances.

      How can i build 3dforest open source using mingw-w64 compiler toolchain in
      win7
      https://sourceforge.net/p/forest3d/discussion/general/thread/bf233d0c/?limit=25#ae1a


      Sent from sourceforge.net because j.trochta@gmail.com is subscribed to
      https://sourceforge.net/p/forest3d/discussion/general/

      To unsubscribe from further messages, a project admin can change settings
      at https://sourceforge.net/p/forest3d/admin/discussion/forums. Or, if this
      is a mailing list, you can unsubscribe from the mailing list.

       
  • Anonymous

    Anonymous - 2019-12-26

    How can I use this method (on windows or linux): "You can use already comlided libraries which are attached in compiled application." ?

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.