Using Visual Studio 2017 Developer Command Prompt native 64 bit to install openssl and getting error - visual-studio

When I use the developer command prompt for the native 64 bit of my computer to attempt to install openssl I get the error message LNK1112: module machine type 'x86' conflicts with target machine type 'x64'. When I check the path variable for the x64 developer command prompt all of locations for visual studio are x86. I'm not sure if that somehow got messed up or what it's supposed to be and googling for the past 5 hours was unhelpful.

Related

anaconda no module found insightface

i get an error saying no mudle found insightface and when i do pip install insightface
last output line is
building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
i have installed latest visual c++ with build tools and restarted my pc and nothing seemed to help

OpenSSL fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64

I'm encountering a very frustrating error while trying to build OpenSSL on Windows 10. The error I get is
"lib" /nologo /out:providers\libdefault_static.lib #C:\Users\jcava\AppData\Local\Temp\nmF1AF.tmp
providers\common\libdefault-lib-bio_prov.obj : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64
The steps I'm doing are running perl Configure VC-WIN64A then nmake both within the openssl directory that I cloned from Github. Im running all of this within a x64 command line prompt for VS 2019.
Cheers,
James
For x64 you have to run your perl Configure and nmake commands from
x64 Native Tools Command Prompt for VS 201x, not the Developer Command Prompt for VS 201x.
You can search for it in your Windows search bar. Make sure to right click it and run it in administrator mode.
If you've already compiled it incorrectly, you probably have to delete openssl and clone it again. Deleting the .obj files didn't solve it for me.
Source
I had similar problem. It means that there are some object files that have been compiled already using x86 (in this case). Perhaps you started off using the x86 compiler.
If you delete all the object files (type del /S *.obj in your openssl directory) then run nmake again it should compile fine.
Alternatively you could re-clone the repository and start again.

couldn't determine visual studio generator

I am trying to compile rust's azul gui framework sample code on windows 10 and it's running into the following error:
error: failed to run custom build command for `harfbuzz-sys v0.3.0 (https://github.com/maps4print/azul-dependencies?rev=bf2933b9aac43a7003278862772250398e4fa457#bf2933b9)`
Caused by:
process didn't exit successfully: `F:\Code\rust\azul_demo\target\debug\build\harfbuzz-sys-4d7deefbb1bf663c\build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=HARFBUZZ_SYS_NO_PKG_CONFIG
--- stderr
thread 'main' panicked at '
couldn't determine visual studio generator
if VisualStudio is installed, however, consider running the appropriate vcvars script before building this crate
', C:\Users\Andrew\.cargo\git\checkouts\azul-dependencies-70bb1f94316762f9\bf2933b\cmake-0.1.35\src\lib.rs:687:25
stack backtrace:
0: backtrace::backtrace::trace_unsynchronized
at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.29\src\backtrace\mod.rs:66
...
I installed cmake and visual studio 2019. Also note that I am using clion ide. Cmake version is 3.15.2.
It says I should run the appropriate vcvars script before building this crate, what does it mean exactly?
EDIT ----
Found vcvars.bat in the visual studio installation folder and ran it. It's still getting the same error.
EDIT2 ----
It looks like an incompatibility between the latest version of visualstudio(19) and cmake. Reverting to 2015 is suppose to resolve the issue.
https://github.com/maps4print/azul/issues/203
When you install Visual Studio, the command-line tools are not available from a generic command prompt. Visual Studio should have installed an entry in your start menu to start a properly configured console.
Or if you haven't started your console from this special entry, Visual Studio should also have installed a script called vcvars.bat somewhere in its install folder. You need to run that script before you can access the command-line tools.

Setting Up .NET Build Environment with setenv - Two Warnings - Could not find vsvars32.bat Visual C++ Does not appear to be installed

I'm trying to compile some netmf firmware using MSBUILD with Yagarto. I'm doing it on a machine with VS2012 and all the right pre-requisites installed. From a command prompt as administrator, I go to the NetMF Porting Kit folder, where all the source code lives, I call setenv_gcc.cmd 4.6.0 c:\yagarto46
Doing so yields two warnings:
WARNING: Count not find vsvars32.bat
WARNING: VISUAL C++ DOES NOT APPEAR TO BE
INSTALLED ON THIS MACHINE.
When I try the above command from VS2012 Developer Command Prompt as Administrator I get the following ERROR
ERROR: Cannot determine the location of the VS Common Tools folder.
I've done the path modifications in Environment System Variables with no luck.
Thanks!
VS2010 command prompt gives error : Cannot determine the location of the VS Common Tools folder
I modified the vsvars32.bat file in the vs11 and vs10 folders accordingly and the error went away... Now onto eliminating my build errors....

ejabberd installation issue for Windows -- ./ejabberdctl: erl.exe: can't execute

I have installed ejabberd 2.1.11 on two machines, one with Windows XP SP2 and one with Windows server 2003 Standard edition. Both with VC++ 2005.
VC++ 2005 was already installed before starting the ejabberd installation.
I have manually locate and run erl.exe and in the eventViewer I got (in both machines):
Generate Activation Context failed for C:\Program Files\ejabberd-2.1.11\bin\erl.exe. Reference error message: The referenced assembly is not installed on your system.
and
Dependent Assembly Microsoft.VC80.CRT could not be found and Last Error was The referenced assembly is not installed on your system.
Also when running erl.exe a pop-up window appears with the message: "C:\Program Files\ejabberd-2.1.11\bin\erl.exe This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
Also when I run ./ejabberdctl got the error:
"
Starting ejabberd...
./ejabberdctl: e:\bin\erl.exe: can't execute: (14001) Error 14001
" There is a problem starting Erlang.If the error you see is 14001, you need to install:
Microsoft Visual C++ 2005 SP1 Redistributable Package
You can download that installer from www.microsoft.com
You can also check the ejabberd Administrator Guide "
But the Visual C++ 2005 SP1 is installed.
Anyone have a idea why this happening?
Thanks in advance for your time.
rgb

Resources