# Cross compiling VTK for Jetson nano with GUISupportQt

**URL:** https://discourse.vtk.org/t/cross-compiling-vtk-for-jetson-nano-with-guisupportqt/8159
**Category:** Support
**Created:** [March 28, 2022, 9:32pm UTC](https://discourse.vtk.org/t/cross-compiling-vtk-for-jetson-nano-with-guisupportqt/8159 "2022-03-28T21:32:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Timor](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/90db22/32.png) [@Timor](https://discourse.vtk.org/u/Timor)
#### Post date: [March 28, 2022, 9:32pm UTC](https://discourse.vtk.org/t/cross-compiling-vtk-for-jetson-nano-with-guisupportqt/8159/1 "2022-03-28T21:32:01Z")

</div>

I’m trying to compile vtk for jetson nano and I need to compile it with GUISupportQt

I used this tutorial for compiling qt5.15 for the device

> **[QTonRaspberryPi/QtJetsonNano5.15.0 at main · PhysicsX/QTonRaspberryPi](https://github.com/PhysicsX/QTonRaspberryPi/tree/main/QtJetsonNano5.15.0)**
>
> main/QtJetsonNano5.15.0

then I tried to compile vtk with cmake with  
cmake -D CMAKE\_TOOLCHAIN\_FILE=/workspaces/aarch64-gnu.toolchain.cmake  
-D VTK\_USE\_CUDA=ON  
-D CMAKE\_SYSROOT=/workspaces/sysroot  
-D VTK\_GROUP\_ENABLE\_Qt=YES  
-D VTK\_MODULE\_ENABLE\_VTK\_GUISupportQt=YES  
-D CMAKE\_BUILD\_TYPE=Release  
-D BUILD\_TESTING=OFF  
-D CMAKE\_CROSSCOMPILING\_EMULATOR=qemu-aarch64-static …

and I got a lot of errors  
the first errors are:  
55%] Building CXX object GUISupport/Qt/CMakeFiles/GUISupportQt.dir/QVTKOpenGLWindow.cxx.o  
/workspaces/VTK-9.1.0/GUISupport/Qt/QVTKOpenGLWindow.cxx: In member function ‘virtual void QVTKOpenGLWindow::paintGL()’:  
/workspaces/VTK-9.1.0/GUISupport/Qt/QVTKOpenGLWindow.cxx:266:43: error: ‘GL\_BACK\_LEFT’ was not declared in this scope  
this-\>defaultFramebufferObject(), GL\_BACK\_LEFT, QRect(QPoint(0, 0), deviceSize));  
^ ~~~~~~~~~~~  
/workspaces/VTK-9.1.0/GUISupport/Qt/QVTKOpenGLWindow.cxx:266:43: note: suggested alternative: ‘GL\_BACK’  
this-\>defaultFramebufferObject(), GL\_BACK\_LEFT, QRect(QPoint(0, 0), deviceSize));  
^ ~~~~~~~~~~~  
GL\_BACK  
/workspaces/VTK-9.1.0/GUISupport/Qt/QVTKOpenGLWindow.cxx:268:43: error: ‘GL\_BACK\_RIGHT’ was not declared in this scope  
this-\>defaultFramebufferObject(), GL\_BACK\_RIGHT, QRect(QPoint(0, 0), deviceSize));  
^ ~~~~~~~~~~~~  
/workspaces/VTK-9.1.0/GUISupport/Qt/QVTKOpenGLWindow.cxx:268:43: note: suggested alternative: ‘GL\_HARDLIGHT’  
this-\>defaultFramebufferObject(), GL\_BACK\_RIGHT, QRect(QPoint(0, 0), deviceSize));  
^ ~~~~~~~~~~~~  
GL\_HARDLIGHT  
/workspaces/VTK-9.1.0/GUISupport/Qt/QVTKOpenGLWindow.cxx:273:43: error: ‘GL\_BACK\_LEFT’ was not declared in this scope  
this-\>defaultFramebufferObject(), GL\_BACK\_LEFT, QRect(QPoint(0, 0), deviceSize));  
^ ~~~~~~~~~~~  
/workspaces/VTK-9.1.0/GUISupport/Qt/QVTKOpenGLWindow.cxx:273:43: note: suggested alternative: ‘GL\_BACK’  
this-\>defaultFramebufferObject(), GL\_BACK\_LEFT, QRect(QPoint(0, 0), deviceSize));  
^ ~~~~~~~~~~~  
GL\_BACK  
GUISupport/Qt/CMakeFiles/GUISupportQt.dir/build.make:173: recipe for target ‘GUISupport/Qt/CMakeFiles/GUISupportQt.dir/QVTKOpenGLWindow.cxx.o’ failed

and then I got alot of errors

- redeclared as different kind of symbol

Can you help me with this issue?
