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

MSVC build broken #377

Closed
sevaa opened this issue Aug 4, 2016 · 6 comments
Closed

MSVC build broken #377

sevaa opened this issue Aug 4, 2016 · 6 comments

Comments

@sevaa
Copy link

sevaa commented Aug 4, 2016

At some point, CuraEngine was compatible with Microsoft Visual Studio. Now it's not. Here are some of the reasons:

  • reliance on unistd.h
  • "min"/"max" as variable names (they're #defines in MSVC, unless overridden)
  • variable length arrays
  • reliance on __WIN32 #define - it's not defined anymore, use WIN32 instead

Notably, libArcus and protobuf build under MSVC fine.

@awhiemstra
Copy link
Contributor

This is mostly due to MSVC's lacklustre support of C++11. Now that MSVC 2015 finally supports everything we need we can start looking at supporting MSVC again.

@sevaa
Copy link
Author

sevaa commented Aug 4, 2016

I'm building with MSVC 2015 Update 3; VLAs are still not there, at least not enabled by default. IIRC, it's a C99 feature, not a C++11 one. Anyways, those can be trivially replaced with alloca().

@BagelOrb
Copy link
Contributor

BagelOrb commented Aug 4, 2016

I don't think this is currently a problem for us, so I don't we will pick
it up any time soon.

We're always willing accept pull requests though.

Op 4 aug. 2016 16:06 schreef "Seva Alekseyev" [email protected]:

I'm building with MSVC 2015 Update 3; VLAs are still not there, at least
not enabled by default. IIRC, it's a C99 feature, not a C++11 one. Anyways,
those can be trivially replaced with alloca().


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#377 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIe9EVSb0n7rSxPPQjEhHvkgKjR69fbEks5qcfHqgaJpZM4JcPr8
.

@sevaa
Copy link
Author

sevaa commented Aug 23, 2016

Addressed, see pull request #383. At least now it builds, I haven't tested properly, since I'm not sure how.

UPDATE: it runs (as long as the required DLLs are around), connects to Cura, slices a test mesh.

@BagelOrb
Copy link
Contributor

I'm sorry, we lost sight of this PR.
We will take a look soon; I've added an issue to our internal issue tracker.

@jellespijker
Copy link
Member

Fixed #1639
Tested on Visual Studio 2019 and 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants