Open celtichawk opened 3 months ago
Hello,
thanks for your feedback, and opening the issue!
From technical standpoint, I don't see a reason why nvda2speechd couldn't be used on NixOS. I admittedly do not have a lot of knowledge about the system given I haven't used it myself, I'm just briefly familiar with its concepts and stack. But one advantage nvda2speechd does have is the fact it's written in Rust. By nature, Rust links everything it can statically, therefore in theory you could avoid running into relocatability and folder structure issues other programs often have trouble with.
Basically, in order to get n2s working, you need to ensure the following:
I do realize these points are rather generic, as I mentioned before, my experience with NixOS is very limited, so this is what can I suggest on the first look. Any error messages would also be very helpful in diagnosing the occurring issues.
That's the thing. I am not sure if the libs are in Nix's repos, I know the mingw ones are not as binaries, that is the sticking point for building. I can get to the point of being ready to compile, but missing the mingw64 things though
As a quick update, for NixOS I don't seem* to be able to find the speech-dispatcher libraries. Are you able to investigate and see if the libs are merely there but the path is not set?
Secondly it is looking for 0.70 libs specifically while NixOS pulls in the latest versions however, I'm not sure if changing the version of speech-dispatcher that the configure.sh is looking for will fix the above or not because it specifically errors out not being able to find the 0.7.0 libraries, even if a later version is in the .toml files
Log here, with a shell.nix that pulls in all the required packages but I'm not sure if the failing is down to Nix things or me forgetting something in the Nix expression...
[nix-shell:~/games/nvda2speechd]$ steam-run ./compile.sh
Compiling nvda2speechd64.dll
Compiling nvda2speechd32.dll
error: linking with i686-w64-mingw32-gcc
failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/jacek/.cargo/bin:/run/wrappers/bin:/usr/bin:/usr/sbin:/nix/store/pg0zqlym7y3cd8631b3x6cghxcmjl8xa-bash-interactive-5.2p26/bin:/nix/store/9khbrcmj8c92k19mx6wyiccimccs83hq-patchelf-0.15.0/bin:/nix/store/q6afjcz9h6ybcrai8w4z4k6ld7yqi9nd-gcc-wrapper-13.2.0/bin:/nix/store/fg7ass3a5m5pgl26qzfdniicbwbgzccy-gcc-13.2.0/bin:/nix/store/lhns6bwqlwfs4z6hd8jf08v4di08qqdy-glibc-2.39-52-bin/bin:/nix/store/xfm4mg874w5n39zbqx24yiw7hmka94n7-coreutils-9.5/bin:/nix/store/xcind1c9z66qg6g8xvj8ckz8dnp6r80q-binutils-wrapper-2.41/bin:/nix/store/jlw40q2bndc4db7iqzn6r2sz2r7kj4h4-binutils-2.41/bin:/nix/store/ic11r65mm23k23jf6k1bcnvxwssl4sk7-direnv-2.34.0/bin:/nix/store/zrnbmxnifvc7ssm2y68sl226ikivvy8i-xclip-0.13/bin:/nix/store/3b1w1ihjc1dcz947y2qzjn8jx2vwv6hs-duf-0.8.1/bin:/nix/store/lyq05ic7cpiy22pgq1llkv7jd23yk03n-eza-0.18.16/bin:/nix/store/f17ijqj519w4xgapkfldd9qbvl8ak7qs-fd-10.1.0/bin:/nix/store/jhs63fzb666v71v6y8wbmhjdp79122wd-x86_64-w64-mingw32-gcc-wrapper-13.2.0/bin:/nix/store/bzxgr4lx3xq5a85yn0mq86gs89hhi60f-x86_64-w64-mingw32-gcc-13.2.0/bin:/nix/store/9q76npvinylykiqf8n3a4h6f47mchkzj-x86_64-w64-mingw32-binutils-wrapper-2.41/bin:/nix/store/4bkj4cch6qjy02254b3dwpgc7sfkk9v0-x86_64-w64-mingw32-binutils-2.41/bin:/nix/store/8plpzr67ynyx3sj9hysxigfbghnplv7p-i686-w64-mingw32-gcc-wrapper-13.2.0/bin:/nix/store/6ggyxvkpvr6fsib6nzmv84g9fpz6w903-i686-w64-mingw32-gcc-13.2.0/bin:/nix/store/pk331xagbqaqqm8aydx07vmh28fb216i-i686-w64-mingw32-binutils-wrapper-2.41/bin:/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin:/nix/store/idlsz9ijw4qips5xikaxk3q2vdk565pl-clang-17.0.6-dev/bin:/nix/store/0ih8fjbgmi1j9yby2cbd1x6nx6ix2xjk-clang-17.0.6/bin:/nix/store/s99sn7j0dk4wwg6k37h6k0gxxl6lv8ks-rustup-1.26.0/bin:/nix/store/8aqa7a41mwa5x6ki8vqdcjclf3z1rvcn-speech-dispatcher-0.11.5/bin:/nix/store/gdi2h67bs4amk8pkswarf4jbri09924j-mcfgthread-x86_64-w64-mingw32-1.6.1/bin:/nix/store/m6cffp0rjy0g39sv6g2cw6b2kpkxg577-mcfgthread-i686-w64-mingw32-1.6.1/bin:/nix/store/xfm4mg874w5n39zbqx24yiw7hmka94n7-coreutils-9.5/bin:/nix/store/v8sjbyscx6r58xngbhf0rsdf5czfyf8q-findutils-4.9.0/bin:/nix/store/m2mk5ch51868apcwgrx1vp22ydagnws9-diffutils-3.10/bin:/nix/store/h2gq8hngnsnwphzpq7992cip77lwrphm-gnused-4.9/bin:/nix/store/8p75w2cs6lgzakvz6q9xns7j876d0i8m-gnugrep-3.11/bin:/nix/store/ddkcg6irdsn0w2q05gphaaw3cblkml69-gawk-5.2.2/bin:/nix/store/dfbal2pwsci0nicaa6dsmm7sa3pld9kw-gnutar-1.35/bin:/nix/store/hx2j8xxxj6b007075jri865r4hcgyv9n-gzip-1.13/bin:/nix/store/bxmymv6ygxwrq0qlz6z2cwd8q9m56c5n-bzip2-1.0.8-bin/bin:/nix/store/60svfnl986z2819zqr2p01yc751n8hq0-gnumake-4.4.1/bin:/nix/store/wckka8fxv4h5hp74cbkhaw3fw7kbvcs1-bash-5.2p26/bin:/nix/store/4fgaxn11sfvv8gfcp1vxhslx470r68xw-patch-2.7.6/bin:/nix/store/lq3ggd6mcgxwzdk1rbkxwrj1pndda4yr-xz-5.4.7-bin/bin:/nix/store/2nrsjg5fg3n2i5hjlhmrq0iv6vvil0p0-file-5.45/bin:/run/wrappers/bin:/home/jacek/.nix-profile/bin:/nix/profile/bin:/home/jacek/.local/state/nix/profile/bin:/etc/profiles/per-user/jacek/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin" VSLANG="1033" "i686-w64-mingw32-gcc" "-Wl,/tmp/rustcmqQdMb/list.def" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-Wl,--large-address-aware" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/rsbegin.o" "/tmp/rustcmqQdMb/symbols.o" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.0.rcgu.o" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.1.rcgu.o" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.2.rcgu.o" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.3.rcgu.o" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.4.rcgu.o" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.5.rcgu.o" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.bi6vfvg0gzj8mjs1audzo2hc3.rcgu.rmeta" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.af04snqjmbdr24xvujoefhplg.rcgu.o" "-L" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps" "-L" "/home/jacek/games/nvda2speechd/src/client/target/release/deps" "-L" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib" "-Wl,-Bstatic" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/librmp_serde-7d142b991b668c04.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/librmp-ce705ffb05ac7a2e.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libnum_traits-81abf4d992831755.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libtungstenite-32a423e5d9a5dcbe.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libbase64-6f19d93664435b65.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/librand-d2804766de203016.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/librand_chacha-a3e0f73d6a9733db.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libppv_lite86-db8ebee0101fd66f.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libzerocopy-0986000e8f281564.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/librand_core-d6a9fb5a975de8f1.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libgetrandom-5707856c42a7fce8.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libutf8-2b8904f416c96eaa.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libbyteorder-a6c5cfeb11ae2901.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libsha1-51efe5373afa6650.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libcpufeatures-afd36835c1fd67ee.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libcfg_if-29698be022a3b840.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libdigest-78ac0c4c7b6a5113.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libblock_buffer-8144c195f0ff58a8.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libcrypto_common-a34de1e912e41f55.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libgeneric_array-d1c7e452bbc579f9.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libtypenum-9dfc0fddc128c6e1.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libhttparse-d0a19f8de334a1fb.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libthiserror-af1b4686e53d3570.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/liburl-ea780a626afb31c6.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libidna-5b281d9c8620fe41.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libunicode_normalization-cbfb22077e6b802a.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libtinyvec-fb3de95390bb235f.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libtinyvec_macros-e967e4dff9f15876.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libunicode_bidi-b9ac2fd9b2772ed9.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libform_urlencoded-8494a3fd98d0d9c1.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libpercent_encoding-2c66a35d44c42f7b.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/liblog-0cbb2b8c28b7b824.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libhttp-05e27b1f646f47f9.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libitoa-3103d35295490bcb.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libbytes-fe24b0dbc5a38d6b.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libfnv-a8cc12672e40bc64.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libserde-125b5046f0dde2dc.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libwidestring-e9d49efa85002762.rlib" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/liblazy_static-d7c138e32837bf3f.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libstd-e2f43cc8eb00f766.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libpanic_unwind-1bff4f3a617fa685.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-889191aafcd29bed.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libmemchr-202bb69407b83188.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libaddr2line-fef5bf0ed32e78a7.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-4cff6db89b53222f.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_demangle-43e36fa128ef17fa.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libstd_detect-020eff8ed959b546.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libhashbrown-c09254f511bcc15d.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_std_workspace_alloc-bdd17c61bb247111.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libminiz_oxide-64dae45c5cc14f12.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libadler-94ef406de4733c31.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libunwind-7e7fcc22cdff85a9.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcfg_if-ed3331a79846d893.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/liblibc-635faa64030727a7.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/liballoc-e95a42d361adad7f.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_std_workspace_core-eb553ea939b3a2cf.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcore-87cb8b0e384e86c8.rlib" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcompiler_builtins-baeb642e8160b728.rlib" "-Wl,-Bdynamic" "-lbcrypt" "-ladvapi32" "-lkernel32" "-ladvapi32" "-lkernel32" "-lntdll" "-luserenv" "-lws2_32" "-lkernel32" "-lws2_32" "-lkernel32" "-lgcc_s" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-lmingwex" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib" "-o" "/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.dll" "-shared" "-Wl,--out-implib=/home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/libnvda2speechd.dll.a" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs" "/home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/rsend.o"
= note: /nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: warning: resolving _nvdaController_brailleMessage by linking to _nvdaController_brailleMessage@4
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: warning: resolving _nvdaController_cancelSpeech by linking to _nvdaController_cancelSpeech@0
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: warning: resolving _nvdaController_speakText by linking to _nvdaController_speakText@4
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: warning: resolving _nvdaController_testIfRunning by linking to _nvdaController_testIfRunning@0
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.0.rcgu.o:nvda2speechd.c290d:(.text+0x186): undefined reference to _Unwind_Resume' /nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.0.rcgu.o:nvda2speechd.c290d:(.text+0x89d): undefined reference to
_Unwind_Resume'
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.0.rcgu.o:nvda2speechd.c290d:(.text+0xb87): undefined reference to _Unwind_Resume' /nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.0.rcgu.o:nvda2speechd.c290d:(.text+0xbf6): undefined reference to
_Unwind_Resume'
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.1.rcgu.o:nvda2speechd.c290d:(.text+0x111): undefined reference to _Unwind_Resume' /nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/games/nvda2speechd/src/client/target/i686-pc-windows-gnu/release/deps/nvda2speechd.nvda2speechd.c290de615db04dc7-cgu.1.rcgu.o:nvda2speechd.c290d:(.text+0x1d4): more undefined references to
_Unwind_Resume' follow
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libpanic_unwind-1bff4f3a617fa685.rlib(panic_unwind-1bff4f3a617fa685.panic_unwind.490469cc4ae06608-cgu.0.rcgu.o): in function ZN12panic_unwind8real_imp5panic17h1eb32d6edb04d882E': /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\panic_unwind\src/gcc.rs:72:(.text+0x175): undefined reference to
_Unwind_RaiseException'
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libpanic_unwind-1bff4f3a617fa685.rlib(panic_unwind-1bff4f3a617fa685.panic_unwind.490469cc4ae06608-cgu.0.rcgu.o): in function ZN5alloc5boxed12Box$LT$T$GT$3new17h215780190d8471cbE': /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library\alloc\src/boxed.rs:(.text+0x19c): undefined reference to
_Unwind_Resume'
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-889191aafcd29bed.rlib(object-889191aafcd29bed.object.8f6913e8fd441753-cgu.0.rcgu.o):object.8f6913e8fd4:(.text+0x79f): undefined reference to _Unwind_Resume' /nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-889191aafcd29bed.rlib(object-889191aafcd29bed.object.8f6913e8fd441753-cgu.0.rcgu.o):object.8f6913e8fd4:(.text+0x2367): undefined reference to
_Unwind_Resume'
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-889191aafcd29bed.rlib(object-889191aafcd29bed.object.8f6913e8fd441753-cgu.0.rcgu.o):object.8f6913e8fd4:(.text+0x2cc7): undefined reference to _Unwind_Resume' /nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-4cff6db89b53222f.rlib(gimli-4cff6db89b53222f.gimli.1446cfb67da2f6f1-cgu.0.rcgu.o):gimli.1446cfb67da2:(.text+0x31b): undefined reference to
_Unwind_Resume'
/nix/store/vxqa09hz92c0j0a2fn6jcmh6h7fqcglm-i686-w64-mingw32-binutils-2.41/bin/i686-w64-mingw32-ld: /home/jacek/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-4cff6db89b53222f.rlib(gimli-4cff6db89b53222f.gimli.1446cfb67da2f6f1-cgu.0.rcgu.o):gimli.1446cfb67da2:(.text+0x57f): more undefined references to `_Unwind_Resume' follow
collect2: error: ld returned 1 exit status
= note: some extern
functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the -l
flag to specify native libraries to link
= note: use the cargo:rustc-link-lib
directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
error: could not compile nvda2speechd-client
(lib) due to 1 previous error
cp: cannot stat 'target/i686-pc-windows-gnu/release/nvda2speechd.dll': No such file or directory
Compiling nvda2speechd
error: failed to run custom build command for speech-dispatcher-sys v0.7.0
Caused by:
process didn't exit successfully: /home/jacek/games/nvda2speechd/src/server/target/release/build/speech-dispatcher-sys-f2d46a89a2828f43/build-script-build
(exit status: 101)
--- stdout
cargo:rustc-link-lib=speechd
--- stderr
wrapper.h:1:10: fatal error: 'speech-dispatcher/libspeechd.h' file not found
wrapper.h:1:10: fatal error: 'speech-dispatcher/libspeechd.h' file not found, err: true
thread 'main' panicked at /home/jacek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-sys-0.7.0/build.rs:22:10:
called Result::unwrap()
on an Err
value: ()
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
cp: cannot stat 'target/release/nvda2speechd': No such file or directory
So quick question.
I've run into this since I want to get a game and mod running under NixOS. Is there any way, shape, or form that I can have nvda2speechd pass the speech through to speech-dispatcher in NixOS? The releasdd version complains about missing files, or is this simply something that due to immutable and specifically NixOS as a distro, is not possible to do?so