# Make Psychtoolbox to exe file with application compiler

**URL:** <https://psychtoolbox.discourse.group/t/make-psychtoolbox-to-exe-file-with-application-compiler/3992>\
**Category:** Programming Help\
**Created:** [August 27, 2021, 9:09am UTC](https://psychtoolbox.discourse.group/t/make-psychtoolbox-to-exe-file-with-application-compiler/3992 "2021-08-27T09:09:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lemkr](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@lemkr](https://psychtoolbox.discourse.group/u/lemkr)\
**Post date:** [August 27, 2021, 9:09am UTC](https://psychtoolbox.discourse.group/t/make-psychtoolbox-to-exe-file-with-application-compiler/3992/1 "2021-08-27T09:09:13Z")

</div>

I want to make exe file with application complier but I get some errors.

1. there are some warning sign with the packaging. this is a screenshot of the log

 ![2021-08-19 (13)_LI](https://global.discourse-cdn.com/free1/uploads/psychtoolbox/original/1X/cc66668002afda115486c61fe1a29fc3cf42f16d.jpeg)

1. when I ignore the warning sign and start exe file, this error occurs.

‘Failed to initialize OpenGL for Matlab: Add the ‘core’ and ‘wrap’ directories of mogl to the search pathl  
Error in = \> mymatalbfile.m at line 18’

the line 18 is  
[window, windowRect] = PsychImaging(‘OpenWindow’, screenNumber, grey, [], 32, 2);

What should I do next? Please help me.
