-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cross-compiling not working on Windows #20
Comments
That particular part of README was filled in by @dlech, so may be he can comment on this? |
What have you tried so far? Are there error messages you can share? |
I've installed the Mentor Graphics CodeSourcery cross compiler. Then I successfully built a hellowrold app and ran it on the ev3. Now I'm trying to build the language bindings. At first I was having trouble getting CMake configured to point to the cross-compiler. Now CMake is running the cross compiler, but it cannot successfully compile code. I see different errors depending on how I configure the cross-compiler: either the compiler itself reports that cannot find header files, or with a different config CMake complains about not being able to compile a test file (without spitting out the exact compiler error). I built the helloworld app from a native windows/DOS command shell. But my CMake is on my cygwin environment. So maybe there is a problem with running the cross-compiler in cygwin. Or maybe my CMake configuration is not right. I have only ever dabbled in CMake, so I could easily be screwing that part up without knowing any better. TL;DR: instead of me googling and guessing until it works, I was hoping someone might have a working CMAKE_TOOLCHAIN_FILE or a list of do's and don't's or maybe just an set of pre-built binaries. |
What does your CMake toolchain file look like? |
|
@pmclee what version of Windows are you running? If you are running Windows 10, compiling for the EV3 brick is very easy, and I've added instructions on how to do so to this repo's readme. |
when i try to Install the ARM compiler by typing sudo apt-get install arm-linux-gnueabi-gcc i receive error: can't find arm-linux-gnueabi-gcc |
It seems like you almost solved this. I think the final error is because the installed cmake is too old. Can you try to
? The package name may be different, but I don't have an Ubuntu system to test this. |
thanks. |
Hi Stephan, thanks for this great project :) I ran also into the same Windows 10 cross compiler issues. An update to Readme would probably help newbies like me :) Packages to install (arm-linux-gnueabi-gcc, i.e. with gcc at the end is not found/resolved) sudo apt-get install gcc-arm-linux-gnueabi cmake3 is definitely needed to compile without errors Compile (note the command is cmake even for cmake3) Thank you and best regards, Robert |
Would you care to create a pull request with these changes to README? Thanks! |
Hi. I tried something like that:
and get the following error:
Some infos:
added to the CMakeLists.txt: |
Can you try if this works?
|
Thanks for the quick response. |
ev3dev-lang-cpp/CMakeLists.txt Lines 33 to 36 in 2e7b4ae
so I don't really understand why are you getting the error. I would try again with a fresh clone of the repository and clean |
After i have completely reset the Windows Subsystem, now everything is working. Thank you and best regards. |
The README says that cross-compiling works on Windows without a virtual machine using the MentorGraphics toolchain. But I am struggling to get it working on my Windows machine. I find a problem and solve it only encounter another build issue. Are there more details on how to get this working?
The text was updated successfully, but these errors were encountered: