Enable cross compilation by removing dependency on `ShaderEncoder` and `ShaderLinker`

Aperta
#7,385 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cmake, cpp

Direzione di ricerca

Inizia esaminando i passaggi CMake che compilano ed eseguono ShaderEncoder e ShaderLinker sui file .glsl nella sezione visualization, quindi consulta issue #5732 per il contesto correlato. Il lavoro è completato quando la build di Open3D può eseguire la cross-compilation senza tentare di eseguire sull’host gli eseguibili shader compilati per la destinazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature request
Checklist
Proposed new feature or change

The current cmake build process involves a step to build two executables ShaderEncoder and ShaderLinker, which operate on the .glsl shader files in the visualization section of the library. When cross-compiling, these executables (ShaderEncoder and ShaderLinker) are built with the toolchain file used for cross-compiling, which usually cannot be run on the host machine. This means that the build step always fails when attempting to run those executables on the shader files.

Possible solutions include:

  • Allowing a cmake variable that disables building the visualization portion of the library
  • Removing the ShaderEncoder and ShaderLinker executable steps from the build process, replacing them with a cmake-native approach that does not depend on a separate executable step
  • Remove the ShaderEncoder and ShaderLinker executable steps from the build process and replace them with using Vulkan shaders
  • Keep the ShaderEncoder and ShaderLinker portions of the cmake build process, but aggressively and carefully ensure that all those executables are built on the host machine rather than with any build flags relevant for cross-compilation
References

No response

Additional information

Other issues in the Open3D repository showing this issue:

https://github.com/isl-org/Open3D/issues/5732

Lingua principale
C++
Stelle
14.3k
Fork
2.7k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di isl-org/Open3D

Tutte le issue di isl-org/Open3D

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.