Building gmtmex on Linux
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
調査の方向性
README と gmtmex.c、gmtmex_parser.c、gmt.m のエントリポイントを、報告されている Ubuntu 18.04、MATLAB R2019a、GMT 6.1.0 のビルドコマンドと併せて確認してください。動作する Linux のビルドおよびランタイムライブラリの設定を文書化し、手順が gmtmex.mexa64 の生成方法と使用方法を正確に説明していることを検証してください。
索引モデルが issue の本文から書いたものです。
説明
While searching for documentation regarding building gmtmex on Linux, I noticed that the readme was looking for volunteers. With the steps outlined below, I am able to get GMT to work with my MATLAB project on Ubuntu 18.04. I am sure there is a more elegant way of achieving this, however, I thought it best to share this solution, since it does appear to work well.
With both MATLAB R2019a and GMT Version 6.1.0_3ede8d1_2019.08.04 installed in /home, in the gmtmex directory cloned from GitHub:
-
Built gmtmex object file as
gcc -I$GMT_dir/include/gmt -I$MATLAB_dir/extern/include -O2 -Wall -m64 -fPIC -fno-strict-aliasing -std=c99 -DGMT_MATLAB -I$GMT_dir/include/gmt -c gmtmex.c -
Built gmtmex_parser object file as
gcc -I$GMT_dir/include/gmt -I$MATLAB_dir/extern/include -O2 -Wall -m64 -fPIC -fno-strict-aliasing -std=c99 -DGMT_MATLAB -I$GMT_dir/include/gmt -c gmtmex_parser.c -
Compiled mex file as
$MATLAB_dir/bin/mex -DGMT_MATLAB -I$GMT_dir/include/gmt -I/$GMT_dir/include/gmt/lib -I$MATLAB_dir/extern/include gmtmex.o gmtmex_parser.o -L$GMT_dir/lib -lgmt -L$MATLAB_dir/bin/glnxa64 -lmx -lmex -output gmtmex.mexa64
Copied over the gmt.m and generated gmtmex.mexa64 files to $GMT_dir/bin, added $GMT_dir along with subfolders to MATLAB path.
In order to prevent runtime errors associated with MATLAB not being able to find shared libraries, launch MATLAB as:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GMT_dir/lib
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtiff.so.5:/usr/lib/x86_64-linux-gnu/libstdc++.so.6
$MATLAB_dir/bin/matlab
I hope this proves to be helpful. Please let me know in case further tests are required.
- 主要言語
- MATLAB
- スター
- 53
- フォーク
- 19
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GenericMappingTools/gmtmex のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
GenericMappingTools/gmtmex#33 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
GenericMappingTools/gmtmex#31 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
GenericMappingTools/gmtmex#30 · コメント 1 件 ·
-
Inability to free what GMT_Encode_Options return再び着手できるかも @PaulWessel が 2064 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
GenericMappingTools/gmtmex#18 · コメント 1 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
GenericMappingTools/gmtmex#12 · コメント 6 件 ·
GenericMappingTools/gmtmex の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
MohammadRaziei/ctoon#12 ·
-
easy first-contributor first-contributors good first issue help wanted matlab up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
fork-commit-merge/fork-commit-merge#8766 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
UniprJRC/DSwithMATLAB#253 ·
-
area: math-chaos priority: P1 size: S type: docs
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ibra-kdbra/Math-Problems#309 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100