swftools
swftools copied to clipboard
Cannot compile
Hi Mathias, on Fedora 30 64bits it complains that gcc is to old (huuuhuuh?)
./configure: line 3852: RFX_CHECK_OLDGCC: command not found
- Your gcc is too old to compile this!
- The last version compileable by this compiler is
- swftools 0.7.0, which you can download from
- http://www.swftools.org/swftools-0.7.0.tar.gz
- .
- Newer versions require at least gcc 3.0.0
PS: Please join the wonderful never die SWF project called ruffle (Flash replacement in rust / webassembly) https://github.com/ruffle-rs/ruffle
That's weird. Did you regenerate ./configure
? It seems it was generated without the files in m4/
.
how do you regenerate configure? cause I tried to run autoconf but no success
mmmhmm, that's weird, I have 4 nodes with the same git folder, 3 nodes are compiling ok but one is failing, even if I removed completely the git folder and cloned it again....
anyhow other 3 nodes failed to compile with
/usr/bin/ld: warning: size of symbol voidclass' changed from 104 in ../lib/librfxswf.a(abc.o) to 112 in ../lib/librfxswf.a(registry.o) /usr/bin/ld: ../lib/libgfx.a(pdf.o): in function
pdf_startpage':
pdf.c:(.text+0x245): undefined reference to PDF_begin_page_ext' /usr/bin/ld: pdf.c:(.text+0x38e): undefined reference to
PDF_begin_document'
/usr/bin/ld: ../lib/libgfx.a(pdf.o): in function pdf_fillbitmap': pdf.c:(.text+0xc5d): undefined reference to
PDF_load_image'
/usr/bin/ld: pdf.c:(.text+0xcb2): undefined reference to PDF_load_image' /usr/bin/ld: pdf.c:(.text+0xe6d): undefined reference to
PDF_load_image'
/usr/bin/ld: ../lib/libgfx.a(pdf.o): in function pdf_addfont': pdf.c:(.text+0x10a3): undefined reference to
PDF_load_font'
/usr/bin/ld: ../lib/libgfx.a(pdf.o): in function pdf_finish': pdf.c:(.text+0x1570): undefined reference to
PDF_end_document'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:126: pdf2pdf] Error 1
make[1]: Leaving directory '/home/src/swftools/src'
make: *** [Makefile:18: all] Error 2
joined the make log result build.log
I stumbled upon this issue as well, I was able to successfully reconfigure with:
autoreconf --install --force --include=m4
It is also worth mentioning that the release archives on the official website are missing a few of the files in the m4
folder, so the configure
script that gets generated from those archives has issues, but it still runs successfully.