Welcome, Guest
Username: Password: Remember me

TOPIC: Compiling on AMD64

Re:Compiling on AMD64 12 years 4 months ago #2895

  • slos
  • slos's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Karma: 0
Hello Claes,

Well, in fact the whole thing did not compile.

I have problem with /Proview/x4.8.2-1/profibus/lib/cow/src/cow_pn_gsdml.cpp where is used \"offsetof\" which seems to be a problem on my machine.

I don't understand why it does not work since it is defined in /usr/lib/gcc/x86_64-linux-gnu/4.6/include/stddef.h.

I have tried to add this path to the include dir in the config file but without success.

The problem looks like :
../../cow_pn_gsdml.cpp:90:139: error: expected primary-expression before ‘,’ token
../../cow_pn_gsdml.cpp:90:140: error: ‘ProfileIdentification’ was not declared in this scope
../../cow_pn_gsdml.cpp:90:161: error: ‘offsetof’ was not declared in this scope

Any hint ?

BR
Stéphane
The administrator has disabled public write access.

Re:Compiling on AMD64 12 years 4 months ago #2896

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Stéphan,

Have you added an include of stddef.h ?

/Claes
The administrator has disabled public write access.

Re:Compiling on AMD64 12 years 4 months ago #2897

  • slos
  • slos's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Karma: 0
Hi Claes,

Well, I don't think I should since cow_pn_gsdml.cpp includes <stdlib.h> which includes <stddef.h>...

/* cow_pn_gsdml.cpp -- Parse gsdml file */

#include <stdlib.h>
.
.
.
/*
* ISO C99 Standard: 7.20 General utilities <stdlib.h>
*/

#ifndef _STDLIB_H

#include <features.h>

/* Get size_t, wchar_t and NULL from <stddef.h>. */
#define __need_size_t
#ifndef __need_malloc_and_calloc
# define __need_wchar_t
# define __need_NULL
#endif
#include <stddef.h>

BR
Stéphane
The administrator has disabled public write access.

Re:Compiling on AMD64 12 years 4 months ago #2898

  • slos
  • slos's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Karma: 0
Hi Claes,

Don't why but it did. Adding #include <stddef.h> worked here.

Who knows why ?

Well, I continue the build and post the result soon.

BR
Stéphane
The administrator has disabled public write access.

Re:Compiling on AMD64 12 years 4 months ago #2899

  • slos
  • slos's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Karma: 0
Hum, Hi again,

Seems I am not far from the end but :

Linking /home/slos/Proview/build/x4.8.2-1/slos_dbg/os_linux/hw_x86_64/java/exe/jpwr_rt_gdh
/usr/bin/ld: cannot find -lpwr_cifx_dummy
collect2: ld returned 1 exit status
make: *** [/home/slos/Proview/build/x4.8.2-1/slos_dbg/os_linux/hw_x86_64/java/exe/jpwr_rt_gdh] Erreur 1

I have found that -lpwr_cifx_dummy is required in the config file and that otherio required libs are built (usb and usbio) but I can't find how to build pwr_cifx_dummy although I have found the source of it.

Any hint ?

BR
Stéphane
The administrator has disabled public write access.

Re:Compiling on AMD64 12 years 4 months ago #2900

  • slos
  • slos's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Karma: 0
Me again,

Ok, added to module otherio in pwre.pl

BR
Stéphane
The administrator has disabled public write access.
Time to create page: 8.628 seconds