CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

undefined reference to `caffe2::Workspace::RunNet(std::__cxx11::basic_str ing<char, st

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2021, 22:26
Default undefined reference to `caffe2::Workspace::RunNet(std::__cxx11::basic_str ing<char, st
  #1
New Member
 
Join Date: May 2020
Posts: 8
Rep Power: 6
3014214149 is on a distinguished road
When I compiling a solver. I met an eroor"undefined reference to `caffe2::Workspace::RunNet(std::__cxx11::basic_str ing<char, std::char_traits<char>, std::allocator<char> > const&)'"

It seems that I fail builidng a link between caffe2 and openfoam.

Here's my option file.

Code:
EXE_INC = \
    -I/home/cbq/anaconda3/envs/mytorch/lib/python3.6/site-packages/torch/lib \
    -I/home/cbq/anaconda3/envs/mytorch/lib \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I$(LIB_SRC)/sampling/lnInclude \
    -I/home/cbq/run/test/TurbulenceModels/testincompressible/lnInclude \
    -I/home/cbq/run/test/transportModels \
    -I/home/cbq/run/test/transportModels/testincompressible/testsinglePhaseTransportModel \
    -I/home/cbq/run/test/TurbulenceModels/turbulenceModels/reynoldsNet/lnInclude \
    -I/home/cbq/run/test/TurbulenceModels/turbulenceModels/lnInclude \
    -I/home/cbq/run/test/TurbulenceModels/testincompressible/lnInclude \



EXE_LIBS = \
    -lprotobuf -lglog -lgflags -lpthread \
    -L/home/cbq/OpenFOAM/cbq-4.1/platforms/linux64GccDPInt32Opt/lib \
    -L/home/cbq/anaconda3/envs/mytorch/lib/python3.6/site-packages/torch/lib \
    -lc10 \
    -lreynoldsnet \
    -ltestturbulenceModels \
    -ltestincompressibleTurbulenceModels \
    -ltestincompressibleTransportModels \
    -lfiniteVolume \
    -lmeshTools \
    -lfvOptions \
    -lsampling \
Could anyone help me?
3014214149 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Libraries to OpenFOAM MCrossover97 OpenFOAM Programming & Development 10 February 23, 2024 03:34
can not complie fluentDataToFoam in OF2.1.1 hewei OpenFOAM Pre-Processing 20 September 8, 2018 10:19
LiencubiclowRemodel nzy102 OpenFOAM Bugs 14 January 10, 2012 09:53
compile error about FJMPI chiven OpenFOAM Installation 11 March 31, 2010 07:27
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 04:22.