• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error

     
    • 0 Vote(s) - 0 Average

    Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error

    qwerty12
    Offline

    Junior Member

    Posts: 30
    Threads: 0
    Joined: 2023 Jun
    Reputation: 3
    #4
    2024-12-15, 01:07 PM (This post was last modified: 2024-12-15, 01:13 PM by qwerty12. Edited 1 time in total.)
    (2024-12-14, 02:37 PM)raulo1985 Wrote: Thanks for your reply, greatly appreciate it. I'm trying to create a x64 build, I used Cross tools because that's what the instructions said. When I use x64 Native Tools Command Prompt for VS 2022 I get many "PlayerComponent.cpp.obj : error LNK2019: unresolved external symbol" messages (related to mpv) and it ends with a fatal error. So I'm still stuck.

    I did manage to build it on my system (although I didn't then carry on with the instructions for building an installer) by following the steps from the automated workflow used by JMP that I linked in my previous post and the README. I have no idea how your system is configured and what steps you've followed (and omitted), but I can go through what I did with a clean tree in the hopes it may help you. If you started building a 32-bit build and are now switching to produce a 64-bit build, I'd start by cleaning the build folder.

    I already had CMake and Ninja installed via Scoop, so they were already the latest versions and were in my %PATH%. Git for Windows was installed, of course. I did have to install Qt's 5.15.2 Qt WebEngine and MSVC 2019 64-bit from Qt's installer (username and password taken from BugMeNot).

    ---

    1. I ran "x64 Native Tools Command Prompt for VS 2022"
    2. Cloned the code: git clone --single-branch --branch master https://github.com/jellyfin/jellyfin-media-player.git
    3. cd jellyfin-media-player && mkdir build && cd build
    4. I downloaded and extracted https://github.com/shinchiro/mpv-winbuil...e52f975.7z into jellyfin-media-player\build\mpv
    5. I extracted gendef.exe from https://mirror.msys2.org/mingw/mingw64/m...kg.tar.zst (WinRAR/7-Zip), placed it into jellyfin-media-player\build\mpv and ran gendef libmpv-2.dll
    6. From the jellyfin-media-player\build folder, I ran cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=output -DCMAKE_MAKE_PROGRAM=ninja.exe -DQTROOT=C:/Qt/5.15.2/msvc2019_64 -DMPV_INCLUDE_DIR=mpv/include -DMPV_LIBRARY=mpv/libmpv-2.dll -DCMAKE_INSTALL_PREFIX=output ..
    7. I ran lib /def:mpv\libmpv-2.def /out:mpv\libmpv-2.dll.lib /MACHINE:X64
    8. I finally ran ninja and got a src\JellyfinMediaPlayer.exe for my troubles
    9. Running it failed; I had to run set "PATH=C:\Qt\5.15.2\msvc2019_64\bin;%PATH%" so the Qt DLLs are found and copy mpv\libmpv-2.dll src\ for src\JellyfinMediaPlayer.exe to start

    Now, the actual loading of JMP fails - I imagine it's looking for some resource or for more (QtWebEngine) DLLs to load at runtime l that I need to copy from elsewhere (presumably the steps to create an installer bundles everything together) - but it did build for a 64-bit system, on a 64-bit machine, using the latest 64-bit libmpv dll from shinchiro:
    [Image: nJhPnEG.jpeg]
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    Messages In This Thread
    Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by raulo1985 - 2024-12-13, 12:01 AM
    RE: Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by qwerty12 - 2024-12-13, 06:51 AM
    RE: Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by raulo1985 - 2024-12-14, 02:37 PM
    RE: Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by qwerty12 - 2024-12-15, 01:07 PM
    RE: Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by raulo1985 - 2024-12-17, 11:16 PM
    RE: Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by qwerty12 - 2024-12-18, 08:46 PM
    RE: Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by raulo1985 - 2024-12-21, 12:51 AM
    RE: Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by qwerty12 - 2024-12-22, 05:42 PM
    RE: Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by raulo1985 - 2024-12-26, 08:59 PM
    RE: Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by qwerty12 - 2025-01-01, 11:55 AM
    RE: Can't build JMP from source, LNK4017 / LNK4272 warnings, then LNK1120 fatal error - by raulo1985 - 2024-12-31, 08:35 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode