Git Product home page Git Product logo

Comments (9)

adrienverge avatar adrienverge commented on June 27, 2024

Hi Ralf, sorry for not following your contribution up.

Yes, please rebase on master and post a comment on #65. We'll follow it there.

from openfortivpn.

excelwang avatar excelwang commented on June 27, 2024

Hi @schlatterbeck, could you share your openfortivpn compiling tutorial for openwrt, and prebuilt binary files for mips_24kc platform is more appreciated.

from openfortivpn.

DimitriPapadopoulos avatar DimitriPapadopoulos commented on June 27, 2024

@excelwang Out of curiosity, have you actually tried to compile? If so, did you encounter any problems while compiling?

from openfortivpn.

excelwang avatar excelwang commented on June 27, 2024

@schlatterbeck, Thanks for your reply. I have tried twice.

The first time, I tried to cross-compile openfortivpn, but encountered compilation dependencies missing problem (afterward, I knew it was caused by the missing of cross-compiled openssl library).

The second time, I tried to use a prebuilt openssl library shipped with lede/openwrt 17.01.4. But I gave it up at last, as I have no idea how to change openfortivpn's autogen.sh to use the cross compile environment. After all, I doubt if I could build a runnable openwrt version.

Any advice for further step is very appreciated!

from openfortivpn.

DimitriPapadopoulos avatar DimitriPapadopoulos commented on June 27, 2024

I understand the whole difficulty here is to:

  1. get a working cross-compiling environment with all necessary dependencies,
  2. tweak the build infrastructure of openfortivpn to work within this cross-compiling environment.

I've seldom messed with cross-compiling myself - and never with openfortivpn - so I won't be much help. For item 2 I would just suggest forgetting autogen.sh and tweaking individuals commands:

aclocal
autoconf
automake --add-missing

Once you get there, I don't see why it wouldn't be possible to build openfortivpn for OpenWrt with minimal changes. I might help once you get there but I cannot help with prior items 1 and 2.

from openfortivpn.

excelwang avatar excelwang commented on June 27, 2024

@schlatterbeck. Finally I successfully cross compiled a working openfortivpn for openwrt. Mainly 2 steps:

  1. cross compile the openssl.
    2.modefiy the Makefile of openfortivpn: change gcc to the cross-compile gcc.

from openfortivpn.

msfuentess avatar msfuentess commented on June 27, 2024

Hello,
I have compiled succesfully openfortivpn in Fedora and it works, but now I'm trying unsuccessfuly to cross-compile it in my OpenWRT building environment for an ar71xx (mips) Tp-Link router. Could any of you elaborate how should I do it? It is the first package that I'm trying to compile from external sources ....

Thanks in advance

from openfortivpn.

schlatterbeck avatar schlatterbeck commented on June 27, 2024

from openfortivpn.

msfuentess avatar msfuentess commented on June 27, 2024

I finally got it compiled and working (except the ip routes that are not accepted by the client, but do work in fedora)

This is the file structure that I used

./package/feeds/custom/openfortivpn
./package/feeds/custom/openfortivpn/Makefile
./package/feeds/custom/openfortivpn/files
./package/feeds/custom/openfortivpn/files/openfortivpn.init

and on the Makefile (thanks Ralf) I changed:
PKG_SOURCE_URL:=https://github.com/adrienverge/openfortivpn.git
#PKG_SOURCE_URL:=[email protected]:adrienverge/openfortivpn.git

Also on feeds.conf.default add:
src-git custom https://github.com/adrienverge/openfortivpn.git

then proceed as normal:
./scripts/feeds update -a
./scripts/feeds install -a
make -j1 V=s package/openfortivpn/compile

And you get your ipk file. You can also select openfortivpn in menuconfig and build your binary with openfortivpn inside.

Thanks everyone

from openfortivpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.