Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
isha3026 opened this issue May 6, 2024 · 0 comments
Open

Comments

@isha3026
Copy link

isha3026 commented May 6, 2024

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant