https://bugs.kde.org/show_bug.cgi?id=423280

            Bug ID: 423280
           Summary: rust-qt-binding-generator templates fail to build with
                    mingw64
           Product: rust-qt-binding-generator
           Version: unspecified
          Platform: MS Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: j...@vandenoever.info
          Reporter: miroslav.havrl...@gmail.com
  Target Milestone: ---

SUMMARY
rust-qt-binding-generator templates fail to build with mingw64

STEPS TO REPRODUCE
1. git clone https://github.com/KDE/rust-qt-binding-generator.git
2. cd rust-qt-binding-generator/templates/qt_widgets
3. mkdir build
4. cd build
5. cmake ..
6. make

OBSERVED RESULT
$ make
[ 11%] Generating ../rust/target/release/librust.a
warning: unnecessary parentheses around type
   --> src\interface.rs:108:42
    |
108 |     let s: *const c_char = v.as_ptr() as (*const c_char);
    |                                          ^^^^^^^^^^^^^^^ help: remove
these parentheses
    |
    = note: `#[warn(unused_parens)]` on by default

    Finished release [optimized] target(s) in 0.01s
[ 22%] Built target rust_target
[ 33%] Automatic MOC and UIC for target MyExe

AutoMoc subprocess error
------------------------
The content generation command for "SRC:/build/MyExe_autogen/moc_predefs.h"
failed.

Command
-------
/mingw64/bin/CC.exe -dM -E -c
/usr/share/cmake-3.17.3/Modules/CMakeCXXCompilerABI.cpp -DQT_CORE_LIB
-DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I/mingw64/include
-I/mingw64/include/QtWidgets -I/mingw64/include/QtGui -I/mingw64/include/QtCore
-I/mingw64/share/qt5/mkspecs/win32-g++

Output
------


make[2]: *** [CMakeFiles/MyExe_autogen.dir/build.make:79:
CMakeFiles/MyExe_autogen] Error 1
make[1]: *** [CMakeFiles/Makefile2:153: CMakeFiles/MyExe_autogen.dir/all] Error
2
make: *** [Makefile:104: all] Error 2


EXPECTED RESULT
successful build


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to