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

CMVS error : error: no viable conversion from 'std::__1::locale' to 'char' #34

Open
samhodge opened this issue Dec 17, 2016 · 10 comments
Open

Comments

@samhodge
Copy link
Contributor

-- NLOPT: Version number 2.4.2 found in configure.ac
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/sam/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/build
Scanning dependencies of target cmvs_lib
[ 1%] Building CXX object base/cmvs/CMakeFiles/cmvs_lib.dir/bundle.cc.o
In file included from /Users/sam/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/bundle.cc:10:
In file included from /Users/sam/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/bundle.h:15:
In file included from /Users/sam/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/../stann/sfcnn.hpp:31:
In file included from /Users/sam/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/../stann/zorder_lt.hpp:20:
/Users/sam/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/../stann/dpoint.hpp:491:12: error: no viable
conversion from 'std::__1::locale' to 'char'
char errorpoint = is.getloc();
^ ~~~~~~~~~~~
1 error generated.
make[2]: *** [base/cmvs/CMakeFiles/cmvs_lib.dir/bundle.cc.o] Error 1
make[1]: *** [base/cmvs/CMakeFiles/cmvs_lib.dir/all] Error 2
make: *** [all] Error 2
libpba.so failed to build, halting....

Here are my brew outputs

Warning: jpeg-8d already installed
Warning: gdk-pixbuf-2.36.1 already installed
Warning: cairo-1.14.8 already installed
Warning: freetype-2.7 already installed
Warning: Already linked: /usr/local/Cellar/freetype/2.7
To relink: brew unlink freetype && brew link freetype
Warning: pango-1.40.3 already installed
Warning: Already linked: /usr/local/Cellar/pixman/0.34.0
To relink: brew unlink pixman && brew link pixman
Warning: Already linked: /usr/local/Cellar/fontconfig/2.12.1_2
To relink: brew unlink fontconfig && brew link fontconfig
Updating Homebrew...
######################################################################## 100.0%
Warning: gtk+-2.24.28 already installed
Warning: glew-2.0.0 already installed
Updating Homebrew...
Warning: gsl-2.3 already installed
Warning: boost-1.62.0 already installed
Warning: intltool-0.51.0 already installed
Warning: cmake-3.7.1 already installed
Warning: homebrew/versions/gcc49-4.9.3 already installed
Warning: devil-1.7.8_3 already installed
Warning: pkg-config-0.29.1_2 already installed

OSX 10.10.5

@isaactian
Copy link

I have this too.

...
-- Build files have been written to: /Users/iytian/Documents/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/build
Scanning dependencies of target cmvs_lib
[ 1%] Building CXX object base/cmvs/CMakeFiles/cmvs_lib.dir/bundle.cc.o
In file included from /Users/iytian/Documents/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/bundle.cc:10:
In file included from /Users/iytian/Documents/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/bundle.h:15:
In file included from /Users/iytian/Documents/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/../stann/sfcnn.hpp:31:
In file included from /Users/iytian/Documents/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/../stann/zorder_lt.hpp:20:
/Users/iytian/Documents/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/../stann/dpoint.hpp:491:12: error: no viable
conversion from 'std::__1::locale' to 'char'
char errorpoint = is.getloc();
^ ~~~~~~~~~~~
1 error generated.
make[2]: *** [base/cmvs/CMakeFiles/cmvs_lib.dir/bundle.cc.o] Error 1
make[1]: *** [base/cmvs/CMakeFiles/cmvs_lib.dir/all] Error 2
make: *** [all] Error 2
libpba.so failed to build, halting....

@ghost
Copy link

ghost commented Dec 22, 2016

I have this too.....
Any help would be great.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/WYH/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/build
Scanning dependencies of target cmvs_lib
[ 1%] Building CXX object base/cmvs/CMakeFiles/cmvs_lib.dir/bundle.cc.o
In file included from /Users/WYH/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/bundle.cc:10:
In file included from /Users/WYH/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/bundle.h:15:
In file included from /Users/WYH/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/../stann/sfcnn.hpp:31:
In file included from /Users/WYH/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/../stann/zorder_lt.hpp:20:
/Users/WYH/Downloads/VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/../stann/dpoint.hpp:491:12: error:
no viable conversion from 'std::__1::locale' to 'char'
char errorpoint = is.getloc();
^ ~~~~~~~~~~~
1 error generated.
make[2]: *** [base/cmvs/CMakeFiles/cmvs_lib.dir/bundle.cc.o] Error 1
make[1]: *** [base/cmvs/CMakeFiles/cmvs_lib.dir/all] Error 2
make: *** [all] Error 2
libpba.so failed to build, halting....

@captainmink
Copy link

Hi guys ... any news on this issue?
I have the same problem.

..... /VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/cmvs/../stann/dpoint.hpp:491:12: error:
no viable conversion from 'std::__1::locale' to 'char'
char errorpoint = is.getloc();
^ ~~~~~~~~~~~
1 error generated.
make[2]: *** [base/cmvs/CMakeFiles/cmvs_lib.dir/bundle.cc.o] Error 1
make[1]: *** [base/cmvs/CMakeFiles/cmvs_lib.dir/all] Error 2
make: *** [all] Error 2

Any help would be greatly appreciated.
regards
Adrian

@landryshuai
Copy link

@captainmink the error exactly like yours.

@captainmink
Copy link

Ok ...
so here is an update ...

I edited the file throwing the error ... {..... /VisualSFM_OS_X_Installer-master/CMVS-PMVS-master/program/base/stann/dpoint.hpp:491}
and replaced the code according to the folowing thread :
pmoulon/CMVS-PMVS@9c4cbe2

Then I ran the single commands from the installer script ....
After some more issues and a problem with linking the binaries I got the program to run.

The current issue being that i can load all the pitures into the program ... make all the settings ... but ! making a 3D build nothing happens ... no error message -> nothing.

Has anybody got a real solution to this issue ?
regards
Adrian

@ghost
Copy link

ghost commented Dec 23, 2016

@captainmink the same problem.
There is nothing in the model files.

@captainmink
Copy link

@smallflowerwoo ... I have made it a step further !
Using thread : #25
I have managed to get it running and also create a sparse reconstruction (only issue 3 cams ... but thats something else)
regards Adrian

@samhodge
Copy link
Contributor Author

Should we get that patch to the .hpp file into the installer script?

@captainmink
Copy link

hi ... I think that makes sense.

samhodge added a commit to samhodge/VisualSFM_OS_X_Installer that referenced this issue Dec 30, 2016
@samhodge
Copy link
Contributor Author

OK I have about 15 minutes total experience with git, but I think I have submitted a pull request that addresses this issue.

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

4 participants