weigert / TinyEngine

Tiny OpenGL Wrapper / 3D Engine in C++
1.02k stars 65 forks source link

TinyEngine/timer missing #18

Closed beew closed 3 years ago

beew commented 3 years ago

Hi, Tried to compile TinyEngine on Ubuntu 20.04 and got this error

$ make all -j8
Copying Core Header Files ...
Copying Helper Header Files ...
Compiling TinyEngine ...
Done
Done
In file included from TinyEngine.cpp:3:
TinyEngine.h:36:10: fatal error: TinyEngine/timer: No such file or directory
   36 | #include <TinyEngine/timer>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [makefile:48: install] Error 1

I have modified the make file to install it in my $HOME since I don't want to spew files all over my file system. I have changed LIBPATH and INCLUDEPATH and changed line 23 to

@if [ ! -d "$(INCLUDEPATH)/TinyEngine" ]; then mkdir -p $(INCLUDEPATH)/TinyEngine; fi;

and line 65 to

@if [ ! -d "$(INCLUDEPATH)/TinyEngine" ]; then mkdir -p $(INCLUDEPATH)/TinyEngine; fi;

I don't think this is relevant since this error showed up when I tried to install with sudo without modifying the make file.

beew commented 3 years ago

Ok, figured it out, added

export CPATH =/path/to/my/INCLUDEPATH

before compiling fixed it.