Comments (11)
Okay! There will be a cmake file when I release OpenGL port (in couple of weeks).
from shadered.
Just pushed a commit that applies all of the things you mentioned in the comments + ENABLE_GLSLANG_BINARIES option.
from shadered.
Is cmake a viable option right now? Because SHADERed currently only works on Windows and uses Direct3D 11 (I plan to port it to Linux this year though).
from shadered.
CMake has been a viable option for years. You'll be fine.
from shadered.
Hey @feliwir . I just pushed a big commit which includes CMakeLists.txt . As I am fairly new to cmake I would be very happy if you could check if everything is how it is supposed to be/working properly.
I also want to mention that cmake currently also includes some modules that shouldn't be included (like glslangValidator or SPIR-V remap). Not sure if that can be prevented from within my CMakeLists.txt file or if I have to fork the KhronosGroup/glslang and modified their cmake file.
Also, with the new update SHADERed works on Linux too (I need to fix some bugs though + implement some features).
from shadered.
Hey @dfranx i added some comments to your commit. To fix your glsllang problem you can probably set ENABLE_GLSLANG_BINARIES
to FALSE before inlcuding the subdirectory.
from shadered.
I am missing glm headers when building on Linux. Your CMake setup doesn't seem to look for it.
from shadered.
Thanks for reporting! Fix for this will be included in the next commit.
from shadered.
Could you try compiling the program again? I have added GLM to the cmake file.
from shadered.
@dfranx it still doesn't work. You can't use find_package(glm REQUIRED), since there is no findscript and glm doesn't provide a config script either. I recommend adding glm as a submodule and just do target_include_directories
on the submodule dir.
Alternatively you could put a FindGLM.cmake script into your module directory (e.g. FindGLM.cmake). This would require you to set CMAKE_MODULE_PATH
See here for an example: https://github.com/feliwir/arda/blob/master/src/CMakeLists.txt#L67
from shadered.
@feliwir thanks for reporting that. I have just added FindGLM.cmake script in one of the commits. Can't test it really because GLM library installed through vcpkg has the config file and for some reason it works normally on Linux too (I assume it also has the config file?).. Please reply back if you have now managed to compile SHADERed! :D
from shadered.
Related Issues (20)
- Outsource build fails
- Bundled packages conflict with standalone packages
- Window contents aren't resized when the wuindow is resized
- Lite: Can't copy or paste anything! HOT 2
- Web version: "Please provide a project file" error
- Changing the "y" of a "float2" inside of a struct changes the "x" too (2D HLSL)
- Gizmo manipulator issue (missing ArrowX point)
- Normal of culled faces sames wrong.
- Can not get spearnode working, need for help.
- using 2 textures in GLSL
- MacOS SpearNode build
- line continuation not supported for this version or the enabled extensions
- HLSL: VSInput semantics have no effect
- Can't use #include in shader
- Add community maintainers to project to address PRs and Issues
- gl_VertexIndex doesnt exist in vulkan glsl
- Problems with text editor find/replace and utf-8 characters.
- Doesn't build on macOS Ventura 13.5 (Intel) HOT 3
- why stop upgrade the project,that is a amazing editer
- Attemptng to open "This PC" on Windows 11 reliably crashes the app.
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 shadered.