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

Erreurs de compilation #15

Open
Lecrapouille opened this issue Feb 1, 2024 · 2 comments
Open

Erreurs de compilation #15

Lecrapouille opened this issue Feb 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Lecrapouille
Copy link

Lecrapouille commented Feb 1, 2024

Salut sur Debian 11:

  • Manque le linkage avec pthread:
find_package (Threads)
target_link_libraries(${PROJECT_NAME} PRIVATE ${CMAKE_THREAD_LIBS_INIT})
  • Mettre a jour les headers d'OpenCL dans includes/libraries.hpp: #include <CL/cl.hpp> devient:
#define CL_HPP_TARGET_OPENCL_VERSION 300
#include <CL/opencl.hpp>
  • Sources/ComputeShader.cpp: cl::Program::Sources sources(1, std::make_pair(src.c_str(), src.length() + 1)); devient cl::Program::Sources sources(1, src);

  • "Galaxy\0Collision\0Universe" doit etre "Galaxy\0Collision\0Universe\0"

@angeluriot
Copy link
Owner

Possible de faire une PR ?

@angeluriot angeluriot added the bug Something isn't working label May 13, 2024
@Lecrapouille
Copy link
Author

Je pense que ça va être dur : j'ai déjà forké ce projet (pas possible de faire 2 forks sur GitHub si je ne me trompe pas ?) puis tout modifier pour l'adapter à ma sauce (Makefile au lieu de CMake par exemple). Je peux faire une autre branche du coup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants