Skip to content

Commit

Permalink
Fixing compiling errors
Browse files Browse the repository at this point in the history
Windows was failin to link because of Vim having added the includes
automatically without me noticing it ^^"
  • Loading branch information
voylin committed Jul 25, 2024
1 parent a8117fb commit 29c4c3b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ elif platform == 'windows':
os.system(f'make -j {num_jobs}')
os.system(f'make -j {num_jobs} install')

os.system('make distclean')
os.chdir('..')

if os_platform.system().lower() == 'windows':
Expand Down
13 changes: 0 additions & 13 deletions src/renderer.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
#include "renderer.hpp"
#include <cerrno>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <libavcodec/avcodec.h>
#include <libavcodec/codec.h>
#include <libavcodec/codec_id.h>
#include <libavcodec/packet.h>
#include <libavformat/avformat.h>
#include <libavutil/dict.h>
#include <libavutil/frame.h>
#include <libavutil/rational.h>
#include <libswscale/swscale.h>

Renderer::~Renderer() {
if (av_codec_ctx)
Expand Down
4 changes: 2 additions & 2 deletions src/renderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#include <godot_cpp/classes/image.hpp>
#include <godot_cpp/classes/resource.hpp>
#include <godot_cpp/variant/utility_functions.hpp>
#include <libavcodec/codec.h>
#include <libavcodec/codec_id.h>

extern "C" {
#include <libavcodec/codec.h>
#include <libavcodec/codec_id.h>
#include <libavcodec/avcodec.h>
#include <libavcodec/packet.h>
#include <libavdevice/avdevice.h>
Expand Down

0 comments on commit 29c4c3b

Please sign in to comment.