Skip to content

[HELP] psmq/embedlog build #2995

@tinnedkarma

Description

@tinnedkarma

Description

I'm trying to use psmq as an IPC method for my application.

There are some issues getting psmq and embedlog to work and I am trying to understand what would be an fix.

  • I get warnings about HAVE_TERMIOS_H:
/home/tk/nxspace/apps/include/system/embedlog.h:18:5: warning: "HAVE_TERMIOS_H" is not defined, evaluates to 0 [-Wundef]
   18 | #if HAVE_TERMIOS_H
      |     ^~~~~~~~~~~~~~

but that flag is set in the Makefile

CFLAGS += -DHAVE_TERMIOS_H

So there may be some issues with the build stage of embedlog?

  • Also, I guess some nuttx changes happened as well?
diff --git a/logging/embedlog/Makefile b/logging/embedlog/Makefile
index e4e6f2b4c..460f0d9b5 100644
--- a/logging/embedlog/Makefile
+++ b/logging/embedlog/Makefile
@@ -231,6 +231,7 @@ $(EMBEDLOG_SOURCES)/include/embedlog.h: $(EMBEDLOG_SOURCES)/include/embedlog.h.i
            -e "s/^#if n$$/#if 0/" $< > $@
 
 create_includes: $(EMBEDLOG_SOURCES)/include/embedlog.h
+       $(Q) $(CP) $< $(APPDIR)/include/system  
        $(Q) $(CP) $< $(APPDIR)/include/logging
 
 context:: $(EMBEDLOG_SOURCES)
diff --git a/system/psmq/Makefile b/system/psmq/Makefile
index b414da61e..9af9c746e 100644
--- a/system/psmq/Makefile
+++ b/system/psmq/Makefile
@@ -105,6 +105,7 @@ $(PSMQ_SOURCES)/inc/psmq.h: $(PSMQ_SOURCES)/inc/psmq.h.in
 
 create_includes: $(PSMQ_SOURCES)/inc/psmq.h
        $(Q) $(CP) $< $(APPDIR)/include/system
+       $(Q) $(CP) $< $(APPDIR)/include/logging
 
 context:: $(PSMQ_SOURCES)
        $(Q) $(MAKE) create_includes

create_includes rule needs to be extended as in diff above, but I do not know which change is correct

Can someone help me out? @mlyszczek

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions