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

manual build with -DDLIB_NO_GUI_SUPPORT=0 giving weird bug #10

Open
nateGeorge opened this issue Jul 2, 2016 · 8 comments
Open

manual build with -DDLIB_NO_GUI_SUPPORT=0 giving weird bug #10

nateGeorge opened this issue Jul 2, 2016 · 8 comments

Comments

@nateGeorge
Copy link

nateGeorge commented Jul 2, 2016

For some reason when I manually build, it's giving a weird bug.

Boost.Python.ArgumentError: Python argument types in
    simple_object_detector.save(simple_object_detector, str)
did not match C++ signature:
    save(dlib::simple_object_detector_py, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > detector_output_filename)

I'm not sure if it's something about my local env variables or what. When I do

conda install -c menpo dlib=18.18

It works fine, but I want to have the GUI enabled, so I'm trying to do a custom build.

@patricksnape
Copy link
Contributor

What operating system?

@nateGeorge
Copy link
Author

nateGeorge commented Jul 5, 2016

Ubuntu 16.04 LTS 64bit. The error I posted is from trying to save a detector object.

@patricksnape
Copy link
Contributor

Right, so that is likely due to the upgrade to GCC 5.x. It may have something to do with the slightly old build of Boost that I am using here. Likely Boost > 1.59 is required for C++11 builds.

@nateGeorge
Copy link
Author

Hmm, so I should try to build with an older boost somehow? It says it is installing boost 1.59 when it is installing dlib. I also installed 1.61 to see if it helped, but I don't know which boost it's actually using.

@patricksnape
Copy link
Contributor

I would build with a newer boost. I think conda-forge has a newer boost. Maybe if you try adding conda-forge to your .condarc channels list and then updating the boost in the recipe to 1.61?

@nateGeorge
Copy link
Author

Alright, I'll see if I can figure that out. Thanks!

@patricksnape
Copy link
Contributor

@nateGeorge Did you ever get this working?

@nateGeorge
Copy link
Author

Nope, I never did. Just using python2 with dlib for the GUI.

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

2 participants