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

error: variable or field ‘debug’ declared void 13 | inline void debug(spdlog::string_view_t fmt, const Args &...args) #12

Closed
ccmCCMfk opened this issue Mar 28, 2023 · 10 comments

Comments

@ccmCCMfk
Copy link

when I try to "make",it occurs.
/home/ustc/PycharmProjects/CoACD/src/logger.h:13:21: error: variable or field ‘debug’ declared void
13 | inline void debug(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:13:35: error: ‘string_view_t’ is not a member of ‘spdlog’
13 | inline void debug(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~~~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:13:54: error: expected primary-expression before ‘const’
13 | inline void debug(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:19:21: error: variable or field ‘info’ declared void
19 | inline void info(spdlog::string_view_t fmt, const Args &...args)
| ^~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:19:34: error: ‘string_view_t’ is not a member of ‘spdlog’
19 | inline void info(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~~~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:19:53: error: expected primary-expression before ‘const’
19 | inline void info(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:25:21: error: variable or field ‘warn’ declared void
25 | inline void warn(spdlog::string_view_t fmt, const Args &...args)
| ^~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:25:34: error: ‘string_view_t’ is not a member of ‘spdlog’
25 | inline void warn(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~~~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:25:53: error: expected primary-expression before ‘const’
25 | inline void warn(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:31:21: error: variable or field ‘error’ declared void
31 | inline void error(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:31:35: error: ‘string_view_t’ is not a member of ‘spdlog’
31 | inline void error(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~~~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:31:54: error: expected primary-expression before ‘const’
31 | inline void error(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:37:21: error: variable or field ‘critical’ declared void
37 | inline void critical(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:37:38: error: ‘string_view_t’ is not a member of ‘spdlog’
37 | inline void critical(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~~~~~~~~~
/home/ustc/PycharmProjects/CoACD/src/logger.h:37:57: error: expected primary-expression before ‘const’
37 | inline void critical(spdlog::string_view_t fmt, const Args &...args)
| ^~~~~
CMakeFiles/_coacd.dir/build.make:110: recipe for target 'CMakeFiles/_coacd.dir/src/clip.cpp.o' failed
make[2]: *** [CMakeFiles/_coacd.dir/src/clip.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/_coacd.dir/all' failed
make[1]: *** [CMakeFiles/_coacd.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@SarahWeiii
Copy link
Owner

SarahWeiii commented Mar 28, 2023

It seems like 'string_view_t' is missing in spdlog, what version do you use?
I am using 1.5.0-1.

@ccmCCMfk
Copy link
Author

I‘m using Version 1.11.0

@ccmCCMfk
Copy link
Author

It seems like 'string_view_t' is missing in spdlog, what version do you use? I am using 1.5.0-1.
with the following command line
$ git clone https://github.com/gabime/spdlog.git
$ cd spdlog && mkdir build && cd build
$ cmake .. && make -j
and I also tried this:conda install -c conda-forge spdlog
it didn't work

@ccmCCMfk
Copy link
Author

I replace it with spdlog1..5.0,but it still doesn't work.I don't know what's happened.

@SarahWeiii
Copy link
Owner

SarahWeiii commented Mar 28, 2023

What system do you use? Have you tried sudo apt install -y libspdlog-dev?

@ccmCCMfk
Copy link
Author

What system do you use? Have you tried sudo apt install -y libspdlog-dev?

ubuntu18.04,I have tried.it doesn't work

@Colin97
Copy link
Collaborator

Colin97 commented Mar 29, 2023

have you tried make install for spdlog?

@ccmCCMfk
Copy link
Author

I didn't,what's the difference between them

@ccmCCMfk
Copy link
Author

have you tried make install for spdlog?

(dexgraspnet) ustc@ustc-node3:~/PycharmProjects/DexGraspNet/asset_process/CoACD/build/spdlog/build$ make install
[ 80%] Built target spdlog
[100%] Built target example
[ 80%] Built target spdlog
[100%] Built target example
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/include
CMake Error at cmake_install.cmake:41 (file):
file INSTALL cannot set permissions on "/usr/local/include"

Makefile:107: recipe for target 'install' failed
make: *** [install] Error 1

@Colin97
Copy link
Collaborator

Colin97 commented Mar 29, 2023

you may need sudo make install

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

3 participants