I still continue to shoot in the dark to figure this SWIG issue. I decided to run the 'make test' step as well (after 'sudo make install') step and as expected it fails as well. Looking deeper a bit (using 'ctest -V' under 'build' directory), I see one of the symbols being undefined (see below for the log). In the *_impl.cc function of the TargetDetector_cf block, I call an external cpp function named "TargetDetector" which is defined in a separate source file "TargetDetector.cpp" residing in the lib/* directory. I have made sure that I am including all relevant cpp pointers in the lib/CMakeLists.txt file as below. The 'rtNaN' symbol (from ctest error log below) is defined in rtGetNaN.cpp file which is included as well. I have no idea why this is not seen. I suspect that nothing about the custom block TargetDetect_cf (and its class derivates, etc.) are seen in GRC's python environment. For some reason, PYTHON/CPP are not happy in the GRC environment.
I would appreciate any pointers to figure this out. Thanks, Vipin ######################################################################## # Setup library ######################################################################## include(GrPlatform) #define LIB_SUFFIX include_directories(${Boost_INCLUDE_DIR}) link_directories(${Boost_LIBRARY_DIRS}) list(APPEND a1System_sources rtGetInf.cpp rtGetNaN.cpp TargetDetector_emxAPI.cpp TargetDetector_emxutil.cpp TargetDetector.cpp TargetDetector_cf_impl.cc ) vipin@pp001:~/a1/grcnew/gr-a1System/build$ ctest -V UpdateCTestConfiguration from :/home/vipin/a1/grcnew/gr-a1System/build/DartConfiguration.tcl UpdateCTestConfiguration from :/home/vipin/a1/grcnew/gr-a1System/build/DartConfiguration.tcl Test project /home/vipin/a1/grcnew/gr-a1System/build Constructing a list of tests Done constructing a list of tests Checking test dependency graph... Checking test dependency graph end test 1 Start 1: test_a1System 1: Test command: /bin/sh "/home/vipin/a1/grcnew/gr-a1System/build/lib/test_a1System_test.sh" 1: Test timeout computed to be: 9.99988e+06 1: . 1: 1/2 Test #1: test_a1System .................... Passed 0.00 sec test 2 Start 2: qa_TargetDetector_cf 2: Test command: /bin/sh "/home/vipin/a1/grcnew/gr-a1System/build/python/qa_TargetDetector_cf_test.sh" 2: Test timeout computed to be: 9.99988e+06 2: Traceback (most recent call last): 2: File "/home/vipin/a1/grcnew/gr-a1System/python/qa_TargetDetector_cf.py", line 24, in <module> 2: import a1System_swig as a1System 2: File "/home/vipin/a1/grcnew/gr-a1System/build/swig/a1System_swig.py", line 28, in <module> 2: _a1System_swig = swig_import_helper() 2: File "/home/vipin/a1/grcnew/gr-a1System/build/swig/a1System_swig.py", line 24, in swig_import_helper *2: _mod = imp.load_module('_a1System_swig', fp, pathname, description)* *2: ImportError: /home/vipin/a1/grcnew/gr-a1System/build/lib/libgnuradio-a1System-1.0.0git.so.0.0.0: undefined symbol: rtNaN* *2/2 Test #2: qa_TargetDetector_cf .............***Failed 0.14 sec* 50% tests passed, 1 tests failed out of 2 Total Test time (real) = 0.14 sec The following tests FAILED: 2 - qa_TargetDetector_cf (Failed) Errors while running CTest
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio