I tried using goczmq on windows 10, but it doesn't work even if I installed czmq using vcpkg.
Steps I tried was:
vcpkg install czmq which automatically installed zeromq as well.
It seems to work on visual studio 2022, but not for goczmq which returns the following error.
....\github.com\zeromq\goczmq#v4.1.0+incompatible\auth.go:4:10: fatal error: czmq.h: No such file or directory
4 | #include "czmq.h"
| ^~~~~~~~
Not sure if I missed some steps or if I need to do something extra?
Related
bad English (sorry).
I'm trying to get nvim_treesitter to work on my windows machine, on my Linux one it worked great but now when I try on windows the :checkhealth nvim_treesitter gives:
health#nvim_treesitter#check
Installation
ERROR: tree-sitter executable not found
OK: git executable found.
ERROR: cc executable not found.
ADVICE:
Check that either gcc or clang is in your $PATH
Parser/Features H L F I
Legend: H[ighlight], L[ocals], F[olds], I[ndents]
*) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang}
and I'm totally new to this thing, any advice would help:)
The main issue from my perspective is "ERROR: cc executable not found.". It means nvim_treesitter couldn't find any compiler on your machine, and so no parsers could be compiled and installed when you issue ":TSInstall {some_parser_name}" commands.
If you have Visual Studio installed (since nvim gets compiled by VS 2017, it's fine to have 2017 or 2019 studio, I guess), try this:
Run "x64 Native Tools Command Prompt for VS 201x" if you've downloaded nvim-win64 release package or "x86 Native Tools Command Prompt for VS 201x" otherwise (nvim-win32 package)
Run nvim in this command prompt (i.e. nvim-qt GUI)
Install any parsers you want, let's say ":TSInstall c". Output should look like this:
Downloading...
Compiling...
Treesitter parser for c has been installed.
Optionally run :checkhealth nvim_treesitter again to see if everything is fine
Thereafter you can run nvim in any console, not via VS Tools one only (still use it to install or update parsers though).
Please also see https://github.com/nvim-treesitter/nvim-treesitter/wiki/Windows-support for various instructions.
For the Error: tree-sitter: You can checkout creating parsers and follow the description or you download the windows binary of the binary files and put it into a directory on your PATH.
For the Error: cc: You need to install gcc
Try to apply this vsc tutorial from Prerequisites №3
I had the same issue. It helped me.
Ok, here's what I've done and what helped me:
Go to https://www.msys2.org and follow ALL of the installation steps that are described there:
Download and install
Run pacman -Syu comman
Run pacman -S --needed base-devel mingw-w64-x86_64-toolchain and choose mingw-w64-x86_64-gcc there.
After everything is installed, put into your PATH Environment Variable the path to MinGW64\bin folder (if you installed everything to the default folder it will be c:\msys64\mingw64\bin)
And you are good to go! Now open nvim and run
:TSInstall <yourlang>
For example, :TSInstall php
PS: you can get the list of available languages using :TSInstallInfo
I've trying to build https://github.com/google/usd_from_gltf.
Since I am not experienced with CMake and Visual Studio I followed the instructions and managed to work after some fixes.
Now I am stuck in an issue that does not look like a problem related to the package.
I got this error in my log.txt:
cmake H:\usd_from_gltf-master -DCMAKE_INSTALL_PREFIX=H:\UFG-CP37 -DCMAKE_PREFIX_PATH=H:\UFG-CP37 -DUSD_DIR=H:\USD-CP27 -DCMAKE_GENERATOR_PLATFORM=x64
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19041.
-- Configuring done
-- Generating done
-- Build files have been written to: H:/usd_from_gltf-master
cmake --build . --config Release --target install -- /m
Error: could not load cache
I wonder if this problem is related to the package versions. Feels like a problem related to my computer itself. Maybe someone can clear this a bit for me. I have seen some SO questions and some related to the build tree, but I am unsure about this.
Windows 10 x64 | USD 21.02 built using Python2.7 | usd_from_gltf using Python3.7 | Visual Studio 2017
My command was:
H:\usd_from_gltf-master>python ./tools/ufginstall/ufginstall.py H:/UFG-CP37 H:/USD-CP27 --testdata
Where as H:/UFG-CP37 I want it to be built and USD-CP27 is my USD Build.
I recently upgraded my Xcode command line tools and now I get errors when compiling stuff that compiled before the upgrade.
tools/px.c:7:10: fatal error: 'unistd.h' file not found
#include <unistd.h>
^~~~~~~~~~
Before this upgrade, whenever I installed a new release of Xcode, I had to install the command line tools and additionally
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
After the latest upgrade, that file and the directory containing it does not exist any more.
I was able to find the package on another machine where I have not yet upgraded.
Nevertheless the issue remain unsolved.
I need to install OpenCV on Win32. I do not have it installed currently. I downloaded OpenCV-2.0.0a-win32.exe and ran it. What the heck do I do now? There are no .lib's and whatnot.
I found some instructions for building the release using cmake at http://opencv.willowgarage.com/wiki/InstallGuide . I downloaded the latest and greatest cmake, and tried to follow the instructions, but I was guessing. No joy.
I specified VC++9 when I did the "configure," but cmake built a VC++ 6 dsw file. No vcproj. I converted the dsw into a vc++9 vcproj anyway, just to see if it would work. Nope. It compiled lots of files, but many failed because it could not find omp.h. Sure enough, it's not there, anywhere. The build log said, 'A tool returned an error code from "Performing Custom Build Step".'
I am lost.
Ideally, I would like to find a full installation with all the files pre-built for Win32 vc++ 2008. Failing that, I need instructions that even I can follow. Short sentences and small words, but lots of them.
Please help!
UPDATE: I tried to build just CXCORE. It complained, "cannot open file 'VCOMPD.lib'" There's that OMP again.
For version 2.0, you must build the project from source.
Here's what you will need:
The OpenCV installer.
CMake. Here's the CMake installer.
Instructions for using CMake to install OpenCV-2.0.01-win32. Those instructions need an extra step if you are using a vc++ Express edition. In that case you must un-check ENABLE_OPENMP when running the CMake GUI.
Instructions for setting up an application project. (Thanks to mloskot for this find.)
If you've installed OpenCV-2.0.0a-win32.exe then it will install pre-built DLLs and libs. Then you just have to follow the instructions in this tutorial.
I recommend that you wipe the folder you previously installed OpenCV2.0 in and reinstall it.
Update:
Well sorry it didn't work out. I suggest the following then: check out the latest version from the SVN repository, https://code.ros.org/svn/opencv/trunk/opencv with any SVN client - I use TortoiseSVN.
Then run CMake (I see you've already installed it) on the source folder and then compile the Solution file. This should work - it does for me.
I apologize for my old answer - I had started off with OpenCV a few months ago in the same way and assumed that downloading the Gold version would still work - apparently not.
OMP
The OMP issue may arise from the checked Enable OpenMP in the CMake config. Try unchecking that .. might solve your initial problem.
I followed Jive Dadson's procedure to get OpenCV2.0 to work on Visual Studio 2010 Express (disabled OMP).
All went good until compilation of the generated stuff in Debug and Release. In both cases got this error: "LINK : fatal error LNK1181: cannot open input file '../../lib/Release/cv200.lib'"
in debug the only difference is that the library is cv200d.lib.
EDIT: I solved by downloading the latest svn snapshot for OpenCV2.0. One additional thing on Vista/7: it may be good to execute CMake as administrator.
Download OpenCV installer for Windows
Read OpenCV-2.0.0a-win32.Readme.Please.txt
Follow OpenCV with Visual C++ 6.0, 2005 Express, and 2008 Express in order to create project using OpenCV
I'm trying to install bcrypt-ruby on Windows Vista.
So far, I have been able to install nmake.exe from a MS knowledge base article and cl.exe from installing Visual Studio 2008 Express.
However, I am now encountering this error:
cl -nologo -Wall -I. -IC:/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -I
C:/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcb crypt.c
cl : Command line warning D9035 : option 'Og-' has been deprecated and will be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-G6' bcrypt.c
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(381) : warning C4255: '_get_printf_count_output' : no function prototype given: converting '()' to '(void)'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdlib.h(215) : warning C4255: '_get_purecall_handler' : no function prototype given: converting '()' to '(void)'
c:\instantrails\ruby\lib\ruby\gems\1.8\gems\bcrypt-ruby-2.1.2\ext\mri\blf.h(37): fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2' Stop.
I've already executed VCVARS32.bat which presumably sets up the environment. I am suspecting that the warnings and errors are due to installing newer version of Visual Studio.
Has anyone done this successfully? I do not have a copy of Visual Studio 6.0.
The better, easiest way is to install the development kit:
Download devkit-<version>.7z from here;
unpack it in the Ruby directory (for instance, C:\Ruby, so that you'll have C:\Ruby\devkit;
from command line, type: gem install bcrypt-ruby.
For me, the following worked
gem uni bcrypt-ruby
gem i bcrypt-ruby --platform=ruby
To be able to build a gem extension for One-Click Installer (OCI) you need VC6. Mxing and matching different versions of newer Visual Studio will fail or will generate unknown errors during runtime.
I would recommend avoid all these hassles and proceed with the successor of One-Click, which is called RubyInstaller.
Download and install either 1.8.6 or 1.9.1 RC1 packages, announced at RubyForge
Download the Development Kit, and unpack it on your Ruby installation
Follow INSTALL.txt instructions to adjust the DevKit to the location you extracted it
Proceed with gem install bcrypt-ruby, will work out of the box
For more details about using other gems or Rails with this newer version, please see the tutorials section in our Wiki.
Hope this helps.
Try below command
gem install bcrypt-ruby --platform=mswin32
I met the same problem when installing devise in windows.
maybe you could checkout this:
http://github.com/oneclick/rubyinstaller/wiki/development-kit
and giorgian is correct, pay attention here:
ruby version: you must install the "ruby installer" version, but not .zip version or other version.
unpack it in the Ruby directory (for instance, C:\Ruby, so that you'll have C:\Ruby\devkit;
If you installed ruby from other setup file (which is not ruby-installer), you MUST remove it ,then install ruby with the ruby installer. don't simply overwrite it.
no need to install VC6, it won't work with other ruby setup version(which is not ruby- installer) . if you installed it just for setup the ruby-gem, I suggest you remove it.
no need to install MinGW , cause dev-kit is based on it.
I spent almost 15 hours to solve this problem. and it's now time to say that "ruby-installer" + "dev kit" is our choise to build the native gem.
On Windows Server 2003 (Ruby 1.8.6), the plain vanilla:
gem install bcrypt-ruby
worked like a charm.
Note that if you want to use it with Rails, you must use:
config.gem 'bcrypt-ruby', :lib => 'bcrypt'
For me, a part of the problem was in the fact that I had Ruby2.0.0 x64 installed (I'm running win8), which seemed to be incompatible with the gcc compiler I was using.
I've removed my ruby installation, and installed ruby 1.9.3 together with Bundler, Rails and some other packages with the use railsInstaller (http://railsinstaller.org/) and I'm now able to install bcrypt-ruby :)