Comments (3)
Hello Travis, I'm not sure why this is happening. Am I missing some library? Although I have added all the necessary dependencies mentioned for macOS, I'm running build-debug.sh from the main branch.
P.S. I have been enjoying the Kohi game engine series immensely. Keep up the good work, brother. Thanks
from kohi.
@ozzyozbourne I am on an M3 MBP and I also experienced this issue. I don't know if this is the correct path forward, but I wrote my own kthread_wait function as mentioned in this issue:
Here is my version. Note that I don't really know if this is the right way to write the function as I haven't contributed to this project and I don't write C at work.
b8 kthread_wait(kthread* thread) {
if (!thread) {
return false;
}
while (true) {
if (thread->work_queue.element_count == 0) {
break;
}
}
return true;
}
I can now get the project to compile, but only when executing ./build-debug.sh. When executing ./build-release.sh, I get this error:
engine/src/renderer/renderer_frontend.c:501:8: error: no member named 'module_watch_ids' in 'struct shader'
s->module_watch_ids = kallocate(sizeof(u32) * config->stage_count, MEMORY_TAG_ARRAY);
~ ^
1 error generated.
make: *** [obj/engine/src/renderer/renderer_frontend.c.o] Error 1
When building with ./build-debug.sh and running ./testbed, I get this error despite having Vulkan installed:
[ERROR]: Error opening library: dlopen(libvulkan_renderer.dylib, 0x0002): Library not loaded: @rpath/libvulkan.1.dylib
Referenced from: <3D97920A-53AB-32EA-AFF7-FDA3F6E76247> /Users/briankamras/Documents/GitHub/kohi/bin/libvulkan_renderer.dylib
Reason: tried: './libvulkan.1.dylib' (no such file)
[FATAL]: Could not create application!
from kohi.
@ozzyozbourne Thanks for submitting this!
Catching up on issues - apologies for the delay! I had to dig back a bit for this since it was technically resolved a while ago. #222 was as well.
Anyway, ultimately the issue was the fact that kthread_wait
was never defined on the mac platform (nor linux seemingly) at the time this was written up. Anything version 0.6 and before would have been wrong here for those platforms. You'll need to use 0.7.0 or newer and this is fixed. For mac specifically, you'll want to use 0.7.1 or newer.
Closing this.
from kohi.
Related Issues (20)
- Roadmap: Binary Search Tree Container HOT 1
- Roadmap: Generic Sort Utility
- Roadmap: Quadtree
- Roadmap: Octree
- Forward-declare platform_state structure instead of using void pointers. HOT 2
- [FEATURE] Marching cubes\CSG style of level creation. HOT 1
- [BUG] './libengine.dylib' (no such file), './libengine.dylib' (no such file) HOT 4
- [BUG] Segfault while moving the camera around in testbed in full screen HOT 2
- [TASK] Roadmap: Renderer: Mipmapping
- Build With CMake. HOT 2
- [BUG] darray_push and darray_insert_at create UB when called on array named "temp" HOT 1
- [BUG] OpenAL error 40964 AL_INVALID_OPERATION HOT 2
- [BUG] Unable to compile on Windows HOT 2
- [BUG] XK_Meta_L and XK_Meta_R should be changed to XK_Super_L and XK_Super_R due to Meta keys are not always Windows keys
- Debian 12 <semaphore.h> dependecy. HOT 2
- [BUG] Clang on Windows not recognizing "stdio.h" HOT 7
- Free xcb_intern_atom_reply_t* in linux platform HOT 2
- [BUG] Vulkan Sync Validation issues. HOT 1
- [macOS] Build error re: Vulkan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kohi.