Unable to Include cppzmq Library in OMNeT++ Project Makefile Description
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- cpp
- Ambito
- build-system
Direzione di ricerca
Start with the project Makefile's makefiles target and the generated src/Makefile, then compare the include and library flags with the cppzmq README and the reported Windows vcpkg paths. Reproduce the zmq.hpp not found error in the OMNeT++ project. Done means the generated build can locate the cppzmq headers and compile the project.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
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 :)
- Lingua principale
- C++
- Stelle
- 2.3k
- Fork
- 798
- Merge medio
- 2g 17h
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di zeromq/cppzmq
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Add CURVE default keys constantsForse già presa @cacharle l’ha presa 265 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
-
Expected timeline for 4.11?Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 15/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
Tutte le issue di zeromq/cppzmq
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ROCm/rocm-systems#13754 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
raspberrypi/libpisp#80 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
nanoporetech/pod5-file-format#198 ·
-
Upstream changes to reviewAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
rhalbersma/xstd-ints#341 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
secondlife/lsl-definitions#222 ·
I maintainer di solito rispondono entro 9 giorni