AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Compiling ChatScript on a Mac
 
 
  [ # 16 ]
Richard Páleník - Oct 13, 2015:

Hi I am not able to compile for mac. I am getting following messages (just last lines of the err.txt). I compile from the highest directory level. can u help?


Undefined symbols for architecture x86_64:
  “_curl_easy_cleanup”, referenced from:
    JSONOpenCode(char*) in functionExecute-b1b213.o
  “_curl_easy_init”, referenced from:
    JSONOpenCode(char*) in functionExecute-b1b213.o
  “_curl_easy_perform”, referenced from:
    JSONOpenCode(char*) in functionExecute-b1b213.o
  “_curl_easy_setopt”, referenced from:
    JSONOpenCode(char*) in functionExecute-b1b213.o
  “_curl_global_init”, referenced from:
    JSONOpenCode(char*) in functionExecute-b1b213.o
  “_curl_slist_append”, referenced from:
    JSONOpenCode(char*) in functionExecute-b1b213.o
  “_curl_slist_free_all”, referenced from:
    JSONOpenCode(char*) in functionExecute-b1b213.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

find this solution. in my case, MacOS version is 10.11.5
You should edit SRC/Makefile some lines.

This is a edited SRC/Makefile

ifeq ($(UNAME), Darwin)
$(
info ************ MAC VERSION ************)
LDFLAGS=-mmacosx-version-min=10.11 -lcurl $(PGLOAD)  
CFLAGS=-mmacosx-version-min=10.11 -c  -Wall  -funsigned-char -Wno-write-strings -Wno-char-subscripts 
endif 

1. change -mmacosx-version-min 10.7 to 10.11 (my macos version)
2. add -lcurl into included LDFLAGS source line

that’s all.

I hope find solution for you.

 

 

 
  [ # 17 ]

You must eitther install CURL for the mac, or use #define DISCARDJSON in common.h under Mach

 

 < 1 2
2 of 2
 
  login or register to react