zeromq / cppzmq

Header-only C++ binding for libzmq
http://www.zeromq.org
MIT License
1.9k stars 757 forks source link

Unable to Include cppzmq Library in OMNeT++ Project Makefile Description #640

Open isha3026 opened 2 months ago

isha3026 commented 2 months ago

I'm encountering an issue while trying to include the cppzmq library in my OMNeT++ project Makefile. My goal is to use cpppzmq as a messaging library for co-simulation between Carla and OMNET++ CARLANeT (https://github.com/carlanet). I followed the instructions in the project's README (https://github.com/zeromq/cppzmq) and installed cppzmq using vcpkg. However, when I add the necessary flags to the Makefile to link against cppzmq, I'm still unable to access the header files, and the compilation fails with the error message "zmq.hpp file not found" (project's workspace screenshot with error attached below)

Here's (the bold lines) the relevant portion of my Makefile where I added the flags to include cppzmq:

all: checkmakefiles cd src && $(MAKE)

clean: checkmakefiles cd src && $(MAKE) clean

cleanall: checkmakefiles cd src && $(MAKE) MODE=release clean cd src && $(MAKE) MODE=debug clean rm -f src/Makefile

makefiles:

cd src && opp_makemake -f --make-so --deep -o carlanet -O out -KINET4_4_PROJ=../../inet4.4 -DINET_IMPORT -I$$(INET4_4_PROJ)/src -L$$(INET4_4_PROJ)/src -lzmq -lINET$$(D)

**cd src && opp_makemake -f --make-so --deep -o carlanet -O out -KINET4_4_PROJ=../../inet4.4 -DINET_IMPORT -I$(INET4_4_PROJ)/src -L$(INET4_4_PROJ)/src -lINET$(D) -LC:/Users/uqipali/Documents/omnet/omnetpp-6.0.2/vcpkg/packages/zeromq_x64-windows/lib -llibzmq-mt-4_3_5 -IC:/Users/uqipali/Documents/omnet/omnetpp-6.0.2/vcpkg/installed/x64-windows/include** 

checkmakefiles: @if [ ! -f src/Makefile ]; then \ echo; \ echo '======================================================================='; \ echo 'src/Makefile does not exist. Please use "make makefiles" to generate it!'; \ echo '======================================================================='; \ echo; \ exit 1; \ fi

error_in_makefile

Could you please advise on what needs to be corrected in order to successfully use cppzmq in my OMNeT++ project? Any assistance would be greatly appreciated. Thank you in advance :)