|
From: | Andreas Höschler |
Subject: | Linking frameworks does not work |
Date: | Wed, 2 May 2018 12:42:54 +0200 |
Hi all, I have Window Maker running now and Fred resize.app but still wasn't able to get one of my own apps to work that need to be linked against my frameworks. The test app links against gui and base but not any of the listed frameworks SRFoundation, SREnterprise,... make messages=yes gives me ... gcc -rdynamic -pthread -fgnu-runtime -o /Build/TabTest/TabTest.app/./TabTest \ /Build/TabTest/obj/TabTest.obj/Controller.m.o /Build/TabTest/obj/TabTest.obj/DocumentController.m.o /Build/TabTest/obj/TabTest.obj/main.m.o -L/root/GNUstep/Library/Libraries -L/usr/local/lib -lESMFoundation -lSRAppKit -lSRDesign -lSREnterprise -lSRFoundation -lSRInterface -lSRMapKit -lSRObjects -lSRQuery -lgnustep-gui -lgnustep-base -lobjc -lm ... but ldd shows none of the frameworks SRFoundation, SREnterprise,... in its output: ldd /usr/local/lib/GNUstep/Applications/TabTest.app/TabTest linux-gate.so.1 => (0xb7fb9000) libgnustep-gui.so.0.26 => /usr/local/lib/libgnustep-gui.so.0.26 (0xb7a3d000) libgnustep-base.so.1.25 => /usr/local/lib/libgnustep-base.so.1.25 (0xb74b8000) libobjc.so.4 => /usr/lib/i386-linux-gnu/libobjc.so.4 (0xb7483000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7466000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb72af000) libicuuc.so.55 => /usr/lib/i386-linux-gnu/libicuuc.so.55 (0xb7119000) libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb70ee000) libtiff.so.5 => /usr/lib/i386-linux-gnu/libtiff.so.5 (0xb7072000) libjpeg.so.8 => /usr/lib/i386-linux-gnu/libjpeg.so.8 (0xb7013000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb6fbd000) libgnutls.so.30 => /usr/lib/i386-linux-gnu/libgnutls.so.30 (0xb6e65000) libxslt.so.1 => /usr/lib/i386-linux-gnu/libxslt.so.1 (0xb6e20000) libxml2.so.2 => /usr/lib/i386-linux-gnu/libxml2.so.2 (0xb6c3f000) libffi.so.6 => /usr/lib/i386-linux-gnu/libffi.so.6 (0xb6c36000) libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb6c30000) libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb6c15000) libicui18n.so.55 => /usr/lib/i386-linux-gnu/libicui18n.so.55 (0xb69a2000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb6985000) /lib/ld-linux.so.2 (0xb7fbb000) libicudata.so.55 => /usr/lib/i386-linux-gnu/libicudata.so.55 (0xb50cd000) libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb4f55000) liblzma.so.5 => /lib/i386-linux-gnu/liblzma.so.5 (0xb4f2f000) libjbig.so.0 => /usr/lib/i386-linux-gnu/libjbig.so.0 (0xb4f20000) libp11-kit.so.0 => /usr/lib/i386-linux-gnu/libp11-kit.so.0 (0xb4ebf000) libidn.so.11 => /usr/lib/i386-linux-gnu/libidn.so.11 (0xb4e8b000) libtasn1.so.6 => /usr/lib/i386-linux-gnu/libtasn1.so.6 (0xb4e75000) libnettle.so.6 => /usr/lib/i386-linux-gnu/libnettle.so.6 (0xb4e38000) libhogweed.so.4 => /usr/lib/i386-linux-gnu/libhogweed.so.4 (0xb4e03000) libgmp.so.10 => /usr/lib/i386-linux-gnu/libgmp.so.10 (0xb4d77000) I can't see why this would be so. Shouldn't the resulting binary be linked to my frameworks and this showing up in the ldd output? My frameworks are in the standard path. find /usr/local -name SREnterprise /usr/local/include/SREnterprise /usr/local/lib/GNUstep/Frameworks/SREnterprise.framework/Versions/1/SREnterprise /usr/local/lib/GNUstep/Frameworks/SREnterprise.framework/SREnterprise I encounter this with gnustep-make-2.7.0. Hints greatly appreciated!! Thanks a lot in advance, Andreas GNUmakefile: ======================================================= include $(GNUSTEP_MAKEFILES)/common.make APP_NAME = TabTest PACKAGE_NAME = TabTest TabTest_APPLICATION_ICON = TabTest.tiff GNUSTEP_BUILD_DIR = /Build/TabTest TabTest_APPLICATION_ICON = TabTest.icns GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT) ADDITIONAL_INCLUDE_DIRS += ADDITIONAL_LIB_DIRS += TabTest_GUI_LIBS += -lESMFoundation -lSRAppKit -lSRDesign -lSREnterprise -lSRFoundation -lSRInterface -lSRMapKit -lSRObjects -lSRQuery TabTest_OBJC_FILES = Controller.m DocumentController.m main.m TabTest_RESOURCE_FILES = MainMenu-GNUstep.gsmarkup MainMenu-OSX.gsmarkup SmartClient.tiff Document.smib TabTest.tiff Info-gnustep.plist TabTest_LOCALIZED_RESOURCE_FILES = TabTest_LANGUAGES = include GNUmakefile.preamble include $(GNUSTEP_MAKEFILES)/application.make include GNUmakefile.postamble |
[Prev in Thread] | Current Thread | [Next in Thread] |