The way to build Kdenlive for Windows is doing it by craft (script).

Follow point 1 and 2 from here "using craft":
https://community.kde.org/Kdenlive/Development/WindowsBuild#Compiling_on_Windows_using_Craft_.28Recommended_method.29
<https://community.kde.org/Kdenlive/Development/WindowsBuild#Compiling_on_Windows_using_Craft_.28Recommended_method.29>



Setup craft, follow the step here:

https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows
<https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows>
"Installing Craft"

Important: choose MinGW as compiler and not MSVC!

Build and compile Kdenlive (with craft):

Follow the last 3 points from here "using craft":
https://community.kde.org/Kdenlive/Development/WindowsBuild#Compiling_on_Windows_using_Craft_.28Recommended_method.29
<https://community.kde.org/Kdenlive/Development/WindowsBuild#Compiling_on_Windows_using_Craft_.28Recommended_method.29>



Eugen

Am 24.11.2020 um 04:02 schrieb ahiijny:
Hi, I hope this is the right place to ask about this.

I wanted to try compiling the Kdenlive project, so I followed the
instructions here:
https://community.kde.org/Kdenlive/Development/WindowsBuild#Compiling_on_Windows_using_Craft_.28Recommended_method.29
<https://community.kde.org/Kdenlive/Development/WindowsBuild#Compiling_on_Windows_using_Craft_.28Recommended_method.29>


It seemed to go well for the most part, but then I got this
compilation error:

    
C:/CraftRoot/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/as.exe:
    src/CMakeFiles/kdenliveLib.dir/timeline2/model/timelinemodel.cpp.obj:
    too many sections (41199)
    C:\Users\Username\AppData\Local\Temp\cc2ohnjx.s: Assembler messages:
    C:\Users\Username\AppData\Local\Temp\cc2ohnjx.s: Fatal error:
    can't write 181 bytes to section .text of
    src/CMakeFiles/kdenliveLib.dir/timeline2/model/timelinemodel.cpp.obj:
    'File too big'
    
C:/CraftRoot/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/as.exe:
    src/CMakeFiles/kdenliveLib.dir/timeline2/model/timelinemodel.cpp.obj:
    too many sections (41199)
    C:\Users\Username\AppData\Local\Temp\cc2ohnjx.s: Fatal error:
    can't close
    src/CMakeFiles/kdenliveLib.dir/timeline2/model/timelinemodel.cpp.obj:
    File too big


I googled the error and I found a discussion thread that suggested
adding the "Wa,-mbig-obj" option in the CXX_FLAGS:
https://github.com/include-what-you-use/include-what-you-use/issues/256
<https://github.com/include-what-you-use/include-what-you-use/issues/256>

So, I wanted to try doing this, but I'm unfamiliar with the build
system (Cmake? Ninja? Makefiles?) so I'm not actually sure where I
should insert it so that it actually gets used in the build system 😅

Could anyone help me out with this?

Thanks,
Ahiijny

Reply via email to