lordgamez commented on pull request #1110:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1110#issuecomment-882657304


   > This PR causes a build issue:
   > 
   > ```
   > + nice -n 19 ninja -v -j64
   > ninja: error: 'thirdparty/opencv-install/lib64/libopencv_flann.a', needed 
by 'main/minifi', missing and no known rule to make it
   > ```
   > 
   > May or may not happen with GNU Make, I only tried building with Ninja on 
Linux (with both GCC and Clang) after my merge attempt. Will postpone merging 
until this is fixed.
   > 
   > My cmake flags:
   > 
   > ```
   > cmake -G Ninja -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ 
-DFORCE_COLORED_OUTPUT=ON -DAWS_ENABLE_UNITY_BUILD=OFF -DASAN_BUILD=OFF 
-DCMAKE_BUILD_TYPE=Debug -DFAIL_ON_WARNINGS=ON -DENABLE_PYTHON=ON 
-DENABLE_OPS=ON -DENABLE_JNI=OFF -DENABLE_OPC=ON -DENABLE_COAP=ON 
-DENABLE_GPS=ON -DENABLE_MQTT=ON -DENABLE_LIBRDKAFKA=ON -DENABLE_SENSORS=ON 
-DENABLE_USB_CAMERA=ON -DENABLE_AWS=OFF -DENABLE_SFTP=ON -DENABLE_OPENWSMAN=ON 
-DENABLE_BUSTACHE=ON -DENABLE_OPENCV=ON -DENABLE_TENSORFLOW=OFF 
-DENABLE_SQL=OFF -DENABLE_PCAP=OFF -DENABLE_NANOFI=ON -DENABLE_SYSTEMD=ON ..
   > ```
   > 
   > Same for clang, except substitute gcc with clang and g++ with clang++.
   > 
   > These are the exact scripts I use to test builds: 
https://github.com/szaszm/verify-nifi-release/tree/master/bin
   
   Thanks for all the info! There was an error in the cmake file, the wrong 
variable was passed to the build byproduct parameter. It worked fine with Make, 
but ninja fails without defining the byproducts beforehand. I fixed the issue 
in f0ab4c23ec482140065bd51a13b71eaa98900f71


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to