Replies: 3 comments
-
Did you build |
Beta Was this translation helpful? Give feedback.
-
Hi, nothing was built locally. Although I have also tried that and failed :) |
Beta Was this translation helpful? Give feedback.
-
Okay, here is the solution I found. Adding the flag For context, the original Makefile: FILAMENT_LIBS=-lfilament -lbackend -lbluegl -lbluevk -lfilabridge -lfilaflat -lutils -lgeometry -lsmol-v -lvkshaders -libl
CC=clang++
main: main.o
$(CC) -Llib/x86_64/ main.o $(FILAMENT_LIBS) -lpthread -lc++ -ldl -o main
main.o: main.cpp
$(CC) -Iinclude/ -std=c++17 -pthread -c main.cpp
clean:
rm -f main main.o
.PHONY: clean
And now with the fix: FILAMENT_LIBS=-lfilament -lbackend -lbluegl -lbluevk -lfilabridge -lfilaflat -lutils -lgeometry -lsmol-v -lvkshaders -libl
CC=clang++
main: main.o
$(CC) -Llib/x86_64/ main.o $(FILAMENT_LIBS) -lpthread -lc++ -ldl -o main
main.o: main.cpp
$(CC) -Iinclude/ -std=c++17 -stdlib=libc++ -pthread -c main.cpp
clean:
rm -f main main.o
.PHONY: clean |
Beta Was this translation helpful? Give feedback.
-
This might be a silly question, but I can't figure out what I need to link against to get the functionality in
utils/Path.h
. 'libutils' doesn't do the trick.Here is what I have tried:
On Linux:
main.cpp
with this:Executing make will fail with an 'undefined reference' error for
getName()
.Full output:
On Windows:
Fails to compile with just
Linking with all the libraries in the
libs
folder and shuffeling the order also didn't work.I tried to be thorough and not miss the obvious. Hoping I am not wasting anyone's time with this.
Beta Was this translation helpful? Give feedback.
All reactions