You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/17 18:10:53 UTC

[GitHub] [arrow] braquino opened a new issue, #14439: A lot of difficulties linking arrow 9.0.0 C++ to a QT cmake project

braquino opened a new issue, #14439:
URL: https://github.com/apache/arrow/issues/14439

   This project seems realy interesting.
   I'm a data engeneer, trying to lear C++, so I think it can be just a noob issue.
   
   It's a little frustrating how hard is this project to install. Even more complex projects as Google Cloud Clients, OpenSSL, QT, GLFW are easier to use.
   
   I was almost giving up, but I thought a so nice project as this one deserved more effort.
   
   Tried this guide to link using cmake on QT. But QT uses ninja, and maybe this can be the problem
   
   following https://arrow.apache.org/install/ (Debian GNU/Linux and Ubuntu)
   on cmake:
   ```cmake
   find_package(Arrow CONFIG REQUIRED)
   ...
   target_link_libraries(my_project arrow_shared)
   
   ```
   errors compiling:
   ```error
   19:35:56: Starting: "/home/braquino/Qt/Tools/CMake/bin/cmake" --build /home/braquino/repos/build-JstrParquetAnalytics-Desktop_Qt_6_4_0_GCC_64bit-Debug --target all
   [0/2 ?/sec] Re-checking globbed directories...
   [1/5 82.9/sec] Automatic MOC and UIC for target JstrParquetAnalytics
   [2/5 0.4/sec] Building CXX object CMakeFiles/JstrParquetAnalytics.dir/JstrParquetAnalytics_autogen/mocs_compilation.cpp.o
   FAILED: CMakeFiles/JstrParquetAnalytics.dir/JstrParquetAnalytics_autogen/mocs_compilation.cpp.o 
   /usr/bin/g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -I/home/braquino/repos/build-JstrParquetAnalytics-Desktop_Qt_6_4_0_GCC_64bit-Debug -I/home/braquino/repos/JstrParquetAnalytics -I/home/braquino/repos/build-JstrParquetAnalytics-Desktop_Qt_6_4_0_GCC_64bit-Debug/JstrParquetAnalytics_autogen/include -I/home/braquino/vcpkg/installed/x64-linux/include -isystem /home/braquino/Qt/6.4.0/gcc_64/include/QtCore -isystem /home/braquino/Qt/6.4.0/gcc_64/include -isystem /home/braquino/Qt/6.4.0/gcc_64/mkspecs/linux-g++ -isystem /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets -isystem /home/braquino/Qt/6.4.0/gcc_64/include/QtGui -DQT_QML_DEBUG -g -fPIC -std=gnu++17 -MD -MT CMakeFiles/JstrParquetAnalytics.dir/JstrParquetAnalytics_autogen/mocs_compilation.cpp.o -MF CMakeFiles/JstrParquetAnalytics.dir/JstrParquetAnalytics_autogen/mocs_compilation.cpp.o.d -o CMakeFiles/JstrParquetAnalytics.dir/JstrParquetAnalytics_autogen/mocs_compilation.cpp.o -c /home/braquino/repos/build-JstrParquetAnalytic
 s-Desktop_Qt_6_4_0_GCC_64bit-Debug/JstrParquetAnalytics_autogen/mocs_compilation.cpp
   In file included from /home/braquino/Qt/6.4.0/gcc_64/include/QtCore/qnamespace.h:9,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtCore/qobjectdefs.h:12,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtGui/qwindowdefs.h:8,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets/qwidget.h:8,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets/qmainwindow.h:8,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets/QMainWindow:1,
                    from /home/braquino/repos/build-JstrParquetAnalytics-Desktop_Qt_6_4_0_GCC_64bit-Debug/JstrParquetAnalytics_autogen/EWIEGA46WW/../../../JstrParquetAnalytics/mainwindow.h:4,
                    from /home/braquino/repos/build-JstrParquetAnalytics-Desktop_Qt_6_4_0_GCC_64bit-Debug/JstrParquetAnalytics_autogen/EWIEGA46WW/moc_mainwindow.cpp:10,
                    from /home/braquino/repos/build-JstrParquetAnalytics-Desktop_Qt_6_4_0_GCC_64bit-Debug/JstrParquetAnalytics_autogen/mocs_compilation.cpp:2:
   /home/braquino/vcpkg/installed/x64-linux/include/arrow/util/cancel.h:96:64: error: expected ‘,’ or ‘...’ before ‘public’
      96 | Status RegisterCancellingSignalHandler(const std::vector<int>& signals);
         |                                                                ^~~~~~~
   [3/5 0.6/sec] Building CXX object CMakeFiles/JstrParquetAnalytics.dir/main.cpp.o
   FAILED: CMakeFiles/JstrParquetAnalytics.dir/main.cpp.o 
   /usr/bin/g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -I/home/braquino/repos/build-JstrParquetAnalytics-Desktop_Qt_6_4_0_GCC_64bit-Debug -I/home/braquino/repos/JstrParquetAnalytics -I/home/braquino/repos/build-JstrParquetAnalytics-Desktop_Qt_6_4_0_GCC_64bit-Debug/JstrParquetAnalytics_autogen/include -I/home/braquino/vcpkg/installed/x64-linux/include -isystem /home/braquino/Qt/6.4.0/gcc_64/include/QtCore -isystem /home/braquino/Qt/6.4.0/gcc_64/include -isystem /home/braquino/Qt/6.4.0/gcc_64/mkspecs/linux-g++ -isystem /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets -isystem /home/braquino/Qt/6.4.0/gcc_64/include/QtGui -DQT_QML_DEBUG -g -fPIC -std=gnu++17 -MD -MT CMakeFiles/JstrParquetAnalytics.dir/main.cpp.o -MF CMakeFiles/JstrParquetAnalytics.dir/main.cpp.o.d -o CMakeFiles/JstrParquetAnalytics.dir/main.cpp.o -c /home/braquino/repos/JstrParquetAnalytics/main.cpp
   In file included from /home/braquino/Qt/6.4.0/gcc_64/include/QtCore/qnamespace.h:9,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtCore/qobjectdefs.h:12,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtGui/qwindowdefs.h:8,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets/qwidget.h:8,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets/qmainwindow.h:8,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets/QMainWindow:1,
                    from /home/braquino/repos/JstrParquetAnalytics/mainwindow.h:4,
                    from /home/braquino/repos/JstrParquetAnalytics/main.cpp:1:
   /home/braquino/vcpkg/installed/x64-linux/include/arrow/util/cancel.h:96:64: error: expected ‘,’ or ‘...’ before ‘public’
      96 | Status RegisterCancellingSignalHandler(const std::vector<int>& signals);
         |                                                                ^~~~~~~
   [4/5 0.7/sec] Building CXX object CMakeFiles/JstrParquetAnalytics.dir/mainwindow.cpp.o
   FAILED: CMakeFiles/JstrParquetAnalytics.dir/mainwindow.cpp.o 
   /usr/bin/g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -I/home/braquino/repos/build-JstrParquetAnalytics-Desktop_Qt_6_4_0_GCC_64bit-Debug -I/home/braquino/repos/JstrParquetAnalytics -I/home/braquino/repos/build-JstrParquetAnalytics-Desktop_Qt_6_4_0_GCC_64bit-Debug/JstrParquetAnalytics_autogen/include -I/home/braquino/vcpkg/installed/x64-linux/include -isystem /home/braquino/Qt/6.4.0/gcc_64/include/QtCore -isystem /home/braquino/Qt/6.4.0/gcc_64/include -isystem /home/braquino/Qt/6.4.0/gcc_64/mkspecs/linux-g++ -isystem /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets -isystem /home/braquino/Qt/6.4.0/gcc_64/include/QtGui -DQT_QML_DEBUG -g -fPIC -std=gnu++17 -MD -MT CMakeFiles/JstrParquetAnalytics.dir/mainwindow.cpp.o -MF CMakeFiles/JstrParquetAnalytics.dir/mainwindow.cpp.o.d -o CMakeFiles/JstrParquetAnalytics.dir/mainwindow.cpp.o -c /home/braquino/repos/JstrParquetAnalytics/mainwindow.cpp
   In file included from /home/braquino/Qt/6.4.0/gcc_64/include/QtCore/qnamespace.h:9,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtCore/qobjectdefs.h:12,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtGui/qwindowdefs.h:8,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets/qwidget.h:8,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets/qmainwindow.h:8,
                    from /home/braquino/Qt/6.4.0/gcc_64/include/QtWidgets/QMainWindow:1,
                    from /home/braquino/repos/JstrParquetAnalytics/mainwindow.h:4,
                    from /home/braquino/repos/JstrParquetAnalytics/mainwindow.cpp:1:
   /home/braquino/vcpkg/installed/x64-linux/include/arrow/util/cancel.h:96:64: error: expected ‘,’ or ‘...’ before ‘public’
      96 | Status RegisterCancellingSignalHandler(const std::vector<int>& signals);
         |                                                                ^~~~~~~
   ninja: build stopped: subcommand failed.
   19:36:01: The process "/home/braquino/Qt/Tools/CMake/bin/cmake" exited with code 1.
   Error while building/deploying project JstrParquetAnalytics (kit: Desktop Qt 6.4.0 GCC 64bit)
   When executing step "Build"
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] braquino commented on issue #14439: A lot of difficulties linking arrow 9.0.0 C++ to a QT cmake project

Posted by GitBox <gi...@apache.org>.
braquino commented on issue #14439:
URL: https://github.com/apache/arrow/issues/14439#issuecomment-1281631457

   Thank you for the tip Kou. Disativating all signals macro it worked smoth.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] braquino closed issue #14439: A lot of difficulties linking arrow 9.0.0 C++ to a QT cmake project

Posted by GitBox <gi...@apache.org>.
braquino closed issue #14439: A lot of difficulties linking arrow 9.0.0 C++ to a QT cmake project
URL: https://github.com/apache/arrow/issues/14439


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] kou commented on issue #14439: A lot of difficulties linking arrow 9.0.0 C++ to a QT cmake project

Posted by GitBox <gi...@apache.org>.
kou commented on issue #14439:
URL: https://github.com/apache/arrow/issues/14439#issuecomment-1281489841

   Do you have `signals` macro?
   
   ```text
   /home/braquino/vcpkg/installed/x64-linux/include/arrow/util/cancel.h:96:64: error: expected ‘,’ or ‘...’ before ‘public’
      96 | Status RegisterCancellingSignalHandler(const std::vector<int>& signals);
         |                                                                ^~~~~~~
   ```
   
   BTW, you're using Apache Arrow C++ installed by vcpkg not  " https://arrow.apache.org/install/ (Debian GNU/Linux and Ubuntu)". Is it intentional?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org