Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Https post on macos c++

rolandas_vegis
Advocate

Https post on macos c++

rolandas_vegis
Advocate
Advocate

Hello, I ran into an interesting problem while trying to implement a cross platform https post from c++ add-in.

 

Using this library: https://github.com/yhirose/cpp-httplib  (it uses openssl as a dependency) I got it working on windows. However when I moved to installing it on mac, I ran into a problem.  The post does not work (crashes) when running it from under Fusion, as an add-in. However when running the same code from an executable it works just fine.

 

Any ideas what fusion could be doing to change the behavior?

 

Any suggestions how to best go about this would be appreciated.

0 Likes
Reply
341 Views
1 Reply
Reply (1)

jiri.manak
Contributor
Contributor

Hi, 

As stated on the github web page  of cpp-httplib,  it is a header-only library. I had also massive problems with header-only libraries used in Fusion 360 add-ins. My solution is to use static. Some header-only have a static variant too. 

For http requests I use  libcurl. Works fine with WINDOWS and macOS.

 

Jiri

0 Likes