|
|
|
"The nature of Bitcoin is such that once version 0.1 was released, the
core design was set in stone for the rest of its lifetime." -- Satoshi
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
blackchopper
|
|
November 04, 2015, 04:58:31 AM |
|
Morning, I decided to give this a try since I'm new to the whole bitcoin / altcoin scene. This is the error I am getting when I try to compile, and I didnt see a Makefile.Release... [build] qtxlsxwriter i686-w64-mingw32.static [done] qtxlsxwriter i686-w64-mingw32.static 156204 KiB 0m57.310s [no-build] qt5 i686-w64-mingw32.static -------------------------------------------------------------------------------------------- ./compile-blk.sh: line 6: i686-w64-mingw32.static-qmake-qt5: command not found make: Makefile.Release: No such file or directory make: *** No rule to make target `Makefile.Release'. Stop.
Which step am I missing? I am compiling this using Ubuntu 14.04 LTS x86_64 Verify that your PATH env var contains the correct location for mxe export PATH=/mnt/mxe/usr/bin:$PATH
Hello. Having some fun testing our making a QT file. I'm having the same issue as the other person. What exactly do I have to correct? The "export PATH=/mnt/mxe/usr/bin:$PATH" or a line in compile-m.sh? I followed your instructions to a tee and all the files are in the same place as yours. I'm on a fresh install of Ubuntu. I get the same error as the user above. Thanks for your help! Guide is excellent.
|
|
|
|
blackchopper
|
|
November 05, 2015, 07:15:12 AM |
|
I cleared up the path issue, but now I'm getting this error when I compile blackcoin: /mnt/mxe/usr/i686-w64-mingw32.static/lib/libdb_cxx.a(os_pid.o):os_pid.c:(.text+0x25): undefined reference to `pthread_self' collect2: error: ld returned 1 exit status Makefile.Release:468: recipe for target 'release/blackcoin-qt.exe' failed make: *** [release/blackcoin-qt.exe] Error 1
|
|
|
|
lulzyou
Newbie
Offline
Activity: 1
Merit: 0
|
|
December 26, 2015, 07:25:40 AM |
|
libtool: link: /mnt/mxe/usr/bin/i686-w64-mingw32.static-gcc -O3 -o db_archive db_archive.o util_sig.o libdb-5.3.a libdb-5.3.a: error adding symbols: Archive has no index; run ranlib to add one collect2: error: ld returned 1 exit status make: *** [db_archive] Error 1 I encounter this problem. anyone know how to solve? Just add the "RANLIB=...." as shown below: #!/bin/bash MXE_PATH=/mnt/mxe sed -i "s/WinIoCtl.h/winioctl.h/g" src/dbinc/win_db.h mkdir build_mxe cd build_mxe
RANLIB=$MXE_PATH/usr/bin/i686-w64-mingw32.static-ranlib \ CC=$MXE_PATH/usr/bin/i686-w64-mingw32.static-gcc \ CXX=$MXE_PATH/usr/bin/i686-w64-mingw32.static-g++ \ ../dist/configure \ --disable-replication \ --enable-mingw \ --enable-cxx \ --host x86 \ --prefix=$MXE_PATH/usr/i686-w64-mingw32.static
make
make install
I'm having a similar issue but its this /src/leveldb/libmemenv.a: error adding symbols: Archive has no index; run ranlib to add one collect2: error: ld returned 1 exit status im assuming its another place in the compile, but im trying to add ranlib in both compiles and still no luck. an suggestions (sorry for digging up an old thread, but its the only one that makes sense, and im still downloading the amazon image hendo420 has. thank you
|
|
|
|
Rkana
Sr. Member
Offline
Activity: 281
Merit: 250
RK Coin Services - Alt Coins Dev (ETH-BTC & More)
|
|
December 26, 2015, 12:00:41 PM |
|
This is a very useful tutorial. Thank you for sharing it. Will do some learning with it.
|
I Do COIN SERVICES (WEB JsWALLET + INSIGHT EXPLORER | ELECTRUM) I Can Make You an ETH OR BTC ALTCOIN And OTHER COIN DEVELOPMENT - PM Me For More Info
|
|
|
luke9511
Newbie
Offline
Activity: 16
Merit: 0
|
|
January 08, 2016, 06:56:55 PM |
|
first i want to say very good guide and thanks for it aswell! but i am having an issue when i try to run the compile-blk.sh file i get the following error ./compile-blk.sh: line 5: blackcoin-qt.pro: command not found make: Makefile.Release: No such file or directory make: *** No rule to make target `Makefile.Release'. Stop.
i dont know what else to do i am stuck does anyone have any advice?
|
|
|
|
iGotSpots
Legendary
Offline
Activity: 2548
Merit: 1054
CPU Web Mining 🕸️ on webmining.io
|
|
January 08, 2016, 07:16:58 PM |
|
first i want to say very good guide and thanks for it aswell! but i am having an issue when i try to run the compile-blk.sh file i get the following error ./compile-blk.sh: line 5: blackcoin-qt.pro: command not found make: Makefile.Release: No such file or directory make: *** No rule to make target `Makefile.Release'. Stop.
i dont know what else to do i am stuck does anyone have any advice? Something is most likely named incorrectly. Check all spelling matches
|
|
|
|
luke9511
Newbie
Offline
Activity: 16
Merit: 0
|
|
January 08, 2016, 07:25:40 PM Last edit: January 08, 2016, 07:36:00 PM by luke9511 |
|
first i want to say very good guide and thanks for it aswell! but i am having an issue when i try to run the compile-blk.sh file i get the following error ./compile-blk.sh: line 5: blackcoin-qt.pro: command not found make: Makefile.Release: No such file or directory make: *** No rule to make target `Makefile.Release'. Stop.
i dont know what else to do i am stuck does anyone have any advice? Something is most likely named incorrectly. Check all spelling matches i have checked everything, i didnt even type any of the commands i copied and pasted them all i also checked my path environment variable to make sure it was correct and it is, i dont know what else there is EDIT new error which i think may have the same thing to do with the first ./compile-blk.sh: line 6: i686-w64-mingw32.static-qmake-qt5: command not found make: Makefile.Release: No such file or directory make: *** No rule to make target `Makefile.Release'. Stop.
|
|
|
|
bhokor
Legendary
Offline
Activity: 966
Merit: 1000
|
|
January 08, 2016, 09:05:08 PM |
|
Thank you for the share, it is pure gold, i have been trying and i have could compile three altcoins wallets without problems, i have only a question about if it is possible to have installed qt4 and qt 5 and not have problems with compilation. Have you tried it? thanks again
|
|
|
|
luke9511
Newbie
Offline
Activity: 16
Merit: 0
|
|
January 13, 2016, 06:57:47 PM |
|
i kinda got this working though there is no Makefile.Release any where, but if i delete the .Release part it compiles fine but it compiles for linux instead of windows
|
|
|
|
Nthused
Legendary
Offline
Activity: 1554
Merit: 1001
|
|
March 17, 2016, 07:24:00 AM |
|
Random question but could you do this on a VM server with exceeded specs ?
|
|
|
|
AliceWonderMiscreations
|
|
March 17, 2016, 09:31:13 AM |
|
I wish Linux tutorials would stop assuming Ubuntu and start specifying the upstream product name that is needed rather than a sudo apt-get line.
Weird that dependencies like bash and perl and sed are listed there.
Are they not standard in Ubuntu?
|
I hereby reserve the right to sometimes be wrong
|
|
|
zeitman007
Newbie
Offline
Activity: 24
Merit: 0
|
|
March 23, 2016, 04:54:35 AM |
|
Im having trouble with the command not found error. Ubuntu 14.04 64-bit ./compile-blk.sh: line 6: i686-w64-mingw32.static-qmake-qt5: command not found make: Makefile.Release: No such file or directory make: *** No rule to make target `Makefile.Release'. Stop. I have ran the export PATH=/mnt/mxe/usr/bin:$PATH command many times, that should be where mxe is since I followed the tutorial to a T. Any ideas? Thanks!
|
|
|
|
tebbo
Newbie
Offline
Activity: 4
Merit: 0
|
|
April 10, 2016, 08:21:29 PM |
|
Im having trouble with the command not found error. Ubuntu 14.04 64-bit ./compile-blk.sh: line 6: i686-w64-mingw32.static-qmake-qt5: command not found make: Makefile.Release: No such file or directory make: *** No rule to make target `Makefile.Release'. Stop. I have ran the export PATH=/mnt/mxe/usr/bin:$PATH command many times, that should be where mxe is since I followed the tutorial to a T. Any ideas? Thanks! I'm having this problem also. Has anyone solved it yet. All $PATH are correct. Thanks Tebbo
|
|
|
|
ironsniper
Member
Offline
Activity: 92
Merit: 10
|
|
July 11, 2016, 01:25:53 PM |
|
anyone know how to get past this error make: i686-w64-mingw32.static-g++: Command not found
|
|
|
|
DanyBv
Newbie
Offline
Activity: 6
Merit: 0
|
|
July 31, 2016, 01:18:51 PM |
|
first i want to say very good guide and thanks for it aswell! but i am having an issue when i try to run the compile-blk.sh file i get the following error ./compile-blk.sh: line 5: blackcoin-qt.pro: command not found make: Makefile.Release: No such file or directory make: *** No rule to make target `Makefile.Release'. Stop.
i dont know what else to do i am stuck does anyone have any advice? Same issue...
|
|
|
|
D3m0nKinGx
|
|
September 21, 2016, 04:34:43 AM |
|
I tried compiling with BDB versions 5.3.28; 6.0.35; and 6.1.29 ( http://wwupw.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html) when the compile-db.sh gets to the make command the following errors occur: Missing files: (there are multiple of these) In file included from ./db_int.h:77:0, from ../src/mutex/mut_win32.c:12: ../src/dbinc/win_db.h:21:20: fatal error: direct.h: No such file or directory compilation terminated. Makefile:2211: recipe for target 'mut_win32.o' failed make: *** [mut_win32.o] Error 1 ./libtool --mode=compile cc -c -I. -I../src -O3 ../src/mutex/mut_win32.c libtool: compile: cc -c -I. -I../src -O3 ../src/mutex/mut_win32.c -o mut_win32.o In file included from ./db_int.h:77:0, from ../src/mutex/mut_win32.c:12: ../src/dbinc/win_db.h:21:20: fatal error: direct.h: No such file or directory compilation terminated. Makefile:2211: recipe for target 'mut_win32.o' failed make: *** [mut_win32.o] Error 1
After commenting out the "missing" files in win_db.h the following error occurs: config.status: executing libtool commands ./libtool --mode=compile cc -c -I. -I../src -O3 ../src/mutex/mut_win32.c libtool: compile: cc -c -I. -I../src -O3 ../src/mutex/mut_win32.c -o mut_win32.o In file included from ./db_int.h:96:0, from ../src/mutex/mut_win32.c:12: ./db.h:3196:34: error: unknown type name 'SECURITY_ATTRIBUTES' int db_env_set_win_security __P((SECURITY_ATTRIBUTES *sa)); ^ ./db.h:40:21: note: in definition of macro '__P' #define __P(protos) protos ^ In file included from ./db_int.h:1161:0, from ../src/mutex/mut_win32.c:12: ../src/dbinc/globals.h:39:2: error: unknown type name 'SECURITY_DESCRIPTOR' SECURITY_DESCRIPTOR win_default_sec_desc; ^ ../src/dbinc/globals.h:40:2: error: unknown type name 'SECURITY_ATTRIBUTES' SECURITY_ATTRIBUTES win_default_sec_attr; ^ ../src/dbinc/globals.h:42:2: error: unknown type name 'SECURITY_ATTRIBUTES' SECURITY_ATTRIBUTES *win_sec_attr; ^ In file included from ./db_int.h:1163:0, from ../src/mutex/mut_win32.c:12: ../src/dbinc/region.h:291:2: error: unknown type name 'HANDLE' HANDLE wnt_handle; /* Win/NT HANDLE. */ ^ In file included from ../src/dbinc/mutex_int.h:12:0, from ../src/dbinc/mutex.h:15, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/atomic.h:43:9: error: unknown type name 'DWORD' typedef DWORD atomic_value_t; ^ ../src/dbinc/atomic.h:108:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'volatile' typedef LONG volatile *interlocked_val; ^ In file included from ../src/dbinc/mutex.h:15:0, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/mutex_int.h:369:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'volatile' typedef LONG volatile tsl_t; ^ ../src/dbinc/mutex_int.h:371:2: error: unknown type name 'LONG' LONG nwaiters; \ ^ ../src/dbinc/mutex_int.h:1006:2: note: in expansion of macro 'MUTEX_FIELDS' MUTEX_FIELDS /* Opaque thread mutex structures. */ ^ ../src/dbinc/mutex_int.h:1018:2: error: unknown type name 'tsl_t' tsl_t tas; ^ In file included from ./db_int.h:1170:0, from ../src/mutex/mut_win32.c:12: ../src/dbinc/os.h:129:2: error: unknown type name 'HANDLE' HANDLE handle; /* Windows/32 file handle. */ ^ ../src/dbinc/os.h:130:2: error: unknown type name 'HANDLE' HANDLE trunc_handle; /* Handle for truncate calls. */ ^ ../src/mutex/mut_win32.c:30:8: error: unknown type name '_TCHAR' static _TCHAR hex_digits[] = _T("0123456789abcdef"); ^ ../src/mutex/mut_win32.c:30:30: warning: implicit declaration of function '_T' [-Wimplicit-function-declaration] static _TCHAR hex_digits[] = _T("0123456789abcdef"); ^ ../src/mutex/mut_win32.c:30:30: error: invalid initializer ../src/mutex/mut_win32.c: In function 'get_handle': ../src/mutex/mut_win32.c:35:2: error: unknown type name 'HANDLE' HANDLE *eventp; ^ ../src/mutex/mut_win32.c:37:2: error: unknown type name '_TCHAR' _TCHAR idbuf[] = _T("db.m00000000"); ^ ../src/mutex/mut_win32.c:37:19: error: invalid initializer _TCHAR idbuf[] = _T("db.m00000000"); ^ ../src/mutex/mut_win32.c:38:2: error: unknown type name '_TCHAR' _TCHAR *p = idbuf + 12; ^ ../src/mutex/mut_win32.c:47:3: warning: implicit declaration of function 'InitializeSecurityDescriptor' [-Wimplicit-function-declaration] InitializeSecurityDescriptor(&DB_GLOBAL(win_default_sec_desc), ^ ../src/mutex/mut_win32.c:48:7: error: 'SECURITY_DESCRIPTOR_REVISION' undeclared (first use in this function) SECURITY_DESCRIPTOR_REVISION); ^ ../src/mutex/mut_win32.c:48:7: note: each undeclared identifier is reported only once for each function it appears in ../src/mutex/mut_win32.c:49:3: warning: implicit declaration of function 'SetSecurityDescriptorDacl' [-Wimplicit-function-declaration] SetSecurityDescriptorDacl(&DB_GLOBAL(win_default_sec_desc), ^ ../src/mutex/mut_win32.c:51:34: error: request for member 'nLength' in something not a structure or union DB_GLOBAL(win_default_sec_attr).nLength = ^ ../src/mutex/mut_win32.c:52:14: error: 'SECURITY_ATTRIBUTES' undeclared (first use in this function) sizeof(SECURITY_ATTRIBUTES); ^ ../src/mutex/mut_win32.c:53:34: error: request for member 'bInheritHandle' in something not a structure or union DB_GLOBAL(win_default_sec_attr).bInheritHandle = FALSE; ^ ../src/mutex/mut_win32.c:54:34: error: request for member 'lpSecurityDescriptor' in something not a structure or union DB_GLOBAL(win_default_sec_attr).lpSecurityDescriptor = ^ ../src/mutex/mut_win32.c:60:17: warning: implicit declaration of function 'CreateEvent' [-Wimplicit-function-declaration] if ((*eventp = CreateEvent(DB_GLOBAL(win_sec_attr), ^ ../src/mutex/mut_win32.c:61:28: warning: comparison between pointer and integer FALSE, FALSE, idbuf)) == NULL) { ^ ../src/mutex/mut_win32.c: In function '__db_win32_mutex_lock_int': ../src/mutex/mut_win32.c:90:2: error: unknown type name 'HANDLE' HANDLE event; ^ ../src/mutex/mut_win32.c:124:8: warning: assignment makes integer from pointer without a cast [-Wint-conversion] event = NULL; ^ In file included from ../src/dbinc/mutex_int.h:12:0, from ../src/dbinc/mutex.h:15, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/atomic.h:124:3: warning: implicit declaration of function 'InterlockedCompareExchange' [-Wimplicit-function-declaration] (InterlockedCompareExchange((interlocked_val)(&(p)->value), \ ^ ../src/dbinc/mutex_int.h:1116:2: note: in expansion of macro 'atomic_compare_exchange' atomic_compare_exchange(env, \ ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ ../src/dbinc/atomic.h:124:31: error: 'interlocked_val' undeclared (first use in this function) (InterlockedCompareExchange((interlocked_val)(&(p)->value), \ ^ ../src/dbinc/mutex_int.h:1116:2: note: in expansion of macro 'atomic_compare_exchange' atomic_compare_exchange(env, \ ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ ../src/dbinc/atomic.h:124:30: error: called object is not a function or function pointer (InterlockedCompareExchange((interlocked_val)(&(p)->value), \ ^ ../src/dbinc/mutex_int.h:1116:2: note: in expansion of macro 'atomic_compare_exchange' atomic_compare_exchange(env, \ ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ In file included from ../src/dbinc/mutex.h:15:0, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/mutex_int.h:375:27: warning: implicit declaration of function 'InterlockedExchange' [-Wimplicit-function-declaration] #define MUTEX_SET(tsl) (!InterlockedExchange((PLONG)tsl, 1)) ^ ../src/dbinc/mutex_int.h:1118:2: note: in expansion of macro 'MUTEX_SET' MUTEX_SET(&(mutexp)->tas)) ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ ../src/dbinc/mutex_int.h:375:48: error: 'PLONG' undeclared (first use in this function) #define MUTEX_SET(tsl) (!InterlockedExchange((PLONG)tsl, 1)) ^ ../src/dbinc/mutex_int.h:1118:2: note: in expansion of macro 'MUTEX_SET' MUTEX_SET(&(mutexp)->tas)) ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ ../src/dbinc/mutex_int.h:1118:12: error: invalid operands to binary & (have 'int *' and 'int') MUTEX_SET(&(mutexp)->tas)) ^ ../src/dbinc/mutex_int.h:375:54: note: in definition of macro 'MUTEX_SET' #define MUTEX_SET(tsl) (!InterlockedExchange((PLONG)tsl, 1)) ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ ../src/mutex/mut_win32.c:183:13: warning: comparison between pointer and integer if (event == NULL) ^ ../src/mutex/mut_win32.c:188:13: warning: comparison between pointer and integer if (event != NULL) { ^ ../src/mutex/mut_win32.c:189:4: warning: implicit declaration of function 'CloseHandle' [-Wimplicit-function-declaration] CloseHandle(event); ^ ../src/mutex/mut_win32.c:190:4: warning: implicit declaration of function 'InterlockedDecrement' [-Wimplicit-function-declaration] InterlockedDecrement(&mutexp->nwaiters); ^ ../src/mutex/mut_win32.c:235:12: warning: comparison between pointer and integer if (event == NULL) { ^ ../src/mutex/mut_win32.c:242:3: warning: implicit declaration of function 'InterlockedIncrement' [-Wimplicit-function-declaration] InterlockedIncrement(&mutexp->nwaiters); ^ ../src/mutex/mut_win32.c:248:13: warning: implicit declaration of function 'WaitForSingleObject' [-Wimplicit-function-declaration] if ((ret = WaitForSingleObject(event, ms)) == WAIT_FAILED) { ^ ../src/mutex/mut_win32.c:248:48: error: 'WAIT_FAILED' undeclared (first use in this function) if ((ret = WaitForSingleObject(event, ms)) == WAIT_FAILED) { ^ ../src/mutex/mut_win32.c:248:45: warning: comparison between pointer and integer if ((ret = WaitForSingleObject(event, ms)) == WAIT_FAILED) { ^ ../src/mutex/mut_win32.c:267:12: warning: comparison between pointer and integer if (event != NULL) { ^ ../src/mutex/mut_win32.c: In function '__db_win32_mutex_readlock_int': ../src/mutex/mut_win32.c:348:2: error: unknown type name 'HANDLE' HANDLE event; ^ ../src/mutex/mut_win32.c:375:8: warning: assignment makes integer from pointer without a cast [-Wint-conversion] event = NULL; ^ In file included from ../src/dbinc/mutex_int.h:12:0, from ../src/dbinc/mutex.h:15, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/atomic.h:124:31: error: 'interlocked_val' undeclared (first use in this function) (InterlockedCompareExchange((interlocked_val)(&(p)->value), \ ^ ../src/mutex/mut_win32.c:410:15: note: in expansion of macro 'atomic_compare_exchange' } else if (!atomic_compare_exchange(env, &mutexp->sharecount, ^ ../src/dbinc/atomic.h:124:30: error: called object is not a function or function pointer (InterlockedCompareExchange((interlocked_val)(&(p)->value), \ ^ ../src/mutex/mut_win32.c:410:15: note: in expansion of macro 'atomic_compare_exchange' } else if (!atomic_compare_exchange(env, &mutexp->sharecount, ^ ../src/mutex/mut_win32.c:430:13: warning: comparison between pointer and integer if (event == NULL) ^ ../src/mutex/mut_win32.c:435:13: warning: comparison between pointer and integer if (event != NULL) { ^ ../src/mutex/mut_win32.c:469:12: warning: comparison between pointer and integer if (event == NULL) { ^ ../src/mutex/mut_win32.c:480:48: error: 'WAIT_FAILED' undeclared (first use in this function) if ((ret = WaitForSingleObject(event, ms)) == WAIT_FAILED) { ^ ../src/mutex/mut_win32.c:480:45: warning: comparison between pointer and integer if ((ret = WaitForSingleObject(event, ms)) == WAIT_FAILED) { ^ ../src/mutex/mut_win32.c:502:12: warning: comparison between pointer and integer if (event != NULL) { ^ ../src/mutex/mut_win32.c: In function '__db_win32_mutex_unlock': ../src/mutex/mut_win32.c:561:2: error: unknown type name 'HANDLE' HANDLE event; ^ ../src/mutex/mut_win32.c:604:9: error: 'interlocked_val' undeclared (first use in this function) (interlocked_val)(&atomic_read( ^ ../src/mutex/mut_win32.c:604:8: error: called object is not a function or function pointer (interlocked_val)(&atomic_read( ^ ../src/mutex/mut_win32.c:614:29: error: called object is not a function or function pointer if (InterlockedDecrement((interlocked_val) ^ In file included from ../src/dbinc/mutex.h:15:0, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/mutex_int.h:376:47: error: 'PLONG' undeclared (first use in this function) #define MUTEX_UNSET(tsl) InterlockedExchange((PLONG)tsl, 0) ^ ../src/mutex/mut_win32.c:631:3: note: in expansion of macro 'MUTEX_UNSET' MUTEX_UNSET(&mutexp->tas); ^ ../src/mutex/mut_win32.c:631:15: error: invalid operands to binary & (have 'int *' and 'int') MUTEX_UNSET(&mutexp->tas); ^ ../src/dbinc/mutex_int.h:376:53: note: in definition of macro 'MUTEX_UNSET' #define MUTEX_UNSET(tsl) InterlockedExchange((PLONG)tsl, 0) ^ ../src/mutex/mut_win32.c:644:8: warning: implicit declaration of function 'PulseEvent' [-Wimplicit-function-declaration] if (!PulseEvent(event)) { ^ ../src/mutex/mut_win32.c: In function 'db_env_set_win_security': ../src/mutex/mut_win32.c:686:2: error: unknown type name 'SECURITY_ATTRIBUTES' SECURITY_ATTRIBUTES *sa; ^ Makefile:2265: recipe for target 'mut_win32.o' failed make: *** [mut_win32.o] Error 1 ./libtool --mode=compile cc -c -I. -I../src -O3 ../src/mutex/mut_win32.c libtool: compile: cc -c -I. -I../src -O3 ../src/mutex/mut_win32.c -o mut_win32.o In file included from ./db_int.h:96:0, from ../src/mutex/mut_win32.c:12: ./db.h:3196:34: error: unknown type name 'SECURITY_ATTRIBUTES' int db_env_set_win_security __P((SECURITY_ATTRIBUTES *sa)); ^ ./db.h:40:21: note: in definition of macro '__P' #define __P(protos) protos ^ In file included from ./db_int.h:1161:0, from ../src/mutex/mut_win32.c:12: ../src/dbinc/globals.h:39:2: error: unknown type name 'SECURITY_DESCRIPTOR' SECURITY_DESCRIPTOR win_default_sec_desc; ^ ../src/dbinc/globals.h:40:2: error: unknown type name 'SECURITY_ATTRIBUTES' SECURITY_ATTRIBUTES win_default_sec_attr; ^ ../src/dbinc/globals.h:42:2: error: unknown type name 'SECURITY_ATTRIBUTES' SECURITY_ATTRIBUTES *win_sec_attr; ^ In file included from ./db_int.h:1163:0, from ../src/mutex/mut_win32.c:12: ../src/dbinc/region.h:291:2: error: unknown type name 'HANDLE' HANDLE wnt_handle; /* Win/NT HANDLE. */ ^ In file included from ../src/dbinc/mutex_int.h:12:0, from ../src/dbinc/mutex.h:15, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/atomic.h:43:9: error: unknown type name 'DWORD' typedef DWORD atomic_value_t; ^ ../src/dbinc/atomic.h:108:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'volatile' typedef LONG volatile *interlocked_val; ^ In file included from ../src/dbinc/mutex.h:15:0, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/mutex_int.h:369:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'volatile' typedef LONG volatile tsl_t; ^ ../src/dbinc/mutex_int.h:371:2: error: unknown type name 'LONG' LONG nwaiters; \ ^ ../src/dbinc/mutex_int.h:1006:2: note: in expansion of macro 'MUTEX_FIELDS' MUTEX_FIELDS /* Opaque thread mutex structures. */ ^ ../src/dbinc/mutex_int.h:1018:2: error: unknown type name 'tsl_t' tsl_t tas; ^ In file included from ./db_int.h:1170:0, from ../src/mutex/mut_win32.c:12: ../src/dbinc/os.h:129:2: error: unknown type name 'HANDLE' HANDLE handle; /* Windows/32 file handle. */ ^ ../src/dbinc/os.h:130:2: error: unknown type name 'HANDLE' HANDLE trunc_handle; /* Handle for truncate calls. */ ^ ../src/mutex/mut_win32.c:30:8: error: unknown type name '_TCHAR' static _TCHAR hex_digits[] = _T("0123456789abcdef"); ^ ../src/mutex/mut_win32.c:30:30: warning: implicit declaration of function '_T' [-Wimplicit-function-declaration] static _TCHAR hex_digits[] = _T("0123456789abcdef"); ^ ../src/mutex/mut_win32.c:30:30: error: invalid initializer ../src/mutex/mut_win32.c: In function 'get_handle': ../src/mutex/mut_win32.c:35:2: error: unknown type name 'HANDLE' HANDLE *eventp; ^ ../src/mutex/mut_win32.c:37:2: error: unknown type name '_TCHAR' _TCHAR idbuf[] = _T("db.m00000000"); ^ ../src/mutex/mut_win32.c:37:19: error: invalid initializer _TCHAR idbuf[] = _T("db.m00000000"); ^ ../src/mutex/mut_win32.c:38:2: error: unknown type name '_TCHAR' _TCHAR *p = idbuf + 12; ^ ../src/mutex/mut_win32.c:47:3: warning: implicit declaration of function 'InitializeSecurityDescriptor' [-Wimplicit-function-declaration] InitializeSecurityDescriptor(&DB_GLOBAL(win_default_sec_desc), ^ ../src/mutex/mut_win32.c:48:7: error: 'SECURITY_DESCRIPTOR_REVISION' undeclared (first use in this function) SECURITY_DESCRIPTOR_REVISION); ^ ../src/mutex/mut_win32.c:48:7: note: each undeclared identifier is reported only once for each function it appears in ../src/mutex/mut_win32.c:49:3: warning: implicit declaration of function 'SetSecurityDescriptorDacl' [-Wimplicit-function-declaration] SetSecurityDescriptorDacl(&DB_GLOBAL(win_default_sec_desc), ^ ../src/mutex/mut_win32.c:51:34: error: request for member 'nLength' in something not a structure or union DB_GLOBAL(win_default_sec_attr).nLength = ^ ../src/mutex/mut_win32.c:52:14: error: 'SECURITY_ATTRIBUTES' undeclared (first use in this function) sizeof(SECURITY_ATTRIBUTES); ^ ../src/mutex/mut_win32.c:53:34: error: request for member 'bInheritHandle' in something not a structure or union DB_GLOBAL(win_default_sec_attr).bInheritHandle = FALSE; ^ ../src/mutex/mut_win32.c:54:34: error: request for member 'lpSecurityDescriptor' in something not a structure or union DB_GLOBAL(win_default_sec_attr).lpSecurityDescriptor = ^ ../src/mutex/mut_win32.c:60:17: warning: implicit declaration of function 'CreateEvent' [-Wimplicit-function-declaration] if ((*eventp = CreateEvent(DB_GLOBAL(win_sec_attr), ^ ../src/mutex/mut_win32.c:61:28: warning: comparison between pointer and integer FALSE, FALSE, idbuf)) == NULL) { ^ ../src/mutex/mut_win32.c: In function '__db_win32_mutex_lock_int': ../src/mutex/mut_win32.c:90:2: error: unknown type name 'HANDLE' HANDLE event; ^ ../src/mutex/mut_win32.c:124:8: warning: assignment makes integer from pointer without a cast [-Wint-conversion] event = NULL; ^ In file included from ../src/dbinc/mutex_int.h:12:0, from ../src/dbinc/mutex.h:15, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/atomic.h:124:3: warning: implicit declaration of function 'InterlockedCompareExchange' [-Wimplicit-function-declaration] (InterlockedCompareExchange((interlocked_val)(&(p)->value), \ ^ ../src/dbinc/mutex_int.h:1116:2: note: in expansion of macro 'atomic_compare_exchange' atomic_compare_exchange(env, \ ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ ../src/dbinc/atomic.h:124:31: error: 'interlocked_val' undeclared (first use in this function) (InterlockedCompareExchange((interlocked_val)(&(p)->value), \ ^ ../src/dbinc/mutex_int.h:1116:2: note: in expansion of macro 'atomic_compare_exchange' atomic_compare_exchange(env, \ ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ ../src/dbinc/atomic.h:124:30: error: called object is not a function or function pointer (InterlockedCompareExchange((interlocked_val)(&(p)->value), \ ^ ../src/dbinc/mutex_int.h:1116:2: note: in expansion of macro 'atomic_compare_exchange' atomic_compare_exchange(env, \ ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ In file included from ../src/dbinc/mutex.h:15:0, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/mutex_int.h:375:27: warning: implicit declaration of function 'InterlockedExchange' [-Wimplicit-function-declaration] #define MUTEX_SET(tsl) (!InterlockedExchange((PLONG)tsl, 1)) ^ ../src/dbinc/mutex_int.h:1118:2: note: in expansion of macro 'MUTEX_SET' MUTEX_SET(&(mutexp)->tas)) ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ ../src/dbinc/mutex_int.h:375:48: error: 'PLONG' undeclared (first use in this function) #define MUTEX_SET(tsl) (!InterlockedExchange((PLONG)tsl, 1)) ^ ../src/dbinc/mutex_int.h:1118:2: note: in expansion of macro 'MUTEX_SET' MUTEX_SET(&(mutexp)->tas)) ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ ../src/dbinc/mutex_int.h:1118:12: error: invalid operands to binary & (have 'int *' and 'int') MUTEX_SET(&(mutexp)->tas)) ^ ../src/dbinc/mutex_int.h:375:54: note: in definition of macro 'MUTEX_SET' #define MUTEX_SET(tsl) (!InterlockedExchange((PLONG)tsl, 1)) ^ ../src/mutex/mut_win32.c:143:34: note: in expansion of macro 'MUTEXP_ACQUIRE' if (MUTEXP_IS_BUSY(mutexp) || !MUTEXP_ACQUIRE(mutexp)) { ^ ../src/mutex/mut_win32.c:183:13: warning: comparison between pointer and integer if (event == NULL) ^ ../src/mutex/mut_win32.c:188:13: warning: comparison between pointer and integer if (event != NULL) { ^ ../src/mutex/mut_win32.c:189:4: warning: implicit declaration of function 'CloseHandle' [-Wimplicit-function-declaration] CloseHandle(event); ^ ../src/mutex/mut_win32.c:190:4: warning: implicit declaration of function 'InterlockedDecrement' [-Wimplicit-function-declaration] InterlockedDecrement(&mutexp->nwaiters); ^ ../src/mutex/mut_win32.c:235:12: warning: comparison between pointer and integer if (event == NULL) { ^ ../src/mutex/mut_win32.c:242:3: warning: implicit declaration of function 'InterlockedIncrement' [-Wimplicit-function-declaration] InterlockedIncrement(&mutexp->nwaiters); ^ ../src/mutex/mut_win32.c:248:13: warning: implicit declaration of function 'WaitForSingleObject' [-Wimplicit-function-declaration] if ((ret = WaitForSingleObject(event, ms)) == WAIT_FAILED) { ^ ../src/mutex/mut_win32.c:248:48: error: 'WAIT_FAILED' undeclared (first use in this function) if ((ret = WaitForSingleObject(event, ms)) == WAIT_FAILED) { ^ ../src/mutex/mut_win32.c:248:45: warning: comparison between pointer and integer if ((ret = WaitForSingleObject(event, ms)) == WAIT_FAILED) { ^ ../src/mutex/mut_win32.c:267:12: warning: comparison between pointer and integer if (event != NULL) { ^ ../src/mutex/mut_win32.c: In function '__db_win32_mutex_readlock_int': ../src/mutex/mut_win32.c:348:2: error: unknown type name 'HANDLE' HANDLE event; ^ ../src/mutex/mut_win32.c:375:8: warning: assignment makes integer from pointer without a cast [-Wint-conversion] event = NULL; ^ In file included from ../src/dbinc/mutex_int.h:12:0, from ../src/dbinc/mutex.h:15, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/atomic.h:124:31: error: 'interlocked_val' undeclared (first use in this function) (InterlockedCompareExchange((interlocked_val)(&(p)->value), \ ^ ../src/mutex/mut_win32.c:410:15: note: in expansion of macro 'atomic_compare_exchange' } else if (!atomic_compare_exchange(env, &mutexp->sharecount, ^ ../src/dbinc/atomic.h:124:30: error: called object is not a function or function pointer (InterlockedCompareExchange((interlocked_val)(&(p)->value), \ ^ ../src/mutex/mut_win32.c:410:15: note: in expansion of macro 'atomic_compare_exchange' } else if (!atomic_compare_exchange(env, &mutexp->sharecount, ^ ../src/mutex/mut_win32.c:430:13: warning: comparison between pointer and integer if (event == NULL) ^ ../src/mutex/mut_win32.c:435:13: warning: comparison between pointer and integer if (event != NULL) { ^ ../src/mutex/mut_win32.c:469:12: warning: comparison between pointer and integer if (event == NULL) { ^ ../src/mutex/mut_win32.c:480:48: error: 'WAIT_FAILED' undeclared (first use in this function) if ((ret = WaitForSingleObject(event, ms)) == WAIT_FAILED) { ^ ../src/mutex/mut_win32.c:480:45: warning: comparison between pointer and integer if ((ret = WaitForSingleObject(event, ms)) == WAIT_FAILED) { ^ ../src/mutex/mut_win32.c:502:12: warning: comparison between pointer and integer if (event != NULL) { ^ ../src/mutex/mut_win32.c: In function '__db_win32_mutex_unlock': ../src/mutex/mut_win32.c:561:2: error: unknown type name 'HANDLE' HANDLE event; ^ ../src/mutex/mut_win32.c:604:9: error: 'interlocked_val' undeclared (first use in this function) (interlocked_val)(&atomic_read( ^ ../src/mutex/mut_win32.c:604:8: error: called object is not a function or function pointer (interlocked_val)(&atomic_read( ^ ../src/mutex/mut_win32.c:614:29: error: called object is not a function or function pointer if (InterlockedDecrement((interlocked_val) ^ In file included from ../src/dbinc/mutex.h:15:0, from ./db_int.h:1165, from ../src/mutex/mut_win32.c:12: ../src/dbinc/mutex_int.h:376:47: error: 'PLONG' undeclared (first use in this function) #define MUTEX_UNSET(tsl) InterlockedExchange((PLONG)tsl, 0) ^ ../src/mutex/mut_win32.c:631:3: note: in expansion of macro 'MUTEX_UNSET' MUTEX_UNSET(&mutexp->tas); ^ ../src/mutex/mut_win32.c:631:15: error: invalid operands to binary & (have 'int *' and 'int') MUTEX_UNSET(&mutexp->tas); ^ ../src/dbinc/mutex_int.h:376:53: note: in definition of macro 'MUTEX_UNSET' #define MUTEX_UNSET(tsl) InterlockedExchange((PLONG)tsl, 0) ^ ../src/mutex/mut_win32.c:644:8: warning: implicit declaration of function 'PulseEvent' [-Wimplicit-function-declaration] if (!PulseEvent(event)) { ^ ../src/mutex/mut_win32.c: In function 'db_env_set_win_security': ../src/mutex/mut_win32.c:686:2: error: unknown type name 'SECURITY_ATTRIBUTES' SECURITY_ATTRIBUTES *sa; ^ Makefile:2265: recipe for target 'mut_win32.o' failed make: *** [mut_win32.o] Error 1
seems this win_db.h has a lot of missing files referenced. and if i comment out the "missing" files on the #include lines, there's another error that comes up. So any assistance with compiling the Berkeley DB would be appreciated. thanks
|
.
| .
| . ▬◇ ▬◇▬◆ ▬◇▬◇▬◆
| .
| | .
| | .
| | .
| . ◇▬ ◆▬◇▬ ◆▬◇▬◇▬
| .
| .
|
|
|
|
D3m0nKinGx
|
|
September 22, 2016, 10:46:57 AM |
|
./build/txdb-leveldb.o: file not recognized: File format not recognized collect2: error: ld returned 1 exit status Makefile.Release:629: recipe for target 'release/amsterdamcoin-qt.exe' failed make: *** [release/amsterdamcoin-qt.exe] Error 1
Assistance please.
Also I did do:
TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a CC=~/mxe/usr/bin/i686-w64-mingw32.static-gcc CXX=~/mxe/usr/bin/i686-w64-mingw32.static-g++
|
.
| .
| . ▬◇ ▬◇▬◆ ▬◇▬◇▬◆
| .
| | .
| | .
| | .
| . ◇▬ ◆▬◇▬ ◆▬◇▬◇▬
| .
| .
|
|
|
|
nemgun
|
|
October 19, 2016, 03:22:21 PM |
|
first i want to say very good guide and thanks for it aswell! but i am having an issue when i try to run the compile-blk.sh file i get the following error ./compile-blk.sh: line 5: blackcoin-qt.pro: command not found make: Makefile.Release: No such file or directory make: *** No rule to make target `Makefile.Release'. Stop.
i dont know what else to do i am stuck does anyone have any advice? Same issue... simply check path variables using root ==> sudo su (enter password ) ==> export you will get a list of variables, PATH= will be there, if there is no /mnt/mxe/usr/bin: then do under root acces ==> export PATH=/mnt/mxe/usr/bin:$PATH and then retry compile and if you ever do it for the first time i think it also works with ==> sudo export PATH=/mnt/mxe/usr/bin:$PATH but still need to test.
|
|
|
|
dzimbeck
Legendary
Offline
Activity: 2412
Merit: 1044
|
|
December 29, 2016, 01:11:54 AM |
|
This doesn't work for me, I get "i686-w64-mingw32.static-g++: internal compiler error: Segmentation fault" error 4 doesn't make any sense I'm used to building daemon, can't build qt for anything very frustrating.
|
|
|
|
|