Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libxxdk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
libxxdk
Commits
bb980a66
Commit
bb980a66
authored
Apr 25, 2023
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Put how to use the specified compiler into the README, and remove it from the makefile
parent
2e04360e
No related branches found
No related tags found
1 merge request
!3
Fix Windows DLL
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
README.md
+9
-0
9 additions, 0 deletions
README.md
with
10 additions
and
1 deletion
Makefile
+
1
−
1
View file @
bb980a66
...
...
@@ -3,7 +3,7 @@ DOTNET = xxdk.NET
.PHONY
:
all windows-x64 windows-arm64 linux-x64 linux-arm64 darwin-x64 darwin-arm64 dotnet
libxxdk-win-x64.dll
:
CGO_ENABLED
=
1
GOOS
=
windows
CC
=
x86_64-w64-mingw32-gcc
GOARCH
=
amd64 go build
-buildmode
=
c-shared
-o
$@
./sharedcgo
CGO_ENABLED
=
1
GOOS
=
windows
GOARCH
=
amd64 go build
-buildmode
=
c-shared
-o
$@
./sharedcgo
windows-x64
:
libxxdk-win-x64.dll
mkdir
-p
$(
DOTNET
)
/runtimes/win-x64/native
cp
*
.h
$(
DOTNET
)
/runtimes/win-x64/native/
...
...
This diff is collapsed.
Click to expand it.
README.md
+
9
−
0
View file @
bb980a66
...
...
@@ -14,6 +14,15 @@ cd xxdk.NET
dotnet run --ndf mainnet-ndf.json --state-dir world --wait 20 | grep ^DM
```
NOTE: you may need to specify a compiler to the make command, especially
when cross compiling. Example for compiling to windows:
```
CC=x86_64-w64-mingw32-gcc make -k
cd xxdk.NET
dotnet run --ndf mainnet-ndf.json --state-dir world --wait 20 | grep ^DM
```
It's highly recommended to run with grep on the output. Especially on
mainnet, logs can be noisy with failure to connect errors as it accesses
the network.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment