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

Build error: draco/core/status_or.h: uninitialized const member in 'const class Eigen::Matrix<double, 4, 4>' [-fpermissive] #1088

Open
barracuda156 opened this issue Dec 1, 2024 · 0 comments

Comments

@barracuda156
Copy link

In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/compression/decode.h:21,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/io/mesh_io.h:19,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/io/mesh_io.cc:15:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h: In instantiation of 'draco::StatusOr<T>::StatusOr(const draco::Status&) [with T = const Eigen::Matrix<double, 4, 4>]':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/scene/trs_matrix.h:50:14:   required from here
   50 |       return Status(Status::DRACO_ERROR, "Matrix is not set.");
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h:37:3: error: uninitialized const member in 'const class Eigen::Matrix<double, 4, 4>' [-fpermissive]
   37 |   StatusOr(const Status &status) : status_(status) {}
      |   ^~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h:57:5: note: 'const Eigen::Matrix<double, 4, 4> draco::StatusOr<const Eigen::Matrix<double, 4, 4> >::value_' should be initialized
   57 |   T value_;
      |     ^~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h: In instantiation of 'draco::StatusOr<T>::StatusOr(const draco::Status&) [with T = const Eigen::Matrix<double, 3, 1>]':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/scene/trs_matrix.h:63:14:   required from here
   63 |       return Status(Status::DRACO_ERROR, "Translation is not set.");
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h:37:3: error: uninitialized const member in 'const class Eigen::Matrix<double, 3, 1>' [-fpermissive]
   37 |   StatusOr(const Status &status) : status_(status) {}
      |   ^~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h:57:5: note: 'const Eigen::Matrix<double, 3, 1> draco::StatusOr<const Eigen::Matrix<double, 3, 1> >::value_' should be initialized
   57 |   T value_;
      |     ^~~~~~
make[2]: *** [CMakeFiles/draco_io.dir/src/draco/io/mesh_io.cc.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/build'
make[1]: *** [CMakeFiles/draco_io.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant