build of version 1.7.1 fails
hello,
I'm unable to perform Drogon installattion:
git clone https://github.com/an-tao/drogon - works cd drogon - works but git submodule update --init failed with : fatal: reference is not a tree: 4ec01750b0e8a77c1e118e99dbbe4da38df1ffbd Unable to checkout '4ec01750b0e8a77c1e118e99dbbe4da38df1ffbd' in submodule path 'trantor'
please advise. Omer.
Weird. I can run the exact commands without problem. Are you cloning into a empty directoy? Which OS are you using? And please try deleting the entire drogon directory and try again.
❯ git clone https://github.com/an-tao/drogon
Cloning into 'drogon'...
remote: Enumerating objects: 13861, done.
remote: Counting objects: 100% (1118/1118), done.
remote: Compressing objects: 100% (658/658), done.
remote: Total 13861 (delta 563), reused 805 (delta 382), pack-reused 12743
Receiving objects: 100% (13861/13861), 4.14 MiB | 2.05 MiB/s, done.
Resolving deltas: 100% (9304/9304), done.
❯ cd drogon
❯ git submodule update --init
Submodule 'trantor' (https://github.com/an-tao/trantor.git) registered for path 'trantor'
Cloning into '/tmp/drogon/trantor'...
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 5 (delta 3), reused 5 (delta 3), pack-reused 0
Unpacking objects: 100% (5/5), 531 bytes | 531.00 KiB/s, done.
From https://github.com/an-tao/trantor
* branch 4ec01750b0e8a77c1e118e99dbbe4da38df1ffbd -> FETCH_HEAD
Submodule path 'trantor': checked out '4ec01750b0e8a77c1e118e99dbbe4da38df1ffbd'
retried, failed again.
...$ git clone https://github.com/an-tao/drogon Cloning into 'drogon'... remote: Enumerating objects: 13861, done. remote: Counting objects: 100% (1118/1118), done. remote: Compressing objects: 100% (658/658), done. remote: Total 13861 (delta 563), reused 805 (delta 382), pack-reused 12743 Receiving objects: 100% (13861/13861), 4.14 MiB | 95.00 KiB/s, done. Resolving deltas: 100% (9304/9304), done. Checking connectivity... done.
...$ cd drogon/
..../drogon$ git submodule update --init Submodule 'trantor' (https://github.com/an-tao/trantor.git) registered for path 'trantor' Cloning into 'trantor'... remote: Enumerating objects: 3415, done. remote: Counting objects: 100% (235/235), done. remote: Compressing objects: 100% (134/134), done. remote: Total 3415 (delta 127), reused 168 (delta 98), pack-reused 3180 Receiving objects: 100% (3415/3415), 834.83 KiB | 166.00 KiB/s, done. Resolving deltas: 100% (2340/2340), done. Checking connectivity... done. fatal: reference is not a tree: 4ec01750b0e8a77c1e118e99dbbe4da38df1ffbd Unable to checkout '4ec01750b0e8a77c1e118e99dbbe4da38df1ffbd' in submodule path 'trantor'
running ubnut 16.04 git version 2.7.4
:-) Omer.
i also tried following trantor's installation instructions to "manually" install it under drogon/trantor. trantors build worked, but drogon's cmake failed with "You have called ADD_LIBRARY for library trantor without any source files."
:-) Omer.
Do you mean the following failed?
git clone https://github.com/an-tao/drogon
cd drogon
git clone https://github.com/an-tao/trantor
mkdir build
cd build
cmake ..
make
I've tried git clone https://github.com/an-tao/drogon cd drogon rm -r trantor git clone https://github.com/an-tao/trantor cd trantor cmake -Bbuild -H. cd build make -j cd .. mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. failed with "You have called ADD_LIBRARY for library trantor without any source files."
I've contacted Github support asking what's going on, Likely their CDN screwed up and have to wail until the cache expires.
Please try:
git clone https://github.com/an-tao/drogon
cd drogon
rm -r trantor
git clone https://github.com/an-tao/trantor
mkdir build
cd build
cmake ..
make
tried the latest suggestion , hasn't solved the problem. still getting
got : You have called ADD_LIBRARY for library drogon without any source files. This typically indicates a problem with your CMakeLists.txt file . . . You have called ADD_LIBRARY for library trantor without any source files. This typically indicates a problem with your CMakeLists.txt file . . . CMake Error: The source directory "...../drogon/cmake/tests/check_has_std_filesystem_path.cc" is a file, not a directory. Specify --help for usage, or press the help button on the CMake GUI. CMake Error: Internal CMake error, TryCompile configure of cmake failed . . . -- Configuring incomplete, errors occurred!
Omer.
try to remove your drogon clone first.
assuming you're on $HOME
sudo rm -rf drogon
then,
git clone https://github.com/drogonframework/drogon
cd drogon
git submodule update --init
mkdir build && cd build
sudo cmake ..
sudo make && sudo make install
then try
drogon_ctl -v
try to remove your drogon clone first.
assuming you're on
$HOMEsudo rm -rf drogonthen,
git clone https://github.com/drogonframework/drogon cd drogon git submodule update --init mkdir build && cd build sudo cmake .. sudo make && sudo make installthen try
drogon_ctl -v
I'm not sure with Ubuntu 16 anyway
I just tested,
Ubuntu 18.04 also unable to build with sudo cmake -DCMAKE_BUILD_TYPE=Release ..
But Debian 10 (buster) & Ubuntu 20.04 (focal) are able to build with Release type.
Surprisingly, my windows 10 are unable to use Debug type, but able to build with Release type (ninja build)
#993 Should fix the std::filesystem error on Ubuntu 18.04.