WheezyE / Winelink

Installation scripts for running Winlink (RMS Express/Trimode & VARA) on non-Windows computers. Wine & Box86 make this project possible.
72 stars 19 forks source link

ImageList from MSCOMCTL.OCX #68

Closed theranger53 closed 2 months ago

theranger53 commented 1 year ago

I got the following error when trying to open vara configuration after installing onto a raspberry pi 4. Failed to load control 'ImageList' from MSCOMCTL.OCX. Your version of mscomctl.ocx may be out dated. Make sure you are using the version of the control that was provided with your application. I have not seen this error anywhere else in this forum, anywhere else except when dealing with the windows system. I have also been told that it was doubted that it would even work in the debian environment. I know it must work because too many people are using wine for vara install on the pi. Any help would be appreciated.

WheezyE commented 1 year ago

That's really weird. (And sorry to get to this so late.) The script uses the MSCOMCTL.OCX that is packaged with every new VARA release (...\VARA\OCX\MSCOMCTL.OCX). These are used by VB6runtime. My guess is that maybe winetricks didn't install vb6run on your first installation and then VARA threw a random error about this .OCX file.

I would maybe try re-installing the Winelink script (just re-run it) and see if this fixes anything

TAj-src commented 1 year ago

This is also happening to me, along with many failures on the install script / hanging. This is with a completely fresh install of Raspbian GNU/Linux 11 (bullseye) I have downloaded the latest vb6 from MS and run it. Same error. None of the programs work and complain about this. I have moved the OCX to windows/system32 and re-registered them (regsrv32). I am following instuctions that have worked for many people so I think this might be something to do with the new OS image ?

WheezyE commented 1 year ago

I think I may have fixed this in bfdf35ed43291587ad86a2e4a986ddbe21b35d47 after tracking down some problems in issue #72. I believe they're actually the same issue, along with the freezing with winetricks. I'll close this for now since I think it's fixed, but feel free to re-open it.

TAj-src commented 1 year ago

using https://raw.githubusercontent.com/WheezyE/Winelink/bfdf35ed43291587ad86a2e4a986ddbe21b35d47/install_winelink.sh and it gets to the point of 'Loading VARA HF now ...' to configure the soundcard and it fails with MSCOMCTL.OCX again.

The first winecfg works. Other VARA's do not. after killing the ahk's and letting it run through the rest, no VARA package works. They all error with MSCOMCTL.OCX error

TAj-src commented 1 year ago

I deleted everything and started a fresh and had a similar but different error , this time it was missing MSCOMCTL.OCX, not 'different'. So I manually registered the version in c:\VARA\OCX and strarted it, while the script was waiting for the VARA GUI to start, so it did the configuration and now things all start.

WheezyE commented 1 year ago

Hm I’ll take another look at this one Can you send me your log file? (~/winelink/winelink.log)

TAj-src commented 1 year ago

This was the script you closed this issue with saying it was fixed. I initially tried the main branch but didn't get as far!

Thanks for taking a look

On Tue, 27 Jun 2023, 16:03 Eric Wiessner (KI7POL), @.***> wrote:

using https://raw.githubusercontent.com/WheezyE/Winelink/bfdf35ed43291587ad86a2e4a986ddbe21b35d47/install_winelink.sh and it gets to the point of 'Loading VARA HF now ...' to configure the soundcard and it fails with MSCOMCTL.OCX again.

That’s an older version of the script. Does the latest version of the script install ok?

— Reply to this email directly, view it on GitHub https://github.com/WheezyE/Winelink/issues/68#issuecomment-1609690036, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALBPCYJEJK64XX6RLL6QLL3XNLY2NANCNFSM6AAAAAAWCFMOLI . You are receiving this because you commented.Message ID: @.***>

WheezyE commented 1 year ago

This was the script you closed this issue with saying it was fixed.

Yes sorry for that. I replied initially without looking closely enough (I just checked the version number in the blob link you sent). I deleted my comment and then edited another one here. Is there any log file you could attach?

pe1rrr commented 1 year ago

I am also having this issue, since updating my RPI to use the latest kernel via rpi-config the system seems no longer to be able to install properly from the Winelink installer, each time this exact issue crops up.

pe1rrr commented 1 year ago
+ run_detect_arch
++ uname -m
+ KARCH=aarch64
+ '[' aarch64 = aarch64 ']'
+ ARCH=ARM64
+ run_detect_os
+ '[' -e /etc/os-release ']'
+ OS_INFOFILE=/etc/os-release
+ source /etc/os-release
++ PRETTY_NAME='Raspbian GNU/Linux 12 (bookworm)'
++ NAME='Raspbian GNU/Linux'
++ VERSION_ID=12
++ VERSION='12 (bookworm)'
++ VERSION_CODENAME=bookworm
++ ID=raspbian
++ ID_LIKE=debian
++ HOME_URL=http://www.raspbian.org/
++ SUPPORT_URL=http://www.raspbian.org/RaspbianForums
++ BUG_REPORT_URL=http://www.raspbian.org/RaspbianBugs
+ case $ARCH in
+ run_detect_rpi
+ grep -q Raspberry /proc/device-tree/model
++ grep Revision
++ cat /proc/cpuinfo
++ cut -d ' ' -f 2
+ local HEXREVISION=c03130
++ echo 'obase=2; ibase=16; C03130'
++ bc
+ local BINREVISION=110000000011000100110000
+ local COUNTBITS=24
+ ((  24 < 32  ))
+ local ZEROSNEEDED=8
++ printf '%08d\n' 0
+ local LEADINGZEROS=00000000
+ local REVCODE=00000000110000000011000100110000
+ local N=0
+ local O=0
+ local Q=0
+ local W=0
+ local w=0
+ local F=1
++ echo 'obase=16; ibase=2; 100'
++ bc
+ local MMM=4
++ echo 'obase=16; ibase=2; 0000'
++ bc
+ local CCCC=0
++ echo 'obase=16; ibase=2; 0011'
++ bc
+ local PPPP=3
++ echo 'obase=16; ibase=2; 00010011'
++ bc
+ local TTTTTTTT=13
++ echo 'obase=16; ibase=2; 0000'
++ bc
+ local RRRR=0
+ PI_OVERVOLTAGE=
+ PI_OTPPROGRAM=
+ PI_OTPREAD=
+ PI_WARRANTY=
+ PI_RAM=
+ PI_MANUFACTURER=
+ PI_PROCESSOR=
+ PI_TYPE=
+ PI_REVISION=
+ '[' 1 = 0 ']'
+ '[' 1 = 1 ']'
+ case $N in
+ PI_OVERVOLTAGE=allowed
+ case $O in
+ PI_OTPPROGRAM=allowed
+ case $Q in
+ PI_OTPREAD=allowed
+ case $W in
+ PI_WARRANTY=intact
+ case $MMM in
+ PI_RAM=4GB
+ case $CCCC in
+ PI_MANUFACTURER='Sony UK'
+ case $PPPP in
+ PI_PROCESSOR=BCM2711
+ case $TTTTTTTT in
+ PI_TYPE=400
+ PI_REVISION=1.0
+ echo -e '\nRaspberry Pi Model 400 Rev 1.0 BCM2711 with 4GB of RAM. Manufactured by Sony UK.'
+ echo '(Overvoltage allowed. OTP programming allowed. OTP reading allowed. Warranty intact)'
+ '[' 400 = 4B ']'
+ '[' 400 = 400 ']'
+ SBC_SERIES=RPi4
+ echo -e '\nThis Pi is part of the RPi4 series.'
+ run_detect_othersbc
++ tr -d '\0'
+ local 'model=Raspberry Pi 400 Rev 1.0'
+ '[' 'Raspberry Pi 400 Rev 1.0' = 'OrangePi 4 LTS' ']'
+ '[' 'Raspberry Pi 400 Rev 1.0' = 'OrangePi 4' ']'
+ echo -e '\nThis SBC is part of the RPi4 series.'
+ case $SBC_SERIES in
+ case $ID in
+ case $ARCH in
+ run_greeting 'RPi4 ARM64 ' 10 2.8 vara_only
+ local 'hardware=RPi4 ARM64 '
+ local tinst=10
+ local space=2.8
+ local arg=vara_only
+ clear
+ echo ''
+ echo '####################### Winlink & VARA Installer Script #######################'
+ echo '# Author: Eric Wiessner (KI7POL)                         System: RPi4 ARM64   #'
+ echo '# Version: 0.0099a                                 Install time: apx 10 min   #'
+ echo '#                                                Space required: apx 2.8 GB   #'
+ echo '# Credits:                                                                    #'
+ echo '#   The Box86 team (ptitSeb, pale, chills340, Itai-Nelken, Heasterian, et al) #'
+ echo '#   Esme '\''madewokherd'\'' Povirk (CodeWeavers) for adding functions to wine-mono #'
+ echo '#   Botspot for RPi kernel switching bash code. Chris Keller for Pat support. #'
+ echo '#   N7ACW, AD7HE, & KK6FVG for getting me started in ham radio.               #'
+ echo '#   KM4ACK & OH8STN for inspiration. K6ETA & DCJ21'\''s Winlink on Linux guides. #'
+ echo '#                                                                             #'
+ echo '# Donations:                                                                  #'
+ echo '#    Box86                        paypal.me/0ptitSeb                          #'
+ echo '#    madewokherd / CodeWeavers    codeweavers.com/crossover                   #'
+ echo '#    Wine / wine-mono             winehq.org/donate                           #'
+ echo '#                                                                             #'
+ echo '#    "My humanity is bound up in yours, for we can only be human together"    #'
+ echo '#                                                - Nelson Mandela             #'
+ echo '###############################################################################'
+ '[' vara_only = bap ']'
+ read -n 1 -s -r -p 'Press any key to continue . . .'
+ clear
+ run_checkdiskspace 2800
+ local reqSpaceMB=2800
+ reqSpace512Blocks=5468750
++ POSIXLY_CORRECT=1
++ df /home/pi
++ awk 'NR==2 { print $4 }'
+ availSpace=339439696
+ ((  availSpace < reqSpace512Blocks  ))
+ run_downloadbox86 14113faa_RPi4
+ local version=14113faa_RPi4
+ '[' ARM64 == ARM64 ']'
+ sudo dpkg --add-architecture armhf
+ sudo apt-get update
+ sudo apt-get install libc6:armhf -y
+ sudo apt-get install p7zip-full -y
+ echo -e '\e[32mDownloading and installing Box86 . . .\e[0m'
+ mkdir downloads
+ cd downloads
+ mkdir box86
+ cd box86
+ sudo rm /usr/local/bin/box86
+ wget -q https://github.com/WheezyE/Winelink/raw/main/binaries/box86_14113faa_RPi4.7z
+ 7z x box86_14113faa_RPi4.7z -y -bsp0 -bso0
+ sudo cp box86_14113faa_RPi4/build/system/box86.conf /etc/binfmt.d/
+ sudo cp box86_14113faa_RPi4/build/box86 /usr/local/bin/box86
+ sudo chmod +x /usr/local/bin/box86
+ sudo mkdir /usr/lib/i386-linux-gnu/
+ sudo cp box86_14113faa_RPi4/x86lib/libgcc_s.so.1 box86_14113faa_RPi4/x86lib/libpng12.so.0 box86_14113faa_RPi4/x86lib/libstdc++.so.5 box86_14113faa_RPi4/x86lib/libstdc++.so.6 /usr/lib/i386-linux-gnu/
+ sudo systemctl restart systemd-binfmt
+ cd ..
+ cd ..
+ run_Sideload_i386wine devel 7.1 debian bookworm -1
+ local branch=devel
+ local version=7.1
+ local id=debian
+ local dist=bookworm
+ local tag=-1
++ wine --version
++ grep '7.1\b'
+ local WINEVER=
+ '[' '!' -z '' ']'
+ wineserver -k
+ rm -rf /home/pi/.cache/wine
+ rm -rf /home/pi/.local/share/applications/wine
+ rm -rf /home/pi/wine-old
+ mv /home/pi/wine /home/pi/wine-old
+ rm -rf /home/pi/.wine-old
+ mv /home/pi/.wine /home/pi/.wine-old
+ sudo mv /usr/local/bin/wine /usr/local/bin/wine-old
+ sudo mv /usr/local/bin/wineboot /usr/local/bin/wineboot-old
+ sudo mv /usr/local/bin/winecfg /usr/local/bin/winecfg-old
+ sudo mv /usr/local/bin/wineserver /usr/local/bin/wineserver-old
+ LNKB=https://dl.winehq.org/wine-builds/debian/dists/bookworm/main/binary-i386/
+ DEB_B1=wine-devel-i386_7.1~bookworm-1_i386.deb
+ DEB_B2=wine-devel_7.1~bookworm-1_i386.deb
+ mkdir downloads
+ cd downloads
+ echo -e '\e[32mDownloading wine . . .\e[0m'
+ wget -q https://dl.winehq.org/wine-builds/debian/dists/bookworm/main/binary-i386/wine-devel-i386_7.1~bookworm-1_i386.deb
+ wget -q https://dl.winehq.org/wine-builds/debian/dists/bookworm/main/binary-i386/wine-devel_7.1~bookworm-1_i386.deb
+ echo -e '\e[32mExtracting wine . . .\e[0m'
+ dpkg-deb -x wine-devel-i386_7.1~bookworm-1_i386.deb wine-installer
+ dpkg-deb -x wine-devel_7.1~bookworm-1_i386.deb wine-installer
+ echo -e '\e[32mInstalling wine . . .\e[0m\n'
+ mv wine-installer/opt/wine-devel /home/pi/wine
+ cd ..
+ echo -e '#!/bin/bash\nsetarch linux32 -L /home/pi/wine/bin/wine "$@"'
+ sudo tee -a /usr/local/bin/wine
+ sudo ln -s /home/pi/wine/bin/wineboot /usr/local/bin/wineboot
+ sudo ln -s /home/pi/wine/bin/winecfg /usr/local/bin/winecfg
+ sudo ln -s /home/pi/wine/bin/wineserver /usr/local/bin/wineserver
+ sudo chmod +x /usr/local/bin/wine /usr/local/bin/wineboot /usr/local/bin/winecfg /usr/local/bin/wineserver
+ run_Install_i386wineDependencies_RpiOS64bit
+ echo -e '\e[32mInstalling armhf dependencies for i386-Wine on aarch64 . . .\e[0m'
+ sudo dpkg --add-architecture armhf
+ sudo apt-get update
+ sudo apt-get install -y libasound2:armhf libc6:armhf libglib2.0-0:armhf libgphoto2-6:armhf libgphoto2-port12:armhf libgstreamer-plugins-base1.0-0:armhf libgstreamer1.0-0:armhf libldap-2.4-2:armhf libopenal1:armhf libpcap0.8:armhf libpulse0:armhf libsane1:armhf libudev1:armhf libusb-1.0-0:armhf libvkd3d1:armhf libx11-6:armhf libxext6:armhf libasound2-plugins:armhf ocl-icd-libopencl1:armhf libncurses6:armhf libncurses5:armhf libcap2-bin:armhf libcups2:armhf libdbus-1-3:armhf libfontconfig1:armhf libfreetype6:armhf libglu1-mesa:armhf libglu1:armhf libgnutls30:armhf libgssapi-krb5-2:armhf libkrb5-3:armhf libodbc1:armhf libosmesa6:armhf libsdl2-2.0-0:armhf libv4l-0:armhf libxcomposite1:armhf libxcursor1:armhf libxfixes3:armhf libxi6:armhf libxinerama1:armhf libxrandr2:armhf libxrender1:armhf libxxf86vm1 libc6:armhf libcap2-bin:armhf x11-utils:armhf libxcomposite-dev:armhf
+ run_installwinetricks
+ sudo apt-get remove winetricks -y
+ sudo apt-get install cabextract -y
+ mkdir downloads
+ cd downloads
+ echo -e '\n\e[32mDownloading and installing winetricks . . .\e[0m\n'
+ sudo mv /usr/local/bin/winetricks /usr/local/bin/winetricks-old
+ wget -q https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
+ sudo chmod +x winetricks
+ sudo mv winetricks /usr/local/bin
+ cd ..
+ run_installahk
+ sudo apt-get install p7zip-full -y
+ mkdir downloads
+ cd downloads
+ echo -e '\n\e[32mDownloading AutoHotkey . . .\e[0m\n'
+ wget -q https://github.com/AutoHotkey/AutoHotkey/releases/download/v1.1.36.02/AutoHotkey_1.1.36.02_setup.exe
+ 7z e AutoHotkey_1.1.36.02_setup.exe AutoHotkeyU32.exe -y -bsp0 -bso0
+ mkdir /home/pi/winelink
+ mkdir /home/pi/winelink/ahk
+ sudo mv AutoHotkeyU32.exe /home/pi/winelink/ahk/AutoHotkey.exe
+ sudo chmod +x /home/pi/winelink/ahk/AutoHotkey.exe
+ cd ..
+ run_setupwineprefix vara_only
+ local varaonly=vara_only
+ echo -e '\n\e[32mInitializing wineprefix.  This may take a moment . . .\e[0m\n'
+ rm -rf /home/pi/.cache/wine
+ DISPLAY=0
+ WINEARCH=win32
+ WINEDEBUG=-all
+ wine wineboot
+ '[' vara_only = vara_only ']'
+ echo -e '\n\e[32mSetting up your wineprefix for VARA . . .\e[0m\n'
+ BOX86_DYNAREC=0
+ BOX86_NOBANNER=1
+ winetricks -q vb6run pdh_nt4 win7 sound=alsa
+ echo 'Winetricks failed to download/install VB6 or PDH.DLL!'
+ run_giveup
+ echo ''
+ echo 'Winelink installation failed.'
+ echo ''
+ echo -e 'If a download failed, please check your internet connection and try re-running \nthe script.'
+ echo 'For help, please reference the '\''/home/pi/winelink\winelink.log'\'' file'
+ echo 'You can also open an issue on github.com/WheezyE/Winelink/'
+ echo ''
+ set +x

This is on bookworm upgraded bullseye system.

Now there's an error:

Downloading and installing Box86 . . .
i386-binfmt-P: Could not open '/lib/ld-linux.so.2': No such file or directory
WheezyE commented 1 year ago

i386-binfmt-P: Could not open '/lib/ld-linux.so.2'

@pe1rrr Huh. My guess for this one is that box86 doesn't have the bookworm linux libraries wrapped yet. You might check in with Seb on adding support for bookworm.

This was the script you closed this issue with saying it was fixed.

@TAj-src I've been scratching my head on this for a bit since my installs seem to be ok. I think maybe you could have a broken wine installation. You might try running rm -rf ~/wine ~/.wine and re-running the script

WheezyE commented 1 year ago

VaraChat does seem broken at the moment, but I can consistently get past this stage on bullseye with the latest updates.

SpudGunMan commented 1 year ago

I noticed that OCX files are included with vara release and may need to be registered into wine. it seems the script is full stop now with errors due to COMCTL on loading of the sound dialog which AHK puts into place..

WheezyE commented 2 months ago

I have implemented a workaround for this now: I've added a different install method for VARA HF into pi-apps that relies on registering VARA's VB6 Active X components (.ocx files) manually into Wine. If you have trouble with this in the future, try installing pi-apps and uninstalling / reinstalling VARA HF from the "Engineering" tools menu in pi-apps.

I'm going to close this for now, but feel free to re-open if you run into this again.