Pages:
Author

Topic: [HOWTO] compile altcoin for windows on linux using mxe and mingw - page 13. (Read 49127 times)

legendary
Activity: 2412
Merit: 1044
it's saying your missing the file:

boost/mpl/list/aux_/preprocessed/plain/list10.hpp

from your terminal run:

$ locate list10.hpp

then copy it from where it's found to that directory, and try to compile again

Nope, I just don't think boost is installing properly. Its giving me a bunch of weird errors now. Is there a way to install boost and mxe that actually works?

download and compile boost yourself, then install it in the mxe directory

https://sourceforge.net/projects/boost/files/boost/

run from boost directory:
Code:
./bootstrap.sh --with-toolset=gcc	                
./b2 --clean-all                
echo "using mpi ;" >> project-config.jam
./b2 --prefix= --toolset=gcc link=static install 

Okay thanks! Also I should mention the segmentation fault with the VM featured in this thread was due to an issue with my RAM on windows 7 running a virtual machine. So that laptop can compile the daemon but not the QT... kind of weird but *oh well*. There wasn't much help on Google about this however it became apparent when I ran the VM on my other laptop although it still compiles a bit clunky and freezes periodically. If it doesn't finish compiling will let you know about to sleep.

Thanks again.
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
it's saying your missing the file:

boost/mpl/list/aux_/preprocessed/plain/list10.hpp

from your terminal run:

$ locate list10.hpp

then copy it from where it's found to that directory, and try to compile again

Nope, I just don't think boost is installing properly. Its giving me a bunch of weird errors now. Is there a way to install boost and mxe that actually works?

download and compile boost yourself, then install it in the mxe directory

https://sourceforge.net/projects/boost/files/boost/

run from boost directory:
Code:
./bootstrap.sh --with-toolset=gcc	                
./b2 --clean-all                
echo "using mpi ;" >> project-config.jam
./b2 --prefix= --toolset=gcc link=static install 
legendary
Activity: 2412
Merit: 1044
it's saying your missing the file:

boost/mpl/list/aux_/preprocessed/plain/list10.hpp

from your terminal run:

$ locate list10.hpp

then copy it from where it's found to that directory, and try to compile again

Nope, I just don't think boost is installing properly. Its giving me a bunch of weird errors now. Is there a way to install boost and mxe that actually works?
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
it's saying your missing the file:

boost/mpl/list/aux_/preprocessed/plain/list10.hpp

from your terminal run:

$ locate list10.hpp

then copy it from where it's found to that directory, and try to compile again
legendary
Activity: 2412
Merit: 1044
Code:
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++

do this first before compiling


report the bugs here > https://github.com/mxe/mxe/issues

I've done that, it didn't work. The error is in something missing from Boost. I wish there was a static way to install these things instead of making them.
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
Code:
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++

do this first before compiling


report the bugs here > https://github.com/mxe/mxe/issues
legendary
Activity: 2412
Merit: 1044
Here's a copy of my Ubuntu 14.04 32-bit VMware Image for anyone that wants it. You will need atleast VMware 10 installed.

https://www.amazon.com/clouddrive/share/ZhOxZQQzji8FpQvuV9b86DqJg6IGpIXmlXFyG5o2X8h?ref_=cd_ph_share_link_copy

It should be a big help to anyone that is having problems following this guide.

The user password is Password1

The root password is Password1

There are instructions on the desktop for anyone that needs them. Wink

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.

Should report the bug on github, very helpful devs there to go through the steps to find the issue and fix anything, keep screenshots, also there should be a log file that outputs the errors, make sure to save those.

Thanks. Sure but which github? I'm not sure if thats an mxe issue or a VM issue or where to even ask. So I now checked on another VM wheezy I made a script (setup.sh) as follows:

sudo apt-get install p7zip-full autoconf automake autopoint bash bison bzip2 cmake flex gettext git g++ gperf intltool libffi-dev libtool libltdl-dev libssl-dev libxml-parser-perl make openssl patch perl pkg-config python ruby scons sed unzip wget xz-utils
sudo apt-get install g++-multilib libc6-dev-i386
cd $HOME/QT/
git clone https://github.com/mxe/mxe.git
cd mxe
make MXE_TARGETS="i686-w64-mingw32.static" boost
make MXE_TARGETS="i686-w64-mingw32.static" qttools
cd ..
wget http://download.oracle.com/berkeley-db/db-5.3.28.tar.gz
tar zxvf db-5.3.28.tar.gz
cp compile-db.sh db-5.3.28/compile-db.sh
cd db-5.3.28
chmod ugo+x compile-db.sh
./compile-db.sh
cd ..
wget http://miniupnp.free.fr/files/miniupnpc-1.6.20120509.tar.gz
tar zxvf miniupnpc-1.6.20120509.tar.gz
cp compile-m.sh miniupnpc-1.6.20120509/compile-m.sh
cd miniupnpc-1.6.20120509
chmod ugo+x compile-m.sh
./compile-m.sh
export PATH=$HOME/QT/mxe/usr/bin:$PATH
cd ..
git clone https://github.com/rat4/blackcoin.git
cp compile-blk.sh blackcoin/compile-blk.sh
chmod -R 777 blackcoin
cd blackcoin
./compile-blk.sh

So this fails with:
/home/admin0/QT/mxe/usr/i686-w64-mingw32.static/include/boost/mpl/list/aux_/include_preprocessed.hpp:30:64: fatal error: boost/mpl/list/aux_/preprocessed/plain/list10.hpp: No such file or directory
 #   include BOOST_PP_STRINGIZE(boost/mpl/list/AUX778076_HEADER)
                                                                ^
compilation terminated.
Makefile.Release:12634: recipe for target 'build/txdb-leveldb.o' failed
make: *** [build/txdb-leveldb.o] Error 1


Its worth noting, boost skips over two packages when installing. I'm sorry but these instructions on this forum are just not to date. I have no clue how anyone got this to work. That is two VMs, one I downloaded here in the OP and the other was my own for building daemons and I followed the instructions exactly with failed boost install.

Why do we have to compile this in the first place?? Its 2016 we should be in FLYING CARS. Its totally ridiculous that we get these kinds of errors. It's times like this I want to set my computer on fire and become a farmer.
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
Here's a copy of my Ubuntu 14.04 32-bit VMware Image for anyone that wants it. You will need atleast VMware 10 installed.

https://www.amazon.com/clouddrive/share/ZhOxZQQzji8FpQvuV9b86DqJg6IGpIXmlXFyG5o2X8h?ref_=cd_ph_share_link_copy

It should be a big help to anyone that is having problems following this guide.

The user password is Password1

The root password is Password1

There are instructions on the desktop for anyone that needs them. Wink

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.

Should report the bug on github, very helpful devs there to go through the steps to find the issue and fix anything, keep screenshots, also there should be a log file that outputs the errors, make sure to save those.
legendary
Activity: 2412
Merit: 1044
Here's a copy of my Ubuntu 14.04 32-bit VMware Image for anyone that wants it. You will need atleast VMware 10 installed.

https://www.amazon.com/clouddrive/share/ZhOxZQQzji8FpQvuV9b86DqJg6IGpIXmlXFyG5o2X8h?ref_=cd_ph_share_link_copy

It should be a big help to anyone that is having problems following this guide.

The user password is Password1

The root password is Password1

There are instructions on the desktop for anyone that needs them. Wink

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.

This is a Linux Qt Wallet Automatic Compiler, it works for pretty much all Sha-256 & Scrypt Altcoins, it's very easy to use even a newbie with no Linux experience can do it with the guide.

https://bitcointalksearch.org/topic/ann-qt-wallet-compiler-for-linux-498746

I can build for Linux just fine, also can build daemon. My issues arise when I try to cross-compile the QT wallet for windows using MXE. I tried the virtual machine listed here and it didn't help since I got that segmentation fault.
legendary
Activity: 1554
Merit: 1001
Here's a copy of my Ubuntu 14.04 32-bit VMware Image for anyone that wants it. You will need atleast VMware 10 installed.

https://www.amazon.com/clouddrive/share/ZhOxZQQzji8FpQvuV9b86DqJg6IGpIXmlXFyG5o2X8h?ref_=cd_ph_share_link_copy

It should be a big help to anyone that is having problems following this guide.

The user password is Password1

The root password is Password1

There are instructions on the desktop for anyone that needs them. Wink

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.

This is a Linux Qt Wallet Automatic Compiler, it works for pretty much all Sha-256 & Scrypt Altcoins, it's very easy to use even a newbie with no Linux experience can do it with the guide.

https://bitcointalksearch.org/topic/ann-qt-wallet-compiler-for-linux-498746
legendary
Activity: 2412
Merit: 1044
Here's a copy of my Ubuntu 14.04 32-bit VMware Image for anyone that wants it. You will need atleast VMware 10 installed.

https://www.amazon.com/clouddrive/share/ZhOxZQQzji8FpQvuV9b86DqJg6IGpIXmlXFyG5o2X8h?ref_=cd_ph_share_link_copy

It should be a big help to anyone that is having problems following this guide.

The user password is Password1

The root password is Password1

There are instructions on the desktop for anyone that needs them. Wink

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.
hero member
Activity: 882
Merit: 533
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

Code:
./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...  Sad

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 Cheesy

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.
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
./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++
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
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)

Code:
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:

Code:
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
newbie
Activity: 6
Merit: 0
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

Code:
./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...  Sad
member
Activity: 92
Merit: 10
anyone know how to get past this error

Code:
make: i686-w64-mingw32.static-g++: Command not found
newbie
Activity: 4
Merit: 0
Im having trouble with the command not found error.  Ubuntu 14.04 64-bit

Code:
./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
newbie
Activity: 24
Merit: 0
Im having trouble with the command not found error.  Ubuntu 14.04 64-bit

Code:
./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!
full member
Activity: 182
Merit: 107
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?
legendary
Activity: 1554
Merit: 1001
Random question but could you do this on a VM server with exceeded specs ?
Pages:
Jump to: