~rjarry/aerc-discuss

4 4

Possible to build on Windows?

Details
Message ID
<uYrsR6dtu_K5rDeZ-yT1vHskVU7u3gGNhO2YBT2XRfGctH1OcbrUkppahIxpvZyJ5uhoL11pKpX6UkhwpIMrxhIrBEkJecJw3C0F33tZAyY=@proton.me>
DKIM signature
pass
Download raw message
Hello!
Apologies if I'm sending this in the wrong place as I'm not a developer
 myself and have never used an email mailing list before. Anyways, the 
title mostly says it all, I was wondering if there's any way to get
 Aerc to compile on Windows? I don't know a thing about Golang myself, 
but it appears that the source code includes a library called "syscall" 
which is specific to Linux and causes error messages when I attempt to 
compile the code on Windows. I also tried compiling in Cygwin, but it 
didn't work and apparently Cygwin doesn't implement syscall. I use Aerc
 as my regular email client on my phone, I would love to be able to use
 it on my PC too. Is it possible to get it to compile and run under 
Windows or would that require changes to the code? If so, is anyone 
interested in making the needed changes? I'm sorry if this is a 
bothersome question. I would offer to port it myself if I knew anything
 about Golang and wasn't a very novice coder.
Details
Message ID
<D0O1E0EATNMR.1TB5K7I9PKL9Q@onemoresuza.com>
In-Reply-To
<uYrsR6dtu_K5rDeZ-yT1vHskVU7u3gGNhO2YBT2XRfGctH1OcbrUkppahIxpvZyJ5uhoL11pKpX6UkhwpIMrxhIrBEkJecJw3C0F33tZAyY=@proton.me> (view parent)
DKIM signature
pass
Download raw message
I know this in no way answers your question, but I got very curious when
you said that you were using aerc on your phone.

> I use Aerc
> as my regular email client on my phone

How are you doing it? Through termux?
Details
Message ID
<D0O2WE04P85D.2GRN7CPJR83XL@ringo>
In-Reply-To
<uYrsR6dtu_K5rDeZ-yT1vHskVU7u3gGNhO2YBT2XRfGctH1OcbrUkppahIxpvZyJ5uhoL11pKpX6UkhwpIMrxhIrBEkJecJw3C0F33tZAyY=@proton.me> (view parent)
DKIM signature
pass
Download raw message
Hello,

WyntrHeart, Apr 19, 2024 at 11:07:
> Hello!
>
> Apologies if I'm sending this in the wrong place as I'm not 
> a developer myself and have never used an email mailing list before. 
> Anyways, the title mostly says it all, I was wondering if there's any 
> way to get Aerc to compile on Windows?

No. aerc is only targeted at POSIX platforms.

> I don't know a thing about Golang myself, but it appears that the 
> source code includes a library called "syscall" which is specific to 
> Linux and causes error messages when I attempt to compile the code on 
> Windows. I also tried compiling in Cygwin, but it didn't work and 
> apparently Cygwin doesn't implement syscall.
>
> I use Aerc as my regular email client on my phone, I would love to be 
> able to use it on my PC too. Is it possible to get it to compile and 
> run under Windows or would that require changes to the code? If so, is 
> anyone interested in making the needed changes? I'm sorry if this is 
> a bothersome question. I would offer to port it myself if I knew 
> anything about Golang and wasn't a very novice coder.

Your best bet is probably to use WSL:

https://learn.microsoft.com/en-us/windows/wsl/install
Details
Message ID
<D0O4MWY9DNOO.UM409PXT6W4X@ferdinandy.com>
In-Reply-To
<D0O2WE04P85D.2GRN7CPJR83XL@ringo> (view parent)
DKIM signature
missing
Download raw message
On Fri Apr 19, 2024 at 13:56, Robin Jarry <robin@jarry.cc> wrote:
> Hello,
> >
> > I use Aerc as my regular email client on my phone, I would love to be 

I'm also very interested in how you do this exactly! I have it compiled on
termux, but it's not something I'd use over an app. Feels painful without
a physical keyboard.

>
> Your best bet is probably to use WSL:
>
> https://learn.microsoft.com/en-us/windows/wsl/install

For the record (thanks to Robin btw), this is how I can compile aerc with
notmuch on WSL. Otherwise, if you must use Windows, I highly recommend WSL.

 make install CGO_CFLAGS="-I$HOME/.local/include" CGO_LDFLAGS="-L$HOME/.local/lib -Wl,-rpath=$HOME/.local/lib" PREFIX=$HOME/.local GOFLAGS=-tags=notmuch


-- 
+36305425054
bence.ferdinandy.com
Details
Message ID
<HSNNC4FqybJLHAbheQ1M8ARpi14IdgRJLA4PObHKbp5RNFYTm-_zFVOVXhJQDyUofPm7TeDxUD8C0koTTI9BmLffwTFJNr-JCNbyQM44PMA=@proton.me>
In-Reply-To
<D0O4MWY9DNOO.UM409PXT6W4X@ferdinandy.com> (view parent)
DKIM signature
pass
Download raw message
> I'm also very interested in how you do this exactly! I have it compiled on
> termux, but it's not something I'd use over an app. Feels painful without
> a physical keyboard.

Yeah, I use Termux. It works fine for me without a physical keyboard. Not 
the ideal interface, but it gets the job done. All my accounts, in one 
place, with minimal resource usage.

> For the record (thanks to Robin btw), this is how I can compile aerc with
> notmuch on WSL. Otherwise, if you must use Windows, I highly recommend WSL.
>
>  make install CGO_CFLAGS="-I$HOME/.local/include" CGO_LDFLAGS="-L$HOME/.local/lib -Wl,-rpath=$HOME/.local/lib" PREFIX=$HOME/.local GOFLAGS=-tags=notmuch

Thank you for the tip!
Reply to thread Export thread (mbox)