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

Win10 XicTools-4.3 Failed DLL #12

Open
Servinjesus1 opened this issue Jan 13, 2022 · 15 comments
Open

Win10 XicTools-4.3 Failed DLL #12

Servinjesus1 opened this issue Jan 13, 2022 · 15 comments

Comments

@Servinjesus1
Copy link

I cannot install XicTools-4.3(.11) on Windows 10.

I followed the guide for Windows and used the wr_install script under MSYS2 MingGW x64's terminal to install xictools, wrspice, mrouter, and mozy. However, attempting to load xic or wrspice (via either winpty xic or xic) in the MingGW terminal gives a Failed to load the program DLL error (program -> WRspice for wrspice).

In Windows, Xic is registered as a program that points to C:\usr\local\xictools\xic.current\bin\xic.bat. Opening this gives an Entry Point Not Found error:

The procedure entry point _ZdaPv could not be located in the dynamic link library c:\usr\local\xictools\xic\bin\xic.dll.`
@suprcondcircuiter
Copy link

Same problem, "winpty wrspice" always returns "Failed to load WRSpice DLL". Only solution I found is to install virtual box with ubuntu on it, for Linux I managed to install it after all.

@wrcad
Copy link
Owner

wrcad commented Mar 19, 2022

In the Windows Start menu, there are 3 choices under "MSYS2 64bit". You must choose "MSYS2 MinGW 64bit" to run the XicTools programs (which require MinGW). In particular, if you try to use "MSYS2 MSYS", you'll get the "Failed to load..." message.

@suprcondcircuiter
Copy link

In the Windows Start menu, there are 3 choices under "MSYS2 64bit". You must choose "MSYS2 MinGW 64bit" to run the XicTools programs (which require MinGW). In particular, if you try to use "MSYS2 MSYS", you'll get the "Failed to load..." message.

Thank you for the reply! I do not think it is the problem though. My start menu looks like this and I tried all of them, It's always "failed to load..".
2022-03-20_13-42-12
2022-03-20_13-50-09

@wrcad
Copy link
Owner

wrcad commented Mar 20, 2022

The message in the image above "mount: warning - /usr/local/xictools does not exist." may be a clue. This should exist.
you should be able to
cd /usr/local/xictools
ls bin
see in the listing xic.bat, xic.dll, xic.exe and/or wrspice.dll, wrspice.exe etc.
/usr/local/xictools/bin should be in your shell search path.
Listing /usr/local/xictools should show directory xic.current, and a link to this directory named "xic". Similar for wrspice.current and wrspice.
ls -l bin will show that most of the contents are links to xic/bin or wrspice/bin

At least, this is the intended structure. There may be a problem mounting /usr/local/xictools, or there may be problems with the links (symbolic links are new to Windows and may require special permission such as administrator mode to use).

@suprcondcircuiter
Copy link

I think all this intended structure exists (see the 1st screenshot), the reason for this mounting warning (as I understand it) is that it is checking not c:/usr/local for the /xictools folder, but c:/msys64/usr/local instead, and indeed there is only folder called /etc there. If I understand correctly the idea of the mounting is to map from c:/usr/local/xictools to c:/msys64/usr/local/xictools. I think it worked in a sense that if I do cd /usr/local/xictools in the shell, it shows me everything inside c:/usr/local/xictools.
The 2nd screenshot is how I changed ~/.bash_profile - do you think it is correct?
2022-03-20_20-03-36
2022-03-20_20-07-38

@Mengfei-Zhao
Copy link

I have the same problem as you.

@tanaka-yasumoto
Copy link

I am trying to install XIC in the Win 11 computer. Because self-extracting files did not work, I am challenging full compiling the sources on MSYS mingw64 OS.
Is there any person who is still active in this room?

I put all of sources on c:\usr\local\xictools.

make config generated many errors.
I will resolve these errors step by step.

I modified one line in the makefile.
MINGW = --enable-mingw=/mingw64
I did not set GTKLOC because I found the description “gtk2-bundle” is no longer needed in “http://wrcad.com/xictools/index.html

The errors (generated by make config) are :

configure:3931: /mingw64/bin/gcc -V >&5
gcc.exe: error: unrecognized command-line option '-V'
gcc.exe: fatal error: no input files

It might be OK that I leave it as it is.
These lines might be just for checking version of gcc.
A next error

configure:4960: /mingw64/bin/gcc -E conftest.c
conftest.c:11:10: fatal error: ac_nonexistent.h: No such file or directory

I do not have any idea to resolve this error at this moment

And more errors made me give up
configure:5047: checking for X
configure:5085: /mingw64/bin/gcc -o conftest.exe -g -O2 conftest.c -lX11 >&5
In file included from C:/msys64/mingw64/include/X11/Xlib.h:31,
from conftest.c:11:
C:/msys64/mingw64/include/X11/X.h:44:26: error: expected '=', ',', ';', 'asm' or 'attribute' before 'XID'
44 | typedef unsigned __int64 XID;
| ^~~
C:/msys64/mingw64/include/X11/X.h:49:9: error: unknown type name 'XID'
49 | typedef XID Window;
| ^~~
C:/msys64/mingw64/include/X11/X.h:50:9: error: unknown type name 'XID'
50 | typedef XID Drawable;
| ^~~
C:/msys64/mingw64/include/X11/X.h:51:9: error: unknown type name 'XID'
51 | typedef XID Font;
| ^~~
C:/msys64/mingw64/include/X11/X.h:52:9: error: unknown type name 'XID'
52 | typedef XID Pixmap;
| ^~~

When there is someone to give me a clue to overcome these errors,
please give me some advices.

@wrcad
Copy link
Owner

wrcad commented May 22, 2023 via email

@tanaka-yasumoto
Copy link

Thank you so much for your advices.
It is so lucky that the master of XIC kindly & promptly replied.
I hope I will be able to continue my challenge under your kind support.

@tanaka-yasumoto
Copy link

I tried a windows 10 machine using MSYS2 and self-extracting files.
It worked!

Windows 11 is problem.

@wrcad
Copy link
Owner

wrcad commented May 24, 2023 via email

@tanaka-yasumoto
Copy link

tanaka-yasumoto commented May 25, 2023

Thank you. I have one question. Which gcc should I use to compile the sources? The MSYS2 homepage introduces us pacman -S mingw-w64-ucrt-x86_64-gcc. Is it ok for mingw64 (MSVCRT) ? I cannot find out a "mingw-w64-msvcrt-x86_64-gcc" - like package.

or Can I use the following one found in https://www.msys2.org/ for a gcc compiler?
pacman -S mingw-w64-ucrt-x86_64-gcc
(with mingw_w64-x86_64-toolchain ?).

Which gcc compiler do you use?

-> I understand the mingw_w64-x86_64-toolchain includes gcc, c++ compiler.
The mingw-w64-ucrt-x86_64-gcc should not be installed.

The make config vomitted 'there is no autoconf'.
Is there a necessity to make an invocation "pacman -S mingw-w64-x86_64-autotools"?
There might be several variants for autoconfig package.

@wrcad
Copy link
Owner

wrcad commented May 29, 2023 via email

@wrcad
Copy link
Owner

wrcad commented May 29, 2023 via email

@tanaka-yasumoto
Copy link

tanaka-yasumoto commented May 30, 2023

I have read the README several times. Still my understanding might not be sufficient. Anyway, Thank you so much for your advices

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

No branches or pull requests

5 participants