alternetsoft / AlternetUI

MIT License
27 stars 2 forks source link

Linux related problems #34

Open generalloki opened 1 year ago

generalloki commented 1 year ago

In this topic we collect Linux related issues.

Shadowblitz16 commented 8 months ago

I get this when trying to run the initial project on kubuntu in vscode

Exception has occurred: CLR/System.TypeInitializationException
An unhandled exception of type 'System.TypeInitializationException' occurred in Alternet.UI.dll: 'The type initializer for 'Alternet.UI.Application' threw an exception.'
 Inner exceptions found, see $exception in variables window for more details.
 Innermost exception     System.DllNotFoundException : Unable to load shared library 'Alternet.UI.Pal' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libAlternet.UI.Pal: cannot open shared object file: No such file or directory
   at Alternet.UI.Native.NativeApiProvider.SetExceptionCallback(NativeExceptionCallbackType unhandledExceptionCallback, NativeExceptionCallbackType caughtExceptionCallback)
   at Alternet.UI.Native.NativeApiProvider.Initialize()
   at Alternet.UI.Native.WebBrowser.NativeApi..cctor()
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 6.5.0-15-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: RENOIR
neoxeo commented 8 months ago

@Shadowblitz16

Did you have tried to run Install.sh to be sure you have all prerequisites and if compile is ok ?

Shadowblitz16 commented 8 months ago

@neoxeo I just tried the Install.Scripts/Ubuntu.Install.Packages.sh detailed here https://docs.alternet-ui.com/tutorials/hello-world/command-line/hello-world-command-line.html

I still get a error.

Unhandled exception. System.TypeInitializationException: The type initializer for 'Alternet.UI.Application' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Alternet.UI.Native.WebBrowser' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'NativeApi' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'Alternet.UI.Pal' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libAlternet.UI.Pal: cannot open shared object file: No such file or directory
   at Alternet.UI.Native.NativeApiProvider.SetExceptionCallback(NativeExceptionCallbackType unhandledExceptionCallback, NativeExceptionCallbackType caughtExceptionCallback)

Edit: I also tried this...

shadowblitz16@Kubuntu:~/Documents/Source/cs/AlternetUI$ ./Install.sh
MSBuild version 17.4.8+6918b863a for .NET
  ========================
  Alternet.UI Installation started
  --------------------------------------------------------
  Exec ClearProjectBin
  --------------------------------------------------------
  Exec DownloadAndExtract WxWidgets Bin
/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/CommonProcs.cs(19,67): error CS1525: Invalid expression term '[' [/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/Alternet.UI.CommonUtils.csproj] [/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Build/Alternet.UI.Pal/Alternet.UI.Pal.proj]
/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/CommonProcs.cs(21,33): error CS0443: Syntax error; value expected [/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/Alternet.UI.CommonUtils.csproj] [/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Build/Alternet.UI.Pal/Alternet.UI.Pal.proj]

  The build failed. Fix the build errors and run again.
/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Build/Alternet.UI.Pal/Alternet.UI.Pal.WxWidgets.targets(61,9): error MSB3073: The command "dotnet run -- -r=download Url="https://alternetsoftware.blob.core.windows.net/alternet-ui/wxWidgets-bin-noobjpch-3.2.3.zip" Path="/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Build/Alternet.UI.Pal/../../../External//WxWidgets.zip"" exited with code 1. [/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Build/Alternet.UI.Pal/Alternet.UI.Pal.proj]
generalloki commented 8 months ago

@Shadowblitz16 ,

If you use Alternet.UI nuget in the application, the problem could be in Alternet.UI nuget working incorrectly under Linux (it may not copy Alternet.UI.PAL dll to the application folder). If there are no Alternet.UI.Pal.so in the app BIN folder after the build, this is the case. I will investigate this and post results here.

As to problem with Install.sh execution (error in CommonProcs.cs): I beleive if you install Net 8 it will run fine after that.

Shadowblitz16 commented 8 months ago

@Shadowblitz16 ,

If you use Alternet.UI nuget in the application, the problem could be in Alternet.UI nuget working incorrectly under Linux (it may not copy Alternet.UI.PAL dll to the application folder). If there are no Alternet.UI.Pal.so in the app BIN folder after the build, this is the case. I will investigate this and post results here.

As to problem with Install.sh execution (error in CommonProcs.cs): I beleive if you install Net 8 it will run fine after that.

I can't install .net 8 I'm on kubuntu 22.04 and I don't want leave the LTS version.

generalloki commented 8 months ago

@Shadowblitz16 , I have checked sample project with nugets under Ubuntu 23 and it works fine.

  1. Run: Install.Scripts/Ubuntu.Install.Packages.sh
  2. Run: dotnet new install Alternet.UI.Templates
  3. Run: dotnet new alternet-ui
  4. Run: dotnet run

Details in: https://docs.alternet-ui.com/tutorials/hello-world/command-line/hello-world-command-line.html

Could you please run these steps on your pc? How it works?

Shadowblitz16 commented 8 months ago

ok I...

Here is the first terminal output...

shadowblitz16@Kubuntu:~/Documents/Source/cs/AlternetUI/Install.Scripts$ /home/shadowblitz16/Documents/Source/cs/AlternetUI/Install.Scripts/Ubuntu.Install.Packages.sh
[sudo] password for shadowblitz16: 
Hit:1 http://packages.microsoft.com/repos/code stable InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease                                                                                                  
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                                          
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease                                                                                        
Hit:5 https://repo.steampowered.com/steam stable InRelease                                                                                                 
Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                                                                 
Ign:7 https://proget.makedeb.org prebuilt-mpr InRelease                                                                                       
Get:8 https://proget.makedeb.org prebuilt-mpr Release [8,442 B]                                                                               
Get:10 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1,109 kB]      
Hit:11 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy InRelease
Get:12 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [393 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [207 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1,313 kB]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [214 kB]
Fetched 3,356 kB in 3s (1,253 kB/s)                               
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'jammy/binary-i386/Packages' as repository 'https://proget.makedeb.org prebuilt-mpr InRelease' doesn't support architecture 'i386'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  vlc-plugin-qt libvlc5 vlc-data libvlccore9 vlc vlc-bin vlc-l10n
  libopenexr-dev libavdevice58 libdcmtk16 libopenexr25 libpostproc55
  libmagickcore-6.q16-6-extra vlc-plugin-samba libswscale-dev libavcodec58
  libmagickwand-6.q16-6 vlc-plugin-notify libavutil56 libswscale5
  libeditorconfig0 libmagickcore-6.q16-6 vlc-plugin-access-extra libavutil-dev
  vlc-plugin-skins2 vlc-plugin-video-splitter libswresample3
  imagemagick-6-common vlc-plugin-video-output libavformat58 libavformat-dev
  libavcodec-dev libpmix2 libvlc-bin libswresample-dev vlc-plugin-base
  vlc-plugin-visualization libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dotnet-sdk-6.0 is already the newest version (6.0.126-0ubuntu1~22.04.1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dotnet-sdk-7.0 is already the newest version (7.0.115-0ubuntu1~22.04.1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package dotnet-sdk-8.0
E: Couldn't find any package by glob 'dotnet-sdk-8.0'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libgtk-3-dev is already the newest version (3.24.33-1ubuntu2).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9ubuntu3).
gdb is already the newest version (12.1-0ubuntu1~22.04).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
cmake is already the newest version (3.22.1-1ubuntu1.22.04.1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libgspell-1-dev is already the newest version (1.9.1-4).
libsecret-1-dev is already the newest version (0.20.5-2).
freeglut3-dev is already the newest version (2.8.1-6).
libcanberra-gtk3-module is already the newest version (0.30-10ubuntu1.22.04.1).
libcanberra-gtk-module is already the newest version (0.30-10ubuntu1.22.04.1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libcurl4-openssl-dev is already the newest version (7.81.0-1ubuntu1.15).
libnotify-dev is already the newest version (0.7.9-3ubuntu5.22.04.1).
libwebkit2gtk-4.0-dev is already the newest version (2.42.4-0ubuntu0.22.04.1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libwebkit2gtk-4.1-dev is already the newest version (2.42.4-0ubuntu0.22.04.1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libgstreamer-plugins-base1.0-dev is already the newest version (1.20.1-1ubuntu0.1).
libgstreamer1.0-dev is already the newest version (1.20.3-0ubuntu1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gstreamer1.0-plugins-base is already the newest version (1.20.1-1ubuntu0.1).
libgstreamer-plugins-bad1.0-dev is already the newest version (1.20.3-0ubuntu1.1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gstreamer1.0-plugins-ugly is already the newest version (1.20.1-1).
gstreamer1.0-plugins-good is already the newest version (1.20.3-0ubuntu1.1).
gstreamer1.0-plugins-bad is already the newest version (1.20.3-0ubuntu1.1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gstreamer1.0-alsa is already the newest version (1.20.1-1ubuntu0.1).
gstreamer1.0-tools is already the newest version (1.20.3-0ubuntu1).
gstreamer1.0-x is already the newest version (1.20.1-1ubuntu0.1).
gstreamer1.0-libav is already the newest version (1.20.3-0ubuntu1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gstreamer1.0-gl is already the newest version (1.20.1-1ubuntu0.1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gstreamer1.0-gtk3 is already the newest version (1.20.3-0ubuntu1.1).
gstreamer1.0-pulseaudio is already the newest version (1.20.3-0ubuntu1.1).
gstreamer1.0-qt5 is already the newest version (1.20.3-0ubuntu1.1).
The following packages were automatically installed and are no longer required:
  blender-data extra-cmake-modules fonts-dejavu gettext kapptemplate kdevelop-data kdevelop57-libs libapr1 libaprutil1 libastyle3 libavdevice58
  libboost-filesystem1.74.0 libboost-locale1.74.0 libboost-thread1.74.0 libcdio-cdda2 libcdio-paranoia2 libdcmtk16 libembree3-3 libjemalloc2
  libkasten4controllers0 libkasten4core0 libkasten4gui0 libkasten4okteta2controllers0 libkasten4okteta2core0 libkasten4okteta2gui0 libkf5config-dev
  libkf5config-dev-bin libkf5config-doc libkf5coreaddons-dev libkf5coreaddons-dev-bin libkf5coreaddons-doc libkf5dbusaddons-dev libkf5dbusaddons-doc
  libkf5i18n-dev libkf5i18n-doc libkf5package-dev libkf5package-doc libkf5plasma-dev libkf5plasma-doc libkf5service-dev libkf5service-doc
  libkf5windowsystem-dev libkf5windowsystem-doc libkomparediff2-5 liblog4cplus-2.0.5 libokteta-l10n libokteta3core0 libokteta3gui0 libopencolorio1v5
  libopenimageio2.2 libopenvdb8.1 libosdcpu3.4.4 libpugixml1v5 libqt5scripttools5 libserf-1-1 libspnav0 libsquish0 libsvn1 libtinyxml2.6.2v5 libutf8proc2
  libyaml-cpp0.7 qml-module-qtwebkit qtscript5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Here is the second terminal output...

shadowblitz16@Kubuntu:~/Documents/Source/cs/SMBX-B$ dotnet new install Alternet.UI.Templates
The following template packages will be installed:
   Alternet.UI.Templates

Alternet.UI.Templates (version 0.9.503-beta) is already installed, it will be replaced with latest version.
Alternet.UI.Templates::0.9.503-beta was successfully uninstalled.
Error: Failed to load template from /home/shadowblitz16/.templateengine/packages/MonoGame.Templates.CSharp.3.8.1.303.nupkg(/content/content/MonoGame.Application.UWP.CoreApp.CSharp/.template.config/template.json):
  Missing 'identity'.

Success: Alternet.UI.Templates::0.9.503-beta installed the following templates:
Template Name                 Short Name          Language  Tags                                     
----------------------------  ------------------  --------  -----------------------------------------
AlterNET UI Application (C#)  alternet-ui         [C#]      UI/GUI/AlterNET UI/Cross Platform/Desktop
AlterNET UI Window (C#)       alternet-ui-window  [C#]      UI/GUI/AlterNET UI/Cross Platform/Desktop

shadowblitz16@Kubuntu:~/Documents/Source/cs/SMBX-B$ dotnet new alternet-ui
The template "AlterNET UI Application (C#)" was created successfully.

shadowblitz16@Kubuntu:~/Documents/Source/cs/SMBX-B$ dotnet run
Unhandled exception. System.TypeInitializationException: The type initializer for 'Alternet.UI.Application' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Alternet.UI.Native.WebBrowser' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'NativeApi' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'Alternet.UI.Pal' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libAlternet.UI.Pal: cannot open shared object file: No such file or directory
   at Alternet.UI.Native.NativeApiProvider.SetExceptionCallback(NativeExceptionCallbackType unhandledExceptionCallback, NativeExceptionCallbackType caughtExceptionCallback)
   at Alternet.UI.Native.NativeApiProvider.Initialize()
   at Alternet.UI.Native.WebBrowser.NativeApi..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.WebBrowser.NativeApi.WebBrowser_SetEventCallback_(WebBrowserEventCallbackType callback)
   at Alternet.UI.Native.WebBrowser.SetEventCallback()
   at Alternet.UI.Native.WebBrowser..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.WebBrowser.GetBackendOS()
   at Alternet.UI.WebBrowser.GetBackendOS()
   at Alternet.UI.Application..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Application..ctor()
   at SMBX_B.Program.Main(String[] args) in /home/shadowblitz16/Documents/Source/cs/SMBX-B/Program.cs:line 11
generalloki commented 8 months ago

@Shadowblitz16

I have installed Kubuntu and reproduced the problem. When I find the solution I will post here an update. Thanks for the reported issue.

generalloki commented 8 months ago

@Shadowblitz16 ,

I have updated Master with the new version. Now you can run Install.NoNet8.sh and it will work fine on Kubuntu without Net 8 installed. Also you need to remove net 8 in TargetFrameworks.props files:

STEP 4. (Optional) Specify target frameworks: You can modify list of target frameworks in files "Source\Samples\CommonData\TargetFrameworks.props" and "Source\Version\TargetFrameworks.props". This will speed up the build process.

Shadowblitz16 commented 8 months ago

@generalloki nope. still errors.

shadowblitz16@Kubuntu:~/Documents/Source/cs/SMB-Classic$ dotnet run
Unhandled exception. System.TypeInitializationException: The type initializer for 'Alternet.UI.Application' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Alternet.UI.Native.WebBrowser' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'NativeApi' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'Alternet.UI.Pal' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libAlternet.UI.Pal: cannot open shared object file: No such file or directory
   at Alternet.UI.Native.NativeApiProvider.SetExceptionCallback(NativeExceptionCallbackType unhandledExceptionCallback, NativeExceptionCallbackType caughtExceptionCallback)
   at Alternet.UI.Native.NativeApiProvider.Initialize()
   at Alternet.UI.Native.WebBrowser.NativeApi..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.WebBrowser.NativeApi.WebBrowser_SetEventCallback_(WebBrowserEventCallbackType callback)
   at Alternet.UI.Native.WebBrowser.SetEventCallback()
   at Alternet.UI.Native.WebBrowser..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.WebBrowser.GetBackendOS()
   at Alternet.UI.WebBrowser.GetBackendOS()
   at Alternet.UI.Application..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Application..ctor()
   at SMB_Classic.Program.Main(String[] args) in /home/shadowblitz16/Documents/Source/cs/SMB-Classic/Program.cs:line 11

I even created a new project after I installed alternet ui with Install.NoNet8.sh

generalloki commented 8 months ago

@Shadowblitz16 , There is something with your project. Maybe it uses v0.9.503 nugets. I have created special project which I successfully tested on Kubuntu. It is located in AlternetUI\Source\Tests\UseLocalPackages\ folder First you run Download.505.sh, it downloads v0.9.505 nugets to LocalPackages subfolder. After that you run run.sh.

If you attach here your csproj file, I will be able to tell what is wrong with it.

Shadowblitz16 commented 7 months ago

Well when trying to fix this I uninstalled dotnet 7.0 and found out how to install 8.0 which didn't work so I removed everything and installed dotnet 6.0

and it works... image

Now that I have dotnet 8.0 sdk how would I run it with that?

EDIT: Now this is what I get when I run Install.sh

shadowblitz16@Kubuntu:~/Documents/Source/cs/AlternetUI$ ./Install.sh
MSBuild version 17.8.3+195e7f5a3 for .NET
  ========================
  Alternet.UI Installation started
  --------------------------------------------------------
  Exec ClearProjectBin
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/bin/Debug/netstandard2.0/Alternet.UI.CommonUtils.dll
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/bin/Debug/netstandard2.0/Alternet.UI.CommonUtils.pdb
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/bin/Debug/netstandard2.0/Alternet.UI.CommonUtils.deps.json
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Alternet.UI.CommonUtils.csproj.nuget.g.targets
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/project.nuget.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/project.assets.json
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Alternet.UI.CommonUtils.csproj.nuget.dgspec.json
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Alternet.UI.CommonUtils.csproj.nuget.g.props
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.cs
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/Alternet.UI.CommonUtils.AssemblyInfoInputs.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/Alternet.UI.CommonUtils.dll
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/Alternet.UI.CommonUtils.csproj.AssemblyReference.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/Alternet.UI.CommonUtils.csproj.CoreCompileInputs.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/Alternet.UI.CommonUtils.pdb
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/Alternet.UI.CommonUtils.assets.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/Alternet.UI.CommonUtils.csproj.FileListAbsolute.txt
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/Alternet.UI.CommonUtils.GeneratedMSBuildEditorConfig.editorconfig
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/Alternet.UI.CommonUtils.sourcelink.json
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.CommonUtils/obj/Debug/netstandard2.0/Alternet.UI.CommonUtils.AssemblyInfo.cs
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/bin/Debug/net6.0/Alternet.UI.RunCmd.runtimeconfig.json
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/bin/Debug/net6.0/Alternet.UI.CommonUtils.dll
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/bin/Debug/net6.0/Alternet.UI.CommonUtils.pdb
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/bin/Debug/net6.0/Alternet.UI.RunCmd.deps.json
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/bin/Debug/net6.0/Alternet.UI.RunCmd
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/bin/Debug/net6.0/Alternet.UI.RunCmd.pdb
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/bin/Debug/net6.0/Alternet.UI.RunCmd.dll
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/project.nuget.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/project.assets.json
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Alternet.UI.RunCmd.csproj.nuget.g.targets
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Alternet.UI.RunCmd.csproj.nuget.dgspec.json
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Alternet.UI.RunCmd.csproj.nuget.g.props
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.assets.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.AssemblyInfo.cs
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.sourcelink.json
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.csproj.CopyComplete
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.csproj.CoreCompileInputs.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/apphost
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.GlobalUsings.g.cs
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.genruntimeconfig.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.csproj.AssemblyReference.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.csproj.FileListAbsolute.txt
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.GeneratedMSBuildEditorConfig.editorconfig
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.AssemblyInfoInputs.cache
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.pdb
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/Alternet.UI.RunCmd.dll
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/ref/Alternet.UI.RunCmd.dll
Deleting file: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/obj/Debug/net6.0/refint/Alternet.UI.RunCmd.dll
  --------------------------------------------------------
  Exec DownloadAndExtract WxWidgets Bin
  You must install or update .NET to run this application.

  App: /home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Tools/Alternet.UI.RunCmd/bin/Debug/net6.0/Alternet.UI.RunCmd
  Architecture: x64
  Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
  .NET location: /usr/share/dotnet

  The following frameworks were found:
    8.0.1 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

  Learn more:
  https://aka.ms/dotnet/app-launch-failed

  To install missing framework, download:
  https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=linux-x64&os=ubuntu.22.04
/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Build/Alternet.UI.Pal/Alternet.UI.Pal.WxWidgets.targets(61,9): error MSB3073: The command "dotnet run -- -r=download Url="https://alternetsoftware.blob.core.windows.net/alternet-ui/wxWidgets-bin-noobjpch-3.2.3.zip" Path="/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Build/Alternet.UI.Pal/../../../External//WxWidgets.zip"" exited with code 150. [/home/shadowblitz16/Documents/Source/cs/AlternetUI/Source/Build/Alternet.UI.Pal/Alternet.UI.Pal.proj]
shadowblitz16@Kubuntu:~/Documents/Source/cs/AlternetUI$ dotnet --version
8.0.101

It's not that dotnet is not installed because I can run my other project with dotnet 8.0 fine

generalloki commented 7 months ago

@Shadowblitz16 ,

You need to install all possible SDKs, 6,7,8 before running Install.sh. There is no need to uninstall any sdk as they can work together.

Shadowblitz16 commented 7 months ago

@generalloki I got Install.sh to run after installling dotnet 6,7, and 8 but my project still does not run.

image

shadowblitz16@Kubuntu:~/Documents/Source/cs/SMBX-R$ dotnet run
Unhandled exception. System.TypeInitializationException: The type initializer for 'Alternet.UI.Application' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Alternet.UI.Native.WebBrowser' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'NativeApi' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'Alternet.UI.Pal' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libAlternet.UI.Pal: cannot open shared object file: No such file or directory
   at Alternet.UI.Native.NativeApiProvider.SetExceptionCallback(NativeExceptionCallbackType unhandledExceptionCallback, NativeExceptionCallbackType caughtExceptionCallback)
   at Alternet.UI.Native.NativeApiProvider.Initialize()
   at Alternet.UI.Native.WebBrowser.NativeApi..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.WebBrowser.NativeApi.WebBrowser_SetEventCallback_(WebBrowserEventCallbackType callback)
   at Alternet.UI.Native.WebBrowser.SetEventCallback()
   at Alternet.UI.Native.WebBrowser..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.WebBrowser.GetBackendOS()
   at Alternet.UI.WebBrowser.GetBackendOS()
   at Alternet.UI.Application..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Application..ctor()
   at SMBX_R.Program.Main(String[] args) in /home/shadowblitz16/Documents/Source/cs/SMBX-R/Program.cs:line 11

Note I recreated my project from scratch after installing. no luck

generalloki commented 7 months ago

Could you post here the project? Or some project which shows the error?

Shadowblitz16 commented 7 months ago

@generalloki SMBX-R.zip

It's a new project created with dotnet new alternet-ui

generalloki commented 7 months ago

@Shadowblitz16 , As I mentioned above, the problem is that templates use v0.9.503 nugets which do not work on Kubuntu. I have created special project which I successfully tested on Kubuntu. It is located in AlternetUI\Source\Tests\UseLocalPackages\ folder First you run Download.505.sh, it downloads v0.9.505 nugets to LocalPackages subfolder. After that you run run.sh.

So, current solution is to use project template from the AlternetUI\Source\Tests\UseLocalPackages\ folder.

generalloki commented 7 months ago

Current situation with Linux support:

Top:

Other issues:

Shadowblitz16 commented 3 months ago

@generalloki I installed pal though nuget and it can't find the library... image image

but it is here... image

generalloki commented 3 months ago

@Shadowblitz16, thanks for the report

Please get latest version from the master and call Install.sh. Use version from master in you development. We did not update nugets for some time, this problem was fixed after we released nugets. I will post a message here when new beta is ready and nugets are updated.

Shadowblitz16 commented 3 months ago

@generalloki thats what I did but I still get it. image

I did the following...

generalloki commented 3 months ago

@Shadowblitz16

Now I understand where problem is. Command "dotnet new alternet-ui" creates project which uses nugets. So it is not compatible with version from master. To create project that is compatible with it, you need to use MinMasterTemplate from https://github.com/alternetsoft/AlternetUI/tree/master/Install.Scripts/MinMasterTemplate see readme.md in that folder. I think we will have a better solution and I will post it here when it is available

Shadowblitz16 commented 3 months ago

@generalloki maybe using a actual template we can install instead of a project would help. Something we can use dotnet new with

I think the nuget packages should work stand alone cross platform

generalloki commented 3 months ago

@Shadowblitz16 I uploaded new nugets to github https://github.com/alternetsoft/AlternetUI/releases

We will do final tests and if everything is ok, upload them to nuget.org. After that you will be able to use dotnet new alternet-ui as described in https://docs.alternet-ui.com/tutorials/hello-world/command-line/hello-world-command-line.html

I will post here an update when it is done.

Shadowblitz16 commented 2 months ago

@Shadowblitz16 I uploaded new nugets to github https://github.com/alternetsoft/AlternetUI/releases/tag/0.9.613-beta

We will do final tests and if everything is ok, upload them to nuget.org. After that you will be able to use dotnet new alternet-ui as described in https://docs.alternet-ui.com/tutorials/hello-world/command-line/hello-world-command-line.html

I will post here an update when it is done.

@generalloki I downloaded the ui and pal nugets from that release and they still crash on run..

/home/shadowblitz16/Documents/Source/cs/AlterNET.Mario/AlterNET.Mario/bin/Debug/net6.0/AlterNET.Mario
Unhandled exception. System.TypeInitializationException: The type initializer for 'Alternet.UI.Application' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Alternet.UI.WxApplicationHandler' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Alternet.UI.Native.Application' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'NativeApi' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'Alternet.UI.Pal' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: Alternet.UI.Pal: cannot open shared object file: No such file or directory
   at System.Runtime.InteropServices.NativeLibrary.LoadFromPath(String libraryName, Boolean throwOnError)
   at System.Runtime.InteropServices.NativeLibrary.Load(String libraryPath)
   at Alternet.UI.Native.NativeApiProvider.ImportResolver(String libraryName, Assembly assembly, Nullable`1 searchPath)
   at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
   at Alternet.UI.Native.NativeApiProvider.SetExceptionCallback(NativeExceptionCallbackType unhandledExceptionCallback, NativeExceptionCallbackType caughtExceptionCallback)
   at Alternet.UI.Native.NativeApiProvider.Initialize()
   at Alternet.UI.Native.Application.NativeApi..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.Application.NativeApi.Application_SetEventCallback_(ApplicationEventCallbackType callback)
   at Alternet.UI.Native.Application.SetEventCallback()
   at Alternet.UI.Native.Application..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.Application.GetEventIdentifiers(Int32[] eventIdentifiers)
   at Alternet.UI.WxApplicationHandler..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.WxApplicationHandler..ctor()
   at Alternet.UI.Application..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Application..ctor(IApplicationHandler handler)
   at AlterNET.mario.Program.Main(String[] args) in /home/shadowblitz16/Documents/Source/cs/AlterNET.Mario/AlterNET.Mario/Program.cs:line 12

Process finished with exit code 134.

image

generalloki commented 2 months ago

@Shadowblitz16 There were linux related bug in 0.9.613 and it is fixed in the new build. https://github.com/alternetsoft/AlternetUI/releases

I will test new build and post here an update on whether it works fine with new nugets on Linux.

generalloki commented 2 months ago

@Shadowblitz16, I have checked the latest build and it still has an error when running with nugets on Linux. I will post here an update when it is fixed.

generalloki commented 2 months ago

@Shadowblitz16 The problem is that Alternet.Ui.Pal.so compiled on another Linux machine can not be loaded due to some incompatibilities with other Linux libraries. This happens because wxWidgets used in Alternet.UI compiles differently on different Linux versions. I am investigating the problem and will try to find a fix for that.

generalloki commented 2 months ago

@Shadowblitz16 The reason Alternet.Ui.Pal.so is not loaded properly is that it is compiled on Ubuntu 20 and requires the following libraries in order to run:

libwebkit2gtk-4.0.so.37 libjavascriptcoregtk-4.0.so.18 libtiff.so.5

On Ubuntu 24 and other modern Linux systems these libraries are absent (they have new versions of these libraries installed). The solution is to build Alternet.Ui.Pal.so on the modern Linux and to stop Ubuntu 20 support. I will upload a new build to github on these days and post here an update on the issue.

Shadowblitz16 commented 2 months ago

@generalloki you can't support both? Is there no way to conditionally check what system they are running?

generalloki commented 2 months ago

@Shadowblitz16

In order to support both we need to have two versions of Alternet.UI.Pal.dll in the nuget and somehow determine which version to load. This would require some time to implement. So for some time new builds will be only for Ubuntu 24 and other modern systems.

generalloki commented 2 months ago

@Shadowblitz16

I have uploaded 0.9.620-beta and it works fine with Ubuntu 23.10 or newer https://github.com/alternetsoft/AlternetUI/releases

Shadowblitz16 commented 1 month ago

@generalloki can you upload this to nuget or are you still working on it? image

generalloki commented 1 month ago

@Shadowblitz16 We don't have the final 0.9.6x build yet. We will post a new build in the beginning of the week to github. And if it works fine, nuget.org will be updated. In the meantime, you can download any build from github and use nugets locally.

You can create "LocalPackages" sub-folder in the solution folder, place nugets to this sub-folder and create "NuGet.config" file like this.

<?xml version="1.0" encoding="utf-8"?>
  <configuration>
    <packageSources>
      <add key="LocalPackages" value="./LocalPackages" />
    </packageSources>
    <activePackageSource>
      <!-- this tells that all of them are active -->
      <add key="All" value="(Aggregate source)" />
    </activePackageSource>
 </configuration>

See an example in AlternetUI\Publish\PublicFiles\Samples\

generalloki commented 1 month ago

@Shadowblitz16

We have uploaded new build to https://github.com/alternetsoft/AlternetUI/releases

generalloki commented 1 month ago

@Shadowblitz16

We have updated nugets on nuget.org with the latest build

Shadowblitz16 commented 1 month ago

@generalloki still error on run...

/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/NewSMBX
Unhandled exception. Critical
System.TypeInitializationException: The type initializer for 'Alternet.UI.Application' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Alternet.UI.WxApplicationHandler' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Alternet.UI.Native.Application' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'NativeApi' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'Alternet.UI.Pal' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
libwebkit2gtk-4.1.so.0: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/Alternet.UI.Pal.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/Alternet.UI.Pal.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/runtimes/linux-x64/native/libAlternet.UI.Pal.so: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/libAlternet.UI.Pal.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/libAlternet.UI.Pal.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/runtimes/linux-x64/native/Alternet.UI.Pal: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/Alternet.UI.Pal: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/Alternet.UI.Pal: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/runtimes/linux-x64/native/libAlternet.UI.Pal: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/libAlternet.UI.Pal: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/libAlternet.UI.Pal: cannot open shared object file: No such file or directory

   at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable`1 searchPath, Boolean throwOnError)
   at Alternet.UI.Native.NativeApiProvider.<ImportResolver>g__Fn|12_1(<>c__DisplayClass12_0&)
   at Alternet.UI.Native.NativeApiProvider.ImportResolver(String libraryName, Assembly assembly, Nullable`1 searchPath)
   at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
   at Alternet.UI.Native.NativeApiProvider.SetExceptionCallback(NativeExceptionCallbackType unhandledExceptionCallback, NativeExceptionCallbackType caughtExceptionCallback)
   at Alternet.UI.Native.NativeApiProvider.Initialize()
   at Alternet.UI.Native.Application.NativeApi..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.Application.NativeApi.Application_SetEventCallback_(ApplicationEventCallbackType callback)
   at Alternet.UI.Native.Application.SetEventCallback()
   at Alternet.UI.Native.Application..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.Application.GetEventIdentifiers(Int32[] eventIdentifiers)
   at Alternet.UI.WxApplicationHandler..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.WxApplicationHandler..ctor()
   at Alternet.UI.Application..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Application..ctor(IApplicationHandler handler)
   at NewSMBX.Program.Main(String[] args) in /home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/Program.cs:line 12
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed

Process finished with exit code 134.
generalloki commented 1 month ago

@Shadowblitz16

Error says libwebkit2gtk-4.1.so.0 not found.

In order to check what libwebkit packages are installed, run ```sudo apt list libwebkit```

In order to install required package, run sudo apt-get install -y libwebkit2gtk-4.1-dev or at least sudo apt-get install -y libwebkit2gtk-4.1 This will fix the problem.

In order to check on other required packages for Alternet.UI.Pal, run ldd Alternet.UI.Pal.so

If your linux doesn't support libwebkit2gtk-4.1 installation, you need to update it to the new version.

What linux do you use?

Shadowblitz16 commented 1 month ago

@generalloki I just updated my linux to kubuntu 24.04 I did sudo apt-get install -y libwebkit2gtk-4.1-dev and it seemed to install then I did ldd Alternet.UI.Pal.so and got this..

shadowblitz16@shadowblitz16-desktop:~/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/runtimes/linux-x64/native$ ldd Alternet.UI.Pal.so
        linux-vdso.so.1 (0x00007fffd0bca000)
        libwebkit2gtk-4.1.so.0 => /lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 (0x0000722c84c00000)
        libjavascriptcoregtk-4.1.so.0 => /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 (0x0000722c83000000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x0000722c894c3000)
        libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x0000722c8a7ec000)
        libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x0000722c8a7a3000)
        libgspell-1.so.2 => not found
        libgtk-3.so.0 => /lib/x86_64-linux-gnu/libgtk-3.so.0 (0x0000722c82800000)
        libgdk-3.so.0 => /lib/x86_64-linux-gnu/libgdk-3.so.0 (0x0000722c82705000)
        libpangocairo-1.0.so.0 => /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x0000722c8a790000)
        libcairo.so.2 => /lib/x86_64-linux-gnu/libcairo.so.2 (0x0000722c825c1000)
        libgdk_pixbuf-2.0.so.0 => /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x0000722c8a760000)
        libXtst.so.6 => /lib/x86_64-linux-gnu/libXtst.so.6 (0x0000722c8a758000)
        libpangoft2-1.0.so.0 => /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x0000722c8a73d000)
        libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x0000722c84b95000)
        libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x0000722c8a6ec000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x0000722c89498000)
        libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x0000722c82fc8000)
        libjpeg.so.8 => /lib/x86_64-linux-gnu/libjpeg.so.8 (0x0000722c8253e000)
        libtiff.so.6 => /lib/x86_64-linux-gnu/libtiff.so.6 (0x0000722c824b1000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x0000722c8947c000)
        libgio-2.0.so.0 => /lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x0000722c822e1000)
        libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x0000722c8227e000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x0000722c82135000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x0000722c81e00000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x0000722c81d17000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x0000722c82108000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000722c81a00000)
        libepoxy.so.0 => /lib/x86_64-linux-gnu/libepoxy.so.0 (0x0000722c818dd000)
        libicui18n.so.74 => /lib/x86_64-linux-gnu/libicui18n.so.74 (0x0000722c81400000)
        libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x0000722c81c37000)
        libicuuc.so.74 => /lib/x86_64-linux-gnu/libicuuc.so.74 (0x0000722c81000000)
        libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x0000722c817d0000)
        libatk-1.0.so.0 => /lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x0000722c820de000)
        libxml2.so.2 => /lib/x86_64-linux-gnu/libxml2.so.2 (0x0000722c8121e000)
        libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x0000722c80e98000)
        libxslt.so.1 => /lib/x86_64-linux-gnu/libxslt.so.1 (0x0000722c8209d000)
        liblcms2.so.2 => /lib/x86_64-linux-gnu/liblcms2.so.2 (0x0000722c8176e000)
        libwoff2dec.so.1.0.2 => /lib/x86_64-linux-gnu/libwoff2dec.so.1.0.2 (0x0000722c8946d000)
        libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x0000722c80dcc000)
        libharfbuzz-icu.so.0 => /lib/x86_64-linux-gnu/libharfbuzz-icu.so.0 (0x0000722c84b90000)
        libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x0000722c80c84000)
        libgstallocators-1.0.so.0 => /lib/x86_64-linux-gnu/libgstallocators-1.0.so.0 (0x0000722c82093000)
        libgstapp-1.0.so.0 => /lib/x86_64-linux-gnu/libgstapp-1.0.so.0 (0x0000722c8207d000)
        libgstbase-1.0.so.0 => /lib/x86_64-linux-gnu/libgstbase-1.0.so.0 (0x0000722c80bff000)
        libgstreamer-1.0.so.0 => /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0 (0x0000722c80aac000)
        libgstpbutils-1.0.so.0 => /lib/x86_64-linux-gnu/libgstpbutils-1.0.so.0 (0x0000722c80a69000)
        libgstaudio-1.0.so.0 => /lib/x86_64-linux-gnu/libgstaudio-1.0.so.0 (0x0000722c809e4000)
        libgsttag-1.0.so.0 => /lib/x86_64-linux-gnu/libgsttag-1.0.so.0 (0x0000722c809a3000)
        libgstvideo-1.0.so.0 => /lib/x86_64-linux-gnu/libgstvideo-1.0.so.0 (0x0000722c808ce000)
        libgstgl-1.0.so.0 => /lib/x86_64-linux-gnu/libgstgl-1.0.so.0 (0x0000722c8083b000)
        libgstfft-1.0.so.0 => /lib/x86_64-linux-gnu/libgstfft-1.0.so.0 (0x0000722c81c2c000)
        libwebpdemux.so.2 => /lib/x86_64-linux-gnu/libwebpdemux.so.2 (0x0000722c84b89000)
        libwebp.so.7 => /lib/x86_64-linux-gnu/libwebp.so.7 (0x0000722c807c0000)
        libsoup-3.0.so.0 => /lib/x86_64-linux-gnu/libsoup-3.0.so.0 (0x0000722c80727000)
        libenchant-2.so.2 => /lib/x86_64-linux-gnu/libenchant-2.so.2 (0x0000722c81c1f000)
        libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x0000722c81c18000)
        libsecret-1.so.0 => /lib/x86_64-linux-gnu/libsecret-1.so.0 (0x0000722c806c8000)
        libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x0000722c81758000)
        libhyphen.so.0 => /lib/x86_64-linux-gnu/libhyphen.so.0 (0x0000722c81750000)
        libwayland-server.so.0 => /lib/x86_64-linux-gnu/libwayland-server.so.0 (0x0000722c806b2000)
        libwayland-client.so.0 => /lib/x86_64-linux-gnu/libwayland-client.so.0 (0x0000722c8120e000)
        libmanette-0.2.so.0 => /lib/x86_64-linux-gnu/libmanette-0.2.so.0 (0x0000722c80682000)
        libseccomp.so.2 => /lib/x86_64-linux-gnu/libseccomp.so.2 (0x0000722c80662000)
        libgbm.so.1 => /lib/x86_64-linux-gnu/libgbm.so.1 (0x0000722c80651000)
        libdrm.so.2 => /lib/x86_64-linux-gnu/libdrm.so.2 (0x0000722c8063a000)
        /lib64/ld-linux-x86-64.so.2 (0x0000722c8a80f000)
        libatomic.so.1 => /lib/x86_64-linux-gnu/libatomic.so.1 (0x0000722c80630000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x0000722c80607000)
        libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x0000722c805eb000)
        libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x0000722c805e1000)
        libfribidi.so.0 => /lib/x86_64-linux-gnu/libfribidi.so.0 (0x0000722c805c3000)
        libcairo-gobject.so.2 => /lib/x86_64-linux-gnu/libcairo-gobject.so.2 (0x0000722c805b7000)
        libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x0000722c805a4000)
        libatk-bridge-2.0.so.0 => /lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0 (0x0000722c80568000)
        libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x0000722c80560000)
        libwayland-cursor.so.0 => /lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x0000722c80556000)
        libwayland-egl.so.1 => /lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x0000722c80551000)
        libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x0000722c8053d000)
        libXcursor.so.1 => /lib/x86_64-linux-gnu/libXcursor.so.1 (0x0000722c80531000)
        libXdamage.so.1 => /lib/x86_64-linux-gnu/libXdamage.so.1 (0x0000722c8052c000)
        libXcomposite.so.1 => /lib/x86_64-linux-gnu/libXcomposite.so.1 (0x0000722c80527000)
        libXrandr.so.2 => /lib/x86_64-linux-gnu/libXrandr.so.2 (0x0000722c8051a000)
        libXinerama.so.1 => /lib/x86_64-linux-gnu/libXinerama.so.1 (0x0000722c80515000)
        libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x0000722c80509000)
        libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x0000722c804fa000)
        libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x0000722c804f5000)
        libpixman-1.so.0 => /lib/x86_64-linux-gnu/libpixman-1.so.0 (0x0000722c80446000)
        libthai.so.0 => /lib/x86_64-linux-gnu/libthai.so.0 (0x0000722c80439000)
        libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x0000722c8037f000)
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x0000722c8034d000)
        libLerc.so.4 => /lib/x86_64-linux-gnu/libLerc.so.4 (0x0000722c802c6000)
        libjbig.so.0 => /lib/x86_64-linux-gnu/libjbig.so.0 (0x0000722c802b6000)
        libdeflate.so.0 => /lib/x86_64-linux-gnu/libdeflate.so.0 (0x0000722c802a1000)
        libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x0000722c80254000)
        libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x0000722c80227000)
        libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x0000722c8021b000)
        libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x0000722c80181000)
        libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x0000722c80172000)
        liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x0000722c80150000)
        libicudata.so.74 => /lib/x86_64-linux-gnu/libicudata.so.74 (0x0000722c7e200000)
        libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x0000722c8012a000)
        libwoff2common.so.1.0.2 => /lib/x86_64-linux-gnu/libwoff2common.so.1.0.2 (0x0000722c80125000)
        libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x0000722c80115000)
        libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x0000722c80101000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x0000722c800dc000)
        libunwind.so.8 => /lib/x86_64-linux-gnu/libunwind.so.8 (0x0000722c800c1000)
        libdw.so.1 => /lib/x86_64-linux-gnu/libdw.so.1 (0x0000722c8000d000)
        liborc-0.4.so.0 => /lib/x86_64-linux-gnu/liborc-0.4.so.0 (0x0000722c7e14e000)
        libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x0000722c7ff84000)
        libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x0000722c7ff72000)
        libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x0000722c7ff6d000)
        libgudev-1.0.so.0 => /lib/x86_64-linux-gnu/libgudev-1.0.so.0 (0x0000722c7ff60000)
        libsharpyuv.so.0 => /lib/x86_64-linux-gnu/libsharpyuv.so.0 (0x0000722c7e144000)
        libpsl.so.5 => /lib/x86_64-linux-gnu/libpsl.so.5 (0x0000722c7e130000)
        libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x0000722c7e0dc000)
        libnghttp2.so.14 => /lib/x86_64-linux-gnu/libnghttp2.so.14 (0x0000722c7e0b1000)
        libevdev.so.2 => /lib/x86_64-linux-gnu/libevdev.so.2 (0x0000722c7e093000)
        libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x0000722c7e080000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x0000722c7e07a000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x0000722c7e072000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x0000722c7e05c000)
        libatspi.so.0 => /lib/x86_64-linux-gnu/libatspi.so.0 (0x0000722c7e022000)
        libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x0000722c7dfd1000)
        libdatrie.so.1 => /lib/x86_64-linux-gnu/libdatrie.so.1 (0x0000722c7dfc8000)
        libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x0000722c7df8d000)
        libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x0000722c7df6a000)
        libelf.so.1 => /lib/x86_64-linux-gnu/libelf.so.1 (0x0000722c7df4a000)
        libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x0000722c7de92000)
        libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x0000722c7de5f000)
        libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x0000722c7de2c000)
        libunistring.so.5 => /lib/x86_64-linux-gnu/libunistring.so.5 (0x0000722c7dc7f000)
        libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x0000722c7dc5b000)
        libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x0000722c7db92000)
        libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x0000722c7db66000)
        libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x0000722c7db60000)
        libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x0000722c7db53000)
        libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x0000722c7db42000)
        libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x0000722c7db3b000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x0000722c7db28000)

when I run again I get this...

/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/NewSMBX
Unhandled exception. Critical
System.TypeInitializationException: The type initializer for 'Alternet.UI.Application' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Alternet.UI.WxApplicationHandler' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Alternet.UI.Native.Application' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'NativeApi' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'Alternet.UI.Pal' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
libgspell-1.so.2: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/Alternet.UI.Pal.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/Alternet.UI.Pal.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/runtimes/linux-x64/native/libAlternet.UI.Pal.so: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/libAlternet.UI.Pal.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/libAlternet.UI.Pal.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/runtimes/linux-x64/native/Alternet.UI.Pal: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/Alternet.UI.Pal: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/Alternet.UI.Pal: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/runtimes/linux-x64/native/libAlternet.UI.Pal: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/libAlternet.UI.Pal: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/bin/Debug/net8.0/libAlternet.UI.Pal: cannot open shared object file: No such file or directory

   at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable`1 searchPath, Boolean throwOnError)
   at Alternet.UI.Native.NativeApiProvider.<ImportResolver>g__Fn|12_1(<>c__DisplayClass12_0&)
   at Alternet.UI.Native.NativeApiProvider.ImportResolver(String libraryName, Assembly assembly, Nullable`1 searchPath)
   at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
   at Alternet.UI.Native.NativeApiProvider.SetExceptionCallback(NativeExceptionCallbackType unhandledExceptionCallback, NativeExceptionCallbackType caughtExceptionCallback)
   at Alternet.UI.Native.NativeApiProvider.Initialize()
   at Alternet.UI.Native.Application.NativeApi..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.Application.NativeApi.Application_SetEventCallback_(ApplicationEventCallbackType callback)
   at Alternet.UI.Native.Application.SetEventCallback()
   at Alternet.UI.Native.Application..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Native.Application.GetEventIdentifiers(Int32[] eventIdentifiers)
   at Alternet.UI.WxApplicationHandler..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.WxApplicationHandler..ctor()
   at Alternet.UI.Application..cctor()
   --- End of inner exception stack trace ---
   at Alternet.UI.Application..ctor(IApplicationHandler handler)
   at NewSMBX.Program.Main(String[] args) in /home/shadowblitz16/Documents/Source/cs/NewSMBX/NewSMBX/Program.cs:line 12
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed

Process finished with exit code 134.
generalloki commented 1 month ago

@Shadowblitz16

Same problem: libgspell-1.so.2 is not found

It is solved using such command sudo apt-get install -y libgspell-1

All the required packages are also installed by the Ubuntu.Install.Packages.sh script It is here https://github.com/alternetsoft/AlternetUI/blob/master/Install.Scripts/Ubuntu.Install.Packages.sh

Shadowblitz16 commented 1 month ago

@generalloki That fixed it I forgot that part and when I updated I actually installed a new os so thankyou

generalloki commented 3 weeks ago

Current situation with Linux:

Top:

Other bugs:

Ideas: