Page 1 of 1
Error compiling supermodel on Ubuntu Xenial

Posted:
Thu Jul 14, 2016 12:00 pm
by legluondunet
Hello,
when I try to compile last Supermodel code, I obtain this compilation error:
http://pastebin.com/5dRMqsCHThank you for your help.
LGDN
Ubuntu Xenial
Re: Error compiling supermodel on Ubuntu Xenial

Posted:
Fri Jul 15, 2016 7:07 am
by Bart
There is now an Src/OSD/Logger.cpp, so you need to make sure that $(OBJ_DIR)/Logger.o is in the object list in your Makefile.
Re: Error compiling supermodel on Ubuntu Xenial

Posted:
Fri Jul 15, 2016 8:08 am
by legluondunet
I used the default Makefile.SDL.UNIX.GCC wich contains this line:
- Code: Select all
$(OBJ_DIR)/%.o: Src/OSD/%.cpp
$(CXX) $< $(CPPFLAGS) -o $(OBJ_DIR)/$(*F).o
Re: Error compiling supermodel on Ubuntu Xenial

Posted:
Fri Jul 15, 2016 12:41 pm
by Bart
I understand but this Makefile has not been updated with the list of objects (e.g., OBJ = ...). What you pasted is a rule. The list of objects is near the top of the file. Compare it to the Windows GCC file, for example.
Re: Error compiling supermodel on Ubuntu Xenial

Posted:
Sat Jul 16, 2016 3:41 am
by legluondunet
I did what you said and Supermodel compiles OK now, thank you.
Just a last question: why it is not included by default in the Unix Makefile?
Re: Error compiling supermodel on Ubuntu Xenial

Posted:
Sat Jul 16, 2016 12:43 pm
by Bart
I don't use Linux at home so the file quickly gets out of date. I never guarantee that SVN builds

Re: Error compiling supermodel on Ubuntu Xenial

Posted:
Sun Jul 17, 2016 2:03 pm
by legluondunet
Thank you for your support.