ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.15k stars 2.21k forks source link

Error when compiling on linux #11673

Closed Thecoolgamer6745 closed 1 year ago

Thecoolgamer6745 commented 1 year ago

Describe your problem here.

I get this error when trying to compile on linux: Error: In file included from ./src/vlc/VlcBitmap.cpp:128: /mnt/chromeos/MyFiles/Downloads/IMPOSTOR-UPDATE-main/IMPOSTOR-UPDATE-main/source/vlc/cpp/src/LibVLC.cpp:4:10: fatal error: StdInt.h: No such file or directory 4 | #include | ^~~~~~ compilation terminated.

Are you modding a build from source or with Lua?

Source

What is your build target?

linux

Did you edit anything in this build? If so, mention or summarize your changes.

No

Ardo69 commented 1 year ago

post this in the impostor v4 mod repository, not here.

Ardo69 commented 1 year ago

and the problem is that you don't have hxCodec

Munoida commented 1 year ago

and the problem is that you don't have hxCodec

That and because of how the Linux file system works, it's case-sensitive.

go into /source/vlc/cpp/src/LibVLC.cpp and replace

#include <iostream>
#include <string>
#include <StdInt.h>
#include <windows.h>

with

#include <iostream>
#include <string>
#include <stdint.h>
//#include <windows.h>

and then your problem should be solved! granted you also have the libvlc-dev and libvlccore-dev or whatever the equivalent is for your package manager.