Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [openmq-dev] How to build OpenMQ C Client for Windows

Hi Piotrek,

Thank you for providing tips on building the OpenMQ C Client on Windows 64-bit.

We built/installed NSS 3.75 and NSPR 4.32 on Windows but later found out they are incompatible with the MQ API. I see in the latest OpenMQ release notes (https://eclipse-ee4j.github.io/openmq/guides/mq-release-notes/release-notes.html) that we need NSS 3.12.8 and NSPR 4.8.6. Those versions seem very old, so I'm wondering if there is a recent version we can use with OpenMQ 6.2.0? We've had a lot of trouble trying to build/install very old versions of NSS/NSPR and haven't found a place that offers the build artifacts for download. So we are unfortunately still unable to successfully make a 64-bit build of the OpenMQ 6.2.0 C Client.

Unrelated question: Is it possible to use OpenMQ 6.2.0 and its C Client by themselves without Glassfish? We have a few topics that our server-side code publishes messages to, and our clients subscribe to those topics.

Thanks,
George
On Saturday, February 12, 2022, 11:51:24 AM PST, Piotr Żygieło <piotr.zygielo@xxxxxxxxx> wrote:


Hello George

On Fri, 11 Feb 2022 at 03:21, Ab Cd via openmq-dev wrote:
> message queue C Client, and it seems for Eclipse OpenMQ, I'd have to build it myself based on the cclient files in the 6.2.0 source download.

Correct.


> I've noticed that there is no "Windows Release" section in the mq/src/buildant/default.properties file. Please advise?


1. Run
  ant -f mq\main\packager-opensource environment
to learn _arch_ discovered by ant (I'm pretty sure it will be 'win32'
regardless of running on Windows 64-bit or not).
This _arch_ will be needed in the new section that needs to be added.

2. Add a new section to `default.properties` with compiler and linker
location and options.

3. Use verbose mode of ant to run
  ant -v -f mq\main\packager-opensource buildcclient
You'll probably find out that _mq/src/buildant/crules.xml_ needs to be
updated to successfully run on Windows.

4. You'll need nss3 and nspr4.

5. Open PRs to update OpenMQ documentation, build process or to add
workflow to run build on Windows.

Unfortunately I'm getting
  [apply] D:\a\x\x\mq\src\share\cclient\basictypes\TypeEnum.hpp(24):
fatal error C1083: Cannot open include file: 'prtypes.h': No such file
or directory
in GitHub action (due to 4. not done there).

Good luck,

--
Piotrek
_______________________________________________
openmq-dev mailing list
openmq-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/openmq-dev


Back to the top