on my system compile and runs
but it eventually crash with
psyhlo@psyhlo-laptop:~$ HeeksCAD
The program 'HeeksCAD' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 1919 error_code 8 request_code 70 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
I'm a very confused here.
When I built HeeksCAD outside of C::B using the provide makefile the executable was placed:
/usr/local/bin
and the graphics where placed in:
/usr/local/shared/heekscad/bitmaps
/usr/local/shared/heekscad/icons
I have the project located in
/home/jonas/HeeksCAD
I tried to use the existing makefile ie, Project>Properties>Project Setting and selected /home/jonas/HeeksCAD/src I got the message:
-------------- Build: Debug in HeeksCAD ---------------
Using makefile: Makefile
make: *** No rule to make target `Debug'. Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings
So I figured since no rule was setup for Debug.. I'd just build the project through the IDE.
When I build and run (without the custom makefile) the log puts out this message.
Checking for existence: /home/jonas/HeeksCAD/HeeksCAD
Executing: xterm -T HeeksCAD -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.:/home/jonas/HeeksCAD/interface /home/jonas/HeeksCAD/HeeksCAD (in /usr/local/bin)
But I still get the error messages from the executable:
07:02:01 PM: Can't load image from file '/home/jonas/HeeksCAD/bin/Debug/../share/heekscad/bitmaps/new.png': file does not exist
I interpret this to mean IDE is executing the program from /home/jonas/HeeksCAD/bin/Debug/ is try to back up one directory then search the graphics through the path. Put...that makes absolutely sense is /home/jonas/HeeksCAD/bin/Debug/ doesn't exist.
I thought all I had to do was change the project>properties>Build Targets>Execution working directiory>/usr/local/bin
Made sense to me.. but I still get the same error. I know I'm missing something really basic here (I just don't get it at this point)
Anyone??
I wanted to post the project file put I exceeded the 20000 character limit... But... I did post it here:
http://www.metalshaperman.com/?p=171 (http://www.metalshaperman.com/?p=171)
OK, I continued the compilation, but got an error during linking,
this is the last part of the error:
g++: obj/Release/src/HeeksCAD.res: No such file or directory
Process terminated with status 1 (7 minutes, 42 seconds)
0 errors, 28 warnings
EDIT: I believe it's related to resource file, unfortunately it's out of my league.