cmaes | Python library for CMA Evolution Strategy | Machine Learning library
kandi X-RAY | cmaes Summary
kandi X-RAY | cmaes Summary
Python library for CMA Evolution Strategy.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cmaes
cmaes Key Features
cmaes Examples and Code Snippets
Community Discussions
Trending Discussions on cmaes
QUESTION
I'm trying to make a windows .exe file with Ubuntu 20.04.1 (VM on Windows host).
The source code includes libcmaes, so I can compile the follwing code with sudo x86_64-w64-mingw32-g++ -fopenmp -I/usr/include/eigen3 -I/usr/include/libcmaes -L/usr/lib -std=c++11 -o output.exe source.cpp -lcmaes
and the generated files worked fine on ubuntu.
But I couldn't compile it when g++
is replaced x86_64-w64-mingw32-g++
and terminal returned the error.
I commented out a little bit from the libcmaes sample code and found that it is probably not linked. Here is the code and the error content.
Code
...ANSWER
Answered 2020-Nov-19 at 22:18You're crosscompiling on Linux for Windows, so -L/usr/lib
is wrong when using MinGW, as it points to the Ubuntu libraries, not the Windows libraries.
Instead you should make sure -I
and -L
point to your Windows build of libsmaes.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cmaes
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page