Comments (5)
Hey @timnolte, did you try modifying the Makefile and setting GOARCH=386
with an appropriate GOOS
?
ref: https://golang.org/doc/install/source#environment
from phantom.
@jhead when I try that I end up with the following failure:
minecraft@minecraft:~/downloads/minecraftbe-server/phantom-0.1.1$ make bin/phantom-linux
GOOS=linux GOARCH=386 go build -o bin/phantom-linux cmd/proxy.go
cmd/proxy.go:8:2: cannot find package "github.com/jhead/phantom/internal/proxy" in any of:
/usr/lib/go-1.10/src/github.com/jhead/phantom/internal/proxy (from $GOROOT)
/opt/minecraft/go/src/github.com/jhead/phantom/internal/proxy (from $GOPATH)
Makefile:14: recipe for target 'bin/phantom-linux' failed
make: *** [bin/phantom-linux] Error 1
After coping the contents of the internal
directory to /opt/minecraft/go/src/github.com/jhead/phantom/internal/
and trying to make
I got the following:
mkdir -p bin
GOOS=linux GOARCH=386 go build -o bin/phantom-linux cmd/proxy.go
cmd/proxy.go:8:2: use of internal package not allowed
Makefile:8: recipe for target 'bin/phantom-linux' failed
make: *** [bin/phantom-linux] Error 1
from phantom.
So I actually ended up doing this:
- Copied the
cmd
directory also to/opt/minecraft/go/src/github.com/jhead/phantom/
. cd /opt/minecraft/go/src/github.com/jhead/phantom
.- Executed:
go build -o ~/downloads/minecraftbe-server/phantom-0.1.1/bin/phantom-linux cmd/proxy.go
And that actually worked and built the binary file. I tried it out but my clients failed to connect. So I'm not sure If I broke something when building it that way.
from phantom.
Hm, golang expects a very specific directory structure. Copying certainly works but you should check out the official docs: https://golang.org/doc/code.html#Workspaces
What error/message do you see when connecting? Does it show up on the list at all?
I rebuilt it for linux + i386 on my machine and attached it, lmk if it works.
phantom-linux-i386.zip
from phantom.
Gonna close this one out since I was able to build it for i386 on Linux. Let me know if you aren't able to get it working.
from phantom.
Related Issues (20)
- Please add version to output
- Not Working with a firewall
- how do you get this to run using linux terminal? HOT 1
- Running phantom on Windows 10 alongside Minecraft doesn't work HOT 3
- Second Account in SplitScreen on PS4 loaded as "Steve"
- Suggestion: add custom resource packs support
- server shows up as 1.17.0 yet i have 1.17.10
- [FEATURE REQUEST] Adding "-quiet" flag to list of available options
- ps4 Users can no longer join the server with the addons installed
- IS there any YouTube tutorials? HOT 1
- Server does not show in friends list HOT 3
- Unconnected Pong HOT 1
- Phantom stuck at listener starting up
- Pihole & Mikrotick
- Build as a Bukkit, Spigot, Paper, Fabric, Forge, or Velocity plugin/mod? HOT 2
- Why do other sentences appear HOT 5
- Connection refused HOT 1
- Ubuntu - Connection timeout HOT 2
- Phantom on the same computer as server? HOT 1
- Multiple instances not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phantom.