yfeng95 / face3d

Python tools for 3D face: 3DMM, Mesh processing(transform, camera, light, render), 3D face representations.
2.65k stars 611 forks source link

error in compiling with Cython #10

Closed Cogito2012 closed 5 years ago

Cogito2012 commented 5 years ago

I encountered the error related to the line349 in mesh_core.cpp

mesh_core.cpp:349:31: error: no matching function for call to 'std::basic_ofstream<char>::basic_ofstream(std::string&)'

After I changed the line to:

ofstream obj_file(filename.c_str());

The problem can be solved.

tensorboy commented 5 years ago

Hi, @Cogito2012, I have the same question with you, did you find the solution about it?

Cogito2012 commented 5 years ago

@tensorboy, Just change the line 349 in file mesh_core.cpp as I have mentioned above.

tensorboy commented 5 years ago

Thanks!

On Fri, Oct 26, 2018 at 5:32 PM Wentao Bao notifications@github.com wrote:

@tensorboy https://github.com/tensorboy, Just change the line 349 in file mesh_core.cpp as I have mentioned above.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/YadiraF/face3d/issues/10#issuecomment-433576060, or mute the thread https://github.com/notifications/unsubscribe-auth/AQZIv0vLBMorqmPO6otWARXuQ84ZIgueks5uo6m6gaJpZM4XzeHp .

kylemcdonald commented 5 years ago

I had the same problem, and the suggested change fixed it for me.