discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Custom File Exporter

HL
Hans L
Mon, Oct 16, 2023 6:11 PM

I would recommend you learn to use a debugger such as gdb or lldb.  Find
the offending line of source code, examine the stack trace at that point,
understand how it got to that code path.  If needed, set breakpoints in
related parts of code and step through, examining variables until you know
what is going on.

Asking others to debug your code with no link to source is not likely to
succeed.

On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss <
discuss@lists.openscad.org> wrote:

---------- Forwarded message ----------
From: Trevor Orr fractorr@yahoo.com
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc:
Bcc:
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter
not sure, that is what I get in the shell when I run OpenSCAD

On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown <
openscad@jordan.maileater.net> wrote:

On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote:

qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because:
No such file or directory
qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because:
No such file or directory
Segmentation fault

What's that colon at the front of the string?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

---------- Forwarded message ----------
From: Trevor Orr via Discuss discuss@lists.openscad.org
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: Trevor Orr fractorr@yahoo.com
Bcc:
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I would recommend you learn to use a debugger such as gdb or lldb. Find the offending line of source code, examine the stack trace at that point, understand how it got to that code path. If needed, set breakpoints in related parts of code and step through, examining variables until you know what is going on. Asking others to debug your code with no link to source is not likely to succeed. On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss < discuss@lists.openscad.org> wrote: > > > > ---------- Forwarded message ---------- > From: Trevor Orr <fractorr@yahoo.com> > To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org> > Cc: > Bcc: > Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) > Subject: [OpenSCAD] Re: Custom File Exporter > not sure, that is what I get in the shell when I run OpenSCAD > > > On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown < > openscad@jordan.maileater.net> wrote: > > > On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote: > > qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: > No such file or directory > qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: > No such file or directory > Segmentation fault > > > What's that colon at the front of the string? > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > > ---------- Forwarded message ---------- > From: Trevor Orr via Discuss <discuss@lists.openscad.org> > To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org> > Cc: Trevor Orr <fractorr@yahoo.com> > Bcc: > Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) > Subject: [OpenSCAD] Re: Custom File Exporter > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
HL
Hans L
Mon, Oct 16, 2023 6:16 PM

Also, crucially, if you are not already doing so, you will need to specify
a debug build using cmake -DCMAKE_BUILD_TYPE=Debug ... ( or at least
RelWithDebInfo ) in order for debugging to work at all.

On Mon, Oct 16, 2023 at 1:11 PM Hans L thehans@gmail.com wrote:

I would recommend you learn to use a debugger such as gdb or lldb.  Find
the offending line of source code, examine the stack trace at that point,
understand how it got to that code path.  If needed, set breakpoints in
related parts of code and step through, examining variables until you know
what is going on.

Asking others to debug your code with no link to source is not likely to
succeed.

On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss <
discuss@lists.openscad.org> wrote:

---------- Forwarded message ----------
From: Trevor Orr fractorr@yahoo.com
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc:
Bcc:
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter
not sure, that is what I get in the shell when I run OpenSCAD

On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown <
openscad@jordan.maileater.net> wrote:

On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote:

qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because:
No such file or directory
qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because:
No such file or directory
Segmentation fault

What's that colon at the front of the string?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

---------- Forwarded message ----------
From: Trevor Orr via Discuss discuss@lists.openscad.org
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: Trevor Orr fractorr@yahoo.com
Bcc:
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Also, crucially, if you are not already doing so, you will need to specify a debug build using cmake -DCMAKE_BUILD_TYPE=Debug ... ( or at least RelWithDebInfo ) in order for debugging to work at all. On Mon, Oct 16, 2023 at 1:11 PM Hans L <thehans@gmail.com> wrote: > I would recommend you learn to use a debugger such as gdb or lldb. Find > the offending line of source code, examine the stack trace at that point, > understand how it got to that code path. If needed, set breakpoints in > related parts of code and step through, examining variables until you know > what is going on. > > Asking others to debug your code with no link to source is not likely to > succeed. > > On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss < > discuss@lists.openscad.org> wrote: > >> >> >> >> ---------- Forwarded message ---------- >> From: Trevor Orr <fractorr@yahoo.com> >> To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org> >> Cc: >> Bcc: >> Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) >> Subject: [OpenSCAD] Re: Custom File Exporter >> not sure, that is what I get in the shell when I run OpenSCAD >> >> >> On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown < >> openscad@jordan.maileater.net> wrote: >> >> >> On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote: >> >> qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: >> No such file or directory >> qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: >> No such file or directory >> Segmentation fault >> >> >> What's that colon at the front of the string? >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> >> >> ---------- Forwarded message ---------- >> From: Trevor Orr via Discuss <discuss@lists.openscad.org> >> To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org> >> Cc: Trevor Orr <fractorr@yahoo.com> >> Bcc: >> Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) >> Subject: [OpenSCAD] Re: Custom File Exporter >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >
TO
Trevor Orr
Mon, Oct 16, 2023 6:23 PM

That is a fair statement but I just copied a line from the existing code and changed the filename of the icon that it is using for the custom file format menu option.  Seems like something like that should not cause any issues, I was thinking maybe there was a something else that I was not aware of for loading the icons for the OpenSCAD menu.  I was not asking for anyone to debug custom code I wrote.

On Monday, October 16, 2023 at 11:17:48 AM PDT, Hans L <thehans@gmail.com> wrote:  

Also, crucially, if you are not already doing so, you will need to specify a debug build using cmake -DCMAKE_BUILD_TYPE=Debug ... ( or at least RelWithDebInfo ) in order for debugging to work at all.
On Mon, Oct 16, 2023 at 1:11 PM Hans L thehans@gmail.com wrote:

I would recommend you learn to use a debugger such as gdb or lldb.  Find the offending line of source code, examine the stack trace at that point, understand how it got to that code path.  If needed, set breakpoints in related parts of code and step through, examining variables until you know what is going on.
Asking others to debug your code with no link to source is not likely to succeed.
On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss discuss@lists.openscad.org wrote:

---------- Forwarded message ----------
From: Trevor Orr fractorr@yahoo.com
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: 
Bcc: 
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter
not sure, that is what I get in the shell when I run OpenSCAD

On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown <openscad@jordan.maileater.net> wrote:  

On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote:

qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: No such file or directory  qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: No such file or directory Segmentation fault

What's that colon at the front of the string?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

---------- Forwarded message ----------
From: Trevor Orr via Discuss discuss@lists.openscad.org
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: Trevor Orr fractorr@yahoo.com
Bcc: 
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

That is a fair statement but I just copied a line from the existing code and changed the filename of the icon that it is using for the custom file format menu option.  Seems like something like that should not cause any issues, I was thinking maybe there was a something else that I was not aware of for loading the icons for the OpenSCAD menu.  I was not asking for anyone to debug custom code I wrote. On Monday, October 16, 2023 at 11:17:48 AM PDT, Hans L <thehans@gmail.com> wrote: Also, crucially, if you are not already doing so, you will need to specify a debug build using cmake -DCMAKE_BUILD_TYPE=Debug ... ( or at least RelWithDebInfo ) in order for debugging to work at all. On Mon, Oct 16, 2023 at 1:11 PM Hans L <thehans@gmail.com> wrote: I would recommend you learn to use a debugger such as gdb or lldb.  Find the offending line of source code, examine the stack trace at that point, understand how it got to that code path.  If needed, set breakpoints in related parts of code and step through, examining variables until you know what is going on. Asking others to debug your code with no link to source is not likely to succeed. On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss <discuss@lists.openscad.org> wrote: ---------- Forwarded message ---------- From: Trevor Orr <fractorr@yahoo.com> To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org> Cc:  Bcc:  Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) Subject: [OpenSCAD] Re: Custom File Exporter not sure, that is what I get in the shell when I run OpenSCAD On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown <openscad@jordan.maileater.net> wrote: On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote: qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: No such file or directory qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: No such file or directory Segmentation fault What's that colon at the front of the string? _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org ---------- Forwarded message ---------- From: Trevor Orr via Discuss <discuss@lists.openscad.org> To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org> Cc: Trevor Orr <fractorr@yahoo.com> Bcc:  Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) Subject: [OpenSCAD] Re: Custom File Exporter _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org
GS
Guenther Sohler
Mon, Oct 16, 2023 6:27 PM

My way of Debugging IS to add printf's in strategical relevant places and
watch the Output. In contrast to using gdb you can also Display big amounts
of intermediate Data Well formatted for Reviews.

Hans L thehans@gmail.com schrieb am Mo., 16. Okt. 2023, 20:11:

I would recommend you learn to use a debugger such as gdb or lldb.  Find
the offending line of source code, examine the stack trace at that point,
understand how it got to that code path.  If needed, set breakpoints in
related parts of code and step through, examining variables until you know
what is going on.

Asking others to debug your code with no link to source is not likely to
succeed.

On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss <
discuss@lists.openscad.org> wrote:

---------- Forwarded message ----------
From: Trevor Orr fractorr@yahoo.com
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc:
Bcc:
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter
not sure, that is what I get in the shell when I run OpenSCAD

On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown <
openscad@jordan.maileater.net> wrote:

On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote:

qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because:
No such file or directory
qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because:
No such file or directory
Segmentation fault

What's that colon at the front of the string?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

---------- Forwarded message ----------
From: Trevor Orr via Discuss discuss@lists.openscad.org
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: Trevor Orr fractorr@yahoo.com
Bcc:
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

My way of Debugging IS to add printf's in strategical relevant places and watch the Output. In contrast to using gdb you can also Display big amounts of intermediate Data Well formatted for Reviews. Hans L <thehans@gmail.com> schrieb am Mo., 16. Okt. 2023, 20:11: > I would recommend you learn to use a debugger such as gdb or lldb. Find > the offending line of source code, examine the stack trace at that point, > understand how it got to that code path. If needed, set breakpoints in > related parts of code and step through, examining variables until you know > what is going on. > > Asking others to debug your code with no link to source is not likely to > succeed. > > On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss < > discuss@lists.openscad.org> wrote: > >> >> >> >> ---------- Forwarded message ---------- >> From: Trevor Orr <fractorr@yahoo.com> >> To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org> >> Cc: >> Bcc: >> Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) >> Subject: [OpenSCAD] Re: Custom File Exporter >> not sure, that is what I get in the shell when I run OpenSCAD >> >> >> On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown < >> openscad@jordan.maileater.net> wrote: >> >> >> On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote: >> >> qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: >> No such file or directory >> qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: >> No such file or directory >> Segmentation fault >> >> >> What's that colon at the front of the string? >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> >> >> ---------- Forwarded message ---------- >> From: Trevor Orr via Discuss <discuss@lists.openscad.org> >> To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org> >> Cc: Trevor Orr <fractorr@yahoo.com> >> Bcc: >> Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) >> Subject: [OpenSCAD] Re: Custom File Exporter >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
HL
Hans L
Mon, Oct 16, 2023 6:35 PM

If the issue is with Qt Resources, then you probably need to add your file
to the listing in "resources/common.qrc.in"

BTW the extraneous '.in' suffix is because our CMakeLists uses that file to
configure some variables
https://github.com/openscad/openscad/blob/master/CMakeLists.txt#L1138

https://doc.qt.io/qt-5/resources.html

On Mon, Oct 16, 2023 at 1:28 PM Guenther Sohler guenther.sohler@gmail.com
wrote:

My way of Debugging IS to add printf's in strategical relevant places and
watch the Output. In contrast to using gdb you can also Display big amounts
of intermediate Data Well formatted for Reviews.

Hans L thehans@gmail.com schrieb am Mo., 16. Okt. 2023, 20:11:

I would recommend you learn to use a debugger such as gdb or lldb.  Find
the offending line of source code, examine the stack trace at that point,
understand how it got to that code path.  If needed, set breakpoints in
related parts of code and step through, examining variables until you know
what is going on.

Asking others to debug your code with no link to source is not likely to
succeed.

On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss <
discuss@lists.openscad.org> wrote:

---------- Forwarded message ----------
From: Trevor Orr fractorr@yahoo.com
To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org

Cc:
Bcc:
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter
not sure, that is what I get in the shell when I run OpenSCAD

On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown <
openscad@jordan.maileater.net> wrote:

On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote:

qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because:
No such file or directory
qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because:
No such file or directory
Segmentation fault

What's that colon at the front of the string?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

---------- Forwarded message ----------
From: Trevor Orr via Discuss discuss@lists.openscad.org
To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org

Cc: Trevor Orr fractorr@yahoo.com
Bcc:
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

If the issue is with Qt Resources, then you probably need to add your file to the listing in "resources/common.qrc.in" BTW the extraneous '.in' suffix is because our CMakeLists uses that file to configure some variables https://github.com/openscad/openscad/blob/master/CMakeLists.txt#L1138 https://doc.qt.io/qt-5/resources.html On Mon, Oct 16, 2023 at 1:28 PM Guenther Sohler <guenther.sohler@gmail.com> wrote: > My way of Debugging IS to add printf's in strategical relevant places and > watch the Output. In contrast to using gdb you can also Display big amounts > of intermediate Data Well formatted for Reviews. > > > Hans L <thehans@gmail.com> schrieb am Mo., 16. Okt. 2023, 20:11: > >> I would recommend you learn to use a debugger such as gdb or lldb. Find >> the offending line of source code, examine the stack trace at that point, >> understand how it got to that code path. If needed, set breakpoints in >> related parts of code and step through, examining variables until you know >> what is going on. >> >> Asking others to debug your code with no link to source is not likely to >> succeed. >> >> On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> >>> >>> >>> ---------- Forwarded message ---------- >>> From: Trevor Orr <fractorr@yahoo.com> >>> To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org >>> > >>> Cc: >>> Bcc: >>> Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) >>> Subject: [OpenSCAD] Re: Custom File Exporter >>> not sure, that is what I get in the shell when I run OpenSCAD >>> >>> >>> On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown < >>> openscad@jordan.maileater.net> wrote: >>> >>> >>> On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote: >>> >>> qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: >>> No such file or directory >>> qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: >>> No such file or directory >>> Segmentation fault >>> >>> >>> What's that colon at the front of the string? >>> >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >>> >>> >>> ---------- Forwarded message ---------- >>> From: Trevor Orr via Discuss <discuss@lists.openscad.org> >>> To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org >>> > >>> Cc: Trevor Orr <fractorr@yahoo.com> >>> Bcc: >>> Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) >>> Subject: [OpenSCAD] Re: Custom File Exporter >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
TO
Trevor Orr
Mon, Oct 16, 2023 6:54 PM

Thanks, that is probably what I missed, adding the new icon to "resources/common.qrc.in"
On Monday, October 16, 2023 at 11:36:33 AM PDT, Hans L thehans@gmail.com wrote:

If the issue is with Qt Resources, then you probably need to add your file to the listing in "resources/common.qrc.in"
BTW the extraneous '.in' suffix is because our CMakeLists uses that file to configure some variableshttps://github.com/openscad/openscad/blob/master/CMakeLists.txt#L1138

https://doc.qt.io/qt-5/resources.html

On Mon, Oct 16, 2023 at 1:28 PM Guenther Sohler guenther.sohler@gmail.com wrote:

My way of Debugging IS to add printf's in strategical relevant places and watch the Output. In contrast to using gdb you can also Display big amounts of intermediate Data Well formatted for Reviews.

Hans L thehans@gmail.com schrieb am Mo., 16. Okt. 2023, 20:11:

I would recommend you learn to use a debugger such as gdb or lldb.  Find the offending line of source code, examine the stack trace at that point, understand how it got to that code path.  If needed, set breakpoints in related parts of code and step through, examining variables until you know what is going on.
Asking others to debug your code with no link to source is not likely to succeed.
On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss discuss@lists.openscad.org wrote:

---------- Forwarded message ----------
From: Trevor Orr fractorr@yahoo.com
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: 
Bcc: 
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter
not sure, that is what I get in the shell when I run OpenSCAD

On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown <openscad@jordan.maileater.net> wrote:  

On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote:

qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: No such file or directory  qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: No such file or directory Segmentation fault

What's that colon at the front of the string?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

---------- Forwarded message ----------
From: Trevor Orr via Discuss discuss@lists.openscad.org
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: Trevor Orr fractorr@yahoo.com
Bcc: 
Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC)
Subject: [OpenSCAD] Re: Custom File Exporter


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Thanks, that is probably what I missed, adding the new icon to "resources/common.qrc.in" On Monday, October 16, 2023 at 11:36:33 AM PDT, Hans L <thehans@gmail.com> wrote: If the issue is with Qt Resources, then you probably need to add your file to the listing in "resources/common.qrc.in" BTW the extraneous '.in' suffix is because our CMakeLists uses that file to configure some variableshttps://github.com/openscad/openscad/blob/master/CMakeLists.txt#L1138 https://doc.qt.io/qt-5/resources.html On Mon, Oct 16, 2023 at 1:28 PM Guenther Sohler <guenther.sohler@gmail.com> wrote: My way of Debugging IS to add printf's in strategical relevant places and watch the Output. In contrast to using gdb you can also Display big amounts of intermediate Data Well formatted for Reviews. Hans L <thehans@gmail.com> schrieb am Mo., 16. Okt. 2023, 20:11: I would recommend you learn to use a debugger such as gdb or lldb.  Find the offending line of source code, examine the stack trace at that point, understand how it got to that code path.  If needed, set breakpoints in related parts of code and step through, examining variables until you know what is going on. Asking others to debug your code with no link to source is not likely to succeed. On Mon, Oct 16, 2023 at 12:47 PM Trevor Orr via Discuss <discuss@lists.openscad.org> wrote: ---------- Forwarded message ---------- From: Trevor Orr <fractorr@yahoo.com> To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org> Cc:  Bcc:  Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) Subject: [OpenSCAD] Re: Custom File Exporter not sure, that is what I get in the shell when I run OpenSCAD On Monday, October 16, 2023 at 10:36:18 AM PDT, Jordan Brown <openscad@jordan.maileater.net> wrote: On 10/16/2023 9:31 AM, Trevor Orr via Discuss wrote: qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: No such file or directory qt.svg: Cannot open file ':/icons/svg-default/export-lbrn.svg', because: No such file or directory Segmentation fault What's that colon at the front of the string? _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org ---------- Forwarded message ---------- From: Trevor Orr via Discuss <discuss@lists.openscad.org> To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org> Cc: Trevor Orr <fractorr@yahoo.com> Bcc:  Date: Mon, 16 Oct 2023 17:47:11 +0000 (UTC) Subject: [OpenSCAD] Re: Custom File Exporter _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org