Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: iwkse on June 19, 2020, 04:57:36 PM

Title: openVPN on piCore
Post by: iwkse on June 19, 2020, 04:57:36 PM
Hi,
this is a specific question, since the package is not available, would be great to build that.

The generic question is..do you have some documentation on how to compile and build piCore packages?

Regards
Title: Re: openVPN on piCore
Post by: Rich on June 19, 2020, 05:03:57 PM
Hi iwkse
Welcome to the forum. Maybe the build script found here will be of some use:
http://tinycorelinux.net/8.x/armv6/tcz/src/openvpn/
Title: Re: openVPN on piCore
Post by: iwkse on June 19, 2020, 05:10:27 PM
Hi Rich,
thanks a lot, I will take a look.

But..I need to understand how to build it, I wonder if it's possible to cross-compile or it's required to do on the raspberry.

Regards
Title: Re: openVPN on piCore
Post by: Rich on June 19, 2020, 08:05:38 PM
Hi iwkse
You should probably compile it on the raspberry. The toolchain is called  compiletc.tcz:
Code: [Select]
tce-load -wil compiletc
Title: Re: openVPN on piCore
Post by: Paul_123 on June 19, 2020, 10:37:45 PM
I'm working on updating all of the "openxxx" stuff.  I can provide the extension shortly.

That being said, it is easy to compile yourself if you wish.
Title: Re: openVPN on piCore
Post by: iwkse on June 20, 2020, 04:03:23 AM
Great thanks.
Yes I asked because I'd be glad to contribute new packages.
I installed a toolchain on my PC and it compiles fine when there's a configuration for cmake.
I didn't find yet the autotools port (openvpn uses that) but I should try something because I found something online.
Compiling on PC would be much faster, so if possible I would like to go that path.

Thanks again,
Regards
Title: Re: openVPN on piCore
Post by: Juanito on June 20, 2020, 04:10:52 AM
What do you mean by "autotools port" - autoconf, automake, gettext-dev, intltool and libtool-dev are all present in the repo?
Title: Re: openVPN on piCore
Post by: iwkse on June 20, 2020, 04:13:57 AM
I mean the proper configuration for autotools, settings all environment variables so that it compiles fine.
I have it for cmake, taken from here, https://github.com/Pro/raspi-toolchain and it works good.
Title: Re: openVPN on piCore
Post by: Juanito on June 20, 2020, 04:20:25 AM
See here for an example: http://tinycorelinux.net/11.x/armv7/tcz/src/cairo/compile_cairo

..and here for cmake: http://tinycorelinux.net/11.x/armv7/tcz/src/webkitgtk4/compile_webkitgtk4

..and here for meson: http://tinycorelinux.net/11.x/armv7/tcz/src/gdk-pixbuf/compile_gdk-pixbuf
Title: Re: openVPN on piCore
Post by: iwkse on June 20, 2020, 04:22:22 AM
thanks!