-
Notifications
You must be signed in to change notification settings - Fork 5
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
Failed to compile on Windows 10 #82
Comments
Odd, I've never come across this before. I just recently helped someone install and run this on Windows and did not come across this error message. What version of scons are you using? ( |
Working on debugging it. I think there's a few errors embedded here, which seem to be pathing related.
|
I was able to compile my hello world program with scons, but had to add the following to Sconstruct so that it could find g++:
|
In the Sconstruct file, I think that this line should explicitly declare the output file format: After doing so, the exe error is replaced by another
And then adding similar lines to get it to detect g++,
The error is replaced by one more error, which I can't figure out.
|
I think I've figured it out. I got it to compile and run. There were a bunch of issues:
I think resolving this issue would require that we modify the SConstruct file and the .cpp files under /source/, but I would want to test that any change still works under Mac/Linux (waiting on a new Mac to be shipped, but I don't currently have access to a Linux box). I'd also like to confirm whether others have the same issue on Windows, or if user error was involved! |
I'm really confused by what's going on here, particularly point number 4. I just recently helped someone install gcc and boost through Cygwin and compile ebtel++ on Windows without any changes to the scons file or even specifying any additional paths so I'm pretty sure this should be possible. It looks like the latest version of scons is 4.5.2, but you're on version 3.1.2. Could you update scons and try compiling with the unmodified SConstruct file and see if that makes any difference? The one thing you may need to do is set the |
Right, so I updated to the newest Scons (4.6.0) and it didn't make a difference. (As a sidenote, conda was only updating to 3.1.2 -- don't know why it didn't give the latest.) I don't know why this particular machine (or more likely user) is having issues with it. Point 3 in my list above was unnecessary, but everything else still persisted. I've attached the SConstruct that made everything work, but don't fully understand why "source/dem.h" etc. was needed in the C++ files. |
This is still really puzzling to me, but I'm happy to incorporate any needed kludges to the SConstruct file in order to get things working on Windows, particularly since I don't have a Windows machine to test this on myself. I'm increasingly unhappy with scons as a build tool and the need to install boost is obviously a real pain. Based on this and #84, I think providing pre-built binaries with Python bindings is probably the way to go as it would alleviate any platform-specific issues and would greatly simplify the installation process. I've started experimenting with this in #79 and would be happy to have some Windows testers. |
Closing as solved by #98. If the provided binaries don't acutally solve this issue, happy to reopen! |
Fresh install. I've added all dependencies and C++ is compiling in general, but I get the following when trying to compile ebtel++
It looks like it's not using gcc? g++ is working on this computer:
Are there other options required to install with cygwin? Or is the issue something else? Not sure I understand the error message about one target exe.
The text was updated successfully, but these errors were encountered: