-
Notifications
You must be signed in to change notification settings - Fork 70
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 when compiling: undefined reference to `ipatch_close' #1121
Comments
Oops. Fixed mistake at 15.05.2023: Link libinstpatch with 'muse' module, not 'core'. Sorry for the inconvenience. |
I tried the following steps:
|
Hm. Strange. If possible maybe try starting over by building a complete fresh clone of the master. Also just to be sure, locate your system's pkgconfig file 'libinstpatch-1.0.pc', usually located in Although, that file should be OK since we call the very same offending `ipatch_close' function Not sure what could be wrong, we've not had any complaints about that. |
Tried that, but the error persisted. But while it was compiling I did the second thing:
Funny thing: I have two copies of that file:
The contents are:
Maybe this is a noob question, but is there a way to point one of them out manually to compile? |
Maybe, I don't recall. But it would be more desirable to use the later self-built version. Let's check some things:
Next, locate the MusE 'build' folder and look for this file:
It is possible your build of instpatch is incomplete or something. Hopefully not. I verified that the line of CMake code I fixed is working correctly. That's all I can remember to type right now :-) |
First of all, just wanna say I appreciate all the effort you are putting into helping me. Thank you very much!
Here it gives (I wasn't sure if the order mattered so I resisted my OCD craving to order it by folder):
Just in case, I'm pasting the contents of the whole file (line breaks added for convenience)
Based on what you said earlier, I thought it could be a good idea to declutter here, so I uninstalled the local version of
I tried a quick and dirty commenting, and it compiled successfully, and I could run it! (Awesome splash screen btw) Should I close the issue, then? Again, thanks for all the help! |
Ooh, no. I don't recommend leaving like that. ipatch_close would be nicer :-) I just found the problem. [Sigh] ipatch_close was introduced in version 1.1.0 This is MusE's fault. However... that means your build chain was somehow finding the old version even though Therefore I highly recommend re-building and installing the latest libinstpatch. If you wait until after I fix the 1.0.0 error, you'll be my guinea pig to ensure 1.0.0 works ;-) Thanks for the reports. Should be solved soon... |
Well, it passed 12:00AM here, so that's tomorrow ;-) You should be able to restore the two commented lines (to exact original state), then pull, then build. You're getting the very latest dozens of major fixes and features over the last few months. |
Sure, happy to help :) These are the steps I took to run the test:
Passed with flying colors!
After that, to test the new version of libinstpatch I took the steps:
Here I got the error:
I'm not sure if this is relevant, but my machine has Debian with multiarch. Could this be messing things up? |
Hm, that's strange. Your build chain seems to be picking up the old version. Just to verify, could you do me a wee favour?
Our cmake scripts handle libinstpatch differently. For reference here is the script section:
|
Sure, here is the output:
Sorry, I'm not familiar with the syntax of that script! I admire your tenacity, though! |
Weird. It found the correct version but for some reason your build chain seems to be choosing to link with I will try to reproduce this by installing 1.0.0 |
Thank you very much for your help! In practice, the problem was circumvented, and I could achieve my goal of running the program. I personally would bet this problem is be due to the specifics of my system, probably because of being multiarch. I just updated OP to make this explicit. Moreover, I guess this is not representative of your user pool. Therefore, I would like to tell you that you don't have to fix this development because of this issue in particular. I can imagine how busy you are, and can't help but think that you could employ your time better elsewhere. How do you feel about closing this issue as "not planned"? |
OK I'll close it. Feel free to reopen if any other trouble, or if the problem is resolved. |
Describe the bug
When compiling, I got the following error:
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/muse-sequencer/muse.git
src/README
(install packages and runsrc/compile_muse.sh
)Desktop (please complete the following information):
libinstpatch
: version 1.0.0 installed viaapt
; version 1.1.6 compiled locallyThe text was updated successfully, but these errors were encountered: