Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: MMCPool compile  (Read 2429 times)

0 Members and 1 Guest are viewing this topic.

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
MMCPool compile
« on: December 26, 2013, 03:41:05 AM »

I'm trying to compile MMCPool miner with a view to bundling it with the QT wallet and letting GUI users run it, preconfigured, from a menu option.

Running into this on configure . . . .

configure: error: OpenSSL headers required

How do I tell configure where to find my OpenSSL libs?
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: MMCPool compile
« Reply #1 on: December 26, 2013, 05:08:23 AM »
So I'm getting a little bit further by using -

CFLAGS="-O3 -march=native -mtune=native -IC:\deps\openssl-1.0.1e\include -LC:\deps\openssl-1.0.1e" CXXFLAGS="-O3 -march=native -mtune=native -IC:\deps\openssl-1.0.1e\include -LC:\deps\openssl-1.0.1e" ./configure

but getting to this error -

configure: WARNING: openssl/evp.h: accepted by the compiler, rejected by the pre
processor!
configure: WARNING: openssl/evp.h: proceeding with the compiler's result
checking for openssl/evp.h... yes
checking for SSL_library_init in -lssl... no
configure: error: OpenSSL library required
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: MMCPool compile
« Reply #2 on: December 26, 2013, 06:40:07 AM »
are you trying to compile on windows?
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: MMCPool compile
« Reply #3 on: December 26, 2013, 06:47:08 AM »
yes. Trying to compile with mingw32
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: MMCPool compile
« Reply #4 on: December 26, 2013, 07:30:36 AM »
configure trusts the pre-processor, as a result if it can't find the libraries, configure reports an error. ensure that your dependencies are correctly installed and the paths are written correctly.

CFLAGS="-O3 -march=native -mtune=native -IC:\deps\openssl-1.0.1e\include -LC:\deps\openssl-1.0.1e" CXXFLAGS="-O3 -march=native -mtune=native -IC:\deps\openssl-1.0.1e\include -LC:\deps\openssl-1.0.1e" ./configure

try removing what i crossed out and tell me what happens.

« Last Edit: December 26, 2013, 07:34:14 AM by barwizi »
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: MMCPool compile
« Reply #5 on: December 26, 2013, 07:37:55 AM »
And show me your include_path(s) please
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: MMCPool compile
« Reply #6 on: December 26, 2013, 07:38:33 AM »
Thanks, but not getting anywhere without the switches -


$ CFLAGS="-O3 -march=native -mtune=native C:\deps\openssl-1.0.1e\include C:\dep
s\openssl-1.0.1e" CXXFLAGS="-O3 -march=native -mtune=native C:\deps\openssl-1.0
.1e\include C:\deps\openssl-1.0.1e" ./configure
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/c/mmcminer':
configure: error: C compiler cannot create executables
See `config.log' for more details



With switches . . .
$ CFLAGS="-O3 -march=native -mtune=native -IC:\deps\openssl-1.0.1e\include -LC:
\deps\openssl-1.0.1e" CXXFLAGS="-O3 -march=native -mtune=native -IC:\deps\opens
sl-1.0.1e\include -LC:\deps\openssl-1.0.1e" ./configure
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking syslog.h usability... no
checking syslog.h presence... no
checking for syslog.h... no
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking openssl/evp.h usability... yes
checking openssl/evp.h presence... no
configure: WARNING: openssl/evp.h: accepted by the compiler, rejected by the pre
processor!
configure: WARNING: openssl/evp.h: proceeding with the compiler's result
checking for openssl/evp.h... yes
checking for SSL_library_init in -lssl... no
configure: error: OpenSSL library required
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: MMCPool compile
« Reply #7 on: December 26, 2013, 07:43:33 AM »
And show me your include_path(s) please

I don't think I have one - quite possibly the problem. When compiling the QT client, I specify all the libs all in the .pro file.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: MMCPool compile
« Reply #8 on: December 26, 2013, 08:07:59 AM »
ok, please post your config.log after using switches. It is essentially saying it is unable to either find or use your Openssl library, so we need to make it recognize it.

OPENSSL_INCLUDE_PATH=c:/deps/ssl/include
OPENSSL_LIB_PATH=c:/deps/ssl

is the typical path..

yours however is

C:\deps\openssl-1.0.1e\include
C:\deps\openssl-1.0.1e

so maybe you need to double check you .pro file if it matches with actual path names.
« Last Edit: December 26, 2013, 08:12:37 AM by barwizi »
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline danbi

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: MMCPool compile
« Reply #9 on: December 26, 2013, 08:49:25 AM »
Is the code available somewhere?

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: MMCPool compile
« Reply #10 on: December 26, 2013, 09:36:58 AM »
OPENSSL_INCLUDE_PATH=c:/deps/ssl/include
OPENSSL_LIB_PATH=c:/deps/ssl
so maybe you need to double check you .pro file if it matches with actual path names.

So there is no .pro file . . . I don't know where to put those paths so that configure can find them . . .

here's the log -
http://pastebin.com/cmVr5R2h

Thanks for your help.

“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: MMCPool compile
« Reply #11 on: December 26, 2013, 09:38:12 AM »
Is the code available somewhere?

Yes - source is here -

https://github.com/glitchman/mmcminer

This is the client side.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: MMCPool compile
« Reply #12 on: December 26, 2013, 11:13:02 AM »
yes, the paths are clearly not included. give me a minute


ok, so you'll have to manually add all the paths to your dependencies and libraries. they are not there.
« Last Edit: December 26, 2013, 11:21:27 AM by barwizi »
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: MMCPool compile
« Reply #13 on: December 26, 2013, 08:19:52 PM »
yes, the paths are clearly not included. give me a minute


ok, so you'll have to manually add all the paths to your dependencies and libraries. they are not there.

Thanks. How would I go about doing that?
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: MMCPool compile
« Reply #14 on: December 26, 2013, 09:42:21 PM »
yes, the paths are clearly not included. give me a minute


ok, so you'll have to manually add all the paths to your dependencies and libraries. they are not there.

Thanks. How would I go about doing that?

mknsis file from what i can make out.


however, if you are just trying to bundle that with the QT, why not just use the pre-compiled version?
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

 

Google+