[MacPorts] #26958: qscintilla: ld: library not found for -lqscintilla2
#26958: qscintilla: ld: library not found for -lqscintilla2 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qscintilla -------------------------------------+-------------------------------------- After updating to qt4-mac @4.7.0_0, I now can't rebuild qscintilla: {{{ /usr/bin/g++-4.2 -headerpad_max_install_names -single_module -dynamiclib -o libqscintillaplugin.dylib qscintillaplugin.o moc_qscintillaplugin.o -L/opt/local/lib -lqscintilla2 -L/opt/local/lib -lQtDesigner -lQtScript -lQtXml -lQtGui -lQtCore ld: library not found for -lqscintilla2 collect2: ld returned 1 exit status make: *** [libqscintillaplugin.dylib] Error 1 }}} Mac OS X 10.6.4, x86_64. This was also [http://lists.macosforge.org/pipermail/macports- dev/2010-October/012988.html reported on the mailing list]. libqscintilla2.dylib is located in /opt/local/libexec/qt4-mac/lib but I don't see any "-L/opt/local/libexec/qt4-mac/lib" up there. -- Ticket URL: <https://trac.macports.org/ticket/26958> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26958: qscintilla: ld: library not found for -lqscintilla2 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qscintilla -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Also, I guess that's not really the first error; the first error is: {{{ error: there are no arguments to 'PLATFORM_ASSERT' that depend on a template parameter, so a declaration of 'PLATFORM_ASSERT' must be available }}} -- Ticket URL: <https://trac.macports.org/ticket/26958#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26958: qscintilla: ld: library not found for -lqscintilla2 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qscintilla -------------------------------------+-------------------------------------- Comment(by michaelld@…): two thoughts: 1) can you try: {{{ sudo port clean qscintilla sudo port selfupdate sudo port install qscintilla [+variants] }}} and see if that helps? Sometimes cleaning & updating does. If not, then: 2) "PLATFORM_ASSERT" is defined in the file "${worksrcpath}/include/Platform.h", which is included by the cpp file of issue via the header "ScintillaQt.h". The only way that these #define won't happen is if "PLATFORM_H" is already defined -- that would really mess things up for Qsci. I can't find another #define of it on my system (including /opt/local and /usr/local), but maybe you do on yours & it's messing up the install? Can you insert some code at the top of the Platform.h file & see what happens? {{{ #ifdef PLATFORM_H #define PLATFORM_H #endif }}} and if at entry PLATFORM_H is already defined then GCC will print out a message about where it is already defined. Code compilation will not get any further than what you already have. -- Ticket URL: <https://trac.macports.org/ticket/26958#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26958: qscintilla build fails when tidy is installed -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qscintilla -------------------------------------+-------------------------------------- Comment(by ryandesign@…): In my case it turns out this was caused by the presence of /opt/local/include/platform.h which is provided by the tidy port. Deactivating the tidy port while building qscintilla fixed it. -- Ticket URL: <https://trac.macports.org/ticket/26958#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26958: qscintilla build fails when tidy is installed -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qscintilla -------------------------------------+-------------------------------------- Comment(by michaelld@…): I've checked in r72688: a trial fix that does no harm on my system (which uses a case-sensitive file system) & should work on those using a case- insensitive file system -- which, really, is the issue since the source code includes "Platform.h" while tidy installs "platform.h". Please do a "selfupdate" & try again with tidy still installed and active. -- Ticket URL: <https://trac.macports.org/ticket/26958#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26958: qscintilla build fails when tidy is installed --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: adfernandes@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: qscintilla | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Yes, that works, thanks. -- Ticket URL: <https://trac.macports.org/ticket/26958#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts