настройте wxFreeChart проблему на Ubunut 16.04

У меня есть проблема с, настраивают

petat@UNUC:~/Plocha/wxFreeChart-master$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for the --enable-debug option... will be automatically detected
checking for the --enable-unicode option... will be automatically detected
checking for the --enable-shared option... will be automatically detected
checking for the --with-toolkit option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for the --with-wxversion option... will be automatically detected
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.0... yes (version 3.1.1)
checking for wxWidgets static library... no
checking if wxWidgets was built with UNICODE enabled... yes
checking if wxWidgets was built in DEBUG mode... no
checking if wxWidgets was built in STATIC mode... no
checking which wxWidgets toolkit was selected... configure: error: 
        Cannot detect the currently installed wxWidgets port !
        Please check your 'wx-config --cxxflags'...

если я компилирую этот следующий код строки команды все в порядке

#include <wx/wx.h>

class Simple : public wxFrame
{
public:
    Simple(const wxString& title)
        : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(250, 150))
    {
        Centre();
    }
};

class MyApp : public wxApp
{
public:
    bool OnInit()
    {
        Simple *simple = new Simple(wxT("Simple"));
        simple->Show(true);
        return true;
    }
};

wxIMPLEMENT_APP(MyApp);

с

g++ basic.cpp `wx-config --cxxflags --libs std,aui ` -std=gnu++11 -o program
0
задан 2 December 2018 в 14:30

1 ответ

Необходимо установить все необходимые инструменты сборки с

sudo apt-get install libwxgtk3.0-dev libwxbase3.0-dev build-essential

и затем повторите.

0
ответ дан 27 October 2019 в 00:48

Другие вопросы по тегам:

Похожие вопросы: