Open gucio321 opened 3 years ago
Hi, that is an ffmpeg include file. Maybe the version included is not supported (I think ffmpeg 3 and 4 should work).
The provided Cmake file will use video support if it detects FFMPEG.
run this: cmake CMakeLists.txt -DDGENGINE_MOVIE_SUPPORT:BOOL=FALSE
to skip movie support and see if it compiles. You need GCC 10+.
Hi,
Now it works. Thanx,
BUT should works, I suppose:
ffmpeg version 4.2.4 Copyright (c) 2000-2020 the FFmpeg developers
gcc (GCC) 10.2.1 20201125 (Red Hat 10.2.1-9)
And one more question:
in main.json
of gamefilesd we can see:
"action": {
"name": "if.equal",
"param1": { "name": "file.exists", "file": "ui_art/title.pcx" },
"param2": true,
"then": { "name": "load", "file": "ui/loadMain.json" },
"else": { "name": "load", "file": ["ui/dataMissing.json", "DIABDAT"] }
}
but file ui_art/tile.pcx
deosn't exist, so wehere should I get it from?
You can find more information here: https://github.com/dgengin/DGEngine/wiki
Basically, you need the files that are inside DIABDAT.MPQ, which comes with the original game to be in a DIABDAT folder next to the gamefilesd
folder or you can compile with the physfs project here: https://github.com/dgengin/physfs and then you can use that file directly without extracting it.
ok, works, thanx for help
@dgengin but why video doesn't work?
It should be all good.
ffmpeg version 4.3.1
OS: Fedora 33
I don't know. I'll try and find out. Probably the cmake_modules/FindFFmpeg.cmake
file is not setting the paths properly.
Edit: did you try the fedora equivalent of this command from BUILD.txt
?
sudo apt install libavdevice-dev libavformat-dev libavfilter-dev libavcodec-dev libswscale-dev libavutil-dev
You need to install the development libs, not the binary.
I did, but this packages (libs) doesn't exist in fedora's package manager. As I see, they are included to ffmpeg.
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
I found this: https://computingforgeeks.com/how-to-install-ffmpeg-on-fedora/
.
It says to install the development libs you do: sudo dnf -y install ffmpeg-devel
.
-- Found avcodec: /usr/include/ffmpeg /usr/local/lib/libavcodec.a
-- Found avdevice: /usr/include/ffmpeg /usr/local/lib/libavdevice.a
-- Found avfilter: /usr/include/ffmpeg /usr/local/lib/libavfilter.a
-- Found avformat: /usr/include/ffmpeg /usr/local/lib/libavformat.a
-- Found avutil: /usr/include/ffmpeg /usr/local/lib/libavutil.a
-- Found swresample: /usr/include/ffmpeg /usr/lib64/libswresample.so
-- Found swscale: /usr/include/ffmpeg /usr/local/lib/libswscale.a
-- Found SFML 2.5.1 in /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mszeptuch/git/d2/DGEngine
I installed, but still crashes It looks like cmake finds all av* libs
I built successfully in fedora 32 using these instructions: https://tecadmin.net/install-ffmpeg-on-fedora/ no errors.
Hi there, I've just tried to build on my Fedora 32 and have it: