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 error on ubuntu 20.04 #686

Closed
xengine-qyt opened this issue Mar 7, 2023 · 5 comments
Closed

compile error on ubuntu 20.04 #686

xengine-qyt opened this issue Mar 7, 2023 · 5 comments

Comments

@xengine-qyt
Copy link

ubuntu 20.04.5 lts x64.
build command:./cross_compile_ffmpeg.sh --build-ffmpeg-shared=y --build-ffmpeg-static=n --ffmpeg-git-checkout-version=n5.1.2

image

@Biswa96
Copy link
Contributor

Biswa96 commented Mar 7, 2023

The fix is pending in upstream pull request.

@xengine-qyt
Copy link
Author

o ...id is 679? it's too long time

@naabtog
Copy link
Contributor

naabtog commented Mar 7, 2023

@xengine-qyt I guess @Biswa96 is talking about this.

@xengine-qyt
Copy link
Author

OK .thanks...

@catester
Copy link

catester commented Mar 8, 2023

I upgraded to ubuntu 22.04.2 LTS (windows bash) just for this error and it turns out it's not related to ubuntu.
It's about lensfun project being broken for cross compilers (windows builds). Until they fix it in lensfun, I am using this modification in cross_compile_ffmpeg.sh to apply the patch from lensfun/lensfun#1998 automatically.

build_lensfun() {
  build_glib
  do_git_checkout https://github.com/lensfun/lensfun.git lensfun_git
  cd lensfun_git
    
    #MODIFY
    #Patch to fix compile problem: https://github.com/lensfun/lensfun/issues/1998
    apply_patch https://patch-diff.githubusercontent.com/raw/lensfun/lensfun/pull/1999.patch -p1
    #MODIFY

    export CMAKE_STATIC_LINKER_FLAGS='-lws2_32 -pthread'
    do_cmake "-DBUILD_STATIC=on -DCMAKE_INSTALL_DATAROOTDIR=$mingw_w64_x86_64_prefix"
    do_make
    do_make_install
    sed -i.bak 's/-llensfun/-llensfun -lstdc++/' "$PKG_CONFIG_PATH/lensfun.pc"
    unset CMAKE_STATIC_LINKER_FLAGS
  cd ..
}

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

4 participants