I am writing a program that uses gtk. I'm starting off easy to get the hang of Geany as my real target will be the Raspberry Pi's. There was a video on youtube eliminating the "gtk.h not found" issue (https://www.youtube.com/watch?v=-p5e-rZC64w), the program now compiles fine on my Ubuntu 20.04 machine. . When it come time to "Build" I always get this error message(/bin/sh: -c: line 1: unexpected EOF while looking for matching `"'). The Edit-Preferences-Tools-Terminal option is the default: . xterm -e "/bin/sh %c" . fatal error. Any idea would be most appreciated. Thanks in Advance, Bill
The terminal setting has nothing to do with the Build command. The default build command for C does not use "/bin/sh". What have you set the build command to?
ALL settings are default with the exceptions mentioned in that youtube video. I'm having the same issue with Code::Blocks.
Ubuntu 20.04 LTS Geany 2.0 Build date: 4-26-2024 from the repository. Code::Blocks 20.03 also from repository. Gtk+ 2.0 & 3.0 are installed and verified as well as being found on the harddrive (admin:/// trick).
Never had an issue using Anjuta 3.34.0 .
Figured I'd use the laptop to get the rough code written and then transfer the code to the Raspberry Pi's for their specific functions as a Master controlling Arduinos to do the "grunt work".
Thanks for the quick comeback, Bill
On Wed, May 1, 2024, 8:28 PM elextr ***@***.***> wrote:
The terminal setting has nothing to do with the Build command. The default build command for C does not use "/bin/sh". What have you set the build command to?
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2089335228, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y36MNNOM2OLMXXKM73ZAGCD3AVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZGMZTKMRSHA . You are receiving this because you authored the thread.Message ID: ***@***.***>
ALL settings are default with the exceptions mentioned in that youtube video.
You are asking for help, so requiring people to watch a video to be able to help you means you have reduced the number who will bother, they simply don't have time.
As I said, the default "Build" operation for C language does not use `/bin/sh` so either you have changed something or you are not performing a "Build" operation.
Did not mean any disrespect just thought it might have been quicker. I'll learn - first post to github.
Actually he had the changes listed in his "Comments" section for cut/paste where C commands first entry is named "Compile", and should contain the following: *gcc -Wall -c "%f".*
Add the following text so the end result is to be like: *gcc -Wall -c "%f" `pkg-config --cflags gtk+-3.0` DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 *
For the Build:
*gcc -Wall -o "%e" "%f" * should be turned into: *gcc -Wall -o "%e" "%f“`pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 `pkg-config --libs gtk+-3.0`*
He also had fixes for .cpp programs This worked on BOTH Geany & Code::Blocks for the compile phase, still fails on build. Thanks.
On Thu, May 2, 2024 at 3:20 AM elextr ***@***.***> wrote:
ALL settings are default with the exceptions mentioned in that youtube video.
You are asking for help, so requiring people to watch a video to be able to help you means you have reduced the number who will bother, they simply don't have time.
As I said, the default "Build" operation for C language does not use /bin/sh so either you have changed something or you are not performing a "Build" operation.
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2089782075, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y3ZB3TXCTHB4UWZA4DZAHSLLAVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZG44DEMBXGU . You are receiving this because you authored the thread.Message ID: ***@***.***>
Try a space between the `"%f"` and the text you added.
No change. Still vigorously researching on my end. Luckily I brought my laptop with me to the hospital so I've got plenty of time (no improvement in 3 days).
Thanks again, Bill
On Thu, May 2, 2024, 4:45 AM elextr ***@***.***> wrote:
Try a space between the "%f" and the text you added.
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2089920282, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y7RGI7C34FLVYITB2LZAH4KJAVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZHEZDAMRYGI . You are receiving this because you authored the thread.Message ID: ***@***.***>
Well, the original error message indicates the backticks don't match, maybe post the text from the build command entry (not from the website) on a line by itself with a line of ``` before and another after it so its not recognised as markdown. If we can't see exactly what you are inputting again we can't help. Also post the error message each time just in case there is some subtle difference you missed.
I've went over that line character by character (added the space as you recommended), all backticks are matched (unless I'm missing something, new to Linux programming never had this issue with windoze). The line cut & pasted from the "Set Build Commands" is:
*gcc -Wall -o "%e" "%f“ `pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 `pkg-config --libs gtk+-3.0`*
I need this to be a Linux program as I will be using it on a Pi, the Arduino software I had no problem with. I've gone over the Geany documentation heavily, understand a bit more, compiles fine to the .o file but no further.
Can't thank you enough for the pointers, Bill
On Thu, May 2, 2024 at 5:22 AM elextr ***@***.***> wrote:
Well, the original error message indicates the backticks don't match, maybe post the text from the build command entry (not from the website) on a line by itself with a line of ``` before and another after it so its not recognised as markdown. If we can't see exactly what you are inputting again we can't help. Also post the error message each time just in case there is some subtle difference you missed.
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2089995093, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y5Z26KQGB3KGYO4FY3ZAIAULAVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZHE4TKMBZGM . You are receiving this because you authored the thread.Message ID: ***@***.***>
Forgot - Error Message always:
*/bin/sh: -c: line 1: unexpected EOF while looking for matching `"'*
On Thu, May 2, 2024 at 3:21 PM W. Sherman ***@***.***> wrote:
I've went over that line character by character (added the space as you recommended), all backticks are matched (unless I'm missing something, new to Linux programming never had this issue with windoze). The line cut & pasted from the "Set Build Commands" is:
*gcc -Wall -o "%e" "%f“ `pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 `pkg-config --libs gtk+-3.0`*
I need this to be a Linux program as I will be using it on a Pi, the Arduino software I had no problem with. I've gone over the Geany documentation heavily, understand a bit more, compiles fine to the .o file but no further.
Can't thank you enough for the pointers, Bill
On Thu, May 2, 2024 at 5:22 AM elextr ***@***.***> wrote:
Well, the original error message indicates the backticks don't match, maybe post the text from the build command entry (not from the website) on a line by itself with a line of ``` before and another after it so its not recognised as markdown. If we can't see exactly what you are inputting again we can't help. Also post the error message each time just in case there is some subtle difference you missed.
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2089995093, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y5Z26KQGB3KGYO4FY3ZAIAULAVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZHE4TKMBZGM . You are receiving this because you authored the thread.Message ID: ***@***.***>
Using Synaptic I just re-installed all the files for gtk+ 3.0 wondering if something got messed up from a long time ago. No improvement.
On Thu, May 2, 2024, 3:24 PM W. Sherman ***@***.***> wrote:
Forgot - Error Message always:
*/bin/sh: -c: line 1: unexpected EOF while looking for matching `"'*
On Thu, May 2, 2024 at 3:21 PM W. Sherman ***@***.***> wrote:
I've went over that line character by character (added the space as you recommended), all backticks are matched (unless I'm missing something, new to Linux programming never had this issue with windoze). The line cut & pasted from the "Set Build Commands" is:
*gcc -Wall -o "%e" "%f“ `pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 `pkg-config --libs gtk+-3.0`*
I need this to be a Linux program as I will be using it on a Pi, the Arduino software I had no problem with. I've gone over the Geany documentation heavily, understand a bit more, compiles fine to the .o file but no further.
Can't thank you enough for the pointers, Bill
On Thu, May 2, 2024 at 5:22 AM elextr ***@***.***> wrote:
Well, the original error message indicates the backticks don't match, maybe post the text from the build command entry (not from the website) on a line by itself with a line of ``` before and another after it so its not recognised as markdown. If we can't see exactly what you are inputting again we can't help. Also post the error message each time just in case there is some subtle difference you missed.
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2089995093, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y5Z26KQGB3KGYO4FY3ZAIAULAVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZHE4TKMBZGM . You are receiving this because you authored the thread.Message ID: ***@***.***>
Ok, your problem is that for some reason the website has a `*` at the start and end of the command, those should not be there.
Also I presume its all one line in the build command entry?
Closed #3863 as completed.
Note that the problem is nothing to do with Geany (or codeblocks) its the command you are entering. The best approach is to get commands to work in the command line and then paste them into tools.
Yes - one line. I ran that line through a text editor & word processor I did not see a single * in it.
The compile part works fine.
Just manually upgraded gcc (9.04 to 11, maybe something was outdated, no luck). Wish I knew which file was the issue and where to look, only have one "c" file I copied from the gtk+ website to get starter and it compiles fine.
So sorry to keep bothering you, Bill
On Thu, May 2, 2024, 10:45 PM elextr ***@***.***> wrote:
Also I presume its all one line in the build command entry?
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2092040960, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y6KHUC3NBGAA3QDUDDZAL245AVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSGA2DAOJWGA . You are receiving this because you authored the thread.Message ID: ***@***.***>
Please post the string from the build entry in github, not via email, the string you have posted [here](https://github.com/geany/geany/issues/3863#issuecomment-2091366390) starts and ends with `*`.
I went back to the link you mentioned, Yes it does have the beginning and ending stars I never placed them in the edit window. What I have in the entry lines DO NOT. I've attached a screenshot of my
*Geany -> Set Build Commands*
window.
Thank you again.
On Fri, May 3, 2024 at 2:20 AM elextr ***@***.***> wrote:
Please post the string from the build entry in github, not via email, the string you have posted here https://github.com/geany/geany/issues/3863#issuecomment-2091366390 starts and ends with *.
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2092376572, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y4O5YO6AKYYMZIBBM3ZAMUEBAVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSGM3TMNJXGI . You are receiving this because you authored the thread.Message ID: ***@***.***>
Your image did not come through.
As I said above, you should interact via the github website. Github is not a mailing list, it is a website, and emails are largely intended for notifications. Although you can post via email the variation in the behaviour of mailing tools means many features are missing or stripped from email posts.
Also edits are not notified via email, so if a poster makes a mistake and edits their post to reverse the meaning (eg add a missing "not") you will not know when you reply to the initial post. Eg if they say "I like cats[^1]" and then edit it to "I do not like cats" you will only see the first and your email reply of "me too" will indicate the opposite of your intention.
[^1]: substitute any contentious topic for "cats"
I tried to edit 3863 and post last email and it's screenshot but it is flagged as closed.
Can it be changed back to open or do I need to start a new issue referencing 3863?
On Fri, May 3, 2024, 3:15 AM elextr ***@***.***> wrote:
Your image did not come through.
As I said above, you should interact via the github website. Github is not a mailing list, it is a website, and emails are largely intended for notifications. Although you can post via email the variation in the behaviour of mailing tools means many features are missing or stripped from email posts.
Also edits are not notified via email, so if a poster makes a mistake and edits their post to reverse the meaning (eg add a missing "not") you will not know when you reply to the initial post. Eg if they say "I like cats1 <#m_3983503217943582148_user-content-fn-1-139b0b0cdf1f5f12b9940da94119e1a9>" and then edit it to "I do not like cats" you will only see the first and your email reply of "me too" will indicate the opposite of your intention. Footnotes
substitute any contentious topic for "cats" ↩ <#m_3983503217943582148_user-content-fnref-1-139b0b0cdf1f5f12b9940da94119e1a9>
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2092442545, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y4HK64MH2LLYYWMZITZAM2RRAVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSGQ2DENJUGU . You are receiving this because you authored the thread.Message ID: ***@***.***>
Using github is a hit-or-miss thing with me as I usually don't have internet access. Only reason I do now is I'm in the hospital soon to be transferred back to the Wound Care Center, that's why I've been using email not understanding that would force a "Closed" status. Hopefully This will re-open it. I am resubmitting the lost screenshot.
Thanks again, Bill
![Screenshot from 2024-05-03 02-38-31](https://github.com/geany/geany/assets/168656611/95e4799a-24b7-46f6-803c-1f39...)
I did enter a comment, don't know if that will re-open #3863. First time using github except to download dban, knoppix std & chirp, never to ask for help.
Thanks, Bill
On Fri, May 3, 2024, 3:56 AM W. Sherman ***@***.***> wrote:
I tried to edit 3863 and post last email and it's screenshot but it is flagged as closed.
Can it be changed back to open or do I need to start a new issue referencing 3863?
On Fri, May 3, 2024, 3:15 AM elextr ***@***.***> wrote:
Your image did not come through.
As I said above, you should interact via the github website. Github is not a mailing list, it is a website, and emails are largely intended for notifications. Although you can post via email the variation in the behaviour of mailing tools means many features are missing or stripped from email posts.
Also edits are not notified via email, so if a poster makes a mistake and edits their post to reverse the meaning (eg add a missing "not") you will not know when you reply to the initial post. Eg if they say "I like cats1 <#m_-8501049846176817155_m_3983503217943582148_user-content-fn-1-139b0b0cdf1f5f12b9940da94119e1a9>" and then edit it to "I do not like cats" you will only see the first and your email reply of "me too" will indicate the opposite of your intention. Footnotes
substitute any contentious topic for "cats" ↩ <#m_-8501049846176817155_m_3983503217943582148_user-content-fnref-1-139b0b0cdf1f5f12b9940da94119e1a9>
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2092442545, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y4HK64MH2LLYYWMZITZAM2RRAVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSGQ2DENJUGU . You are receiving this because you authored the thread.Message ID: ***@***.***>
gcc -Wall -o "%e" "%f“ `pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 `pkg-config --libs gtk+-3.0`
The issue you have is that the 4th quote (after the `%f`) is not an ASCII quote, but U+201C *Left Double Quotation Mark*. Just replace the command with: ```shell gcc -Wall -o "%e" "%f" $(pkg-config --cflags gtk+-3.0) -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 $(pkg-config --libs gtk+-3.0) ```
and you'll be on your way (I also replaced the ``` with `$()` because it can be nested, and generally creates less problem when you modify the command -- but functionally it's the same here).
The issue you have is that the 4th quote (after the %f) is not an ASCII quote, but U+201C Left Double Quotation Mark. Just replace the command with:
Wow eagle eyed!! :eyes:
THANK YOU!!!
~Ubuntu~
On Fri, May 3, 2024, 7:33 AM Colomban Wendling ***@***.***> wrote:
gcc -Wall -o "%e" "%f“ `pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 `pkg-config --libs gtk+-3.0`
The issue you have is that the 4th quote (after the %f) is not an ASCII quote, but U+201C *Left Double Quotation Mark*. Just replace the command with:
gcc -Wall -o "%e" "%f" $(pkg-config --cflags gtk+-3.0) -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 $(pkg-config --libs gtk+-3.0)
and you'll be on your way (I also replaced the ` with $() because it can be nested, and generally creates less problem when you modify the command -- but functionally it's the same here).
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2092822069, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5Y6RPJXCW7WFMYASOBDZANYXZAVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSHAZDEMBWHE . You are receiving this because you authored the thread.Message ID: ***@***.***>
THANK YOU!!!
~Ubuntu~
On Fri, May 3, 2024, 7:35 AM elextr ***@***.***> wrote:
The issue you have is that the 4th quote (after the %f) is not an ASCII quote, but U+201C Left Double Quotation Mark. Just replace the command with:
Wow eagle eyed!! 👀
— Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/3863#issuecomment-2092825332, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGX5YZFEXD2ITW44FZVHRTZANZALAVCNFSM6AAAAABHCDQHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSHAZDKMZTGI . You are receiving this because you authored the thread.Message ID: ***@***.***>
github-comments@lists.geany.org