Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AGK on Linux (tips inside)

Author
Message
CodeTrasher
12
Years of Service
User Offline
Joined: 18th Jul 2012
Location: Tampere, Finland
Posted: 28th Dec 2016 13:49 Edited at: 28th Dec 2016 13:52
Hi everyone, especially the ones interested in developing on Linux.

I started to use Linux as my main OS because I don't like the way Microsoft has take with Win10. Since I love AGK2 - and THANK YOU TGC for providing this on Linux, as well - I started to tinker with AppGameKit on my Manjaro (which is based on Arch Linux).

In Tier 1, everything works wonderfully on my Linux up to the point when I'm trying to launch the compiled AppGameKit app. If you have tried AppGameKit development on Linux, you might have faced the same error message about libcurl.so.3 not existing or loading. I have this specific library installed on my machine but I can't point - or at least I haven't found a way how - AppGameKit editor to that specific library upon executing my application.

I didn't want to give up since I knew there was a way of preloading libraries before calling an application, so I did some Googling and quickly found a solution. You can preload that 'missing' libcurl library and execute the AppGameKit application by calling
.

In the long run I think I could memorize that line but I wanted to have script or some custom command for doing that easily. Then I found about a nice trick called bash alias which you can use for creating custom commands, e.g. chain several commands behind a single word.

To summarize what I did in order to launch my AppGameKit apps, I did these steps:

* Create a file called .bash_aliases in your home directory
* Open the created file and type in
Save the file. For agkLoad you can use any word you wish, that's what I'm currently using.

* Open .bashrc or similar file. Add the following line in the end of the file:
Save and exit.

* Then, to get these changes working, open up your terminal and call


Now the custom command is ready to be used for executing AppGameKit applications. Keep your terminal open while coding your AppGameKit app, and after building launch your application by calling


I hope you find this helpful. This is the way I do it currently. If you have even simpler way of doing this, I would be happy to know! I hope there was an option to set custom build and launch arguments in AppGameKit editor.

Cheers and happy Linux coding!
Mah machine: Intel Xeon E3-1231v3 4x3.40GHz | CM Hyper 212 Evo | ASRock H97 Pro4 | 240GB SanDisk SSD | Sapphire Radeon R9 270X Dual-X 2048MB | Seagate HDD 1000GB |
8GB Crucial Ballistix Sport DDR3-1600
mash
8
Years of Service
User Offline
Joined: 15th Sep 2016
Location: Cologne, Germany
Posted: 14th Jan 2017 16:58
Good to read that -besides me- some more people are using AppGameKit on Linux.

I'm still hoping for a Linux-Subforum, wouldn't that make sense?
CodeTrasher
12
Years of Service
User Offline
Joined: 18th Jul 2012
Location: Tampere, Finland
Posted: 14th Jan 2017 22:06
I think they have updated the Linux environment variables or something because nowadays I can launch a Tier 1 application straight from the editor. That's good.

Yeah, I'd like see a Linux-specific subforum as well, and since we now have a Slack team, we should create a Linux channel there, too.
Mah machine: Intel Xeon E3-1231v3 4x3.40GHz | CM Hyper 212 Evo | ASRock H97 Pro4 | 240GB SanDisk SSD | Sapphire Radeon R9 270X Dual-X 2048MB | Seagate HDD 1000GB |
8GB Crucial Ballistix Sport DDR3-1600

Login to post a reply

Server time is: 2025-06-07 23:47:36
Your offset time is: 2025-06-07 23:47:36