McArcady / lnp-forge

A Dwarf Fortress starter pack builder for Linux & MacOS
Other
239 stars 19 forks source link

Linking error building dfhack #12

Closed kylemiller3 closed 4 years ago

kylemiller3 commented 4 years ago

I'm trying to build 0.47.04-r2 with soundsense support and here is what I am getting for output

[INFO ]    Building dfhack-0.47.04-r1
[ERROR]      ../plugins/twbt/png++/error.hpp: In static member function 'static std::string png::std_error::thread_safe_strerror(int)':
[ERROR]      collect2: error: ld returned 1 exit status
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Building dfhack-0.47.04-r1'
[ERROR]  >>        called in step 'Building components'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@261]
[ERROR]  >>        called from: do_dfhack_build[scripts/build/dfhack.sh@55]
[ERROR]  >>        called from: main[scripts/lnp-forge.sh@630]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '@@CT_DOCDIR@@/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 1:17.76)
[01:18] / make: *** [bin/lnp-forge:151: build] Error 1

build.log

Would be grateful for any help resolving these.

kylemiller3 commented 4 years ago

Should note I am on Kubuntu 20.04

McArcady commented 4 years ago
[ALL  ]      /usr/bin/ld: cannot find -lSDL
[ERROR]      collect2: error: ld returned 1 exit status

This error means that the compiler can not find the library 'libSDL.so'. It should be provided by package: libsdl-dev or libsdl1.2-dev

kylemiller3 commented 4 years ago

Thanks installing libsdl1.2-dev fixed the issue. This may be needed to be mentioned in the setup instructions.