saprykin / plibsys

Highly portable C system library: threads and synchronization primitives, sockets (TCP, UDP, SCTP), IPv4 and IPv6, IPC, hash functions (MD5, SHA-1, SHA-2, SHA-3, GOST), binary trees (RB, AVL) and more. Native code performance.
MIT License
672 stars 74 forks source link

Unable to build #80

Closed Milinai closed 4 years ago

Milinai commented 5 years ago

I followed the build instructions. After running

mkdir ./plibsys-build
cd ./plibsys-build
cmake -DCMAKE_BUILD_TYPE=Release ../plibsys

All seemed to work fine. However, make was not a command. ctest failed:

Test not available without configuration.  (Missing "-C <config>"?)
 1/28 Test  #1: patomic_test .....................***Not Run   0.00 sec
      Start  2: pcondvariable_test
Test not available without configuration.  (Missing "-C <config>"?)
 2/28 Test  #2: pcondvariable_test ...............***Not Run   0.00 sec
      Start  3: pcryptohash_test
Test not available without configuration.  (Missing "-C <config>"?)
 3/28 Test  #3: pcryptohash_test .................***Not Run   0.00 sec
      Start  4: perror_test
Test not available without configuration.  (Missing "-C <config>"?)
 4/28 Test  #4: perror_test ......................***Not Run   0.00 sec
      Start  5: pdir_test
Test not available without configuration.  (Missing "-C <config>"?)
 5/28 Test  #5: pdir_test ........................***Not Run   0.00 sec
      Start  6: pfile_test
Test not available without configuration.  (Missing "-C <config>"?)
 6/28 Test  #6: pfile_test .......................***Not Run   0.00 sec
      Start  7: phashtable_test
Test not available without configuration.  (Missing "-C <config>"?)
 7/28 Test  #7: phashtable_test ..................***Not Run   0.00 sec
      Start  8: pinifile_test
Test not available without configuration.  (Missing "-C <config>"?)
 8/28 Test  #8: pinifile_test ....................***Not Run   0.00 sec
      Start  9: plibraryloader_test
Test not available without configuration.  (Missing "-C <config>"?)
 9/28 Test  #9: plibraryloader_test ..............***Not Run   0.00 sec
      Start 10: plist_test
Test not available without configuration.  (Missing "-C <config>"?)
10/28 Test #10: plist_test .......................***Not Run   0.00 sec
      Start 11: pmacros_test
Test not available without configuration.  (Missing "-C <config>"?)
11/28 Test #11: pmacros_test .....................***Not Run   0.00 sec
      Start 12: pmain_test
Test not available without configuration.  (Missing "-C <config>"?)
12/28 Test #12: pmain_test .......................***Not Run   0.00 sec
      Start 13: pmem_test
Test not available without configuration.  (Missing "-C <config>"?)
13/28 Test #13: pmem_test ........................***Not Run   0.00 sec
      Start 14: pmutex_test
Test not available without configuration.  (Missing "-C <config>"?)
14/28 Test #14: pmutex_test ......................***Not Run   0.00 sec
      Start 15: pprocess_test
Test not available without configuration.  (Missing "-C <config>"?)
15/28 Test #15: pprocess_test ....................***Not Run   0.00 sec
      Start 16: prwlock_test
Test not available without configuration.  (Missing "-C <config>"?)
16/28 Test #16: prwlock_test .....................***Not Run   0.00 sec
      Start 17: psemaphore_test
Test not available without configuration.  (Missing "-C <config>"?)
17/28 Test #17: psemaphore_test ..................***Not Run   0.00 sec
      Start 18: pshmbuffer_test
Test not available without configuration.  (Missing "-C <config>"?)
18/28 Test #18: pshmbuffer_test ..................***Not Run   0.00 sec
      Start 19: pshm_test
Test not available without configuration.  (Missing "-C <config>"?)
19/28 Test #19: pshm_test ........................***Not Run   0.00 sec
      Start 20: psocket_test
Test not available without configuration.  (Missing "-C <config>"?)
20/28 Test #20: psocket_test .....................***Not Run   0.00 sec
      Start 21: psocketaddress_test
Test not available without configuration.  (Missing "-C <config>"?)
21/28 Test #21: psocketaddress_test ..............***Not Run   0.00 sec
      Start 22: pspinlock_test
Test not available without configuration.  (Missing "-C <config>"?)
22/28 Test #22: pspinlock_test ...................***Not Run   0.00 sec
      Start 23: pstdarg_test
Test not available without configuration.  (Missing "-C <config>"?)
23/28 Test #23: pstdarg_test .....................***Not Run   0.00 sec
      Start 24: pstring_test
Test not available without configuration.  (Missing "-C <config>"?)
24/28 Test #24: pstring_test .....................***Not Run   0.00 sec
      Start 25: ptimeprofiler_test
Test not available without configuration.  (Missing "-C <config>"?)
25/28 Test #25: ptimeprofiler_test ...............***Not Run   0.00 sec
      Start 26: ptree_test
Test not available without configuration.  (Missing "-C <config>"?)
26/28 Test #26: ptree_test .......................***Not Run   0.00 sec
      Start 27: ptypes_test
Test not available without configuration.  (Missing "-C <config>"?)
27/28 Test #27: ptypes_test ......................***Not Run   0.00 sec
      Start 28: puthread_test
Test not available without configuration.  (Missing "-C <config>"?)
28/28 Test #28: puthread_test ....................***Not Run   0.00 sec

0% tests passed, 28 tests failed out of 28

Total Test time (real) =   2.25 sec

The following tests FAILED:
          1 - patomic_test (Not Run)
          2 - pcondvariable_test (Not Run)
          3 - pcryptohash_test (Not Run)
          4 - perror_test (Not Run)
          5 - pdir_test (Not Run)
          6 - pfile_test (Not Run)
          7 - phashtable_test (Not Run)
          8 - pinifile_test (Not Run)
          9 - plibraryloader_test (Not Run)
         10 - plist_test (Not Run)
         11 - pmacros_test (Not Run)
         12 - pmain_test (Not Run)
         13 - pmem_test (Not Run)
         14 - pmutex_test (Not Run)
         15 - pprocess_test (Not Run)
         16 - prwlock_test (Not Run)
         17 - psemaphore_test (Not Run)
         18 - pshmbuffer_test (Not Run)
         19 - pshm_test (Not Run)
         20 - psocket_test (Not Run)
         21 - psocketaddress_test (Not Run)
         22 - pspinlock_test (Not Run)
         23 - pstdarg_test (Not Run)
         24 - pstring_test (Not Run)
         25 - ptimeprofiler_test (Not Run)
         26 - ptree_test (Not Run)
         27 - ptypes_test (Not Run)
         28 - puthread_test (Not Run)
Errors while running CTest

Maybe it's not a problem with the code itself or something, but I would expect the building to work. Am I doing something wrong?

saprykin commented 5 years ago

Did you run it from the build folder?

Milinai commented 5 years ago

If ./plibsys-build is the build folder, then yes.

saprykin commented 4 years ago

Did you finally manage to figure out the problem?

saprykin commented 4 years ago

Closing as no feedback