discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Compiling for 64 bit Sparc Solaris 10

DM
doug moen
Sun, Feb 8, 2015 7:33 PM

Okay, I went back through this thread, and I see Michele was having
build issues with recent versions of Qt due to "gar/category.mk" not
being present. I did a google search for "gar/category.mk" and there
are a number of hits. It seems to be a Solaris/OpenCSW thing, and
there seems to be a reasonable amount of information about it how to
get it and install it. For example,
https://automatthias.wordpress.com/category/computers/opencsw/

On 8 February 2015 at 14:09, Joseph Lenox lenox.joseph@gmail.com wrote:

She was having trouble getting newer versions to compile too, I thought. Or
was because it was the same version as her precompiled package.

On Feb 8, 2015 1:04 PM, "doug moen" doug@moens.org wrote:

gcc 3.4.3 sounds pretty old. Why are you using such an old version of
QT 4? Why not use QT 4.8.3, which was released April 2014? Okay, I've
never tried to build OpenSCAD, but using recent versions of QT4 and
gcc makes more sense to me, for building the most recent version of
OpenSCAD.

On 8 February 2015 at 13:10, Michele denber@mindspring.com wrote:

"I find it suspicious that you are compiling an old version of Qt
(4.6.4, released in 2011) with the latest version of gcc (4.9.2, Oct
2014). My experience with gcc makes me wonder if these releases are
compatible. "

I had not considered that possibility.  I also have gcc 3.4.3 on the
machine.  I could try using that if I could figure out how to tell CGAL
to
use that compiler.

We've got this:

--
View this message in context:
http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11563.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Okay, I went back through this thread, and I see Michele was having build issues with recent versions of Qt due to "gar/category.mk" not being present. I did a google search for "gar/category.mk" and there are a number of hits. It seems to be a Solaris/OpenCSW thing, and there seems to be a reasonable amount of information about it how to get it and install it. For example, https://automatthias.wordpress.com/category/computers/opencsw/ On 8 February 2015 at 14:09, Joseph Lenox <lenox.joseph@gmail.com> wrote: > She was having trouble getting newer versions to compile too, I thought. Or > was because it was the same version as her precompiled package. > > On Feb 8, 2015 1:04 PM, "doug moen" <doug@moens.org> wrote: >> >> gcc 3.4.3 sounds pretty old. Why are you using such an old version of >> QT 4? Why not use QT 4.8.3, which was released April 2014? Okay, I've >> never tried to build OpenSCAD, but using recent versions of QT4 and >> gcc makes more sense to me, for building the most recent version of >> OpenSCAD. >> >> On 8 February 2015 at 13:10, Michele <denber@mindspring.com> wrote: >> > "I find it suspicious that you are compiling an old version of Qt >> > (4.6.4, released in 2011) with the latest version of gcc (4.9.2, Oct >> > 2014). My experience with gcc makes me wonder if these releases are >> > compatible. " >> > >> > I had not considered that possibility. I also have gcc 3.4.3 on the >> > machine. I could try using that if I could figure out how to tell CGAL >> > to >> > use that compiler. >> > >> > We've got this: >> > >> > >> > >> > >> > >> > >> > -- >> > View this message in context: >> > http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11563.html >> > Sent from the OpenSCAD mailing list archive at Nabble.com. >> > >> > _______________________________________________ >> > OpenSCAD mailing list >> > Discuss@lists.openscad.org >> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
M
Michele
Sun, Feb 8, 2015 8:07 PM

/"gcc 3.4.3 sounds pretty old."/

That's what came with the Solaris 10U11 DVD.  And since the Openscad
dependency checked wanted at least 4.0 I figured why not just go to the
latest and installed 4.9.2.

"using recent versions of QT4 and
gcc makes more sense to me, for building the most recent version of
OpenSCAD. "

I tried both Qt5.2 and Qt5.4 at first.  Neither of them will even run
./configure.  They stop instantly with the oh-so-helpful message

./configure: test: argument expected

I posted about this on qt-project.org but never got an answer.  So then I
decided to install a Qt 4.5.3 package I found since I was having no luck
compiling it.  That seemed to work and I was able to run a few examples in
the Qt directory.  But when I tried to compile CGAL (which apparently needs
Qt) I started getting bad ELF errors from gmake.  So I checked my Qt and
found it was 32 bit instead of 64.  So I deleted it and then downloaded
4.6.4 so that there would be no confusion between it and the one I'd just
dumped.  I thought as long as it was > 4.4 which is the minimum for
Openscad, I'd be OK.

At least ./configure worked with 4.6.4, but with a bunch of warnings.  And
then gmake failed with two errors.

--
View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11567.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

/"gcc 3.4.3 sounds pretty old."/ That's what came with the Solaris 10U11 DVD. And since the Openscad dependency checked wanted at least 4.0 I figured why not just go to the latest and installed 4.9.2. "using recent versions of QT4 and gcc makes more sense to me, for building the most recent version of OpenSCAD. " I tried both Qt5.2 and Qt5.4 at first. Neither of them will even run ./configure. They stop instantly with the oh-so-helpful message ./configure: test: argument expected I posted about this on qt-project.org but never got an answer. So then I decided to install a Qt 4.5.3 package I found since I was having no luck compiling it. That seemed to work and I was able to run a few examples in the Qt directory. But when I tried to compile CGAL (which apparently needs Qt) I started getting bad ELF errors from gmake. So I checked my Qt and found it was 32 bit instead of 64. So I deleted it and then downloaded 4.6.4 so that there would be no confusion between it and the one I'd just dumped. I thought as long as it was > 4.4 which is the minimum for Openscad, I'd be OK. At least ./configure worked with 4.6.4, but with a bunch of warnings. And then gmake failed with two errors. -- View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11567.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
Michele
Sun, Feb 8, 2015 8:17 PM

"She was having trouble getting newer versions to compile too, I thought. Or
was because it was the same version as her precompiled package. "

THe precompiled package turned out to be 32 bit.  It was not mentioned on
the page where I found the link, nor was in included in the file name.  So I
guess now I pretty much have to compile /some /version of Qt > 4.4 but < 5.0
(unless someone can tell me what "test: argument expected" means.

But the "which compiler" question may be a clue.  I just found this:

That looks like the dreaded no supported Solaris Studio, yes?

And the very first thing the Qt4.6 ./configure does is call CC.  So maybe
that's the problem.

I figured out how to tell gmake which gcc to use.  How do I tell configure
which CC to use?

--
View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11569.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

"She was having trouble getting newer versions to compile too, I thought. Or was because it was the same version as her precompiled package. " THe precompiled package turned out to be 32 bit. It was not mentioned on the page where I found the link, nor was in included in the file name. So I guess now I pretty much have to compile /some /version of Qt > 4.4 but < 5.0 (unless someone can tell me what "test: argument expected" means. But the "which compiler" question may be a clue. I just found this: That looks like the dreaded no supported Solaris Studio, yes? And the very first thing the Qt4.6 ./configure does is call CC. So maybe that's the problem. I figured out how to tell gmake which gcc to use. How do I tell configure which CC to use? -- View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11569.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
Michele
Sun, Feb 8, 2015 8:37 PM

"Okay, I went back through this thread, and I see Michele was having
build issues with recent versions of Qt due to "gar/category.mk" not
being present. I did a google search for "gar/category.mk" and there
are a number of hits. It seems to be a Solaris/OpenCSW thing, and
there seems to be a reasonable amount of information about it how to
get it and install it."

I got embroiled with gar when I tried to install the Opencsw package of Qt
after failing repeatedly to compile it myself.  But apparently all the Qt
install scripts over at Opencsw require that you have something called "gar"
which near as I can tell is some sort of package creation/distribution tool.
So I tried to install gar and it was a complete disaster.  I read every
single post on the web about category.mk but nothing worked.

Since nothing else in Openscad seems to require gar, I decided to abandon
the idea of loading the Opencsw Qt package and concentrate instead on
getting some version of Qt > 4.4 to compile.  Right now that is the
rate-determining step.  If Qt falls, then CGAL and OpenCSG should follow in
short order, thus finally letting me out of Dependency Hell.

--
View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11570.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

"Okay, I went back through this thread, and I see Michele was having build issues with recent versions of Qt due to "gar/category.mk" not being present. I did a google search for "gar/category.mk" and there are a number of hits. It seems to be a Solaris/OpenCSW thing, and there seems to be a reasonable amount of information about it how to get it and install it." I got embroiled with gar when I tried to install the Opencsw package of Qt after failing repeatedly to compile it myself. But apparently all the Qt install scripts over at Opencsw require that you have something called "gar" which near as I can tell is some sort of package creation/distribution tool. So I tried to install gar and it was a complete disaster. I read every single post on the web about category.mk but nothing worked. Since nothing else in Openscad seems to require gar, I decided to abandon the idea of loading the Opencsw Qt package and concentrate instead on getting some version of Qt > 4.4 to compile. Right now that is the rate-determining step. If Qt falls, then CGAL and OpenCSG should follow in short order, thus finally letting me out of Dependency Hell. -- View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11570.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
Michele
Sun, Feb 8, 2015 10:25 PM

Well I figured out how to pass gcc to configure:

Since I can't seem to get any help over on the Qt board, does this error
mean anything to anyone here?

--
View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11571.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Well I figured out how to pass gcc to configure: Since I can't seem to get any help over on the Qt board, does this error mean anything to anyone here? -- View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11571.html Sent from the OpenSCAD mailing list archive at Nabble.com.
D
donbright
Thu, Mar 5, 2015 6:55 AM

Michele

Sorry but i worked on those dependency build helper scripts on Linux/BSD.
Had no access to Solaris. I tried IllumOS but couldn't figure out the
package manager.

I have updated the Wikibook to clarify that those helper scripts won't work
properly on Solaris, AIX, Irix, etc.

One thing that may help is trying to build the test suite, not the QT gui,
and to try to set the special command to build without OpenGL (a bit of
googling / searching may be required).

-Don B

--
View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11892.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Michele Sorry but i worked on those dependency build helper scripts on Linux/BSD. Had no access to Solaris. I tried IllumOS but couldn't figure out the package manager. I have updated the Wikibook to clarify that those helper scripts won't work properly on Solaris, AIX, Irix, etc. One thing that may help is trying to build the test suite, not the QT gui, and to try to set the special command to build without OpenGL (a bit of googling / searching may be required). -Don B -- View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11892.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
Michele
Thu, Mar 5, 2015 5:18 PM

/"One thing that may help is trying to build the test suite, not the QT gui,
and to try to set the special command to build without OpenGL (a bit of
googling / searching may be required)."/

Well right this project is totally stalled.  I can't get either Qt4 or Qt5
to compile, I don't understand the error messages, and I can't get anyone to
help me.

So if I can accomplish something without Qt I could give that a try.  How do
I do that?  I don't even know what to Google for.

If you're interested I could set up an account for you on my Solaris machine
to play with the scripts.  I found check-dependencies.sh to be quite
helpful, though oddly enough when I tried it again today it now claims
everything is "unknown", even the nine dependencies I've already resolved.
No idea what that's all about.

--
View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11896.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

/"One thing that may help is trying to build the test suite, not the QT gui, and to try to set the special command to build without OpenGL (a bit of googling / searching may be required)."/ Well right this project is totally stalled. I can't get either Qt4 or Qt5 to compile, I don't understand the error messages, and I can't get anyone to help me. So if I can accomplish something without Qt I could give that a try. How do I do that? I don't even know what to Google for. If you're interested I could set up an account for you on my Solaris machine to play with the scripts. I found check-dependencies.sh to be quite helpful, though oddly enough when I tried it again today it now claims everything is "unknown", even the nine dependencies I've already resolved. No idea what that's all about. -- View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p11896.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
Michele
Sun, Apr 19, 2015 6:49 PM

I have now installed a bunch of Qt packages from Opencsw.  This was
apparently enough for Octave's installer (which also uses Qt) to find and
not complain about.  However, the Openscad check-dependencies script still
says it can't find Qt4.

Can someone please tell me where it's looking for Qt?  Or is there some
env variable I need to set to point to Qt?

--
View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p12431.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I have now installed a bunch of Qt packages from Opencsw. This was apparently enough for Octave's installer (which also uses Qt) to find and not complain about. However, the Openscad check-dependencies script still says it can't find Qt4. Can someone please tell me *where* it's looking for Qt? Or is there some env variable I need to set to point to Qt? -- View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p12431.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Sun, Apr 19, 2015 10:44 PM

Hi!

On 04/19/2015 08:49 PM, Michele wrote:

I have now installed a bunch of Qt packages from Opencsw.  This was
apparently enough for Octave's installer (which also uses Qt) to find and
not complain about.  However, the Openscad check-dependencies script still
says it can't find Qt4.

This is just a helper script, it's not a precondition for the build
to work. If Qt not installed in a known/default location, the script
will not find it, but the build still could work.

Can someone please tell me where it's looking for Qt?  Or is there some
env variable I need to set to point to Qt?

It should be enough to call the correctly installed (inside the matching
Qt version) qmake in the folder where the openscad.pro is stored, e.g.

cd /home/openscad                <- the source code folder
/my/very/special/qt/bin/qmake   <- just call correct qmake

I'm not sure if that's still working, but you can also try editing the
openscad.pro file to comment out the new editor (add the #):

#CONFIG += scintilla

This should allow to compile without the new editor, allowing to postpone
the installation of the QScintilla library.

ciao,
Torsten.

Hi! On 04/19/2015 08:49 PM, Michele wrote: > I have now installed a bunch of Qt packages from Opencsw. This was > apparently enough for Octave's installer (which also uses Qt) to find and > not complain about. However, the Openscad check-dependencies script still > says it can't find Qt4. > This is just a helper script, it's not a precondition for the build to work. If Qt not installed in a known/default location, the script will not find it, but the build still could work. > Can someone please tell me *where* it's looking for Qt? Or is there some > env variable I need to set to point to Qt? > It should be enough to call the correctly installed (inside the matching Qt version) qmake in the folder where the openscad.pro is stored, e.g. cd /home/openscad <- the source code folder /my/very/special/qt/bin/qmake <- just call correct qmake I'm not sure if that's still working, but you can also try editing the openscad.pro file to comment out the new editor (add the #): #CONFIG += scintilla This should allow to compile without the new editor, allowing to postpone the installation of the QScintilla library. ciao, Torsten.
M
Michele
Mon, Apr 20, 2015 5:07 AM

/"This is just a helper script, it's not a precondition for the build
to work. If Qt not installed in a known/default location, the script
will not find it, but the build still could work."/

OK thanks, but do you know /where /the script is looking for Qt?  It's not
clear (to me anyway) what the script is doing.  My Qt ended up in
/usr/local/Trolltech/Qt-4.6.4/.

/"This should allow to compile without the new editor, allowing to postpone
the installation of the QScintilla library. "/

That would be nice since I'm not sure my Qscintilla install worked.  It said
it completed successfully but when I tried to compile Octave it said it
couldn't find it.  So if I don't use Qscintilla does that mean I don't get
an editor?

I'm still a ways from trying the Openscad configure because I also still
need to get CGAL and OpenCSG working, and they're giving me trouble too.

--
View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p12437.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

/"This is just a helper script, it's not a precondition for the build to work. If Qt not installed in a known/default location, the script will not find it, but the build still could work."/ OK thanks, but do you know /where /the script is looking for Qt? It's not clear (to me anyway) what the script is doing. My Qt ended up in /usr/local/Trolltech/Qt-4.6.4/. /"This should allow to compile without the new editor, allowing to postpone the installation of the QScintilla library. "/ That would be nice since I'm not sure my Qscintilla install worked. It said it completed successfully but when I tried to compile Octave it said it couldn't find it. So if I don't use Qscintilla does that mean I don't get an editor? I'm still a ways from trying the Openscad configure because I also still need to get CGAL and OpenCSG working, and they're giving me trouble too. -- View this message in context: http://forum.openscad.org/Compiling-for-64-bit-Sparc-Solaris-10-tp10741p12437.html Sent from the OpenSCAD mailing list archive at Nabble.com.