Solved Games

Fbsdnew

Active Member

Reaction score: 5
Messages: 134

I read the steps to porting a new program to FreeBSD and saw that first you download the source code and get it to run on your own system and then compile it or something. How do you do this for runescape launcher?
 

Phishfry

Beastie's Twin

Reaction score: 2,730
Messages: 5,668

I think you have your steps mixed up. First download source code, then compile it on FreeBSD then port your work.
 
OP
F

Fbsdnew

Active Member

Reaction score: 5
Messages: 134

I think you have your steps mixed up. First download source code, then compile it on FreeBSD then port your work.
I get the porting it part and the downloading the source code but how do I compile it and get it to work?
 

Phishfry

Beastie's Twin

Reaction score: 2,730
Messages: 5,668

Many programs would have a ridiculously long compiler command line to compile so instead a makefile is used.
Why not compile hello_world.c and see what you are dealing with.

Here is an example compile command and why a makefile is preferred.
cc -w -o ../casample/unix/casample ../casample/unix/casample.c -I/usr/local/include -I../../common -L../../demo -L/usr/local/lib -lsc_da -lsc_ca -DUNIX -Wl,-rpath,../../demo

Do note that GCC is being removed from base system so use clang instead if possible.
 
OP
F

Fbsdnew

Active Member

Reaction score: 5
Messages: 134

Many programs would have a ridiculously long compiler command line to compile so instead a makefile is used.
Why not compile hello_world.c and see what you are dealing with.

Here is an example compile command and why a makefile is preferred.
cc -w -o ../casample/unix/casample ../casample/unix/casample.c -I/usr/local/include -I../../common -L../../demo -L/usr/local/lib -lsc_da -lsc_ca -DUNIX -Wl,-rpath,../../demo

Do note that GCC is being removed from base system so use clang instead if possible.
I'm compiling the source code right? I need the source code first from somewhere like GitHub or sourceforge. I can use svn check out and over and ssh connection if I want. Before the porting process it's compiled with cc??? Any other steps missing? Runelite has this available via the URL with svn what am I to do after that step. Also I can just download the whole pkg and get a tar.gz.
 

Phishfry

Beastie's Twin

Reaction score: 2,730
Messages: 5,668

Before the porting process it's compiled with cc?
Yes. But you must determine if the Linux libraries are named the same on FreeBSD.
Part of compiling is linking(-I) and libraries(-L) as shown in my example.
For Downloading I would recommend svnlite for SVN and git-lite for Git.
They are lightweight tools to download projects.
svnlite is in base and git-lite is in ports.
 

Phishfry

Beastie's Twin

Reaction score: 2,730
Messages: 5,668

It jumps right into the middle of instructions I don't understand.
Seems pretty straight forward to me.
This is a Java application and has good instructions.
Whether all those applications are available on FreeBSD is yours to research.
Start with IntelliJ IDEA and Maven plus the plugin Lombok.
www.freshports.org and their search tool is where to start.
If these programs are in ports you have a good beginning point.
Java is pretty cross platform so this might be doable.
Get it working on your machine before worrying about a port.
java/intellij
devel/maven
 
OP
F

Fbsdnew

Active Member

Reaction score: 5
Messages: 134

2
Yes. But you must determine if the Linux libraries are named the same on FreeBSD.
Part of compiling is linking(-I) and libraries(-L) as shown in my example.
For Downloading I would recommend svnlite for SVN and git-lite for Git.
They are lightweight tools to download projects.
svnlite is in base and git-lite is in ports.
Still confused as to how I use it once ive installed into my directory
 
OP
F

Fbsdnew

Active Member

Reaction score: 5
Messages: 134

Seems pretty straight forward to me.
This is a Java application and has good instructions.
Whether all those applications are available on FreeBSD is yours to research.
Start with IntelliJ IDEA and Maven plus the plugin Lombok.
www.freshports.org and their search tool is where to start.
If these programs are in ports you have a good beginning point.
Java is pretty cross platform so this might be doable.
Get it working on your machine before worrying about a port.
java/intellij
devel/maven
It does not to me :( do you know what this is?
 

Phishfry

Beastie's Twin

Reaction score: 2,730
Messages: 5,668

You can lead a horse to water, but you can't make him drink

IntelliJ has the ability to download the project directly. No Git or SVN usage needed.
Study the instruction page provided for you. It contains everything you need. Including screenshots.
You will not find much clearer instructions.

If you don't know the proper place to put executables than install a port and see where it ends up.
Hint it is under /usr/local/ somewhere.
 
OP
F

Fbsdnew

Active Member

Reaction score: 5
Messages: 134

You can lead a horse to water, but you can't make him drink

IntelliJ has the ability to download the project directly. No Git or SVN usage needed.
Study the instruction page provided for you. It contains everything you need. Including screenshots.
You will not find much clearer instructions.

If you don't know the proper place to put executables than install a port and see where it ends up.
Hint it is under /usr/local/ somewhere.
What is meant by storing executables? I don't know what that is.
 

Alexander88207

Aspiring Daemon

Reaction score: 527
Messages: 754

Its possible to play runelite using the java executable.

1. Go to https://runelite.net/ and click on "Download for all platforms"
2. Install java/openjdk11 with pkg install openjdk11 or using the ports.
3. execute java -jar RuneLite.jar
4. Have Fun :)

1603007463304.png


To uninstall the game remove /usr/home/$USER/.runelite and the downloaded RuneLite.jar file ofc.
 
Top