gammasoft71 / xtd

Free open-source modern C++17 / C++20 framework to create console, GUI (forms like WinForms) and unit test applications and libraries on Microsoft Windows, Apple macOS and Linux.
https://gammasoft71.github.io/xtd
MIT License
735 stars 57 forks source link

[BUG] xtdc-gui.exe not found #245

Closed Dawid-Witkowski closed 5 months ago

Dawid-Witkowski commented 5 months ago

Describe the bug

after downloading the xtd from this page, extracting the directory from the zip file, opening cmd as an administrator, navigating to the xtd-0.1.1-beta directory and running install it seems to crash at the end with:

'#set' is not recognized as an internal or external command,
operable program or batch file.

SUCCESS: Specified value was saved.
launch xtdc-gui...
The system cannot find the file C:\Program Files (x86)\xtd\bin\xtdc-gui.exe.

The system cannot find the file C:\Program Files (x86)\xtd\bin\xtdc-gui.exe.

Expected behaviour

Launching the gui app

Screenshots

image

Desktop (please complete the following information)

Dawid-Witkowski commented 5 months ago

Also, just to clarify, I did follow the steps in https://gammasoft71.github.io/xtd/docs/downloads#windows-10-or-later, but to no avail

gammasoft71 commented 5 months ago

Hi,

First of all, thank you for your interest in xtd πŸ˜‰ .

Can you manually check if the directory C:\Program Files (x86)\bin exists and contains the xtd executable files.

Dawid-Witkowski commented 5 months ago

The directory C:\Program Files (x86)\bin does not exist in my case and I am running install as an administrator (cmd -> open as administrator, then cd into the correct dir), will edit this post and include the full console output once it crashes againπŸ˜„

Dawid-Witkowski commented 5 months ago

Couldn't include the entire stacktrace in the post itself (body too long), so I decided to post it as a pastebin

side note: parts of it are in Polish, as I am a Pole, but if you have any trouble with translating just put a comment on this issue, I usually respond within a couple hours at max πŸ˜„ (btw, thank you for even picking up this issue, as I have no clue what I'm doing πŸ˜… )

gammasoft71 commented 5 months ago

can you send me the information on the operating system and Visual studio too thanks ;-)

Dawid-Witkowski commented 5 months ago

the OS version seems to be in the pastebin: Microsoft Windows [Version 10.0.19045.3930] (Win 10) Visual Studio:

Microsoft Visual Studio Community 2022 (64-bit) - Current
Version 17.8.5
gammasoft71 commented 5 months ago

There is a build error on control_list.h with std::sort , the header algorithm is missing... Sorry my bad. I will create a new release v0.1.2 as soon as possible.

Four solutions are available:

Patch your sources

Updates your_xtd_path/src/xtd.forms/include/xtd/forms/list_control.h file with #include <algorithm> on line 6.

Use v0.1.0-beta branch

The correction is present see commit : https://github.com/gammasoft71/xtd/commit/311b2c2b91e4fe870665a7c9570371fb78f29732

git clone --branch v0.1.0-beta  https://github.com/gammasoft71/xtd.git
install

Use latest xtd version

git clone  https://github.com/gammasoft71/xtd.git
install

Wait the v0.1.2-beta release

Wait until I release version v0.1.2-beta.

Dawid-Witkowski commented 5 months ago

will try to run install after pulling from the branch, will keep you posted (hopefully the next comment will close this issue)

Dawid-Witkowski commented 5 months ago

image image

Well, it seems that it has worked, thank you ❀️