Klient dla systemu Windows

Jak uruchomić Eltena z kodu, krok po kroku

Założony przez pajper 66 wpisów ostatni wpis 2 miesiące temu Przypięty Strona 2 z 4

#21

rake lib klepnij

#22

Na GitHubie nie ma obecnie najnowszej wersji przez całe zamieszanie konferencyjne, pojawi się na dniach.
#StandWithUkraine

Shoot for the Moon. Even if you miss, you'll land among the stars.

#23

Dawidzie zaktualizuj poradnik i dopisz, że do najnowszej wersji trzeba ruby 3.

#24 Edited

A czy jeśli pobrałem kod ze strony GitHuba na dysk i edytuję go w np Notepad PlusPlus potrzebuję Visual studio? Czy starczy mi sam Ruby do kompilacji i uruchomienia?
Wiecie, mam zbyt słaby komputer na VS.
Sygnatura to może być w sądzie. Sygnatura sprawy np. :P

#25

Nie, do kompilacji kodu niestety wymagany jest Visual Studio. I Git, by pobrać zależności.
#StandWithUkraine

Shoot for the Moon. Even if you miss, you'll land among the stars.

#26

Chodzi o to, że część niskopoziomowych funkcji Eltena, jak obsługa klawiatury, SAPI, komunikacja z COM i takie tam są napisane w C++.
#StandWithUkraine

Shoot for the Moon. Even if you miss, you'll land among the stars.

#27

Zainstalowałem zgodnie z tutorialem.
Zaproponowano mi pobranie ruby 3.0.2, więc pobrałem i zainstalowałem.
Następnie przy rake key dostałem info, że wymagana jest wersja 3.0.1.
Zmieniłem to w rakefile.
Rake key się powiodło.
Samo rake niestety nie.
rake aborted!
Fiddle::DLError: Failed to open any of these shared object files: liblzma.so.5, liblzma.so, liblzma.5.dylib, liblzma.dylib, liblzma
:160:in `require'
:160:in `rescue in require'
:149:in `require'
D:/sources/elten/Elten2/rakefile:98:in `block (2 levels) in '
D:/sources/elten/Elten2/rakefile:95:in `each'
D:/sources/elten/Elten2/rakefile:95:in `block in '
D:/sources/elten/Elten2/rakefile:526:in `block in '
D:/sources/elten/Elten2/rakefile:572:in `block in '

Caused by:
LoadError: cannot load such file -- xz

#28

Hmmm, rake powinno to zrobić, ale może jest błąd?
Spróbuj wpisać
gem install ruby-xz
#StandWithUkraine

Shoot for the Moon. Even if you miss, you'll land among the stars.

#29

I jeszcze dla pewności, pobrałeś Ruby x86?
#StandWithUkraine

Shoot for the Moon. Even if you miss, you'll land among the stars.

#30

Tak x86.
Dokładnie:
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [i386-mingw32]

rake próbuje instalować te xz i tak jakby mu się to udaje, a później ten error.
Version 1.0.0 of ruby-xz breaks the API. Read HISTORY.rdoc and adapt your code to the new API.
Successfully installed ruby-xz-1.0.0
Parsing documentation for ruby-xz-1.0.0
Done installing documentation for ruby-xz after 0 seconds
1 gem installed

I później mamy:
d:/Ruby30/lib/ruby/gems/3.0.0/gems/ruby-xz-1.0.0/lib/xz.rb:40: warning: already initialized constant XZ::CHUNK_SIZE
d:/Ruby30/lib/ruby/gems/3.0.0/gems/ruby-xz-1.0.0/lib/xz.rb:40: warning: previous definition of CHUNK_SIZE was here
rake aborted!
Fiddle::DLError: Failed to open any of these shared object files: liblzma.so.5, liblzma.so, liblzma.5.dylib, liblzma.dyl
ib, liblzma
:85:in `require'
:85:in `require'
D:/sources/elten/Elten2/rakefile:98:in `block (2 levels) in '
D:/sources/elten/Elten2/rakefile:95:in `each'
D:/sources/elten/Elten2/rakefile:95:in `block in '
D:/sources/elten/Elten2/rakefile:526:in `block in '
D:/sources/elten/Elten2/rakefile:572:in `block in '
Tasks: TOP => agent
(See full trace by running task with --trace)

#31

Potwierdzam problem, gdy odpaliłem Rubiego 3.0.2, to wymaga szerszego zbadania.
Wygląda na to, że obecnie wymagany jest Ruby 3.0.1.

Moja wersja: ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [i386-mingw32]
#StandWithUkraine

Shoot for the Moon. Even if you miss, you'll land among the stars.

#32

Ciekawe czemu chowają bo i na stronie downloads i releases githubowej nie ma do pobrania tej 3.0.1, na szczęście przez odpowiednią modyfikację linka do exeka 3.0.2 udało się pobrać starszą. Właśnie się instaluje.

#33

Ciekaw jestem, czy to rozwiąże problem, czy coś głębszego tam siedzi.
#StandWithUkraine

Shoot for the Moon. Even if you miss, you'll land among the stars.

#34

I teraz i poprzednio mam przy ridk install: nie można zmienić uprawnień do /dev/shm, permission denied. Może to tu jest coś...

#35

Puściłem tę opcję 2 we which components should be installed, czyli msys system update...

#36

Niestety, po staremu, tylko się rake o wersję nie czepia. Ale errory o nieznalezionych bibliotekach te same.

#37

Czy istnieje u Ciebie plik c:\ruby30\bin\liblzma.dll?
#StandWithUkraine

Shoot for the Moon. Even if you miss, you'll land among the stars.

#38

Nie istnieje, instalację mam na d:\ruby30.
Jedyny dll, który w tym folderze znalazłem, to:
D:\Ruby30\bin\msvcrt-ruby300.dll

#39

Bardzo to dziwne. A co się stanie, jak go wrzucisz? W załączniku wersja z mojej instancji.
#StandWithUkraine

Shoot for the Moon. Even if you miss, you'll land among the stars.

#40

Heh, building native extensions, czyli jakby dalej poszło.