Chat freely about anything...

User avatar
By igrr
#5673
OpenThings wrote:Undefined symbols for architecture x86_64:
"_libintl_bindtextdomain", referenced from:
_main in conf.o
"_libintl_gettext", referenced from:
...
maybe the SED problem? because port install gsed.

Well obviously not a sed problem because sed is a console utility and the error comes from the linker which didn't find libintl library.
Verify that you have gettext package installed:
Code: Select all$ port list gettext
gettext                        @0.19.4         devel/gettext

If you don't,
Code: Select allsudo port install gettext

If you do have it installed, check that libintl is a 64-bit binary:
Code: Select all$ gobjdump -f /opt/local/lib/libintl.8.dylib
/opt/local/lib/libintl.8.dylib:     file format mach-o-x86-64
architecture: i386:x86-64, flags 0x00000050:

if not, reinstall gettext as a universal binary.
User avatar
By calgalli
#5674 This is how I can fix it

"* Issue #2: --- LD 'conf' Undefined symbols for architecture x86_64: "_libintl_bindtextdomain", referenced from:
--- Solution: Install gettext via macport Add "-I/opt/local/include" to the CFLAGS in kconfig/Makefile Add "-L/opt/local/lib -lintl"
to the LDFAGS in kconfig/Makefile
"
User avatar
By samehhady
#6224 Hello,

I've finally successfully compiled the toolchain on mac but I am having problems with the esptool.
As far as I can see there are 2 esptools, one needed to build the binaries and another one needed to flash the ESP.

How can I install the esp image tool on mac ? usually it should be installed in /usr/bin/esptool

I've tried to copy it from my lubuntu to /usr/bin folder but I keep getting 2 different messages.

- cannot execute binary file

- Permission denied
make: *** [firmware/0x00000.bin] Error 1
User avatar
By samehhady
#6233 Ok, I've managed to fix this issue and I am now able to generate the bins :D

I had to build the esp image on mac, I've downloaded the source code but I had lots of errors while compiling most of them related to no return methods.

So I've edited these files with errors and made it to return 0; instead of return;

And Voila, it generated the esptool file, I moved it to usr/bin folder and finally it worked.

Hope this helps anyone face this issue.