Error No File At /usr/local/pgsql/lib/libpq.5.dylib
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Missing file when deploying Qt app on Mac OSX up vote 3 down vote favorite 1 I'm trying to deploy a Qt application on Mac OSX so I'm running this command: macdeployqt Example.app It mostly seems to work as the executable grows in size so I assume the relevant plugins and libraries are being added. However, in the end macdeployqt outputs this error message: ERROR: no file at "/usr/local/pgsql/lib/libpq.5.dylib" Does anybody know what this file is? Do I need to install something to make it work? osx qt deployment macdeployqt share|improve this question edited Jun 17 '12 at 15:03 Charles 40.1k1069107 asked Jun 17 '12 at 9:50 this.lau_ 39k30142251 "'liqpq'" is the PostgreSQL library. Are you including it in your project? And if so, I think you need to copy it to your built application's bundle. –Michael Dautermann Jun 17 '12 at 11:49 1 @MichaelDautermann, this is strange, I'm not actually using PostgreSQL in my project, just SQlite. Is there any way to remove this dependency? –this.lau_ Jun 17 '12 at 12:00 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted The documentation states: SQL driver plugins are deployed if the application uses the QtSql module. The macdeployqt tool does not know which plugins your application uses, and tries to deploy all of them. Your application does not link directly with any of the plugins, so there's no way to tell what it uses merely by looking at the executable. The macdeployqt tool would need to parse the code of your application, or use potentially breakable heuristics to scan for sql driver name strings. It's a shor
Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Geographic Information Systems Questions Tags Users Badges Unanswered Ask Question _ Geographic Information Systems http://stackoverflow.com/questions/11070410/missing-file-when-deploying-qt-app-on-mac-osx Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Can't find libpq when installing http://gis.stackexchange.com/questions/78584/cant-find-libpq-when-installing-postgis PostGIS up vote 1 down vote favorite I'm trying to install PostGIS 2.2.1 on Mac OS X 10.8. I've installed all of the prerequisites for PostGIS and am now running the configure command: ./configure CC=/usr/bin/clang CXX=/usr/bin/clang++ "CFLAGS=-arch x86_64 -arch i386" "LDFLAGS=-arch x86_64 -arch i386" "CXXFLAGS=-arch x86_64 -arch i386" I'm getting the following error: configure: error: could not find libpq I have PostgreSQL 9.1.4 installed and I believe I see the libpq libraries which is owned by root:wheel: /usr/local/pgsql/lib/libpq.5.4.dylib /usr/local/pgsql/lib/libpq.5.dylib /usr/local/pgsql/lib/libpq.a /usr/local/pgsql/lib/libpq.dylib I did the following but it didn't help: export LD_LIBRARY_PATH=/usr/local/pgsql/lib This too in case PostGIS just needs to know where Postgres is installed: export LD_LIBRARY_PATH=/usr/local/pgsql Finally, I ran this command with and without sudo: ./configure CC=/usr/bin/clang CXX=/usr/bin/clang++ "CFLAGS=-arch x86_64 -arch i386" "LDFLAGS=-arch x86_64 -arch i386" "CXXFLAGS=-arch x86_64 -arch i386" "LD_LIBRARY_PATH=/usr/local/pgsql/lib" What am I doing wrong? I found another post here where someone else had the same problem but the solutions
download a browser that supports JavaScript, or https://forum.qt.io/post/175326 enable it if it's disabled (i.e. NoScript). Home Qt https://v-play.net/developers/forums/t/macdeployqt/ Development Installation and Deployment Problems with MAC (string.h: No such file or directory) [solved] Problems with MAC (string.h: No such file or directory) [solved] This topic has been deleted. Only users with topic management privileges error no can see it. JorgeVdB last edited by Hi!!!, I find this instruction @macdeployqt Herr....app/@ It makes the same that I did manually before, but when I use it returns this @ERROR: no file at "/usr/local/pgsql/lib/libpq.5.dylib" @ And if I do it again, @WARNING: WARNING: error no file Could not find any external Qt frameworks to deploy in "Herramienta_CTE.app" WARNING: Perhaps macdeployqt was already used on "Herramienta_CTE.app" ? WARNING: If so, you will need to rebuild "Herramienta_CTE.app" before trying again. ERROR: file copy failed from "/Developer/Applications/Qt/plugins/accessible/libqtaccessiblewidgets.dylib" ERROR: to "Herramienta_CTE.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib" ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqcncodecs.dylib" ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqcncodecs.dylib" ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqjpcodecs.dylib" ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqjpcodecs.dylib" ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqkrcodecs.dylib" ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqkrcodecs.dylib" ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqtwcodecs.dylib" ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqtwcodecs.dylib" ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqgif.dylib" ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqgif.dylib" ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqico.dylib" ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqico.dylib" ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqjpeg.dylib" ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqjpeg.dylib" ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqmng.dylib" ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqmng.dylib" ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqtga.dylib" ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqtga.dylib" ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqtiff.dylib" ERROR: to "He
5) › macdeployqt Search Tagged:macdeployqt Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 2, 2016 at 01:11 #13634 Per Hi - I unsuccessfully tried to create a trivial Vplay Mac app and move this app to a mac without Qt installed. Can you help? In Qt Creator I created a trivial Vplay 2.8.4 app called EmptyApp using with the wizard generated Empty Application. I add a Vplay license, and specify "publish" in the config.json file. This app runs fine on the development mac 10.9 with Qt 5.6 installed. In the generated build-EmptyApp-Desktop_Qt_5_6_0_clang_64bit-Release/ I ran macdeployqt $ /Applications/Qt/5.6/clang_64/bin/macdeployqt EmptyApp.app -dmg WARNING: Plugin "libqsqlodbc.dylib" uses private API and is not Mac App store compliant. WARNING: Plugin "libqsqlpsql.dylib" uses private API and is not Mac App store compliant. ERROR: no file at "/opt/local/lib/mysql55/mysql/libmysqlclient.18.dylib" ERROR: no file at "/usr/local/lib/libpq.5.dylib" This looks like a hard-coded macdeployqt issue since I have no directory /opt, and no libpg in /usr/local/lib. Inspecting the app with otool shows that it DOES contain mysql. Opening the dmg and running the app results in a crash. Do you have a workaround to distribute mac apps? Thanks! $ otool -L EmptyApp.app/Contents/MacOS/EmptyApp EmptyApp.app/Contents/MacOS/EmptyApp: @rpath/Qt3DQuick.framework/Versions/5/Qt3DQuick (compatibility version 5.6.0, current version 5.6.0) @rpath/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.6.0, current version 5.6.0) @rpath/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.6.0, current version 5.6.0) @rpath/QtMultimedia.framework/Versions/5/QtMultimedia (compatibility version 5.6.0, current version 5.6.0) @rpath/Qt3DInput.framework/Versions/5/Qt3DInput (compatibility version 5.6.0, current version 5.6.0) @rpath/Qt3DRender.framework/Versions/5/Qt3DRender (compatibility version 5.6.0, current version 5.6.0) @rpath/Qt3DCore.framework/Versions/5/Qt3DCore (compatibility version 5.6.0, current version 5.6.0) @rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.6.0, current version 5.6.0) @rpath/QtCore.framewor