openframeworks / projectGenerator

repo for centralizing work on a tool to generate OF projects
83 stars 74 forks source link

problem compiling the projectgenerator #195

Open johannphilippe opened 5 years ago

johannphilippe commented 5 years ago

Hello, I've been experiencing this issue since yesterday. I tried all the solutions proposed in similar issues report.

`make: Entering directory '/home/johann/ofw/apps/projectGenerator/commandLine' HOST_OS=Linux checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123 with PKG_CONFIG_LIBDIR= Compiling OF library for Release make[1]: Entering directory '/home/johann/ofw/libs/openFrameworksCompiled/project' HOST_OS=Linux checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123 with PKG_CONFIG_LIBDIR= HOST_OS=Linux checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123 with PKG_CONFIG_LIBDIR= HOST_OS=Linux checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123 with PKG_CONFIG_LIBDIR= Done! make[1]: Leaving directory '/home/johann/ofw/libs/openFrameworksCompiled/project'

Compiling projectGenerator for Release make[1]: Entering directory '/home/johann/ofw/apps/projectGenerator/commandLine' HOST_OS=Linux checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123 with PKG_CONFIG_LIBDIR= Linking bin/projectGenerator for linux64 g++ -o bin/projectGenerator obj/linux64/Release/src/main.o obj/linux64/Release/src/ofApp.o /home/johann/ofw/addons/obj/linux64/Release/ofxPoco/src/ofxXmlPoco.o /home/johann/ofw/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/utils/Utils.o /home/johann/ofw/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/utils/LibraryBinary.o /home/johann/ofw/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/baseProject.o /home/johann/ofw/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/CBWinProject.o /home/johann/ofw/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/visualStudioProject.o /home/johann/ofw/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/androidStudioProject.o /home/johann/ofw/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/xcodeProject.o /home/johann/ofw/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/qtcreatorproject.o /home/johann/ofw/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/CBLinuxProject.o /home/johann/ofw/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/addons/ofAddon.o /home/johann/ofw/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoNet.a /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoUtil.a /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoRedis.a /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoCrypto.a /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoZip.a /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoNetSSL.a /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoFoundation.a /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoEncodings.a /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoXML.a /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoJSON.a -Wl,-rpath=./libs:./bin/libs -Wl,--as-needed -Wl,--gc-sections -fuse-ld=gold -L/home/johann/ofw/libs/fmodex/lib/linux64/ -lfmodex -lPocoNetSSL -lPocoNet -lPocoCrypto -lPocoUtil -lPocoXML -lPocoFoundation -lcrypto -lssl /home/johann/ofw/libs/kiss/lib/linux64/libkiss.a /home/johann/ofw/libs/tess2/lib/linux64/libtess2.a -lz -lgstapp-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -lfreetype -lsndfile -lopenal -lcurl -lglfw -lpulse-simple -lpulse -lasound -lGLEW -lGLU -lGL -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lmpg123 -lglut -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -ldl -lpthread -lfreeimage -lboost_filesystem -lboost_system -lpugixml -luriparser -lXinerama -lrtaudio /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoXML.a(DOMWriter.o):DOMWriter.cpp:function Poco::XML::DOMWriter::writeNode(std::string const&, Poco::XML::Node const): error: undefined reference to 'Poco::FileOutputStream::FileOutputStream(std::string const&, std::_Ios_Openmode)' /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoXML.a(AbstractContainerNode.o):AbstractContainerNode.cpp:function Poco::XML::AbstractContainerNode::findNode(__gnu_cxx::__normal_iterator<char const, std::string>&, __gnu_cxx::__normal_iterator<char const, std::string> const&, Poco::XML::Node const, Poco::XML::NamespaceSupport const): error: undefined reference to 'Poco::NumberParser::parse(std::string const&, char)' /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoXML.a(EntityResolverImpl.o):EntityResolverImpl.cpp:function Poco::XML::EntityResolverImpl::resolveSystemId(std::string const&): error: undefined reference to 'Poco::URIStreamOpener::open(std::string const&) const' /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoXML.a(ParserEngine.o):ParserEngine.cpp:function Poco::XML::ParserEngine::handleUnknownEncoding(void, char const, XML_Encoding): error: undefined reference to 'Poco::TextEncoding::find(std::string const&)' /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoXML.a(ParserEngine.o):ParserEngine.cpp:function Poco::XML::ParserEngine::handleExternalEntityRef(XML_ParserStruct, char const, char const, char const, char const): error: undefined reference to 'Poco::URI::URI(std::string const&)' /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoXML.a(ParserEngine.o):ParserEngine.cpp:function Poco::XML::ParserEngine::handleExternalEntityRef(XML_ParserStruct, char const, char const, char const, char const): error: undefined reference to 'Poco::URI::resolve(std::string const&)' /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoXML.a(ParserEngine.o):ParserEngine.cpp:function Poco::XML::ParserEngine::handleExternalEntityRef(XML_ParserStruct, char const, char const, char const, char const): error: undefined reference to 'Poco::URI::toString() const' /home/johann/ofw/addons/ofxPoco/libs/poco/lib/linux64/libPocoXML.a(ParserEngine.o):ParserEngine.cpp:function Poco::XML::ParserEngine::handleExternalEntityRef(XML_ParserStruct, char const, char const, char const, char const): error: undefined reference to 'Poco::URI::toString() const' collect2: error: ld returned 1 exit status /home/johann/ofw/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:403: recipe for target 'bin/projectGenerator' failed make[1]: [bin/projectGenerator] Error 1 make[1]: Leaving directory '/home/johann/ofw/apps/projectGenerator/commandLine' /home/johann/ofw/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed make: [Release] Error 2 make: Leaving directory '/home/johann/ofw/apps/projectGenerator/commandLine' There has been a problem compiling the command line projectGenerator. Please report this problem in the forums. `

I'm on linux mint Cinnamon 18.3 - gcc v 5.5.0. Anyone know what could make it run ?

Thanks in advance. Johann

hiroMTB commented 5 years ago

This is related to Poco. Try following script in your oF.

cd openframeworks/scripts/apothecary/apothecary
./apothecary -t linux64 update poco

// or 

./apothecary -t linux update poco

See details here https://github.com/openframeworks/apothecary

Daandelange commented 5 years ago

Hello, I just ran into the same issue yesterday in Mint 16.0 and current OF and fixed it with @hiroMTB 's solution. In this post, arturoc gives an alternative solution : downloading them manually. (didn't test). Note that Poco is in of/addons/ofxPoco/libs, not in of/libs.

Not sure if I had to cp -ar openframeworks/scripts/apothecary/poco openframeworks/addons/ofxPoco/libs/poco. Good luck :)

hiroMTB commented 5 years ago

I think apothecary copies compiled libs automatically. Thank you for report.

hiroMTB commented 4 years ago

I see this issue today again in latest oF master and latest PG on Ubuntu 16.04. And noticed I was wrong. Apothecary script does not copy lib files. We need to copy by hand.