Giter Club home page Giter Club logo

Comments (4)

mlngan avatar mlngan commented on August 17, 2024

You will need link any external dependencies directly to your core submission library. The only library that NIST will link against is your core submission library (i.e. libfrvt11_xxx_xxx.so). Additionally, you will need to provide all Python dependencies in your submission package to us.

from frvt.

avinashkshirsagar avatar avinashkshirsagar commented on August 17, 2024

Could you please guide me to link the dependencies to my core submission library?

from frvt.

avinashkshirsagar avatar avinashkshirsagar commented on August 17, 2024

Looking for core implementation library in /home/akshirsagar/frvt-biocube/11/lib.[SUCCESS] Found core implementation library /home/akshirsagar/frvt-biocube/11/lib/libfrvt_11_biocube_001.so.
Attempting to compile and link /home/akshirsagar/frvt-biocube/11/lib/libfrvt_11_biocube_001.so against test harness.
Scanning dependencies of target validate11
[ 50%] Building CXX object src/testdriver/CMakeFiles/validate11.dir/home/akshirsagar/frvt-biocube/common/src/util/util.cpp.o
[100%] Building CXX object src/testdriver/CMakeFiles/validate11.dir/validate11.cpp.o
Linking CXX executable ../../../bin/validate11
../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyImport_Import' ../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyList_GetItem'
../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyUnicode_DecodeFSDefault' ../../../lib/libfrvt_11_biocube_001.so: undefined reference to PySys_SetPath'
../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyFloat_FromDouble' ../../../lib/libfrvt_11_biocube_001.so: undefined reference to Py_FinalizeEx'
../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyList_Size' ../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyObject_CallObject'
../../../lib/libfrvt_11_biocube_001.so: undefined reference to Py_Initialize' ../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyFloat_AsDouble'
../../../lib/libfrvt_11_biocube_001.so: undefined reference to Py_BuildValue' ../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyObject_GetAttrString'
../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyLong_FromLong' ../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyList_SetItem'
../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyList_New' ../../../lib/libfrvt_11_biocube_001.so: undefined reference to PyCallable_Check'
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/validate11] Error 1
make[1]: *** [src/testdriver/CMakeFiles/validate11.dir/all] Error 2
make: *** [all] Error 2
[ERROR] There were errors during compilation of your library with the validation test harness. Please investigate and re-compile.

I am getting this error, I have tried find_package(Python3 COMPONENTS Interpreter Development) from 11/CmakeLists.txt but still I am getting this error. Where shall I link the Python library to my submission library?

from frvt.

mlngan avatar mlngan commented on August 17, 2024

You can't assume that python3 will be installed on our systems, because it is not. You will need to place all of your python dependencies (e.g., libpython3.6m.so) into your ./lib folder and link against them when you build YOUR shared library. You can use rpath=$ORIGIN, but you need to link your submission library against any 3rd party libraries that are required. For example, in your CMakeLists.txt:

set (CMAKE_SHARED_LINKER_FLAGS "-Wl,-rpath,$ORIGIN")
add_library (libfrvt_11_biocube_001 SHARED yourSourceCode.cpp)
target_link_libraries(libfrvt_11_biocube_001 libpython3.6m.so thirdpartylib1.so thirdpartylib2.so thirdpartylib3.so)

from frvt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.