Jump to content
psla314

FMX Linux console app - Unable to init server

Recommended Posts

I have a cross platform console app that is using FMXLinux (https://www.fmxlinux.com/). (I am using FMX because some of the dlls are used by an FMX gui App)

When i compile to linux and run on wsl, i always get following written to stdout

 

Unable to init server: Could not connect: Connection refused

 

I am assuming the FMXLinux part of the app is trying to connect to the XServer on linux (under wsl).

 

Is there a way to stop FMXLinux compiled into the console app from trying to connect to the XServer.

 

The app seems to run ok , just find the error annoying and not sure whether there is a delay in trying to connect.

 

Regards

Peter

Share this post


Link to post

If you want a console application then create a console application. 

 

Quote

I am using FMX because some of the dlls are used by an FMX gui App)

Not sure the reason behind this statement - what does it matter what else is using a DLL/library?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×