Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  [QUESTION] How to link -lm to codec properly?
« previous next »
  • Print
Pages: [1]

Author Topic: [QUESTION] How to link -lm to codec properly?  (Read 1171 times)

Offline gama

  • Member
  • *
  • Posts: 26
[QUESTION] How to link -lm to codec properly?
« on: December 31, 2012, 02:10:45 PM »
Hi,

   I'm working on some codec that needs the math library for the simulator build, currently I tryied using the following rule in the makefile:

Code: [Select]
ifdef APP_TYPE
# hosted platforms will use lm
$(CODECDIR)/spc.codec: $(CODECDIR)/spc.o
$(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/spc.elf \
$(filter %.o, $^) \
$(filter %.a, $+) \
-lgcc -lm $(CODECLDFLAGS)
$(SILENT)$(call objcopy,$(CODECDIR)/spc*.elf,$@)
endif

But I'm getting the following error during make:

Code: [Select]
LD spc.codec
/usr/bin/ld: cannot open map fle /root/rockbox/build-sim/lib/rbcodec/codecs//root/rockbox/build-sim/lib/rbcodec/codecs/spc.map: No such file or directory

It seems the map path is not correct, but how can I fix that?

I took that code from the wmavoice codec makefile, but apparently it's not used anymore.  Could someone please tell me the correct way of  linking the math library for the simulator build (and app builds I guess) in a codec?.

Thanks in advance.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  [QUESTION] How to link -lm to codec properly?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.017 seconds with 18 queries.