-
Notifications
You must be signed in to change notification settings - Fork 444
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
Error in Installing JSBSim Python module from source #379
Comments
Confirmed, I can reproduce the bug locally. |
Fixes issue #379 except for MacOSX which still fails.
This should now be fixed following the commit be0d76f. For the record, the regression happened when the library GeographicLib was included in JSBSim 3 months ago (commit 70a327f). GeographicLib introduces a new extension for C++ headers Also while testing for the bug you reported, I discovered that the build also failed on MacOSX for another reason (fixed by commit 9104aed). So I took this opportunity to modify our CI workflow to check that the build from source works for Windows, MacOSX and Linux. We should now be warned earlier if a new regression is introduced. Could you please check and report if the issue is fixed for you too ? Thanks. |
Fixes issue #379 except for MacOSX which still fails.
@bcoconni well, I am facing a new error now. 😔 When I run Is this syntax error specific to MSVC? |
@viren3999 pet peeve of mine 😉 Rather than posting an image of your console output, paste it as simple text, i.e. copy the text from the console window and paste it into say a shell formatted block, e.g. FGJSBBase.cpp
src/FGJSBBase.cpp(78): error C2017: illegal escape sequence This means the text from your console output will be searchable by search engines, github etc. in future if someone does a search with some of the same error text etc. Now in terms of your specific error it looks like there is an issue generating the version string in the source code. Line 78 in d1ca6eb
|
@seanmcleod Sure Sir. Will keep it in mind hereafter.
But when building JSBSim Windows executable, no such error occurs, despite the compiler being MSVC 🤔 |
I'm guessing when you build the Windows executable you're using the supplied Solution/Project file? If so you'll notice that I'm not that familiar with the build process used during |
BTW the hard-code Now the CMake based build system, which I'm guessing is what is being used by add_definitions(-DJSBSIM_VERSION="${PROJECT_VERSION}${VERSION_MESSAGE}") |
@viren3999 What is exactly the context in which you run What puzzles me is:
Could you please check that line 186 in compile_flags = ['-D'+flag for flag in ['JSBSIM_VERSION="1.2.0.dev1"','HAVE_EXPAT_CONFIG_H',]] |
So the issue is that |
OK so that would explain why |
Correct, the Visual Studio solution/project, as opposed to using Visual Studio with cmake, doesn't build |
Which makes me realize that the discussion has switched from building JSBSim on an Ubuntu virtual machine (issue #373) to a Windows machine (current issue). So the exact command to build the Python module on Windows is C:\> python python\setup.py --config RelWithDebInfo The argument If This does not solve the |
Ping @viren3999. Any progress on this issue ? |
Unfortunately, no @bcoconni . |
If you no longer consider building the Python package yourself then I will close this issue since our CI workflow indicates that building from sources works again. Any objection ? |
No objections Sir. |
Hello.
I am working on an x64 Windows machine.
I have the latest stable version of Python (64-bit) and Visual Studio 2017 installed on my PC.
I wish to build and install the JSBSim Python module from the source code itself (to keep up with the latest commits).
I have built the JSBSim.sln in Release - x64 mode. (Output: 23 succeeded, 0 failed, 5 skipped)
The following commands were suggested by @seanmcleod to be executed to install the python module successfully.
python python/setup.py bdist_wheel
pip install jsbsim --no-index -f python/dist
However, when running
python python/setup.py bdist_wheel
in the build directory, I get the following error.error: Don't know how to compile src/GeographicLib/Constants.hpp
The text was updated successfully, but these errors were encountered: