RE: DLL Hell

2016-08-16 Thread Martin Gainty



> From: mathieu.fenn...@replicon.com
> Date: Tue, 16 Aug 2016 06:57:16 -0600
> Subject: Re: DLL Hell
> To: users@kafka.apache.org
> 
> Hey Martin,
> 
> I had to modify the -G argument to that command to include the visual
> studio year.  If you run "cmake /?", it will output all the available
> generators.  My cmake looked like:
> 
> cmake -G "Visual Studio 12 2013 Win64" -DJNI=1 ..
> 
> I think this is probably a change in cmake since the rocksdb doc was
> written (
> https://cmake.org/cmake/help/v3.0/generator/Visual%20Studio%2012%202013.html
> ).
> MG>same "informative error"
>C:\cygwin64\bin\cmake -G "Visual Studio 12 2013 Win64" -DJNI=1
CMake Error: Could not create named generator Visual Studio 12 2013 Win64
Generators  Unix Makefiles   = Generates standard UNIX makefiles.  
Ninja= Generates build.ninja files.  CodeBlocks - Ninja 
  = Generates CodeBlocks project files.  CodeBlocks - Unix Makefiles  = 
Generates CodeBlocks project files.  CodeLite - Ninja = Generates 
CodeLite project files.  CodeLite - Unix Makefiles= Generates CodeLite 
project files.  Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 
project files.  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 
project files.  KDevelop3= Generates KDevelop 3 project 
files.  KDevelop3 - Unix Makefiles   = Generates KDevelop 3 project files.  
Kate - Ninja = Generates Kate project files.  Kate - Unix 
Makefiles= Generates Kate project files.  Sublime Text 2 - Ninja   
= Generates Sublime Text 2 project files.  Sublime Text 2 - Unix Makefiles  
 = Generates Sublime Text 2 project files.
MG>I am thinking if I want to automate this native build..I could more easily 
create binary thru maven-nar-plugin ?
MG>as I do not have any MS VS or DotNet installed..maybe I need to install many 
gigs of MS specific VS?
MG>Please advise
> Mathieu
> 
> 
> On Tue, Aug 16, 2016 at 5:03 AM, Martin Gainty <mgai...@hotmail.com> wrote:
> 
> > havent used cmake in over 10 years so Im a bit lost..
> > cmake -G "Visual Studio 12 Win64" -DGFLAGS=1 -DSNAPPY=1 -DJEMALLOC=1
> > -DJNI=1
> > CMake Error: Could not create named generator Visual Studio 12 Win64
> > ?Please advise
> > Martin
> > __
> >
> >
> >
> > > From: mathieu.fenn...@replicon.com
> > > Date: Mon, 15 Aug 2016 13:43:47 -0600
> > > Subject: Re: DLL Hell
> > > To: users@kafka.apache.org
> > >
> > > Hi Martin,
> > >
> > > rocksdb does not currently distribute a Windows-compatible build of their
> > > rocksdbjni library.  I recently wrote up some instructions on how to
> > > produce a local build, which you can find here:
> > > http://mail-archives.apache.org/mod_mbox/kafka-users/
> > 201608.mbox/%3CCAHoiPjweo-xSj3TiodcDVf4wNnnJ8u6PcwWDPF7L
> > T5ps%2BxQ3eA%40mail.gmail.com%3E
> > >
> > > I'd also suggest tracking this issue in GitHub, which is likely to be
> > > updated if this ever changes: https://github.com/facebook/
> > rocksdb/issues/703
> > >
> > > Mathieu
> > >
> > >
> > > On Mon, Aug 15, 2016 at 1:34 PM, Martin Gainty <mgai...@hotmail.com>
> > wrote:
> > >
> > > > kafka-trunk\streams>gradle buildCaused by: java.lang.RuntimeException:
> > > > librocksdbjni-win64.dll was not found inside JAR.at
> > org.rocksdb.
> > > > NativeLibraryLoader.loadLibraryFromJarToTemp(
> > NativeLibraryLoader.java:106)
> > > >  at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(
> > NativeLibraryLoader.java:78)
> > > > at org.rocksdb.NativeLibraryLoader.loadLibrary(
> > NativeLibraryLoader.java:56)
> > > >at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:47) at
> > > > org.rocksdb.RocksDB.(RocksDB.java:23)
> > > > any idea where I can locale librocksdbjni-win64.dll ?
> > > > /thanks/
> > > > Martin
> > > > __
> > > >
> > > >
> >
> >
  

Re: DLL Hell

2016-08-16 Thread Mathieu Fenniak
Hey Martin,

I had to modify the -G argument to that command to include the visual
studio year.  If you run "cmake /?", it will output all the available
generators.  My cmake looked like:

cmake -G "Visual Studio 12 2013 Win64" -DJNI=1 ..

I think this is probably a change in cmake since the rocksdb doc was
written (
https://cmake.org/cmake/help/v3.0/generator/Visual%20Studio%2012%202013.html
).

Mathieu


On Tue, Aug 16, 2016 at 5:03 AM, Martin Gainty <mgai...@hotmail.com> wrote:

> havent used cmake in over 10 years so Im a bit lost..
> cmake -G "Visual Studio 12 Win64" -DGFLAGS=1 -DSNAPPY=1 -DJEMALLOC=1
> -DJNI=1
> CMake Error: Could not create named generator Visual Studio 12 Win64
> ?Please advise
> Martin
> __
>
>
>
> > From: mathieu.fenn...@replicon.com
> > Date: Mon, 15 Aug 2016 13:43:47 -0600
> > Subject: Re: DLL Hell
> > To: users@kafka.apache.org
> >
> > Hi Martin,
> >
> > rocksdb does not currently distribute a Windows-compatible build of their
> > rocksdbjni library.  I recently wrote up some instructions on how to
> > produce a local build, which you can find here:
> > http://mail-archives.apache.org/mod_mbox/kafka-users/
> 201608.mbox/%3CCAHoiPjweo-xSj3TiodcDVf4wNnnJ8u6PcwWDPF7L
> T5ps%2BxQ3eA%40mail.gmail.com%3E
> >
> > I'd also suggest tracking this issue in GitHub, which is likely to be
> > updated if this ever changes: https://github.com/facebook/
> rocksdb/issues/703
> >
> > Mathieu
> >
> >
> > On Mon, Aug 15, 2016 at 1:34 PM, Martin Gainty <mgai...@hotmail.com>
> wrote:
> >
> > > kafka-trunk\streams>gradle buildCaused by: java.lang.RuntimeException:
> > > librocksdbjni-win64.dll was not found inside JAR.at
> org.rocksdb.
> > > NativeLibraryLoader.loadLibraryFromJarToTemp(
> NativeLibraryLoader.java:106)
> > >  at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(
> NativeLibraryLoader.java:78)
> > > at org.rocksdb.NativeLibraryLoader.loadLibrary(
> NativeLibraryLoader.java:56)
> > >at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:47) at
> > > org.rocksdb.RocksDB.(RocksDB.java:23)
> > > any idea where I can locale librocksdbjni-win64.dll ?
> > > /thanks/
> > > Martin
> > > __
> > >
> > >
>
>


RE: DLL Hell

2016-08-16 Thread Martin Gainty
havent used cmake in over 10 years so Im a bit lost..
cmake -G "Visual Studio 12 Win64" -DGFLAGS=1 -DSNAPPY=1 -DJEMALLOC=1 -DJNI=1
CMake Error: Could not create named generator Visual Studio 12 Win64
?Please advise
Martin 
__ 



> From: mathieu.fenn...@replicon.com
> Date: Mon, 15 Aug 2016 13:43:47 -0600
> Subject: Re: DLL Hell
> To: users@kafka.apache.org
> 
> Hi Martin,
> 
> rocksdb does not currently distribute a Windows-compatible build of their
> rocksdbjni library.  I recently wrote up some instructions on how to
> produce a local build, which you can find here:
> http://mail-archives.apache.org/mod_mbox/kafka-users/201608.mbox/%3CCAHoiPjweo-xSj3TiodcDVf4wNnnJ8u6PcwWDPF7LT5ps%2BxQ3eA%40mail.gmail.com%3E
> 
> I'd also suggest tracking this issue in GitHub, which is likely to be
> updated if this ever changes: https://github.com/facebook/rocksdb/issues/703
> 
> Mathieu
> 
> 
> On Mon, Aug 15, 2016 at 1:34 PM, Martin Gainty <mgai...@hotmail.com> wrote:
> 
> > kafka-trunk\streams>gradle buildCaused by: java.lang.RuntimeException:
> > librocksdbjni-win64.dll was not found inside JAR.at org.rocksdb.
> > NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:106)
> >  at 
> > org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78)
> > at 
> > org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56)
> >at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:47) at
> > org.rocksdb.RocksDB.(RocksDB.java:23)
> > any idea where I can locale librocksdbjni-win64.dll ?
> > /thanks/
> > Martin
> > __
> >
> >
  

Re: DLL Hell

2016-08-15 Thread Mathieu Fenniak
Hi Martin,

rocksdb does not currently distribute a Windows-compatible build of their
rocksdbjni library.  I recently wrote up some instructions on how to
produce a local build, which you can find here:
http://mail-archives.apache.org/mod_mbox/kafka-users/201608.mbox/%3CCAHoiPjweo-xSj3TiodcDVf4wNnnJ8u6PcwWDPF7LT5ps%2BxQ3eA%40mail.gmail.com%3E

I'd also suggest tracking this issue in GitHub, which is likely to be
updated if this ever changes: https://github.com/facebook/rocksdb/issues/703

Mathieu


On Mon, Aug 15, 2016 at 1:34 PM, Martin Gainty  wrote:

> kafka-trunk\streams>gradle buildCaused by: java.lang.RuntimeException:
> librocksdbjni-win64.dll was not found inside JAR.at org.rocksdb.
> NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:106)
>  at 
> org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78)
> at 
> org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56)
>at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:47) at
> org.rocksdb.RocksDB.(RocksDB.java:23)
> any idea where I can locale librocksdbjni-win64.dll ?
> /thanks/
> Martin
> __
>
>