# Linux only?

**URL:** <https://forum.vassalengine.org/t/linux-only/10757>\
**Category:** Development\
**Created:** [June 21, 2020, 9:18pm UTC](https://forum.vassalengine.org/t/linux-only/10757 "2020-06-21T21:18:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![slimy](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/slimy/32/4448_2.png) [@slimy](https://forum.vassalengine.org/u/slimy)\
**Post date:** [June 21, 2020, 9:18pm UTC](https://forum.vassalengine.org/t/linux-only/10757/1 "2020-06-21T21:18:15Z")

</div>

I have been reading the various threads on building VASSAL, with something approaching dismay. Why should I need an IDE? Why can’t I just run “make”?

I look in the makefile and see things like:

[code]# Before building, you will need to install (at least) the following packages:

# 

# Launch4j ([http://launch4j.sourceforge.net](http://launch4j.sourceforge.net))

# NSIS ([http://nsis.sourceforge.net](http://nsis.sourceforge.net))

[/code]

So I lookup what these do, and they seem to have no relevance for building on Linux. Remember all I want to do is bear my own weight and not be a burden on anyone. In return I don’t want to be bothered with anything Windows or MacOS related.

Okay I ignore that and keep studying the Makefile. Actually it does seem to be divided into sections roughly corresponding the various platforms.

So I find this rule:

```auto
#
# Linux
#

$(TMPDIR)/VASSAL-$(VERSION)-linux/VASSAL-$(VERSION): all $(LIBDIR)/Vengine.jar
.....
```

So I manage to work out that in this case TMPDIR=tmp and VERSION=3.3.0-beta3 (the last source tarball I could find).  
So I did:

```auto
make tmp/VASSAL-3.3.0-beta3-linux/VASSAL-3.3.0-beta3
```

This produced streams of warnings, but I was able to start VASSAL this way. So it seems to me that if we added a rule:

```auto
linux-only-selfish-curmdugeon: $(TMPDIR)/VASSAL-$(VERSION)-linux/VASSAL-$(VERSION)
```

This might make it a little easier to contribute. I would not need to install launch4j, nsis, eclipse etc. I don’t know if it would be useful to put in similar rules for the other OS’es but obviously I’d be happy if it was.

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [June 21, 2020, 9:40pm UTC](https://forum.vassalengine.org/t/linux-only/10757/2 "2020-06-21T21:40:07Z")

</div>

Thus spake slimy:

> I have been reading the various threads on building VASSAL, with  
> something approaching dismay. Why should I need an IDE? Why can’t I just  
> run “make”?

You don’t need an IDE. You can just run make. That’s what I’ve been doing  
since I started working on VASSAL in 2006.

> I look in the makefile and see things like:
> 
> Code:
> 
> # Before building, you will need to install (at least) the following
> 
> packages:
> 
> # 
> 
> # Launch4j ([launch4j.sourceforge.net](http://launch4j.sourceforge.net))
> 
> # NSIS ([nsis.sourceforge.net](http://nsis.sourceforge.net))
> 
> So I lookup what these do, and they seem to have no relevance for  
> building on Linux. Remember all I want to do is bear my own weight and  
> not be a burden on anyone. In return I don’t want to be bothered with  
> anything Windows or MacOS related.

Those are neeed for buiding the Windows package. You don’t need them  
unless you’re doing that.

> Okay I ignore that and keep studying the Makefile. Actually it does seem  
> to be divided into sections roughly corresponding the various platforms.
> 
> So I find this rule:
> 
> Code:
> 
> # 
> 
> # Linux
> 
> # 
> 
> $(TMPDIR)/VASSAL-$(VERSION)-linux/VASSAL-$(VERSION): all  
> $(LIBDIR)/Vengine.jar  
> …

That’s (part of) building the LInux package. If you’re not trying to build  
the package, you don’t need that, either.

I suspect what you want is actually ‘make jar’.

–  
J.

---

<div class="post-metadata">

**Author:** ![Flint1b](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/flint1b/32/246_2.png) [@Flint1b](https://forum.vassalengine.org/u/Flint1b)\
**Post date:** [June 21, 2020, 9:44pm UTC](https://forum.vassalengine.org/t/linux-only/10757/3 "2020-06-21T21:44:40Z")

</div>

I can run “make release-linux”. It doesn’t need anything Windows or MacOS related.

I only have Linux, don’t have any of these NSIS and Launch4j things, and I can build a Linux release. That only needs make, the usual linux tools like find sed tar etc, and a JDK.

I use an IDE but it’s only for convenience, I could edit the code with emacs or vi just as well.

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [June 21, 2020, 9:49pm UTC](https://forum.vassalengine.org/t/linux-only/10757/4 "2020-06-21T21:49:42Z")

</div>

Thus spake Flint1b:

> I can run “make release-linux”. It doesn’t need anything Windows or  
> MacOS related.

Also, yes, this. If you want to build a Linux release, ‘make release-linux’  
is the target you want.

I’ve clarified the comments at the top of the Makefile and pushed that.

–  
J.

---

<div class="post-metadata">

**Author:** ![slimy](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/slimy/32/4448_2.png) [@slimy](https://forum.vassalengine.org/u/slimy)\
**Post date:** [June 21, 2020, 9:54pm UTC](https://forum.vassalengine.org/t/linux-only/10757/5 "2020-06-21T21:54:37Z")

</div>

Thanks everyone.
