To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.macOpen lugnet.cad.dev.mac in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Macintosh / 754
753  |  755
Subject: 
Re: LDView 3.1 on Mac OS X!
Newsgroups: 
lugnet.cad.dev.mac
Date: 
Mon, 19 Feb 2007 16:14:00 GMT
Viewed: 
12274 times
  
In lugnet.cad.dev.mac, Travis Cobbs wrote:

   Thanks for doing that, Jim. Just as a note, the latest development code compiles and runs on Mac OS X without modification, and LDView 3.2 will have an official Mac Universal Binary version (although it might labeled as Beta).

Wow! That’s great news. Indeed, I wasn’t aware that an up-to-date Mac version was in the works.

   (Getting the Universal Binary part to work for the QT and Boost libraries took some work.) The development code has some menu cleanup (including standard “Open Recent” sub-menu in the File menu and removal of the (empty) Edit menu). In order to make it as easy as possible for end-users, the official version will statically link against both Boost and QT. That means that the binary will be relatively large (13MB uncompressed), but it also means that it will run on any Mac with OS X 10.4 without any other dependencies.

Making it universal with no dependencies is great - that will make it easily accessible to a lot more people than if prerequisites like Boost had to be installed as well. I appreciate the work you’re putting into this.

   I hadn’t made any official announcements about it before now because I don’t really have any estimate on what the release date will be. If you’re interested in the latest dev code, just follow the instructions here to get it via anonymous cvs:

http://ldview.sourceforge.net/Downloads.html#SourceCode

If you have Boost and QT compiled, you should be able to compile the code without any modifications.

Boy, I should have just tried the development code from the start! However, I tried it out this morning and I do encounter a problem when running makeall. It boils down to this:

TCLocalStrings.cpp: In member function 'void  TCLocalStrings::mbstowstring(std::wstring&, const char*, int)':
TCLocalStrings.cpp:1180: error: invalid cast from type 'QChar' to type  'wchar_t'
lipo: can't figure out the architecture type of: /var/tmp//cc960xuw.out

Looks like a string conversion issue, but I’m not sure if the architecture reference implies something else. I’m not familiar with the QT APIs or many C++ classes, so I haven’t really tried to figure it out.

   It appears that we compiled with different versions of QT; Jim’s border around the graphics area is different, as is the toolbar area. I didn’t mention it in my previous post, but my compile is with QT 3.3.7. Jim, are you using QT 3.3 or QT 4.x? If you’re using 4.x, there might be some problems. (Peter found some QT 4 bugs when building with QT 4 in Linux.) Peter tracked down a version of QT 3.3 for Mac that was back-ported from QT 4 GPL for Mac.

Yes, I built my version with QT 4.2.2, which was simply the current version being distributed by Trolltech. What problems, specifically, should I be looking for with QT 4? I’ve found ftp//ftp.trolltech.com/qt/source/qt-mac-free-3.3.7.tar.gz, but unlike QT 4, it’s not building successfully on the first try. Nevertheless, could the casting error noted above be related to which version of QT I’m using? At any rate, the border does look nicer - more compact - in the screenshot you posted.

Anyway, as for my LDView 3.1 first impressions:
  • Cutaway mode is cool.
  • POV-Ray camera info export is going to be really handy.
  • Automatic download of missing parts is also cool and very handy. I tested it with the example 8464.mpd model, and I was particularly pleased to find that Bricksmith can access the Unofficial parts too.
  • The variety of display options are fun.
  • Snapshots are nice.
On the down side,
  • The clunkier border and toolbar area you noticed with my QT version remain visible in full screen mode. (The strip between the toolbar and display is really part of the display border, as it remains visible when the toolbar is hidden.)
  • I can’t seem to invoke “Fly Through” mode - the menu item becomes checked appropriately, but the status bar continues to read “Examine” and none of the fly through controls seem to be active. (In other words, except for the menu indicator, it remains in “Examine” mode.)
  • Very minor - modifier key/mouse controls noted in help text are somewhat different on Mac OS X. Command instead of control, etc.
It’s exciting to have a new tool in the Mac LDraw arsenal. Please let me know of any way I can help bring 3.2 to fruition, from testing to simply sharing more specific information about the problems I’ve noted. Also, given the presumed Boost/QT dependency of the version I’ve built, and the fact that you are incorporating more Mac OS X support in the next official release, I’m thinking it might not be worthwhile to post the version I compiled (as users will still have to install Boost/QT - something I hadn’t thought of last night). What do you think?

Jim



Message has 2 Replies:
  Re: LDView 3.1 on Mac OS X!
 
(...) I have to wonder what QChar is defined as in QT4. In QT3, it's just an integer type, as far as I can tell. The wchar_t type is just an integer type (4-byte integer in Linux, 2-byte integer in Windows, not sure about OSX). I suspect this error (...) (18 years ago, 20-Feb-07, to lugnet.cad.dev.mac, FTX)
  Re: LDView 3.1 on Mac OS X!
 
(...) Yeah, they have been working on it for some time, almost 3 years. I'm very eager to get rid of the old version on my website! I don't believe it works with 10.4. I'm very glad to see more Mac LDraw apps! James (18 years ago, 21-Feb-07, to lugnet.cad.dev.mac)

Message is in Reply To:
  Re: LDView 3.1 on Mac OS X!
 
Thanks for doing that, Jim. Just as a note, the latest development code compiles and runs on Mac OS X without modification, and LDView 3.2 will have an official Mac Universal Binary version (although it might labeled as Beta). (Getting the Universal (...) (18 years ago, 19-Feb-07, to lugnet.cad.dev.mac, FTX)

39 Messages in This Thread:











Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR