msavva / pigraphs

PiGraphs: Learning Interaction Snapshots from Observations
http://graphics.stanford.edu/projects/pigraphs
Other
46 stars 5 forks source link

compile errors with mLibExternal #1

Open amonszpart opened 7 years ago

amonszpart commented 7 years ago

Hi,

Getting mLibExternal to compile (on Ubuntu, GCC 4.9.4) is quite tricky, with some problems definitely not being a compiler problem. Is there a newer version of it online somewhere?

amonszpart commented 7 years ago

Missing _ at the end of flags_: libsg/util/FlagSet.h:90:30: error: ‘flags’ was not declared in this scope bool none() const { return flags == 0; }

amonszpart commented 7 years ago
mLib/include/core-mesh/meshData.cpp:492:9: error: use of deleted function ‘ml::MeshData<float>& ml::MeshData<float>::operator=(const ml::MeshData<float>&)’
  *this = other;
msavva commented 7 years ago

Apologies for the delay in responding.

Unfortunately, this codebase is only tested to compile with Visual Studio 2013 and the mLibExternal dependency snapshot provided here.

Some of the above issues are indeed legitimate bugs that are most likely ignored by the VC compiler but caught by GCC. I would be happy to integrate any fixes from a pull request.

To make it easier to test out the PiGraphs code, I have created a Windows VM that is pre-packaged with the codebase and data. Will update with a link here as soon as the files are done uploading to the hosting server.

amonszpart commented 7 years ago

Hi,

Thanks for the quick reply. I'm happy to put in some pull requests, if I get the whole thing to compile. I actually only tried to compile "Recording.cpp", but it pulls in many dependencies, as shown above. Since a large part of the errors are in mLibExternal, would it be ok to add that to the tracked part of the repo? Thanks, Aron

msavva commented 7 years ago

Hi Aron,

If you just need to load the recording format, there is simpler C++ example code with no external dependencies: loadrec. This code was actually part of the earlier SceneGrok project but the recording format for the PiGraphs data is the same.

The prepackaged PiGraphs VM with all code, dependencies, and data is described here: https://github.com/msavva/pigraphs#prepackaged-vm-image

Hopefully this is helpful for you.