Hi,

Am Dienstag, 20. Juli 2010, um 13:25:46 schrieb Nikos Chantziaras:
> On 07/20/2010 10:00 AM, Nikos Chantziaras wrote:
> > When I try to import (Project->Import) a MIDI file, LMMS crashes with:
> > 
> > FlpImport::tryImport(): not a valid FL project
> > 
> > lmms: symbol lookup error: /usr/lib64/lmms/libflpimport.so: undefined
> > symbol: zip_open
> > 
> > I'm using LMMS from Git (0.4.90).
> 
> I noticed that this doesn't happen when I disable the "--as-needed"
> linker flag (an extremely useful flag.)  So I guess this means the LMMS
> makefiles fail to explicitly include the lib that provides zip_open.
Ah, interesting :) FLP import plugin indeed is not linked against libzip.. 
could you please try out the attached patch?

Toby
diff --git a/plugins/flp_import/CMakeLists.txt b/plugins/flp_import/CMakeLists.txt
index 1a2c2c7..8f2d058 100644
--- a/plugins/flp_import/CMakeLists.txt
+++ b/plugins/flp_import/CMakeLists.txt
@@ -2,4 +2,6 @@ INCLUDE(BuildPlugin)
 
 INCLUDE_DIRECTORIES(unrtf)
 
+LINK_LIBRARIES(${ZIP_LIBRARIES})
+
 BUILD_PLUGIN(flpimport FlpImport.cpp unrtf.cpp FlpImport.h)

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Lmms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-users

Reply via email to