-
Notifications
You must be signed in to change notification settings - Fork 104
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
issue building plugin #513
Comments
I think there is some kind of patch that is not used here... |
this is the configuration of GCC i dont know how to get the configuration of binutils (if you will let me know i will post them as well):
i don't believe that the thread model is the one that makes the difference .. when searching for "gmp.h" in the LH Mouse project i do locate it here: but in your project when i search for the same file, i fail in locating it in the final package .. why is that ? |
because he delivers these files in the final archive, but I do not. you are the first who need these files.
because you comparing the two diff folders: the first is the archive with the final build, but the second - is the temporary directory used during the build process. |
thanks! what do i need to change in order to do all the copying of all the includes from all the packages to the include folder? this is the lhmouse folder content: mingw-w64-gcc-mcf_20200324_9.3.1_x86\mingw32\include
|
copying the needed include won't be enough .. even when i copy the required missing header it's still give me the same error that it's not found .. any idea why ? |
I don’t remember what to copy and where, I need to figure it out myself, but I don’t have time now, sorry... |
@labba can you provide me an archive of the build directory? I think it is |
thanks for the help! i have uploaded it here: https://mega.nz/file/nkhkQAzB#ZLuspa19Qvqrx8nTriChm6Wm4nJtiW2SSUVEAo8h7fk |
hi, |
sorry, was on vacation. will check in the morning. |
I think you need to copy the headers from |
i will give it a try and will update |
ok it did worked but i gotten a warning that i have never gotten before:
usually in the other compilation environment i never get any warnings . |
please provide me the source code of your plugin and command line you use for compiling it. |
i gave everything in the very first post of the question the source and the commands i have done. to create plugin there is a need to compile it as follow: first need to locate the plugin dir:
now that we have the plugin dir we can use it so i saved it to a var named: ${PLUGIN_DIR} you can see the source code for the example here: and this is the command we need to invoke:
the error i'm getting is:
|
any luck reproducing the issue ? |
sorry for bothering on this again , but it's been a while i i thought maybe it was forgotten .. |
the easiest way is to set the compiler you built as the default compiler. |
now that i know how to compile the environment, i have added to the configuration "--enable-plugin" and recompiled it successfully.
to create plugin there is a need to compile it as follow:
first need to locate the plugin dir:
after locating the plugin dir, i have converted the "/" to "\" and compile a plugin example:
while set the plugin dir to the variable ${PLUGIN_DIR}
you can see the source code for the example here:
https://raw.githubusercontent.com/rofirrim/gcc-plugins/master/01_first/my_first_gcc_plugin.cc
the error i'm getting is:
i seen that when i use some other distribution that also have plugin enable it's working fine:
I used one of the already compiled version from: https://gcc-mcf.lhmouse.com/
i have used the mingw-w64-gcc-mcf_20200324_9.3.1_x86
i couldn't understand what is the main difference between those 2 builds that make success build only on lhmouse but fail on this compilation..
The text was updated successfully, but these errors were encountered: