Closed FreakTheMighty closed 9 years ago
please use InterfaceOpenMVG2 for json files
Aaah, I think that must not have built. Let me do some investigating.
On Sun, Oct 18, 2015, 1:34 AM cDc notifications@github.com wrote:
please use InterfaceOpenMVG2 for json files
— Reply to this email directly or view it on GitHub https://github.com/cdcseacave/openMVS/issues/18#issuecomment-148991282.
You must build OpenMVS with OpenMVG as a third party. See here: https://github.com/cdcseacave/openMVS/wiki/Building
-DOpenMVG_DIR:STRING="FULL_PATH/openMVG_Build/openMVG_install/share/openMVG/cmake/"
@pmoulon I already had that argument, but I was missing the install
for openMVG.
After doing a proper install of openMVG along with the argument, I now get a build error.
The command '/bin/sh -c ln -s /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1 /usr/lib/x86_64-linux-gnu/libGLU.so && ln -s /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so && mkdir /opt/openMVS_Build && cd /opt/openMVS_Build && cmake . ../openMVS -DCMAKE_BUILD_TYPE=RELEASE -DVCG_DIR="/opt/vcglib" -DCERES_DIR="/usr/local/share/Ceres" -DOpenCV_CAN_BREAK_BINARY_COMPATIBILITY=OFF -DOpenMVG_DIR:STRING="/opt/openMVG_install/share/openMVG/cmake/" && make && cp ./bin/* /usr/bin' returned a non-zero code: 2
Its a bit unclear to me, where the actual error shows up in the logs, things seem to be buried in warnings. The full logs can be viewed here.
I don't see file log on the provided link. Perhaps the error could be related to VCG See here https://github.com/OpenMVS/openMVS/wiki/Building
Default compilation settings of OpenMVS reveals some tiny compilation error in VCG. Here the fixes:
@pmoulon not sure why you weren't able to see the log, I wonder if its a docker hub permissions issues. If you're interested, you and @cdcseacave are welcome to create accounts and I am happy to add you as collaborators.
I've added the patch that you pointed out. I am still getting an error. I believe this is the important section of the log.
[91mIn file included from /opt/openMVS/apps/InterfaceOpenMVG/../../libs/MVS/../Common/Types.h:75:0,
from /opt/openMVS/apps/InterfaceOpenMVG/../../libs/MVS/../Common/Common.h:176,
from /opt/openMVS/apps/InterfaceOpenMVG/../../libs/MVS/Common.h:38,
from /opt/openMVS/apps/InterfaceOpenMVG/InterfaceOpenMVG2.cpp:33:
/opt/openMVS/apps/InterfaceOpenMVG/../../libs/MVS/../Common/FileUtil.h:111:15: error: after previous specification in 'std::string stlplus::folder_up(const string&, unsigned int)' [-fpermissive]
std::string folder_up(const std::string& folder, unsigned levels = 1);
^
[0m
[91mIn file included from /opt/openMVG_install/include/openMVG/sfm/sfm_view.hpp:10:0,
from /opt/openMVG_install/include/openMVG/sfm/sfm_data.hpp:11,
from /opt/openMVS/apps/InterfaceOpenMVG/InterfaceOpenMVG2.cpp:38:
/opt/openMVG_install/include/openMVG/third_party/stlplus3/filesystemSimplified/file_system.hpp:192:116: error: default argument given for parameter 3 of 'std::string stlplus::lookup(const string&, const string&, const string&)' [-fpermissive]
std::string lookup (const std::string& file, const std::string& path, const std::string& splitter = PATH_SPLITTER);
^
[0m
[91mIn file included from /opt/openMVS/apps/InterfaceOpenMVG/../../libs/MVS/../Common/Types.h:75:0,
from /opt/openMVS/apps/InterfaceOpenMVG/../../libs/MVS/../Common/Common.h:176,
from /opt/openMVS/apps/InterfaceOpenMVG/../../libs/MVS/Common.h:38,
from /opt/openMVS/apps/InterfaceOpenMVG/InterfaceOpenMVG2.cpp:33:
/opt/openMVS/apps/InterfaceOpenMVG/../../libs/MVS/../Common/FileUtil.h:191:15: error: after previous specification in 'std::string stlplus::lookup(const string&, const string&, const string&)' [-fpermissive]
std::string lookup (const std::string& file, const std::string& path, const std::string& splitter = PATH_SPLITTER);
^
[0m
Again, in case you guys want do want to checkout the docker build, here is the link to the latest build. https://hub.docker.com/r/freakthemighty/openmvs/builds/buwzfeaswmiyxgswrhvk7v3/
I looked at other automated docker builds that I don't own, and I am able to see the log. Please make sure you scroll all the way down the page. The log is very long.
Hi can't see the log either. @FreakTheMighty I'm following this as i'm meeting similar errors.
@pyp22 are you logged into dockerhub?
@FreakTheMighty yep
I'll dig through their settings tomorrow. Perhaps there is a way to modify permissions.
Had to flushed squid cache.That's ok i'm on it.
@pyp22 squid cache?
@jesse squid proxy. I got full access since i flushed server's cache..
2015-10-23 5:33 GMT+02:00 Jesse notifications@github.com:
@pyp22 https://github.com/pyp22 squid cache?
— Reply to this email directly or view it on GitHub https://github.com/cdcseacave/openMVS/issues/18#issuecomment-150450784.
Please try the develop branch. FileUtil.h was not even needed, so removed in develop.
I've tried with the develop branch, but I am still seeing an error. See the latest build here.
[91m/opt/openMVS/libs/MVS/Mesh.cpp:1765:13: warning: 'void CLN::ComputeStatsArea(const Polyhedron&, CLN::Stats&)' defined but not used [-Wunused-function]
static void ComputeStatsArea(const Polyhedron& p, Stats& stats)
^
[0m
[91mmake[2]: *** [libs/MVS/CMakeFiles/MVS.dir/Mesh.cpp.o] Error 1
[0m
[91mmake[1]: *** [libs/MVS/CMakeFiles/MVS.dir/all] Error 2
[0m
[91mmake: [0m
[91m*** [all] Error 2[0m
[91m
[0m
sry, I can not see the build log, can you please post the error?
I've copied to log to this gist https://gist.github.com/0307ae439cf060acc5f3. Also, when I log out of docker hub, I can't see the log either. Its possible the build logs aren't visible to non-logged in users.
seems that there is an error in VCG library try removing typename in front of CurVecType like here:
typename CurVecType &PD1() { static typename T::CoordType dummy(0, 0, 0); assert(0); return dummy; }
Hmmm, are other people seeing this problem with VCG?
Are your builds against revision 5609 of VCG?
I have 5560 here (on windows)
Oh oh, that's good news, let me try that. It's too bad VCG doesn't have any tags or branches, trunk seems unstable
When I attempt to import an openMVG using the instructions here. I only get the help message.
I've started setting up a docker build here.
Here is an example where I see the issue. Are there other required arguments that I am missing?