Closed jbollmeyer closed 2 years ago
Your gcc version is likely too old, which version are you using? At least gcc 4.9 is required (gcc 4.9 is actually quite old too now).
In the CMakeList.txt
, c11 is activated which replaces the older c99:
set(CMAKE_CXX_STANDARD 11)
so normally the setting is already beyond c99.
You could try the following in CMakeList.txt
:
set_property(TARGET pdfalto PROPERTY C_STANDARD 99)
but I guess it will very likely fail elsewhere.
tried devtolls4, but failed also. changed to a deian System (sid)
got following wile make:
/usr/bin/ld: libs/icu/linux/64/libicuuc.a(uvector.ao): relocation R_X86_64_32 against .bss._ZZN6icu_627UVector16getStaticClassIDEvE7classID' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: libs/icu/linux/64/libicuuc.a(edits.ao): relocation R_X86_64_32 against
.rodata.str2.2' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: libs/icu/linux/64/libicuuc.a(patternprops.ao): relocation R_X86_64_32S against .rodata._ZN6icu_62L6latin1E' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: libs/icu/linux/64/libicuuc.a(utrie.ao): relocation R_X86_64_32 against
.text._ZL21defaultGetFoldedValueP8UNewTrieii' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: libs/icu/linux/64/libicuuc.a(bmpset.ao): relocation R_X86_64_32S against symbol _ZTVN6icu_626BMPSetE' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: libs/icu/linux/64/libicuuc.a(unisetspan.ao): relocation R_X86_64_32S against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
For this one, simply add to CMakeList.txt
:
set(CMAKE_EXE_LINKER_FLAGS "-no-pie")
This helps, Thank you.
I am using redhat EL 7 After in installed cmake3 manually i do make and get the following:
I googled (stackoverflowed?) and tried:
make CFLAGS='-std=gnu99'
andmake CFLAGS='-std=c99'
But it did not help.i took the compile string with make -n and added the -std=c99 and got following:
Sorry for the noob dev questions.