# Gd-tools, programs to enhance goldendict

**URL:** <https://forum.freemdict.com/t/topic/27643>\
**Category:** 软件经验交流展望\
**Tags:** ﻿英语\
**Created:** [2024 年3 月 25 日 23:54 UTC](https://forum.freemdict.com/t/topic/27643 "2024-03-25T23:54:58Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![wh123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/w/e79b87/32.png) [@wh123](https://forum.freemdict.com/u/wh123)\
**Post date:** [2024 年5 月 28 日 10:14 UTC](https://forum.freemdict.com/t/topic/27643/21 "2024-05-28T10:14:33Z")

</div>

还不懂加强了啥子…

---

<div class="post-metadata">

**Author:** ![random](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/random/32/19006_2.png) [@random](https://forum.freemdict.com/u/random)\
**Post date:** [2024 年8 月 20 日 17:30 UTC](https://forum.freemdict.com/t/topic/27643/22 "2024-08-20T17:30:53Z")

</div>

When I tried building it on my Apple Silicon macOS, it gave the following error:

```auto
[55%] Linking CXX shared library libcpr.dylib
ld: library 'stdc++fs' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [_deps/cpr-build/cpr/libcpr.1.10.5.dylib] Error 1
make[1]: *** [_deps/cpr-build/cpr/CMakeFiles/cpr.dir/all] Error 2
make: *** [all] Error 2

```

This is how I was trying to build:

```auto
cmake -S . -B build \
    -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang \
    -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ \
    -DCMAKE_BUILD_TYPE=Release

cmake --build build

```

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/6/f/6f24c2f251f4b63bb89c8159004573cdc0825d3e.png)

---

<div class="post-metadata">

**Author:** ![random](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/random/32/19006_2.png) [@random](https://forum.freemdict.com/u/random)\
**Post date:** [2024 年8 月 20 日 17:48 UTC](https://forum.freemdict.com/t/topic/27643/23 "2024-08-20T17:48:05Z")

</div>

Do I need to copy the gd-tools folder into the GoldenDict-ng root folder and then build it?

---

<div class="post-metadata">

**Author:** ![random](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/random/32/19006_2.png) [@random](https://forum.freemdict.com/u/random)\
**Post date:** [2024 年9 月 10 日 11:01 UTC](https://forum.freemdict.com/t/topic/27643/24 "2024-09-10T11:01:55Z")

</div>

> [@anon38366553](#):
>
> 1 - download it  
> 2 - double click in it  
> 3 - done.

Is there a macOS version of Gd-tools available? I can’t pass the build process.

---

<div class="post-metadata">

**Author:** ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
**Post date:** [2024 年9 月 10 日 11:06 UTC](https://forum.freemdict.com/t/topic/27643/25 "2024-09-10T11:06:33Z")

</div>

unfortunately since i dont have a mac, i cant provide a mac version

---

<div class="post-metadata">

**Author:** ![random](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/random/32/19006_2.png) [@random](https://forum.freemdict.com/u/random)\
**Post date:** [2024 年9 月 10 日 11:09 UTC](https://forum.freemdict.com/t/topic/27643/26 "2024-09-10T11:09:08Z")

</div>

OK. I hope someone who has a mac could try the build process and hopefully provide a macOS version afterward. 🙏🤕

---

<div class="post-metadata">

**Author:** ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
**Post date:** [2024 年9 月 10 日 11:25 UTC](https://forum.freemdict.com/t/topic/27643/28 "2024-09-10T11:25:13Z")

</div>

as i said above, i cant test it on my own, but the error seems to be here:

> **[gd-tools/CMakeLists.txt at 69c10b873ad5fc50297cb75a50d9a7165d6159fc](https://codeberg.org/hashirama/gd-tools/src/commit/69c10b873ad5fc50297cb75a50d9a7165d6159fc/CMakeLists.txt#L118)**
>
> gd-tools

and the solution would be:  
to add this:

```auto
stdc++fs

```

hence , with the modification that line would look like this:

```cmake
#Apple and other
if (NOT ${GUIX})
  target_link_libraries(gd-tools_exe PRIVATE marisa cpr::cpr nlohmann_json::nlohmann_json rdricpp stdc++fs)
endif()

```

if someone has a mac, and has some experience with c++ development, please test it.

---

<div class="post-metadata">

**Author:** ![random](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/random/32/19006_2.png) [@random](https://forum.freemdict.com/u/random)\
**Post date:** [2024 年9 月 10 日 14:51 UTC](https://forum.freemdict.com/t/topic/27643/30 "2024-09-10T14:51:24Z")

</div>

> [@anon38366553](#):
>
> ```auto
> target_link_libraries(gd-tools_exe PRIVATE marisa cpr::cpr nlohmann_json::nlohmann_json rdricpp stdc++fs)
> 
> ```

I added that `stdc++fs`, but still the same error： ` 'stdc++fs' not found`

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/8/b/8b21d26fd64341c4eb854438367e810ec456d82a.png)

---

<div class="post-metadata">

**Author:** ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
**Post date:** [2024 年9 月 10 日 23:56 UTC](https://forum.freemdict.com/t/topic/27643/31 "2024-09-10T23:56:21Z")

</div>

then i really dont know what can be done about this.

---

<div class="post-metadata">

**Author:** ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
**Post date:** [2024 年10 月 30 日 16:40 UTC](https://forum.freemdict.com/t/topic/27643/33 "2024-10-30T16:40:42Z")

</div>

this is meant to be called within goldendict-ng  
please READ the what the repository says

---

<div class="post-metadata">

**Author:** ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
**Post date:** [2024 年11 月 19 日 21:03 UTC](https://forum.freemdict.com/t/topic/27643/35 "2024-11-19T21:03:55Z")

</div>

added a link with a tutorial (english only)

spoonfeeding is such a bad thing, but since a small percentage of users are lazy enough to refuse reading the documentation, i had to add a the tutorial.

now the only thing i can think of is “oh yeah, the same people will come back and say that the tutorial was confusing (aka they didnt bothered watching it as well)”

---

<div class="post-metadata">

**Author:** ![random](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/random/32/19006_2.png) [@random](https://forum.freemdict.com/u/random)\
**Post date:** [2024 年11 月 19 日 23:52 UTC](https://forum.freemdict.com/t/topic/27643/36 "2024-11-19T23:52:20Z")

</div>

It doesn’t support compiling on an Apple Silicon mac device, right? (I have failed to compile it many times anyway.)

Any agenda for that? 😃 (I really look forward to getting my hands on the mac version, to really trying out this Gd-tools on Apple Silicon mac.)

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/4/8/4867cfaab35f9f2182d2100a92cadacd71125549.png)

---

<div class="post-metadata">

**Author:** ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
**Post date:** [2024 年11 月 20 日 21:40 UTC](https://forum.freemdict.com/t/topic/27643/37 "2024-11-20T21:40:19Z")

</div>

hello!  
as i said before, the only reason i cant give Mac support is because i dont own a Mac…  
but someone said that it fails to compile in the ARM architecture, which probably is the one used by M1 Mac’s

again, sorry that i cant provide Mac support.

---

<div class="post-metadata">

**Author:** ![mmupmip](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/m/e47c2d/32.png) [@mmupmip](https://forum.freemdict.com/u/mmupmip)\
**Post date:** [2025 年5 月 4 日 11:05 UTC](https://forum.freemdict.com/t/topic/27643/38 "2025-05-04T11:05:54Z")

</div>

Hello, it’s been a while for this thread; but I just can’t seem to get it to work properly. I followed the steps and re-checked many times. The problem I’m running into is that after adding the code, the program would not appear in the “Found in Dictionaries” box.

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/0/4/04bd812c3ee97e5a0ac97d39198519dc5eccb218.png)

However, it is still visible in the “Dictionaries” tab.

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/a/7/a76ae9f7a64f2fd940fe07f8265c0b5005be3fd3.png)

Could you please have a look into it?  
Edit: Just to be clear, I did search in the same group (Japanese) but only the dictionaries appear.

[上一页](https://forum.freemdict.com/t/topic/27643.md?page=1)
