Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile with libcurl support #54

Open
eb opened this issue Oct 10, 2020 · 2 comments
Open

Compile with libcurl support #54

eb opened this issue Oct 10, 2020 · 2 comments

Comments

@eb
Copy link
Collaborator

eb commented Oct 10, 2020

Should change the Travis build to include libcurl, so that results reporting works out of the box.
Less urgent, but would be good: also build with libcurl support for Windows (use dynamic linking).

@fzwoch
Copy link
Contributor

fzwoch commented Oct 11, 2020

On Linux this should be as easy as just installing some of the libcurl-dev providers. On Windows it may need some meson.build adjustments unless you manage to use pkg-config there too.

@fzwoch
Copy link
Contributor

fzwoch commented Oct 12, 2020

Found in travis file:

  # ensure we do not have curl dev libs, otherwise it caused cross compilations to fail	
  - sudo apt-get -y remove libcurl.*-dev libpcre*-dev

While i tried to build for ARM on my machine:

The Meson build system
Version: 0.55.3
Source dir: /home/fzwoch/code/mvdsv
Build dir: /home/fzwoch/code/mvdsv/xxx
Build type: cross build
Project name: mvdsv
Project version: undefined
C compiler for the build machine: cc (gcc 10.2.0 "cc (Debian 10.2.0-15) 10.2.0")
C linker for the build machine: cc ld.bfd 2.35.1
C compiler for the host machine: arm-linux-gnueabihf-gcc (gcc 10.2.0 "arm-linux-gnueabihf-gcc (Debian 10.2.0-9) 10.2.0")
C linker for the host machine: arm-linux-gnueabihf-gcc ld.bfd 2.35.1
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: arm
Host machine cpu: armv7hl
Target machine cpu family: arm
Target machine cpu: armv7hl
Run-time dependency threads found: YES
Did not find pkg-config by name 'arm-linux-gnueabihf-pkg-config'
Found Pkg-config: NO
Found CMake: NO
Run-time dependency libpcre found: NO (tried pkgconfig and cmake)
Run-time dependency libcurl found: NO (tried pkgconfig and cmake)
Library m found: YES
Library dl found: YES
Build targets in project: 1

Found ninja-1.10.1 at /usr/bin/ninja

So it correctly detects that no cross-compile pkg-config is found and skips that feature on these platforms. So it does not use the system installed ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants