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
LD_PRELOAD=libcurl.so.3 <your app name here>
.
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
alias agkLoad='LD_PRELOAD=libcurl.so.3'
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
agkLoad <path to your application>
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