Stiffstream / restinio

Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use
Other
1.16k stars 93 forks source link

fmt/time.h not found #127

Closed mouse07410 closed 4 years ago

mouse07410 commented 4 years ago

I've installed RESTinio via Macports on MacOS 10.15.7 (Xcode-12.0.1). Attempt to compile a sample from your Web site fails:

clang++ -std=gnu++2a -O3 -march=native -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -pthread -Wall -g -O2 -DSSL_LIB_INIT -I/opt/local/include -I/opt/local/include/palisade -I/opt/local/include/palisade/core -std=c++14 -o test_api2 test_api2.cpp -L/opt/local/lib -lcrypto -lrelic -lrelic_ec -lopenabe -lPALISADEabe -lPALISADEcore
In file included from test_api2.cpp:14:
In file included from /opt/local/include/restinio/all.hpp:12:
In file included from /opt/local/include/restinio/settings.hpp:18:
In file included from /opt/local/include/restinio/request_handler.hpp:16:
/opt/local/include/restinio/message_builders.hpp:15:10: fatal error: 'fmt/time.h' file not found
#include <fmt/time.h>
         ^~~~~~~~~~~~
1 error generated.
make: *** [Makefile:19: test_api2] Error 1

What are the fmt/xxx.h files? If it's a dependency, why isn't it listed in the README? Neither Clang++-10 nor G++-10 were able to locate those files.

ryandesign commented 4 years ago

This was fixed in version 0.6.0 via 32b772f43e30cbd2a0ab51ece410636a0b42687a. MacPorts needs to update to a newer version of restinio. (It currently has 0.4.8.)

eao197 commented 4 years ago

Hi, @mouse07410

No one of us uses Mac and we don't relate to the distribution of RESTinio via MacPorts. So I can't help here, please contact some of MacPorts maintainers. Or use vcpkg/conan package managers.

mouse07410 commented 4 years ago

OK, moving the complaining to Macports bug-track.