freezway
|
|
Reply #135 Posted on: April 14, 2010, 08:25:03 pm |
|
|
Joined: Dec 2009
Posts: 220
|
/home/andrew/enigma/trunk/CompilerSource/cfile_parse/macro_functions.cpp||In function ‘bool preprocess_separately(std::string&)’:| /home/andrew/enigma/trunk/CompilerSource/cfile_parse/macro_functions.cpp|109|error: invalid initialization of reference of type ‘unsigned int&’ from expression of type ‘size_t’| /home/andrew/enigma/trunk/CompilerSource/cfile_parse/macro_functions.cpp|58|error: in passing argument 3 of ‘bool macro_function_parse(std::string, std::string, unsigned int&, std::string&, varray<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, int, int, bool)’| ||=== Build finished: 2 errors, 0 warnings ===|
|
|
|
Logged
|
if you drop a cat with buttered toast strapped to its back, which side lands down? joshdreamland: our languages are based on the idea that it's going to end up FUBAR /kick retep998
|
|
|
Josh @ Dreamland
|
|
Reply #136 Posted on: April 14, 2010, 09:15:56 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Resolved: Replaced pertinent instances of size_t and unsigned with "pt," typedefed as the former. Re-check out if this affects you.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
freezway
|
|
Reply #139 Posted on: April 14, 2010, 10:25:18 pm |
|
|
Joined: Dec 2009
Posts: 220
|
now compiles on 64 bit linux.
|
|
|
Logged
|
if you drop a cat with buttered toast strapped to its back, which side lands down? joshdreamland: our languages are based on the idea that it's going to end up FUBAR /kick retep998
|
|
|
freezway
|
|
Reply #140 Posted on: April 14, 2010, 10:30:19 pm |
|
|
Joined: Dec 2009
Posts: 220
|
enigma compiles correctly, but LGM hangs on loading plugins. here is the output from the terminal
Java Version: 10600 (1.6.0_0) Loading lib files in /home/andrew/enigma/trunk/lgm16b4.jar 01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl 05_score.lgl 06_extra.lgl 07_draw.lgl SvnKit missing, corrupted, or unusable. Please download and place next to the enigma plugin in order to enable auto-update. Initializing Enigma: Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'compileEGMf': libcompileEGMf.so: cannot open shared object file: No such file or directory at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:200) at com.sun.jna.Native.register(Native.java:1013) at org.enigma.backend.EnigmaStruct.<clinit>(EnigmaStruct.java:72) at org.enigma.EnigmaRunner.initEnigmaLib(EnigmaRunner.java:97) at org.enigma.EnigmaRunner.<init>(EnigmaRunner.java:73) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at java.lang.Class.newInstance0(Class.java:372) at java.lang.Class.newInstance(Class.java:325) at org.lateralgm.main.LGM.loadPlugins(LGM.java:297) at org.lateralgm.main.LGM.main(LGM.java:512)
|
|
|
Logged
|
if you drop a cat with buttered toast strapped to its back, which side lands down? joshdreamland: our languages are based on the idea that it's going to end up FUBAR /kick retep998
|
|
|
|
freezway
|
|
Reply #142 Posted on: April 14, 2010, 11:01:43 pm |
|
|
Joined: Dec 2009
Posts: 220
|
where would it be. i did a quick search and there are no .so files in my home folder.
actaully, it may have something to do with this:
Linking dynamic library: ../libcompileEGMf.so /usr/bin/ld: .objs/cfile_parse/cfile_parse.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC .objs/cfile_parse/cfile_parse.o: could not read symbols: Bad value collect2: ld returned 1 exit status this was the end of my build log
EDIT: you need to add -fPIC to other options to get it to work. also, LGM now runs... but i cant use enigma. it says its now missing JNA
Java Version: 10600 (1.6.0_0) Loading lib files in /home/andrew/enigma/trunk/lgm16b4.jar 01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl 05_score.lgl 06_extra.lgl 07_draw.lgl SvnKit missing, corrupted, or unusable. Please download and place next to the enigma plugin in order to enable auto-update. Initializing Enigma: Intializing Parsers.Probing for GCC... GCC located. Path: `' Successfully loaded GCC definitions Undefining _GLIBCXX_EXPORT_TEMPLATE # 1 "blank.txt" # 1 "<built-in>" # 1 "<command-line>" # 1 "blank.txt" 8dirs: "/usr/include/c++/4.4/" "/usr/include/c++/4.4/x86_64-linux-gnu/" "/usr/include/c++/4.4/backward/" "/usr/local/include/" "/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/" "/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include-fixed/" "/usr/include/x86_64-linux-gnu/" "/usr/include/" Successfully parsed ENIGMA's engine (0ms) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Initializing EDL Parser... Done. Unable to load plugin: jna.jar: null: Missing plugin entry point (LGM-Plugin)
|
|
« Last Edit: April 14, 2010, 11:36:15 pm by freezway »
|
Logged
|
if you drop a cat with buttered toast strapped to its back, which side lands down? joshdreamland: our languages are based on the idea that it's going to end up FUBAR /kick retep998
|
|
|
Josh @ Dreamland
|
|
Reply #143 Posted on: April 15, 2010, 06:16:26 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
freezway-- The ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ means it was successful. Running from LGM won't build the exe since the makefile isn't written; you'll have to build with Code::Blocks after you hit run.
I will add -fPIC to the Linux target. I don't understand why yours was the only one that complained about it.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
freezway
|
|
Reply #144 Posted on: April 15, 2010, 09:27:50 am |
|
|
Joined: Dec 2009
Posts: 220
|
when I use C::B to try to compile it I get errors, I believe I emailed them to joshy. I'll post them here.
-------------- Build: lin-debug in Game ---------------
Compiling: Graphics_Systems/OpenGL/GSblend.cpp Compiling: Graphics_Systems/OpenGL/GScolors.cpp Compiling: Graphics_Systems/OpenGL/GSenable.cpp Compiling: Graphics_Systems/OpenGL/GSmiscextra.cpp Compiling: Graphics_Systems/OpenGL/GSprmtvs.cpp Compiling: Graphics_Systems/OpenGL/GSscreen.cpp Compiling: Graphics_Systems/OpenGL/GSsprite.cpp Compiling: Graphics_Systems/OpenGL/GSspriteadd.cpp Compiling: Graphics_Systems/OpenGL/GSstdraw.cpp Compiling: Graphics_Systems/OpenGL/GSsurface.cpp Compiling: Graphics_Systems/OpenGL/OPENGLStd.cpp Compiling: Graphics_Systems/OpenGL/graphics_object.cpp WARNING: Can't read file's timestamp: /home/andrew/enigma/trunk/ENIGMAsystem/SHELL/Platforms/xlib/XLIBmain.cpp Compiling: Platforms/xlib/XLIBwindow.cpp Compiling: Preprocessor_Environment_Editable/IDE_EDIT_wildclass.cpp Compiling: SHELLmain.cpp In file included from /home/andrew/enigma/trunk/ENIGMAsystem/SHELL/SHELLmain.cpp:157: /home/andrew/enigma/trunk/ENIGMAsystem/SHELL/initialize.h: In function ‘int initialize_everything()’: /home/andrew/enigma/trunk/ENIGMAsystem/SHELL/initialize.h:62: error: ‘instdata’ was not declared in this scope Process terminated with status 1 (0 minutes, 2 seconds) 1 errors, 0 warnings
also, heres a full output from LGM
Java Version: 10600 (1.6.0_0) Loading lib files in /home/andrew/enigma/trunk/lgm16b4.jar 01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl 05_score.lgl 06_extra.lgl 07_draw.lgl SvnKit missing, corrupted, or unusable. Please download and place next to the enigma plugin in order to enable auto-update. Initializing Enigma: Intializing Parsers.Probing for GCC... GCC located. Path: `' Successfully loaded GCC definitions Undefining _GLIBCXX_EXPORT_TEMPLATE # 1 "blank.txt" # 1 "<built-in>" # 1 "<command-line>" # 1 "blank.txt" 8dirs: "/usr/include/c++/4.4/" "/usr/include/c++/4.4/x86_64-linux-gnu/" "/usr/include/c++/4.4/backward/" "/usr/local/include/" "/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/" "/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include-fixed/" "/usr/include/x86_64-linux-gnu/" "/usr/include/" Successfully parsed ENIGMA's engine (0ms) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Initializing EDL Parser... Done. Unable to load plugin: jna.jar: null: Missing plugin entry point (LGM-Plugin) time taken to load file: 24 ms Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: org.lateralgm.resources.Sprite$MaskShape cannot be cast to java.lang.Integer at org.enigma.EnigmaWriter.populateSprites(EnigmaWriter.java:186) at org.enigma.EnigmaWriter.populateStruct(EnigmaWriter.java:103) at org.enigma.EnigmaWriter.prepareStruct(EnigmaWriter.java:95) at org.enigma.EnigmaRunner.compile(EnigmaRunner.java:355) at org.enigma.EnigmaRunner.actionPerformed(EnigmaRunner.java:391) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:374) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1688) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1732) at java.awt.Component.processMouseEvent(Component.java:6108) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:5873) at java.awt.Container.processEvent(Container.java:2105) at java.awt.Component.dispatchEventImpl(Component.java:4469) at java.awt.Container.dispatchEventImpl(Container.java:2163) at java.awt.Component.dispatchEvent(Component.java:4295) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055) at java.awt.Container.dispatchEventImpl(Container.java:2149) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4295) at java.awt.EventQueue.dispatchEvent(EventQueue.java:604) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
about the -fPIC, maybe 64bit?
|
|
« Last Edit: April 15, 2010, 02:44:03 pm by freezway »
|
Logged
|
if you drop a cat with buttered toast strapped to its back, which side lands down? joshdreamland: our languages are based on the idea that it's going to end up FUBAR /kick retep998
|
|
|
|
|
|
freezway
|
|
Reply #148 Posted on: April 15, 2010, 07:03:04 pm |
|
|
Joined: Dec 2009
Posts: 220
|
@retrox: add -fPIC to build options > other options
|
|
|
Logged
|
if you drop a cat with buttered toast strapped to its back, which side lands down? joshdreamland: our languages are based on the idea that it's going to end up FUBAR /kick retep998
|
|
|
|
|