zeromq / jzmq

Java binding for ZeroMQ
http://www.zeromq.org
GNU General Public License v3.0
590 stars 364 forks source link

MSCV build is broken #436

Open zzxx-husky opened 8 years ago

zzxx-husky commented 8 years ago

When trying to build jzmq using VS2015 using the current solution in ./jzmq-jni/builds/msvc/, VS2015 complains the following:

1>  The syntax of the command is incorrect.
1>  javac: file not found: ..\..\..\src\main\java\org\zeromq\ZMQForwarder.java
1>  Usage: javac <options> <source files>
1>  use -help for a list of possible options
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: The command "
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073:           copy ..\config.hpp ..\..\..\src\main\c++\
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073:           javac ..\..\..\src\main\java\org\zeromq\ZMQ.java ..\..\..\src\main\java\org\zeromq\ZMQException.java ..\..\..\src\main\java\org\zeromq\ZMQForwarder.java ..\..\..\src\main\java\org\zeromq\ZMQQueue.java ..\..\..\src\main\java\org\zeromq\Utils.java ..\..\..\src\main\java\org\zeromq\ZMQStreamer.java ..\..\..\src\main\java\org\zeromq\EmbeddedLibraryTools.java ..\..\..\src\main\java\org\zeromq\App.java ..\..\..\src\main\java\org\zeromq\ZContext.java ..\..\..\src\main\java\org\zeromq\ZDispatcher.java ..\..\..\src\main\java\org\zeromq\ZFrame.java ..\..\..\src\main\java\org\zeromq\ZMsg.java
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: :VCEnd" exited with code 2.

This solution is too old and hasn't been updated for a long time. It seems these files ZMQForwarder.java, ZMQQueue.java, ZContext.java, ZDispatcher.java, ZFrame.java and ZMsg.java have already been moved out from jzmq-jni and this vs solution still tries to look for them.

Also this solution doesn't support building a release mode of jzmq or building jzmq for x64 platform.