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

Linux - rootunit [ multiple definition of ] error #788

Closed
Onek8 opened this issue Apr 11, 2023 · 1 comment
Closed

Linux - rootunit [ multiple definition of ] error #788

Onek8 opened this issue Apr 11, 2023 · 1 comment

Comments

@Onek8
Copy link

Onek8 commented Apr 11, 2023

Describe the bug
Running ../Kinc/make --run on sample project 01_triangle causes an initial error in
/home/onek8/Downloads/Kinc-Samples-main/01_triangle/Sources/main.c|94|error: too few arguments to function ‘kinc_g4_index_buffer_lock’|
/home/onek8/Downloads/Kinc-Samples-main/Kinc/Sources/kinc/graphics4/indexbuffer.h|52|note: declared here|
Then, passing the additional parameters I get the list of rootunit -> multiple definitions errors.

Screenshots
Screenshot 2023-04-11 23:46:48

Execution Environment:
Running on ubuntu 22.10
Latest kink+tools from 1 hour ago
Testing also with codeblocks project file + GNU GCC
Kode/Kinc + Armory Kinc

Additional context
The issue was initially found targeting Linux C hashlink from armory 3d and further confirmed with the 01_triangle sample file. I made an attempt of trying to understand the changes here 8d3ffeb before making the report I would have preferred to find a fix. It is to note this only effects Linux users, atleast ubuntu in my case as the Armory windows users reported successful compilation with the armory kinc version.

@RobDangerous
Copy link
Member

That's as expected, I haven't made those samples compile yet, I just copied them in to work on them later.
Just have a look at any of the working samples in the repo instead (everything that doesn't start with a number, also see https://github.com/Kode/Kinc-Samples/actions). And the index-buffer-API was changed for all targets, if Armory only has a problem on Linux, that's probably unrelated. The commit you point to is also unrelated to the index-buffer-changes. upates.md always lists all breaking changes like that and in that case even includes instructions on what to do.

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