# Initializing HXCPP project on raspberry

**URL:** <https://community.haxe.org/t/initializing-hxcpp-project-on-raspberry/4303>\
**Category:** Haxe\
**Tags:** raspberrypi\
**Created:** [August 2, 2024, 2:37pm UTC](https://community.haxe.org/t/initializing-hxcpp-project-on-raspberry/4303 "2024-08-02T14:37:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann](https://avatars.discourse-cdn.com/v2/letter/y/bc79bd/32.png) [@Yann](https://community.haxe.org/u/Yann)\
**Post date:** [August 2, 2024, 2:37pm UTC](https://community.haxe.org/t/initializing-hxcpp-project-on-raspberry/4303/1 "2024-08-02T14:37:49Z")

</div>

Hello!

Sorry for the newby question, but how do you initialize a hxcpp project on rpi?

So far I did :  
-\>install haxe 4.2.5, hxcpp and hxcpp-debug-server on the raspberry  
-\>install vscode and associated extensions  
-\>use the vscode command \>Haxe : initialize project  
-\>modify task.json to get the compilation command line

> Haxe -p src -cpp cpp -D rpi -L hxcpp-debug-server -main Main --debug

modify launch.json for HXCPP adding

> “preLaunchTask”: “hxcpp debug” (the command line above)  
> “program”: “${workspaceFolder}/cpp/Main-debug”

when I hit the debug button the compilation went well but I got no trace, and the debug console shows

> Debug server connected!  
> Socket error : write EPIPE

if I launch the Main-debug exe through the terminal, the trace appears.

What did I do wrong?

---

<div class="post-metadata">

**Author:** ![Yann](https://avatars.discourse-cdn.com/v2/letter/y/bc79bd/32.png) [@Yann](https://community.haxe.org/u/Yann)\
**Post date:** [August 6, 2024, 6:38pm UTC](https://community.haxe.org/t/initializing-hxcpp-project-on-raspberry/4303/2 "2024-08-06T18:38:13Z")

</div>

Just tried to compile HXCPP from git and it now works well.  
the one installed from haxelib doesn’t seem to be fully compatible with the debuguer.
