{"action":"created","issue":{"url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/142","repository_url":"https://api.github.com/repos/google/flutter-desktop-embedding","labels_url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/142/comments","events_url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/142/events","html_url":"https://github.com/google/flutter-desktop-embedding/issues/142","id":370971084,"node_id":"MDU6SXNzdWUzNzA5NzEwODQ=","number":142,"title":"Building for Centos 7 - abi:cxx11","user":{"login":"11xdev","id":31208994,"node_id":"MDQ6VXNlcjMxMjA4OTk0","avatar_url":"https://avatars3.githubusercontent.com/u/31208994?v=4","gravatar_id":"","url":"https://api.github.com/users/11xdev","html_url":"https://github.com/11xdev","followers_url":"https://api.github.com/users/11xdev/followers","following_url":"https://api.github.com/users/11xdev/following{/other_user}","gists_url":"https://api.github.com/users/11xdev/gists{/gist_id}","starred_url":"https://api.github.com/users/11xdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/11xdev/subscriptions","organizations_url":"https://api.github.com/users/11xdev/orgs","repos_url":"https://api.github.com/users/11xdev/repos","events_url":"https://api.github.com/users/11xdev/events{/privacy}","received_events_url":"https://api.github.com/users/11xdev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-17T09:06:40Z","updated_at":"2018-10-19T13:05:20Z","closed_at":"2018-10-19T13:05:20Z","author_association":"NONE","body":"Hi All,\r\n\r\nI'm attempting to build the example application on centos. I've worked my way through installing the relevant dependencies; however I'm hitting some issues at the build stage.\r\n\r\nI've added -D_GLIBCXX_USE_CXX11_ABI=0 to the CXXFLAGS in the Makefile as suggested in a few places online but no luck!\r\n\r\nI've installed JSON cpp via:-\r\n\r\n`RUN rpm -i http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/j/jsoncpp-0.10.5-2.el7.x86_64.rpm\r\nRUN rpm -i http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/j/jsoncpp-devel-0.10.5-2.el7.x86_64.rpm`\r\n\r\nI'm using GCC 7.3.0 (built from source) the error is below\r\n\r\n`g++ -std=c++14 -Wall -Werror -D_GLIBCXX_USE_CXX11_ABI=0 -I/usr/include/jsoncpp   -I/root/flutter-desktop-embedding/example/linux/../../library/linux/include -I/root/flutter-desktop-embedding/example/linux/../../plugins/color_panel/linux/include -I/root/flutter-desktop-embedding/example/linux/../../plugins/file_chooser/linux/include -I/root/flutter-desktop-embedding/example/linux/../../plugins/menubar/linux/include flutter_embedder_example.cc -L/root/flutter-desktop-embedding/example/linux/out/lib -lglfw -ljsoncpp   -lflutter_embedder -lflutter_engine -lflutter_embedder_color_panel -lflutter_embedder_file_chooser -lflutter_embedder_menubar -Wl,-rpath=\\$ORIGIN/lib -o /root/flutter-desktop-embedding/example/linux/out/flutter_embedder_example\r\n/tmp/ccelbj1X.o: In function `main':\r\n**flutter_embedder_example.cc:(.text+0x331): undefined reference to `flutter_desktop_embedding::CreateFlutterWindowInSnapshotMode(unsigned long, unsigned long, std::string const&, std::string const&, std::vector<std::string, std::allocator<std::string> > const&)'\r\n/root/flutter-desktop-embedding/example/linux/out/lib/libflutter_embedder.so: undefined reference to `Json::writeString[abi:cxx11](Json::StreamWriter::Factory const&, Json::Value const&)'\r\n/root/flutter-desktop-embedding/example/linux/out/lib/libflutter_embedder.so: undefined reference to `Json::Value::asString[abi:cxx11]() const'\r\n/root/flutter-desktop-embedding/example/linux/out/lib/libflutter_embedder.so: undefined reference to `Json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'**\r\ncollect2: error: ld returned 1 exit status\r\nmake: *** [/root/flutter-desktop-embedding/example/linux/out/flutter_embedder_example] Error 1\r\nmake: Leaving directory `/root/flutter-desktop-embedding/example/linux'\r\nThe command '/bin/sh -c make -C ~/flutter-desktop-embedding/example/linux' returned a non-zero code: 2`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/comments/431356362","html_url":"https://github.com/google/flutter-desktop-embedding/issues/142#issuecomment-431356362","issue_url":"https://api.github.com/repos/google/flutter-desktop-embedding/issues/142","id":431356362,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTM1NjM2Mg==","user":{"login":"11xdev","id":31208994,"node_id":"MDQ6VXNlcjMxMjA4OTk0","avatar_url":"https://avatars3.githubusercontent.com/u/31208994?v=4","gravatar_id":"","url":"https://api.github.com/users/11xdev","html_url":"https://github.com/11xdev","followers_url":"https://api.github.com/users/11xdev/followers","following_url":"https://api.github.com/users/11xdev/following{/other_user}","gists_url":"https://api.github.com/users/11xdev/gists{/gist_id}","starred_url":"https://api.github.com/users/11xdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/11xdev/subscriptions","organizations_url":"https://api.github.com/users/11xdev/orgs","repos_url":"https://api.github.com/users/11xdev/repos","events_url":"https://api.github.com/users/11xdev/events{/privacy}","received_events_url":"https://api.github.com/users/11xdev/received_events","type":"User","site_admin":false},"created_at":"2018-10-19T13:05:20Z","updated_at":"2018-10-19T13:05:20Z","author_association":"NONE","body":"I'd tried that without any luck. I took a different approach and used one of the pre-built Centos & docker images with devtoolset-7 included and it worked. Something must have gone wrong with the environment I was using previously."}}
{"actor":{"display_login":"11xdev"}}