Ok… I think maybe the OCC is a bit too big of a piece to try to take on at the moment.
I just want to play with Occ and Makebottle with Gtk+ using Gtkmm.
I did some searching at lunch at game up with some interesting links:
This looks promising
This is really interesting…..
This google codesearch is something that I knew nothing about. Learn something new every day. This is very very cool.
I found some code that looks simple enough to try to see if I could get it to work.
I wget’d the gtkmmocascade to see if I could get that to work…
So… never ran across a bz2 file before… I ran across this site which explains what to do in various formats. http://www.ncsu.edu/it/essentials/managing_files/compress.html
Yehhh… go wolfpack…. Ahem anyway… According to the them this is what you do…..
Decompressing files with .bz or .bz2 endings
For a file with the extension .bz or .bz2, you must first gain access to the bzip and/or bzip2 commands by typing:
Then, if the file ends in .bz, you uncompress it by using the command:
or, if the file ends in .bz2, you uncompress it by using the command:
The decompressed file will appear in your directory listing, and the .bz or .bz2 will be removed.
Why did I know that wasn’t going to work of the get go..
I don’t have bzip but for some reason bzip2 is on my machine.
jonas@Ubuntu4:~/gtkmmocascade$ bzip2 -d gtkmmocascade.tar.bz2
bzip2: Can’t open input file gtkmmocascade.tar.bz2: No such file or directory.
jonas@Ubuntu4:~/gtkmmocascade$ bzip2 -d *
bzip2: gtkmmocascade.tar.bz2 is not a bzip2 file.
Ok… This is not good…
Something looks hosed….
Time for brute force. I can see the code from google. I guess I can try to copy and save to indivdual files.
brute for succeeds. Now lets see if I can go anything with this code.
I took a look at make file… My Occ was set up via the deb. So…. the make file should fail…
I guess I should confirm…
g++ -Wno-deprecated -I./
In file included from main.cpp:2:
./gtkmmocascade.h:12:38: error: AIS_InteractiveContext.hxx: No such file or directory
./gtkmmocascade.h:14:24: error: V3d_View.hxx: No such file or directory
./gtkmmocascade.h:15:26: error: V3d_Viewer.hxx: No such file or directory
./gtkmmocascade.h:17:35: error: Geom_BSplineSurface.hxx: No such file or directory
./gtkmmocascade.h:19:37: error: AIS_InteractiveObject.hxx: No such file or directory
./gtkmmocascade.h:20:40: error: Graphic3d_NameOfMaterial.hxx: No such file or directory
./gtkmmocascade.h:22:28: error: TopoDS_Shape.hxx: No such file or directory
./gtkmmocascade.h:23:25: error: AIS_Shape.hxx: No such file or directory
./gtkmmocascade.h:25:43: error: Handle_V3d_OrthographicView.hxx: No such file or directory
./gtkmmocascade.h:26:42: error: Handle_V3d_PerspectiveView.hxx: No such file or directory
./gtkmmocascade.h:27:36: error: V3d_OrthographicView.hxx: No such file or directory
./gtkmmocascade.h:28:35: error: V3d_PerspectiveView.hxx: No such file or directory
./gtkmmocascade.h:29:29: error: Aspect_Handle.hxx: No such file or directory
./gtkmmocascade.h:30:36: error: Handle_AIS_Trihedron.hxx: No such file or directory
./gtkmmocascade.h:31:29: error: AIS_Trihedron.hxx: No such file or directory
./gtkmmocascade.h:32:35: error: Geom_Axis2Placement.hxx: No such file or directory
In file included from main.cpp:2:
./gtkmmocascade.h:63: error: ‘V3d_View’ has not been declared
./gtkmmocascade.h:63: error: ISO C++ forbids declaration of ‘Handle’ with no type
./gtkmmocascade.h:63: error: expected ‘;’ before ‘&’ token
./gtkmmocascade.h:68: error: expected
./gtkmmocascade.h:73: error: ‘AIS_InteractiveContext’ has not been declared
./gtkmmocascade.h:73: error: ISO C++ forbids declaration of ‘Handle’ with no type
./gtkmmocascade.h:73: error: expected ‘;’ before ‘&’ token
./gtkmmocascade.h:78: error: expected
main.cpp:97: error: ‘AIS_Shape’ was not declared in this scope
main.cpp:97: error: ‘Handle’ was not declared in this scope
main.cpp:97: error: expected
main.cpp:117: error: ‘AIS_Shape’ was not declared in this scope
main.cpp:117: error: ‘Handle’ was not declared in this scope
main.cpp:117: error: expected
Ok... This was not unexcepted.
Try #2. I'm going to rename the make file to old and try automake to see what happens
The program 'automake' can be found in the following packages:
Try: sudo apt-get install <selected package>
bash: automake: command not found
jonas@Ubuntu4:~/gtkmmocascade$ sudo apt-get install automake1.9
[sudo] password for jonas:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 388kB of archives.
After this operation, 1470kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com hardy/main automake1.9 1.9.6+nogfdl-3ubuntu1 [388kB]
Fetched 388kB in 6s (62.6kB/s)
Selecting previously deselected package automake1.9.
(Reading database ... 222950 files and directories currently installed.)
Unpacking automake1.9 (from .../automake1.9_1.9.6+nogfdl-3ubuntu1_all.deb) ...
Processing triggers for man-db ...
Setting up automake1.9 (1.9.6+nogfdl-3ubuntu1) ...
@#%^@ Ok… Should I try to manual fix the make or should I investigate the configure.in or configure.ac.
To the man pages Robin… EECH… Circular logic…. Must be the riddler.
Yet another interesting site.
Hm…. Page 95 of the tutorial gets interesting with a hello world example…
If you download the PDF resize it to a single page…. and then go page to page versus scrolling.
The documentation was designed that way for presentations..
I really need to understand this gnu file structures so I can use these tools….