ld: symbol(s) not found for architecture x86_64 clang++












0















I'm trying to run this project deep Mimic
But I'm having some problem with the Makefile in the DeepMimicCore document. I modified somethings in the make file. I replaced the "LIBS = -lGLEW -lGL -lGLU -lglut -lBulletDynamics -lBulletCollision -lLinearMath" by "LIBS = -lGLEW -framework OpenGL -lglut -lBulletDynamics -lBulletCollision -lLinearMath" because I'm working with Mac OS.



when running the command ' make python ', I still have the following error:



ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python] Error 1


What should I do to fix the problem ?
Here the makefile :



BIN=Main
OBJ_DIR = objs
MKDIR = mkdir -p

EIGEN_DIR = /Users/fatineboujnouni/Documents/eigen-eigen-323c052e1731/ #../../libraries/eigen
BULLET_INC_DIR = /Users/fatineboujnouni/Documents/bullet3-2.87/src #../../libraries/bullet3/src

PYTHON_INC = /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m #/usr/include/python3.4m
PYTHON_LIB = /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib#-lpython3.4m

INC = -I./
-I$(EIGEN_DIR)
-I$(BULLET_INC_DIR)

LIBS = -lGLEW -framework OpenGL -lglut -lBulletDynamics -lBulletCollision -lLinearMath

CC = clang++
CFLAGS = -std=c++11 -O3 -Wall -fPIC

SRC_DIRS = util/
util/json/
anim/
sim/
render/
render/lodepng/
scenes/
scenes/arm/
scenes/particle/
scenes/pendulum/

SRC_FILES = $(BIN).cpp DeepMimicCore.cpp $(foreach dir, $(SRC_DIRS), $(wildcard $(dir)*.cpp))
OUT_DIRS = $(addprefix $(OBJ_DIR)/, $(SRC_DIRS))
OBJ = $(addprefix $(OBJ_DIR)/, $(patsubst %.cpp, %.o, $(SRC_FILES)))


default: build

build: $(BIN)

print:
$(OUT_DIRS)

python: $(OUT_DIRS) $(OBJ)
swig -c++ -python DeepMimicCore.i
$(CC) -c -g $(CFLAGS) $(INC) $(LIBS) DeepMimicCore.cpp DeepMimicCore_wrap.cxx -I$(PYTHON_INC)
$(CC) -shared $(CFLAGS) $(OBJ) $(LIBS) DeepMimicCore_wrap.o -o _DeepMimicCore.so -L$(PYTHON_LIB)

$(OBJ_DIR)/%.o: %.cpp
$(CC) -c -g $(CFLAGS) $(INC) -o $@ $<

$(BIN): $(OUT_DIRS) $(OBJ)
$(CC) -g $(CFLAGS) $(OBJ) $(LIBS) -o $@

$(OUT_DIRS):
$(MKDIR) $(OUT_DIRS)

clean:
- rm -f -r $(OUT_DIRS) $(BIN) $(OBJ) $(OBJ_DIR) DeepMimicCore_wrap.cxx _DeepMimicCore.so









share|improve this question























  • Possible duplicate of What is an undefined reference/unresolved external symbol error and how do I fix it?

    – Mike Kinghan
    Jan 1 at 10:43
















0















I'm trying to run this project deep Mimic
But I'm having some problem with the Makefile in the DeepMimicCore document. I modified somethings in the make file. I replaced the "LIBS = -lGLEW -lGL -lGLU -lglut -lBulletDynamics -lBulletCollision -lLinearMath" by "LIBS = -lGLEW -framework OpenGL -lglut -lBulletDynamics -lBulletCollision -lLinearMath" because I'm working with Mac OS.



when running the command ' make python ', I still have the following error:



ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python] Error 1


What should I do to fix the problem ?
Here the makefile :



BIN=Main
OBJ_DIR = objs
MKDIR = mkdir -p

EIGEN_DIR = /Users/fatineboujnouni/Documents/eigen-eigen-323c052e1731/ #../../libraries/eigen
BULLET_INC_DIR = /Users/fatineboujnouni/Documents/bullet3-2.87/src #../../libraries/bullet3/src

PYTHON_INC = /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m #/usr/include/python3.4m
PYTHON_LIB = /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib#-lpython3.4m

INC = -I./
-I$(EIGEN_DIR)
-I$(BULLET_INC_DIR)

LIBS = -lGLEW -framework OpenGL -lglut -lBulletDynamics -lBulletCollision -lLinearMath

CC = clang++
CFLAGS = -std=c++11 -O3 -Wall -fPIC

SRC_DIRS = util/
util/json/
anim/
sim/
render/
render/lodepng/
scenes/
scenes/arm/
scenes/particle/
scenes/pendulum/

SRC_FILES = $(BIN).cpp DeepMimicCore.cpp $(foreach dir, $(SRC_DIRS), $(wildcard $(dir)*.cpp))
OUT_DIRS = $(addprefix $(OBJ_DIR)/, $(SRC_DIRS))
OBJ = $(addprefix $(OBJ_DIR)/, $(patsubst %.cpp, %.o, $(SRC_FILES)))


default: build

build: $(BIN)

print:
$(OUT_DIRS)

python: $(OUT_DIRS) $(OBJ)
swig -c++ -python DeepMimicCore.i
$(CC) -c -g $(CFLAGS) $(INC) $(LIBS) DeepMimicCore.cpp DeepMimicCore_wrap.cxx -I$(PYTHON_INC)
$(CC) -shared $(CFLAGS) $(OBJ) $(LIBS) DeepMimicCore_wrap.o -o _DeepMimicCore.so -L$(PYTHON_LIB)

$(OBJ_DIR)/%.o: %.cpp
$(CC) -c -g $(CFLAGS) $(INC) -o $@ $<

$(BIN): $(OUT_DIRS) $(OBJ)
$(CC) -g $(CFLAGS) $(OBJ) $(LIBS) -o $@

$(OUT_DIRS):
$(MKDIR) $(OUT_DIRS)

clean:
- rm -f -r $(OUT_DIRS) $(BIN) $(OBJ) $(OBJ_DIR) DeepMimicCore_wrap.cxx _DeepMimicCore.so









share|improve this question























  • Possible duplicate of What is an undefined reference/unresolved external symbol error and how do I fix it?

    – Mike Kinghan
    Jan 1 at 10:43














0












0








0








I'm trying to run this project deep Mimic
But I'm having some problem with the Makefile in the DeepMimicCore document. I modified somethings in the make file. I replaced the "LIBS = -lGLEW -lGL -lGLU -lglut -lBulletDynamics -lBulletCollision -lLinearMath" by "LIBS = -lGLEW -framework OpenGL -lglut -lBulletDynamics -lBulletCollision -lLinearMath" because I'm working with Mac OS.



when running the command ' make python ', I still have the following error:



ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python] Error 1


What should I do to fix the problem ?
Here the makefile :



BIN=Main
OBJ_DIR = objs
MKDIR = mkdir -p

EIGEN_DIR = /Users/fatineboujnouni/Documents/eigen-eigen-323c052e1731/ #../../libraries/eigen
BULLET_INC_DIR = /Users/fatineboujnouni/Documents/bullet3-2.87/src #../../libraries/bullet3/src

PYTHON_INC = /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m #/usr/include/python3.4m
PYTHON_LIB = /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib#-lpython3.4m

INC = -I./
-I$(EIGEN_DIR)
-I$(BULLET_INC_DIR)

LIBS = -lGLEW -framework OpenGL -lglut -lBulletDynamics -lBulletCollision -lLinearMath

CC = clang++
CFLAGS = -std=c++11 -O3 -Wall -fPIC

SRC_DIRS = util/
util/json/
anim/
sim/
render/
render/lodepng/
scenes/
scenes/arm/
scenes/particle/
scenes/pendulum/

SRC_FILES = $(BIN).cpp DeepMimicCore.cpp $(foreach dir, $(SRC_DIRS), $(wildcard $(dir)*.cpp))
OUT_DIRS = $(addprefix $(OBJ_DIR)/, $(SRC_DIRS))
OBJ = $(addprefix $(OBJ_DIR)/, $(patsubst %.cpp, %.o, $(SRC_FILES)))


default: build

build: $(BIN)

print:
$(OUT_DIRS)

python: $(OUT_DIRS) $(OBJ)
swig -c++ -python DeepMimicCore.i
$(CC) -c -g $(CFLAGS) $(INC) $(LIBS) DeepMimicCore.cpp DeepMimicCore_wrap.cxx -I$(PYTHON_INC)
$(CC) -shared $(CFLAGS) $(OBJ) $(LIBS) DeepMimicCore_wrap.o -o _DeepMimicCore.so -L$(PYTHON_LIB)

$(OBJ_DIR)/%.o: %.cpp
$(CC) -c -g $(CFLAGS) $(INC) -o $@ $<

$(BIN): $(OUT_DIRS) $(OBJ)
$(CC) -g $(CFLAGS) $(OBJ) $(LIBS) -o $@

$(OUT_DIRS):
$(MKDIR) $(OUT_DIRS)

clean:
- rm -f -r $(OUT_DIRS) $(BIN) $(OBJ) $(OBJ_DIR) DeepMimicCore_wrap.cxx _DeepMimicCore.so









share|improve this question














I'm trying to run this project deep Mimic
But I'm having some problem with the Makefile in the DeepMimicCore document. I modified somethings in the make file. I replaced the "LIBS = -lGLEW -lGL -lGLU -lglut -lBulletDynamics -lBulletCollision -lLinearMath" by "LIBS = -lGLEW -framework OpenGL -lglut -lBulletDynamics -lBulletCollision -lLinearMath" because I'm working with Mac OS.



when running the command ' make python ', I still have the following error:



ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python] Error 1


What should I do to fix the problem ?
Here the makefile :



BIN=Main
OBJ_DIR = objs
MKDIR = mkdir -p

EIGEN_DIR = /Users/fatineboujnouni/Documents/eigen-eigen-323c052e1731/ #../../libraries/eigen
BULLET_INC_DIR = /Users/fatineboujnouni/Documents/bullet3-2.87/src #../../libraries/bullet3/src

PYTHON_INC = /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m #/usr/include/python3.4m
PYTHON_LIB = /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib#-lpython3.4m

INC = -I./
-I$(EIGEN_DIR)
-I$(BULLET_INC_DIR)

LIBS = -lGLEW -framework OpenGL -lglut -lBulletDynamics -lBulletCollision -lLinearMath

CC = clang++
CFLAGS = -std=c++11 -O3 -Wall -fPIC

SRC_DIRS = util/
util/json/
anim/
sim/
render/
render/lodepng/
scenes/
scenes/arm/
scenes/particle/
scenes/pendulum/

SRC_FILES = $(BIN).cpp DeepMimicCore.cpp $(foreach dir, $(SRC_DIRS), $(wildcard $(dir)*.cpp))
OUT_DIRS = $(addprefix $(OBJ_DIR)/, $(SRC_DIRS))
OBJ = $(addprefix $(OBJ_DIR)/, $(patsubst %.cpp, %.o, $(SRC_FILES)))


default: build

build: $(BIN)

print:
$(OUT_DIRS)

python: $(OUT_DIRS) $(OBJ)
swig -c++ -python DeepMimicCore.i
$(CC) -c -g $(CFLAGS) $(INC) $(LIBS) DeepMimicCore.cpp DeepMimicCore_wrap.cxx -I$(PYTHON_INC)
$(CC) -shared $(CFLAGS) $(OBJ) $(LIBS) DeepMimicCore_wrap.o -o _DeepMimicCore.so -L$(PYTHON_LIB)

$(OBJ_DIR)/%.o: %.cpp
$(CC) -c -g $(CFLAGS) $(INC) -o $@ $<

$(BIN): $(OUT_DIRS) $(OBJ)
$(CC) -g $(CFLAGS) $(OBJ) $(LIBS) -o $@

$(OUT_DIRS):
$(MKDIR) $(OUT_DIRS)

clean:
- rm -f -r $(OUT_DIRS) $(BIN) $(OBJ) $(OBJ_DIR) DeepMimicCore_wrap.cxx _DeepMimicCore.so






python ld clang++






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 31 '18 at 23:10









Fatine BoujnouniFatine Boujnouni

124




124













  • Possible duplicate of What is an undefined reference/unresolved external symbol error and how do I fix it?

    – Mike Kinghan
    Jan 1 at 10:43



















  • Possible duplicate of What is an undefined reference/unresolved external symbol error and how do I fix it?

    – Mike Kinghan
    Jan 1 at 10:43

















Possible duplicate of What is an undefined reference/unresolved external symbol error and how do I fix it?

– Mike Kinghan
Jan 1 at 10:43





Possible duplicate of What is an undefined reference/unresolved external symbol error and how do I fix it?

– Mike Kinghan
Jan 1 at 10:43












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53992058%2fld-symbols-not-found-for-architecture-x86-64-clang%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53992058%2fld-symbols-not-found-for-architecture-x86-64-clang%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas