Hi people,
I've mostly done the work necessary to get my ElfData plugin
working for linux. I compiled a libElfData.so on an x86 linux
computer. I'm using Mandrake by the way.
I used this makefile, maybe the makefile is bad, if so let me know:
CFLAGS = -c -Wall
LDFLAGS =
EDSRC = ElfDataSrc
OPSRC = ObjectPlatformSrc
SOURCES := $(wildcard $(EDSRC)/*.cpp) $(wildcard $(OPSRC)/*.cpp)
OBJECTS = $(SOURCES:.cpp=.o)
EXECUTABLE = libElfData.so
PREFIXHEADER = $(EDSRC)/ED_CompileUnix.h
INCLUDEDIRS = -I $(EDSRC) -I$(OPSRC)
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
g++ $(LDFLAGS) $(OBJECTS) -o $@
.cpp.o:
g++ $(CFLAGS) -include $(PREFIXHEADER) $(INCLUDEDIRS) $< -o $@
clean:
rm $(EDSRC)/*.o
rm $(OPSRC)/*.o
Well, it compiles a lib. As for the rest of what's necessary I have
no idea.
So, I put this lib into the "Linux x86" folder in my ElfData.rbx
plugin, using the RB Plugin Converter.
The plugin runs perfectly on Mac and PC, using a Unit Test project
that tests every function from my plugin.
I used my mac to successfully compile a Linux version of a test app.
I sent the app over to Linux, by uploading it to an ftp server and
then downloading it again. Awkward I know, but right now I haven't
figured out how to network the filesystems of my linux computer and
the Mac.
OK. So I run the extracted app, and get a whole bunch of errors!
"
Failed Assertion: 4
Press OK to Continue, Press Cancel to quit
../Common/Plugin.cpp: 5944
Failiure condition: 0
The application cannot continue because a needed file cannot be
installed: /tmp/blargh : Cannot dynamically load executable.
"
So what next?
Can someone take a look at my ElfData plugin beta for me please?
Someone who knows how to compile for Linux that is. I got the file
at: http://www.elfdata.com/ElfDataLinux.zip
It contains two files.
1) ElfData.rbx file.
2) TinyXML.rb file.
TinyXML.rb runs perfectly on MacOSX using the ElfData.rbx plugin.
So, how to get this working then?? I am out of ideas on this one.
For all I know it's something wrong with my makefile but I know
nothing about Linux and stupid linker settings! As far as I care
you just compile your code and it should work if your code is good :)
--
http://elfdata.com/plugin/
What does our work achieve, if it's not making the world a happier
place?
http://www.whatnextjournal.co.uk/Pages/Next/Happiness.html
When's the last time you thought deeply about how to improve our
lives?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>