Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to solve #116

Open
296933604 opened this issue May 1, 2024 · 0 comments
Open

how to solve #116

296933604 opened this issue May 1, 2024 · 0 comments

Comments

@296933604
Copy link

I encountered a problem at the ./ns3 ai step, but I don't understand the reason. How can I solve it? Thank you

[0/2] Re-checking globbed directories...
[1/3] Building CXX object contrib/ai/m...3ai_gym_msg_py.dir/msg_py_binding.cc.o
FAILED: contrib/ai/model/gym-interface/py/CMakeFiles/ns3ai_gym_msg_py.dir/msg_py_binding.cc.o
/usr/bin/ccache /usr/bin/c++ -DEIGEN_MPL2_ONLY -DHAVE_EIGEN3 -DHAVE_GSL -DHAVE_LIBXML2 -DHAVE_SQLITE3 -DHAVE_STDINT_H -DNS3_ASSERT_ENABLE -DNS3_BUILD_PROFILE_DEBUG -DNS3_LOG_ENABLE -DPROJECT_SOURCE_PATH="/home/miao/tarballs/ns-allinone-3.41/ns-3.41" -D__LINUX__ -Dns3ai_gym_msg_py_EXPORTS -I../build/include -I/usr -I/usr/include/eigen3 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gtk-3.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/python3.8 -I/home/miao/anaconda3/envs/ns3ai_env/include/python3.8 -O2 -g -DNDEBUG -fPIC -fvisibility=hidden -fno-semantic-interposition -fdiagnostics-color=always -Wall -flto -fno-fat-lto-objects -std=c++2a -MD -MT contrib/ai/model/gym-interface/py/CMakeFiles/ns3ai_gym_msg_py.dir/msg_py_binding.cc.o -MF contrib/ai/model/gym-interface/py/CMakeFiles/ns3ai_gym_msg_py.dir/msg_py_binding.cc.o.d -o contrib/ai/model/gym-interface/py/CMakeFiles/ns3ai_gym_msg_py.dir/msg_py_binding.cc.o -c ../contrib/ai/model/gym-interface/py/msg_py_binding.cc
../contrib/ai/model/gym-interface/py/msg_py_binding.cc: In lambda function:
../contrib/ai/model/gym-interface/py/msg_py_binding.cc:36:41: error: ‘from_memory’ is not a member of ‘pybind11::memoryview’
36 | return py::memoryview::from_memory((void*)msg.buffer, msg.size);
| ^~~~~~~~~~~
../contrib/ai/model/gym-interface/py/msg_py_binding.cc: In lambda function:
../contrib/ai/model/gym-interface/py/msg_py_binding.cc:40:36: error: ‘from_memory’ is not a member of ‘pybind11::memoryview’
40 | return py::memoryview::from_memory((void*)msg.buffer, MSG_BUFFER_SIZE);
| ^~~~~~~~~~~
ninja: build stopped: subcommand failed.
Finished executing the following commands:
/usr/bin/cmake --build /home/miao/tarballs/ns-allinone-3.41/ns-3.41/cmake-cache -j 7 --target libai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant