After trying to compile camotics on ArchLiux, I got an error with the following include file:
In file included from src/camotics.cpp:23:
/opt/cbang/include/cbang/ApplicationMain.h:38:10: fatal error: cbang/os/win/Win32EventLog.h: No such file or directory
38 | #include <cbang/os/win/Win32EventLog.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [build/camotics.o] Error 1
scons: building terminated because of errors.
==> ERROR: A failure occurred in build().
Aborting...
After tracing the error I found out that this occurs, because when creating a package for the linux platform (os/lin) include files for OSX and Windows are not packaged (pretty good). However there isn't a platform check before ApplicationMain.h tries to include os/win/Win32EventLog.h. By placing it in #ifdef compilation runs fine.
Here is a patch to fix it:
Hello,
After trying to compile
camotics
on ArchLiux, I got an error with the following include file:After tracing the error I found out that this occurs, because when creating a package for the linux platform (
os/lin
) include files for OSX and Windows are not packaged (pretty good). However there isn't a platform check beforeApplicationMain.h
tries to includeos/win/Win32EventLog.h
. By placing it in#ifdef
compilation runs fine. Here is a patch to fix it:Hope this helps.