-
Notifications
You must be signed in to change notification settings - Fork 276
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
Is CMock meant to work on Windows at all? #435
Comments
I am not sure what you are actually trying to achieve and where there is any windows dependency... Cmock is bunch of ruby scripts which generates C code, so I do not see a dependency. Did you use And yes, by default it generates unity compatible macros, so you will need translation header for other frameworks to work. |
@ACleverDisguise -- it appears the current instructions are somewhat misleading. Running I apologize for both the error and the poor documentation. I'd appreciate it if you'd leave this bug open for now, so we can rectify these things. The next release will include these fixes. Now that you have CMock downloaded, you should be able to run it to mock headers, etc., even though the color script isn't enabled. There's no need for you to run the complete self-test suite in order to USE CMock. |
Well, I tried running the full self-test suite as a check of the condition of the software, to be honest. Partially to see if the software is suited to purpose (and thus far ... ah ... I'm not happy, to put it mildly -- CException and Unity worked well, but this has been an exercise in frustration thus far) and partially to make sure that I've got my environment actually set up right (because a lot of F/OSS that claims to be cross-platform was never even waved in the general direction of a non-Linux environment and thus lacks the information needed to make it actually work on such). I appreciate the quick response to the issue however. It settles my nerves quite a bit and gives me a bit more patience while evaluation is going on. |
There is one suggestion I'm going to make for CMock: the ZIP file should contain Unity in the vendor tree. It was a bit of a rude surprise that I had to go dig up my copy of Unity to stick in there. |
The zip file is automatically generated by github and doesn't contain subprojects. We've been talking about alternative release methods, including as a ruby gem or other packages. |
There is also Chocolatey, but none of that is cross/platform. While gem is. |
And yet I can't get the fiddle gem to install on Windows for the life of me. Almost as if:
|
As one of the original developers of CMock, who used nothing but Windows at the time, I can assure you that's not the case. As I stated above, the issue is that the Ruby ecosystem is shifting. They're unafraid of making breaking changes, which is inconvenient for those of us using them. We're forced to constantly play catchup. Out of curiosity, why are you installing |
Oh, I recognize that this is Ruby causing the problem here, not you. I was very unimpressed, for example, to find out that Ruby 3.1→3.2 caused breaking API changes. That gems fail mysteriously out of nowhere isn't on you in the slightest. Sorry if I gave that impression. No, I'm pretty much aiming that "F/OSS that claims to be cross-platform" at the overall culture of F/OSS where "cross-platform" is more a statement of assumption (not even intent!) than a statement of verified proof. You're just caught in the crossfire of this mess in the Ruby subset of the F/OSS ecosystem. Originally I was installing
Because it's trivial to find things in gem that aren't cross-platform (often even when explicitly labelled as being such!). |
I had the same issue installing Ceedling, solved installing a previous version of Ruby, 3.0.6, from RubyInstaller. |
This is after I ran
bundle install
, after it complained about not having a gem anyway, after it recommendedgem install Win32API
(which isn't a thing), after I figured out thatgem install win32api
was the right incantation, and after I figured out that I had to manually put Unity into the vendor/unity directory.I'm getting this impression that CMock has never actually been tested on a clean Windows system to provide instructions on how to get it working. And at this point, since I have no idea what a "Psych" is (and I really do not want to start getting into Ruby development to test my embedded code!), I'm kind of stuck at this point. Any guidance? Documentation and/or code fix, maybe?
The text was updated successfully, but these errors were encountered: