I really don't know anything about how cmake works, so, I can't explain that error for you. Maybe it needs VS installed to be able to generate those files, but, I don't know.
You will definitely need to have native Windows build tools installed. You can probably avoid having Visual Studio (the IDE); Microsoft does distribute a full SDK that is standalone from VS and I believe includes compiler tools. I have no idea if you could use maven-nar-plugin, but, I do suspect you'd have to redo an incredible amount of work to reproduce the rocksdb Windows build. It might be better to take these questions over to a rocksb community forum (eg. https://www.facebook.com/groups/rocksdb.dev/), since they're probably not of interest to most of kafka-users. Mathieu On Tue, Aug 16, 2016 at 7:40 AM, Martin Gainty <mgai...@hotmail.com> wrote: > > > > > 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.<clinit>(RocksDB.java:23) > > > > > any idea where I can locale librocksdbjni-win64.dll ? > > > > > /thanks/ > > > > > Martin > > > > > ______________________________________________ > > > > > > > > > > > > > > > > > >