qwertycoin-org / qwertycoin

Qwertycoin is a decentralized peer-to-peer protocol for safe payments worldwide.
https://qwertycoin.org
MIT License
33 stars 29 forks source link

problems with compilation #18

Closed cryptomaxsun closed 6 years ago

cryptomaxsun commented 6 years ago
qwertycoin# make
CMake Error: The source directory "/home/qwc/QWERTY/qwertycoin-tacos" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Makefile:732: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1

How fix? Ubuntu 16.04

cryptomaxsun commented 6 years ago
export CXXFLAGS="-std=gnu++11"
cd qwertycoin
chmod +x external/rocksdb/build_tools/build_detect_platform
chmod +x external/rocksdb/build_tools/version.sh
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DSTATIC=true .. && make
 Building CXX object src/CMakeFiles/Daemon.dir/Daemon/Daemon.cpp.o
[ 76%] Linking CXX executable qwertycoind
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libpthread.a(pthread_create.o): In function `allocate_stack':
/build/glibc-Cl5G7W/glibc-2.23/nptl/allocatestack.c:475: undefined reference to `_dl_stack_flags'
/build/glibc-Cl5G7W/glibc-2.23/nptl/allocatestack.c:613: undefined reference to `_dl_stack_flags'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libpthread.a(elision-lock.o): In function `elision_init':
/build/glibc-Cl5G7W/glibc-2.23/nptl/../sysdeps/unix/sysv/linux/x86/elision-conf.c:65: undefined reference to `_dl_x86_cpu_features'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libpthread.a(nptl-init.o): In function `__pthread_initialize_minimal_internal':
/build/glibc-Cl5G7W/glibc-2.23/nptl/nptl-init.c:305: undefined reference to `__libc_setup_tls'
/build/glibc-Cl5G7W/glibc-2.23/nptl/nptl-init.c:322: undefined reference to `_dl_cpuclock_offset'
/build/glibc-Cl5G7W/glibc-2.23/nptl/nptl-init.c:457: undefined reference to `_dl_pagesize'
/build/glibc-Cl5G7W/glibc-2.23/nptl/nptl-init.c:466: undefined reference to `_dl_pagesize'
/build/glibc-Cl5G7W/glibc-2.23/nptl/nptl-init.c:486: undefined reference to `_dl_init_static_tls'
/build/glibc-Cl5G7W/glibc-2.23/nptl/nptl-init.c:488: undefined reference to `_dl_wait_lookup_done'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libpthread.a(nptl-init.o): In function `__pthread_get_minstack':
/build/glibc-Cl5G7W/glibc-2.23/nptl/nptl-init.c:509: undefined reference to `_dl_pagesize'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libpthread.a(ptw-write.o): In function `__write_nocancel':
/build/glibc-Cl5G7W/glibc-2.23/nptl/../sysdeps/unix/syscall-template.S:84: undefined reference to `__syscall_error'
/build/glibc-Cl5G7W/glibc-2.23/nptl/../sysdeps/unix/syscall-template.S:84: undefined reference to `__syscall_error'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libpthread.a(ptw-read.o): In function `__read_nocancel':
/build/glibc-Cl5G7W/glibc-2.23/nptl/../sysdeps/unix/syscall-template.S:84: undefined reference to `__syscall_error'
/build/glibc-Cl5G7W/glibc-2.23/nptl/../sysdeps/unix/syscall-template.S:84: undefined reference to `__syscall_error'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libpthread.a(ptw-close.o): In function `__close_nocancel':
/build/glibc-Cl5G7W/glibc-2.23/nptl/../sysdeps/unix/syscall-template.S:84: undefined reference to `__syscall_error'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libpthread.a(ptw-close.o):/build/glibc-Cl5G7W/glibc-2.23/nptl/../sysdeps/unix/syscall-template.S:84: more undefined references to `__syscall_error' follow
collect2: error: ld returned 1 exit status
src/CMakeFiles/Daemon.dir/build.make:144: recipe for target 'src/qwertycoind' failed
make[2]: *** [src/qwertycoind] Error 1
CMakeFiles/Makefile2:433: recipe for target 'src/CMakeFiles/Daemon.dir/all' failed
make[1]: *** [src/CMakeFiles/Daemon.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
qwertycoin-org commented 6 years ago

Hello this is maybe not our repo? Cause we dont use rocksdb.

You can run the compile with:

git clone https://github.com/qwertycoin-org/qwertycoin.git && cd qwertycoin && mkdir build && cd build && cmake .. && make && cd src && screen -S daemon ./qwertycoind --rpc-bind-ip 127.0.0.1 --rpc-bind-port 8197

If this not work please use the easy_installer.sh here: https://github.com/qwertycoin-org/qwertycoin/blob/master/easy_installer.sh

cryptomaxsun commented 6 years ago

Thank you! Happened.