libEMF and EMF/WMF on 64-bit platforms
Hi folks! First of all I should say that I really like SuSE 9.1! Are any of you familiar with libEMF? Basically, I need to write an EMF (or WMF) from Linux. Ideally, I could convert a source file--any of PS, PDF, SVG or Gnu metafile formats would work--into an EMF or WMF. Looking around the Web, the open-source solution seems to be a program called pstoedit, which can utilize a library called libEMF to "tell" pstoedit how to write EMFs. Unfortunately, libEMF won't build on 64-bit SuSE 9.1, giving me an error about needing to define a context for my CPU. ../include/wine/winnt.h:49:3: #error Unknown CPU architecture! ../include/wine/winnt.h:1049:2: #error You need to define a CONTEXT for your CPU Unfortunately, that means nothing to me! Can someone explain? What might I do to get libEMF to build? There is no libEMF binary for x86_64. I tried installing the i586 libEMF binary, but pstoedit didn't recognize it. Am I doing something wrong? Additionally, though there is a pstoedit binary for x86_64, it doesn't install libEMF! If there's no solution, maybe someone out there knows other way I can convert to EMFs/WMFs from 64-bit SuSE. If so, do tell :) As an addendum, I noted that winnt.h is part of the wine package and reinstalled the wine-devel rpm from my SuSE CD (only the i586 version was available). Then I replaced the winnt.h provided by libEMF with the new one--unfortunately, I not only got the same error, but also many more :( I would be greatly appreciative for any help anyone could provide. Kevin
"Kevin Bartz"
Hi folks! First of all I should say that I really like SuSE 9.1! Are any of you familiar with libEMF? Basically, I need to write an EMF (or WMF) from Linux. Ideally, I could convert a source file--any of PS, PDF, SVG or Gnu metafile formats would work--into an EMF or WMF. Looking around the Web, the open-source solution seems to be a program called pstoedit, which can utilize a library called libEMF to "tell" pstoedit how to write EMFs. Unfortunately, libEMF won't build on 64-bit SuSE 9.1, giving me an error about needing to define a context for my CPU.
../include/wine/winnt.h:49:3: #error Unknown CPU architecture! ../include/wine/winnt.h:1049:2: #error You need to define a CONTEXT for your CPU
That sounds bad - I suggest to build as a 32-bit binary or use the 32-bit packages of pstoedit with the 32-bit libEMF, Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SUSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Hi folks! First of all I should say that I really like SuSE 9.1! Are any of you familiar with libEMF? Basically, I need to write an EMF (or WMF) from Linux. Ideally, I could convert a source file--any of PS, PDF, SVG or Gnu metafile formats would work--into an EMF or WMF. Looking around the Web,
Thanks so much for your reply! I tried out your suggestion.
Unfortunately, pstoedit doesn't recognize the 32-bit version of the libEMF
library, probably because (?) linux32 simulates the i686 architecture, but
the binary libEMF is for the i586 architecture. I tried to use libEMF
anyway, by simply installing the rpm for the 32-bit version. But then
pstoedit's configure, run under linux32, when passed -lEMF for libEMF.so,
that
configure:18529: linux32 g++ -o conftest -g -O2 conftest.cc -lEMF -lm >&5
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin
/ld: skipping incompatible /usr/lib/libEMF.so when searching for -lEMF
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin
/ld: cannot find -lEMF
Bummer! Any other suggestions? Has anyone managed to get libEMF properly
installed on 64-bit SuSE?
Kevin
-----Original Message-----
From: suse-amd64-return-3122-kbartz=loyaltymatrix.com@suse.com
[mailto:suse-amd64-return-3122-kbartz=loyaltymatrix.com@suse.com] On Behalf
Of Andreas Jaeger
Sent: Tuesday, July 20, 2004 11:54 AM
To: Kevin Bartz
Cc: suse-amd64@suse.com
Subject: Re: [suse-amd64] libEMF and EMF/WMF on 64-bit platforms
"Kevin Bartz"
open-source solution seems to be a program called pstoedit, which can utilize a library called libEMF to "tell" pstoedit how to write EMFs. Unfortunately, libEMF won't build on 64-bit SuSE 9.1, giving me an error about needing to define a context for my CPU.
../include/wine/winnt.h:49:3: #error Unknown CPU architecture! ../include/wine/winnt.h:1049:2: #error You need to define a CONTEXT for your CPU
That sounds bad - I suggest to build as a 32-bit binary or use the 32-bit packages of pstoedit with the 32-bit libEMF, Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SUSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
"Kevin Bartz"
Thanks so much for your reply! I tried out your suggestion.
Unfortunately, pstoedit doesn't recognize the 32-bit version of the libEMF library, probably because (?) linux32 simulates the i686 architecture, but the binary libEMF is for the i586 architecture. I tried to use libEMF
That shouldn't be a problem.
anyway, by simply installing the rpm for the 32-bit version. But then pstoedit's configure, run under linux32, when passed -lEMF for libEMF.so, that
configure:18529: linux32 g++ -o conftest -g -O2 conftest.cc -lEMF -lm >&5
You have to add -m32 - linux32 only changes the uname output and so g++ produces a 64-bit binary, Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SUSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On Tue, Jul 20, 2004 at 03:46:43PM -0700, Kevin Bartz wrote:
Thanks so much for your reply! I tried out your suggestion.
Unfortunately, pstoedit doesn't recognize the 32-bit version of the libEMF library, probably because (?) linux32 simulates the i686 architecture, but the binary libEMF is for the i586 architecture. I tried to use libEMF anyway, by simply installing the rpm for the 32-bit version. But then pstoedit's configure, run under linux32, when passed -lEMF for libEMF.so, that
configure:18529: linux32 g++ -o conftest -g -O2 conftest.cc -lEMF -lm >&5 /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin /ld: skipping incompatible /usr/lib/libEMF.so when searching for -lEMF /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin /ld: cannot find -lEMF
Bummer! Any other suggestions? Has anyone managed to get libEMF properly installed on 64-bit SuSE?
Use the -m32 option here. Otherwise it still tries to build 64bit binaris. CC="gcc -m32" CXX="g++ -m32" ./configure ... Ciao, Marcus
I got 4.5.2 build 8848 working with 9.1 after running vmware-any-any-75! Well, not exactly... I still got the "not configured (correctly)" dialoque. But I didn't pull out my hair (mainly cuz I didn't have any left after all the past failures.) After many googles, I found this totally unrelated thread on the gentoo forum that ended with "I deleted the not_conigured file in /etc/vmware". I took a look and found it there, just an empty file created by vmware when error is encountered. Deleted it and boomb, started right up. Why, I dunno, but you'd think they would have that in the docs somewhere. Curt Purdy CISSP, GSEC, MCSE+I, CNE, CCDA Information Security Engineer DP Solutions ---------------------------------------- If you spend more on coffee than on IT security, you will be hacked. What's more, you deserve to be hacked. -- former White House cybersecurity adviser Richard Clarke
participants (4)
-
Andreas Jaeger
-
Curt Purdy
-
Kevin Bartz
-
Marcus Meissner