Gary Kramlich wrote:
Leonardo Zide wrote:
On Jul 23, 2007, at 8:21 PM, Gary Kramlich wrote:
Sorry about replying to myself, but rev 675 doesn't work on amd64
either, I can fix most of it, but I'm not sure how to handle this:
linux/dialogs.cpp:2957: error: ‘Object’ was not declared in this scope
Looks like the dependencies are wrong and didn't make me recompile
that file but now I got the error after a clean. I've fixed all
compiler errors and checked in the changes to the head revision but
for some reason the way vmware is setup is giving me some X error
when I try to start it so I don't know if it actually works or not.
Theres still some 64bit issues, but I'll have a patch for you shortly :)
Here's the patch for the 64bit issues, I'm getting the BadMatch XError,
and hopefully have that fixed in a few.
--
Gary Kramlich <[EMAIL PROTECTED]>
Index: linux/dlgpiece.cpp
===================================================================
--- linux/dlgpiece.cpp (revision 696)
+++ linux/dlgpiece.cpp (working copy)
@@ -64,7 +64,7 @@
info->wizard->ChangeColor (i, GPOINTER_TO_INT (data));
info->wizard->Redraw ();
- set_button_pixmap2 (button, FlatColorArray[(int)data]);
+ set_button_pixmap2 (button, FlatColorArray[GPOINTER_TO_INT(data)]);
}
// A color button was clicked
Index: linux/dialogs.cpp
===================================================================
--- linux/dialogs.cpp (revision 696)
+++ linux/dialogs.cpp (working copy)
@@ -219,7 +219,7 @@
void dlg_default_callback(GtkWidget *widget, gpointer data)
{
- *cur_ret = (int)data;
+ *cur_ret = GPOINTER_TO_INT(data);
}
gint dlg_delete_callback(GtkWidget *widget, GdkEvent* event, gpointer data)
Index: linux/main.cpp
===================================================================
--- linux/main.cpp (revision 696)
+++ linux/main.cpp (working copy)
@@ -128,7 +128,7 @@
if (ignore_commands)
return;
- lcGetActiveProject()->HandleCommand((LC_COMMANDS)(int)data, 0);
+ lcGetActiveProject()->HandleCommand((LC_COMMANDS)GPOINTER_TO_INT(data), 0);
}
static void view_destroy (GtkWidget *widget, gpointer data)
@@ -139,7 +139,7 @@
void OnCommand(GtkWidget* widget, gpointer data)
{
Project* project = lcGetActiveProject();
- int id = (int)data;
+ int id = GPOINTER_TO_INT(data);
if (ignore_commands)
return;
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad