Skip to content
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

Issues compiling the library to use the Python API #52

Closed
oriolgalceran opened this issue Jan 13, 2024 · 2 comments
Closed

Issues compiling the library to use the Python API #52

oriolgalceran opened this issue Jan 13, 2024 · 2 comments

Comments

@oriolgalceran
Copy link

Hi,

I've come across a seemingly unsurmountable barrier when trying to compile soltrace to use the python API. I've compiled and built wxwidgets and set all env variables accordingly, but when I try to compile the library I get the following error:

CMake Error at C:/Program Files/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS qa webview aui richtext html propgrid adv net stc core base scintilla) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.28/Modules/FindwxWidgets.cmake:988 (find_package_handle_standard_args) lk/CMakeLists.txt:92 (find_package)

I don't have a lot of experience building C++ libraries and the whole process was pretty confusing, especially with regards to having everything in the same folder, the role of visual studio, "only building the coretrace_api project" etc. I can only hope that someday we will be able to install this in a more straightforward manner, but I regardless thank the developers for their incredible work with this program and also in advance to anyone who can lend me a hand!

@oriolgalceran
Copy link
Author

oriolgalceran commented Jan 13, 2024

I got a bit further by resetting the env variables, somehow they weren't updated in the terminal session I was using. I still get an error saying that version.h is missing. Could you be more detailed in the instructions regarding on how to setup wxwidgets for the library? Thanks

Edit: Something like this? https://github.com/NREL/SolarPILOT/wiki/build-windows

@oriolgalceran
Copy link
Author

Oh wow! I found coretrace_api.dll on solarPILOT's repo (https://github.com/NREL/SolarPILOT/blob/develop/deploy/api/coretrace_api.dll), copied it into the same directory as pysoltrace.py, and it works! Science

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant