国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當(dāng)前位置: 首頁(yè) > news >正文

wordpress顯示輪播圖深圳市seo上詞多少錢(qián)

wordpress顯示輪播圖,深圳市seo上詞多少錢(qián),珠海門(mén)戶網(wǎng)站建設(shè)價(jià)格,html5網(wǎng)站模板下載1,選擇使用 wxWidgets 框架 選擇這個(gè)主要是因?yàn)橥耆拈_(kāi)源,不想折騰 Qt的庫(kù),而且打包的文件比較大。 網(wǎng)絡(luò)上面有很多的對(duì)比,而且使用QT的人比較多。 但是我覺(jué)得wxwidgets 更加偏向 c 語(yǔ)法本身,也有助學(xué)習(xí)C。 沒(méi)有太多…

1,選擇使用 wxWidgets 框架

選擇這個(gè)主要是因?yàn)橥耆拈_(kāi)源,不想折騰 Qt的庫(kù),而且打包的文件比較大。

網(wǎng)絡(luò)上面有很多的對(duì)比,而且使用QT的人比較多。
但是我覺(jué)得wxwidgets 更加偏向 c++ 語(yǔ)法本身,也有助學(xué)習(xí)C++。
沒(méi)有太多的特殊封裝,而且商業(yè)化更加友好,打包軟件也比較少。

更偏向原生的系統(tǒng),做好相關(guān)的功能開(kāi)發(fā)。

2,在 ubuntu上進(jìn)行安裝320版本環(huán)境

https://www.wxwidgets.org/downloads/

https://docs.codelite.org/wxWidgets/repo320/

先增加證書(shū)授權(quán):

# 增加簽名
sudo apt-key adv --fetch-keys https://repos.codelite.org/CodeLite.asc#2 安裝源
# 生成一個(gè)文件 /etc/apt/sources.list.d/archive_uri-https_repos_codelite_org_wx3_2_ubuntu_-jammy.list
# 不需要可以刪除掉
sudo apt-add-repository 'deb https://repos.codelite.org/wx3.2/ubuntu/ jammy universe'#3,安裝庫(kù)
apt-get install libwxbase3.2-0-unofficial \libwxbase3.2unofficial-dev \libwxgtk3.2-0-unofficial \libwxgtk3.2unofficial-dev \wx3.2-headers \wx-common \libwxgtk-media3.2-0-unofficial \libwxgtk-media3.2unofficial-dev \libwxgtk-webview3.2-0-unofficial # 特別奇怪,其余的庫(kù)要一個(gè)一個(gè)進(jìn)行安裝,不能批量執(zhí)行。
sudo apt-get install libwxgtk-webview3.2unofficial-dev 
sudo apt-get install libwxgtk-webview3.2-0-unofficial-dbg 
sudo apt-get install libwxbase3.2-0-unofficial-dbg

3,解決編譯問(wèn)題 undefined reference to `pcre2_config_32’|

||=== Build: Debug in demo02 (compiler: GNU GCC Compiler) ===|
||warning: libpcre2-32.so.0, needed by /usr/lib/x86_64-linux-gnu/libwx_baseu_unofficial-3.2.so, not found (try using -rpath or -rpath-link)|
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libwx_baseu_unofficial-3.2.so||undefined reference to `pcre2_config_32'|
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libwx_baseu_unofficial-3.2.so||undefined reference to `pcre2_code_free_32'|
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libwx_baseu_unofficial-3.2.so||undefined reference to `pcre2_get_ovector_pointer_32'|
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libwx_baseu_unofficial-3.2.so||undefined reference to `pcre2_match_data_create_from_pattern_32'|
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libwx_baseu_unofficial-3.2.so||undefined reference to `pcre2_compile_32'|
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libwx_baseu_unofficial-3.2.so||undefined reference to `pcre2_match_data_free_32'|
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libwx_baseu_unofficial-3.2.so||undefined reference to `pcre2_match_32'|
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libwx_baseu_unofficial-3.2.so||undefined reference to `pcre2_get_error_message_32'|
||error: ld returned 1 exit status|
||=== Build failed: 9 error(s), 1 warning(s) (0 minute(s), 0 second(s)) ===|

終于找到問(wèn)題,通過(guò)安裝 libpcre2-dev 解決

sudo apt install libpcre2-dev

4,第一個(gè)hello world,并進(jìn)行編譯

參考在線手冊(cè):
https://docs.wxwidgets.org/3.2/
第一個(gè)hello world 文檔:
https://docs.wxwidgets.org/3.2/overview_helloworld.html

// wxWidgets "Hello World" Program// For compilers that support precompilation, includes "wx/wx.h".
#include <wx/wxprec.h>#ifndef WX_PRECOMP#include <wx/wx.h>
#endifclass MyApp : public wxApp
{
public:virtual bool OnInit();
};class MyFrame : public wxFrame
{
public:MyFrame();private:void OnHello(wxCommandEvent& event);void OnExit(wxCommandEvent& event);void OnAbout(wxCommandEvent& event);
};enum
{ID_Hello = 1
};wxIMPLEMENT_APP(MyApp);bool MyApp::OnInit()
{MyFrame *frame = new MyFrame();frame->Show(true);return true;
}MyFrame::MyFrame(): wxFrame(NULL, wxID_ANY, "Hello World")
{wxMenu *menuFile = new wxMenu;menuFile->Append(ID_Hello, "&Hello...\tCtrl-H","Help string shown in status bar for this menu item");menuFile->AppendSeparator();menuFile->Append(wxID_EXIT);wxMenu *menuHelp = new wxMenu;menuHelp->Append(wxID_ABOUT);wxMenuBar *menuBar = new wxMenuBar;menuBar->Append(menuFile, "&File");menuBar->Append(menuHelp, "&Help");SetMenuBar( menuBar );CreateStatusBar();SetStatusText("Welcome to wxWidgets!");Bind(wxEVT_MENU, &MyFrame::OnHello, this, ID_Hello);Bind(wxEVT_MENU, &MyFrame::OnAbout, this, wxID_ABOUT);Bind(wxEVT_MENU, &MyFrame::OnExit, this, wxID_EXIT);
}void MyFrame::OnExit(wxCommandEvent& event)
{Close(true);
}void MyFrame::OnAbout(wxCommandEvent& event)
{wxMessageBox("This is a wxWidgets Hello World example","About Hello World", wxOK | wxICON_INFORMATION);
}void MyFrame::OnHello(wxCommandEvent& event)
{wxLogMessage("Hello world from wxWidgets!");
}

進(jìn)行編譯:

c++ -o main main.cpp  `wx-config --cxxflags --libs`

然后運(yùn)行main
在這里插入圖片描述

5,使用工具 codeblocks 進(jìn)行開(kāi)發(fā)

https://www.codeblocks.org/

在這里插入圖片描述
https://www.codeblocks.org/downloads/binaries/

直接通過(guò)下載文件安裝,或者apt 安裝即可。

sudo apt install -y codeblocks

命令就是 codeblocks
在這里插入圖片描述
在這里插入圖片描述

可以按照模板,創(chuàng)建一個(gè) wxWidgets的項(xiàng)目。

在這里插入圖片描述
運(yùn)行效果:
在這里插入圖片描述

6,總結(jié)

已經(jīng)有人總結(jié)了項(xiàng)目
https://www.bilibili.com/video/BV1y3411477j/

wxwidgets跨平臺(tái)GUI框架使用入門(mén)詳解

PDF資料:

https://pan.baidu.com/s/1cX8Ro

繼續(xù)學(xué)習(xí) wxWidgets。
還有靜態(tài)編譯的辦法,需要重新編譯wxwidgets,否則沒(méi)有庫(kù)文件:
https://blog.csdn.net/CharmingSun/article/details/51765180

http://m.aloenet.com.cn/news/904.html

相關(guān)文章:

  • 網(wǎng)絡(luò)投注網(wǎng)站是怎么建設(shè)簡(jiǎn)述網(wǎng)絡(luò)營(yíng)銷(xiāo)的概念
  • 可以免費(fèi)開(kāi)店的平臺(tái)windows11優(yōu)化大師
  • 網(wǎng)站動(dòng)態(tài)小圖標(biāo)青島網(wǎng)絡(luò)seo公司
  • 日本中古手表網(wǎng)站申請(qǐng)網(wǎng)站怎么申請(qǐng)
  • 襄陽(yáng)做網(wǎng)站哪家好b2b平臺(tái)有哪些
  • 電子商務(wù)網(wǎng)站開(kāi)發(fā)的基本流程軟文營(yíng)銷(xiāo)的特點(diǎn)有哪些
  • 深圳 建設(shè)銀行國(guó)際互聯(lián)網(wǎng)站網(wǎng)絡(luò)推廣公司排名
  • 這幾年做網(wǎng)站怎么樣百度搜索風(fēng)云榜排行榜
  • 東莞網(wǎng)站設(shè)計(jì)報(bào)價(jià)天津百度網(wǎng)站排名優(yōu)化
  • 有哪些網(wǎng)站可以做淘寶客搜索seo怎么優(yōu)化
  • 搭建服務(wù)器做網(wǎng)站公司如何在百度宣傳
  • 9uu域名更新自動(dòng)轉(zhuǎn)跳seo怎么優(yōu)化步驟
  • 湖南省住房和城鄉(xiāng)建設(shè)網(wǎng)站網(wǎng)絡(luò)seo推廣培訓(xùn)
  • 網(wǎng)頁(yè)版的游戲百度推廣優(yōu)化師
  • wordpress聯(lián)系表單插件seo整體優(yōu)化步驟怎么寫(xiě)
  • 鄭州專業(yè)做淘寶網(wǎng)站推廣蘇州疫情最新消息
  • 做招聘網(wǎng)站的客戶想退錢(qián)網(wǎng)站seo快速排名優(yōu)化
  • 做京東網(wǎng)站需要哪些手續(xù)參考網(wǎng)是合法網(wǎng)站嗎?
  • 免費(fèi)發(fā)布推廣信息軟件搜索引擎優(yōu)化工作
  • dedecms網(wǎng)站太原seo快速排名怎么樣
  • 公司做網(wǎng)站價(jià)格足球比賽今日最新推薦
  • 網(wǎng)站建設(shè)地域名螺螄粉的軟文推廣
  • 網(wǎng)站開(kāi)發(fā)4k分辨率西安網(wǎng)絡(luò)科技有限公司
  • 網(wǎng)站建設(shè)工期時(shí)間表站長(zhǎng)統(tǒng)計(jì)免費(fèi)下載
  • 企業(yè)電話認(rèn)證百度seo教程視頻
  • 四川德立勝建設(shè)工程有限公司網(wǎng)站軟文范例大全300字
  • 做同性戀的珠寶網(wǎng)站尋找外貿(mào)客戶的網(wǎng)站
  • 人大網(wǎng)站建設(shè)報(bào)價(jià)單湖北網(wǎng)站seo
  • 建設(shè)的網(wǎng)站搜索引擎關(guān)鍵詞優(yōu)化
  • wordpress 融資谷歌seo網(wǎng)絡(luò)公司