Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues Building; #661

Open
CLI-User opened this issue Apr 25, 2024 · 1 comment
Open

Issues Building; #661

CLI-User opened this issue Apr 25, 2024 · 1 comment

Comments

@CLI-User
Copy link

CLI-User commented Apr 25, 2024

Hello
Its been a very long time since I have built anything on linux, and I am a little rusty, and I am not sure what I am doing wrong here.
I think it may be related to #644 ?

Here is the log

CC autocomplete.o
In file included from /home/REDACTED/Downloads/toxic_build/src/toxic.h:44,
from /home/REDACTED/Downloads/toxic_build/src/autocomplete.h:12,
from /home/REDACTED/Downloads/toxic_build/src/autocomplete.c:9:
/home/REDACTED/Downloads/toxic_build/src/settings.h:82:29: error: ‘TOX_GROUP_MAX_PART_LENGTH’ undeclared here (not in a function); did you mean ‘TOX_MAX_NAME_LENGTH’?
82 | char group_part_message[TOX_GROUP_MAX_PART_LENGTH];
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| TOX_MAX_NAME_LENGTH
In file included from /home/REDACTED/Downloads/toxic_build/src/autocomplete.h:12,
from /home/REDACTED/Downloads/toxic_build/src/autocomplete.c:9:
/home/REDACTED/Downloads/toxic_build/src/toxic.h:137:62: error: unknown type name ‘Tox_Group_Message_Id’
137 | const uint8_t *message, size_t length, Tox_Group_Message_Id message_id, void *userdata);
| ^~~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/toxic.h:139:70: error: unknown type name ‘Tox_Group_Message_Id’
139 | const uint8_t *message, size_t length, Tox_Group_Message_Id message_id, void *userdata);
| ^~~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/toxic.h:141:75: error: unknown type name ‘Tox_Group_Exit_Type’; did you mean ‘Tox_Proxy_Type’?
141 | void on_group_peer_exit(Tox *tox, uint32_t groupnumber, uint32_t peer_id, Tox_Group_Exit_Type exit_type,
| ^~~~~~~~~~~~~~~~~~~
| Tox_Proxy_Type
/home/REDACTED/Downloads/toxic_build/src/toxic.h:147:61: error: unknown type name ‘Tox_Group_Privacy_State’
147 | void on_group_privacy_state(Tox *tox, uint32_t groupnumber, Tox_Group_Privacy_State privacy_state, void *userdata);
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/toxic.h:148:58: error: unknown type name ‘Tox_Group_Topic_Lock’
148 | void on_group_topic_lock(Tox *tox, uint32_t groupnumber, Tox_Group_Topic_Lock topic_lock, void *userdata);
| ^~~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/toxic.h:155:56: error: unknown type name ‘Tox_Group_Join_Fail’
155 | void on_group_rejected(Tox *tox, uint32_t groupnumber, Tox_Group_Join_Fail type, void *userdata);
| ^~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/toxic.h:157:26: error: unknown type name ‘Tox_Group_Mod_Event’
157 | Tox_Group_Mod_Event type, void *userdata);
| ^~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/toxic.h:158:59: error: unknown type name ‘Tox_Group_Voice_State’
158 | void on_group_voice_state(Tox *tox, uint32_t groupnumber, Tox_Group_Voice_State voice_state, void *userdata);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/REDACTED/Downloads/toxic_build/src/autocomplete.h:13,
from /home/REDACTED/Downloads/toxic_build/src/autocomplete.c:9:
/home/REDACTED/Downloads/toxic_build/src/windows.h:178:70: error: unknown type name ‘Tox_Group_Exit_Type’; did you mean ‘Tox_Proxy_Type’?
178 | void(*onGroupPeerExit)(ToxWindow *, Toxic *, uint32_t, uint32_t, Tox_Group_Exit_Type, const char *, size_t,
| ^~~~~~~~~~~~~~~~~~~
| Tox_Proxy_Type
/home/REDACTED/Downloads/toxic_build/src/windows.h:185:64: error: unknown type name ‘Tox_Group_Privacy_State’
185 | void(*onGroupPrivacyState)(ToxWindow *, Toxic *, uint32_t, Tox_Group_Privacy_State);
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/windows.h:186:61: error: unknown type name ‘Tox_Group_Topic_Lock’
186 | void(*onGroupTopicLock)(ToxWindow *, Toxic *, uint32_t, Tox_Group_Topic_Lock);
| ^~~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/windows.h:189:60: error: unknown type name ‘Tox_Group_Join_Fail’
189 | void(*onGroupRejected)(ToxWindow *, Toxic *, uint32_t, Tox_Group_Join_Fail);
| ^~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/windows.h:190:82: error: unknown type name ‘Tox_Group_Mod_Event’
190 | void(*onGroupModeration)(ToxWindow *, Toxic *, uint32_t, uint32_t, uint32_t, Tox_Group_Mod_Event);
| ^~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/windows.h:191:62: error: unknown type name ‘Tox_Group_Voice_State’
191 | void(*onGroupVoiceState)(ToxWindow *, Toxic *, uint32_t, Tox_Group_Voice_State);
| ^~~~~~~~~~~~~~~~~~~~~
/home/REDACTED/Downloads/toxic_build/src/windows.h:247:16: error: ‘TOX_GROUP_MAX_TOPIC_LENGTH’ undeclared here (not in a function)
247 | char topic[TOX_GROUP_MAX_TOPIC_LENGTH + 1];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:89: /home/REDACTED/Downloads/toxic_build/build/autocomplete.o] Error 1

Is it the wrong toxcore verison, if so, do I just need to build toxcore with https://github.com/toktok/c-toxcore ?
I have libtoxcore-dev/,now 0.2.13-1 amd64 [installed]

@JFreegman
Copy link
Owner

I have libtoxcore-dev/,now 0.2.13-1 amd64

This is a very old version. The latest version of Toxic requires c-toxcore v0.2.19 to compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants