Pages: 1 2 3 4 »
  Print  
Author Topic: compiling for mac?  (Read 10736 times)
Offline (Unknown gender) hairypuppy
Posted on: April 19, 2014, 04:40:09 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
howdy all,

i had been asking questions regarding windows, which then went to linux. now thats changed. my ma's computer got kicked out due to it being older than the stone age and i gave the linux one i done to her, so im back on mac.
so ive been looking through and there seems to be the most minimal amount of material towards mac compiling, no new posts as well which can help in getting it to compile/work.

any pointers, id just really like to get on and start getting back to the games that ive been making, but due to one thing or the other, they are not being made.
thanks if anyone can help.
« Last Edit: April 19, 2014, 04:41:47 PM by hairypuppy » Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Josh @ Dreamland
Reply #1 Posted on: April 19, 2014, 04:57:25 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
I have never known what state ENIGMA for OS X is in. Very few people have ever developed for it or even attempted to run on it, and while about four people reported to have gotten it working in the past, no one was very explicit on how. You will need Apple's developer tools, which are multiple gigabytes, so if you haven't already, start downloading those. Make sure you have a version of Java installed, then run install.py as you would on Linux (that script was originally written just for Mac, and has been maintained for all *nix since).

From there, run LGM and tell us what happens.
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
Offline (Unknown gender) hairypuppy
Reply #2 Posted on: April 19, 2014, 05:34:42 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
well it has started, which is always a good sign i guess. though on running a project, which was/is a gamemaker for mac project i have been meaning to get finished for about 2 years now, uurrgghh!!!

but whilst it is running through its build process, it seems to have stopped at this point [which shows in the screenshot]. dont know why it has stopped at that point, whether i may need an 'extra whatever for something to do something'.
since its unix based, though still apples shamble of a OS, it would still be the same in terms of error searching. so i guess if anyone else has had this hanging problem, then the solution should work for mac?, just a guess really

but if anyone else has an idea, i would be really happy with anything that can get this to work. im even thinking of just sacking everything of and going for unity, but to be honest i would prefer to stick to the things which i have been using so far
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Unknown gender) hairypuppy
Reply #3 Posted on: April 19, 2014, 05:42:00 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
ok, so what i have tried is just a simlpe run with no project on at all, just started it up, and pressed the run button and did run into an error, though would like it to be made understood as to how to resolve it

thanks

Code: [Select]
Building for mode (0)
Cleaning up from previous executions
 - Cleared parsed objects
 - Cleared room entries
 - Cleared shared locals list
 - Cleared event info
Loading shared locals from extensions list
Location in memory of structure: 0x7fada3e005f0
Copying resources:
Copying sprite names [0]
Copying sound names [0]
Copying background names [0]
Copying path names [0]
Copying script names [0]
Copying shader names [0]
Copying font names [1]
Copying timeline names [kidding, these are totally not implemented :P] [0]
Copying object names [0]
Copying room names [0]
SYNTAX CHECKING AND PRIMARY PARSING:
0 Scripts:
"Linking" scripts
`Linking' 0 scripts in 0 passes...
Completing script "Link"
Done.
0 Objects:
Creating room creation code scope and parsing
"Linking" scripts into the objects...
"Link" complete.
Tabulating maximum argument passes to each script
Finished
Writing executable information and resources.
Writing modes and settings
Writing object switch
Writing resource names and maxima
Writing events
Linking globals
Running Secondary Parse Passes
Writing object data
Writing local accessors
Writing font data
Writing room data
Writing shader data
Running make from `make'
Full command line: make Game WORKDIR="./ENIGMA/" GMODE=Run GRAPHICS=OpenGL1 AUDIO=OpenAL COLLISION=Precise WIDGETS=None NETWORKING=None PLATFORM=Cocoa CXX=g++ CXXFLAGS="-I/opt/X11/include/" COMPILEPATH="MacOSX/MacOSX" EXTENSIONS=" Universal_System/Extensions/Alarms Universal_System/Extensions/Timelines Universal_System/Extensions/Paths Universal_System/Extensions/MotionPlanning Universal_System/Extensions/DateTime Universal_System/Extensions/ParticleSystems Universal_System/Extensions/DataStructures" OUTPUTNAME="/Users/lepton/Developer/enigma/./MacOS/build/Release/EnigmaXcode.app/Contents/MacOS/EnigmaXcode" eTCpath=""
/Applications/code/Xcode.app/Contents/Developer/usr/bin/make -C ENIGMAsystem/SHELL
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/../Additional/alure/enigma_alure
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/../additional/alure/Codecs/dumb/src/core
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/../additional/alure/Codecs/dumb/src/helpers
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/../additional/alure/Codecs/dumb/src/it
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/../additional/alure/Codecs/ogg
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/../additional/alure/Codecs/vorbis/lib
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Audio_Systems/OpenAL
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Bridges/Cocoa-OpenGL1
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Collision_Systems/Precise
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Graphics_Systems/General
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Graphics_Systems/OpenGL1
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Platforms/Cocoa
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Platforms/General
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Universal_System
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Universal_System/Extensions/Alarms
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Universal_System/Extensions/DataStructures
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Universal_System/Extensions/DateTime
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Universal_System/Extensions/MotionPlanning
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Universal_System/Extensions/ParticleSystems
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Universal_System/Extensions/Paths
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Universal_System/Extensions/Timelines
mkdir -p ENIGMA/.eobjs/MacOSX/MacOSX/Run/Widget_Systems/None
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/Bridges/Cocoa-OpenGL1/graphics_bridge.o Bridges/Cocoa-OpenGL1/graphics_bridge.cpp
clang: warning: argument unused during compilation: '-s'
Bridges/Cocoa-OpenGL1/graphics_bridge.cpp:31:10: fatal error: 'Platforms/Cocoa/CocoaWindow.h' file not found
#include "Platforms/Cocoa/CocoaWindow.h" // window_set_caption
         ^
1 error generated.
make[1]: *** No rule to make target `ENIGMA/.eobjs/MacOSX/MacOSX/Run/SHELLmain.o', needed by `compile_game'.  Stop.
make: *** [Game] Error 2
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Josh @ Dreamland
Reply #4 Posted on: April 19, 2014, 06:05:21 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
Seems Robert broke that while he was moving functions into general headers. CocoaWindow.h apparently does not exist anymore. That file (ENIGMAsystem/SHELL/Bridges/Cocoa-OpenGL1/graphics_bridge.cpp) should instead be including PFwindow.h, and CocoaWindow.cpp should be including that header, too, or it will generate warnings.

If you would, make the first replacement and give us the next error (if there is one). If that's the only error, I'll go ahead and patch 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
Offline (Unknown gender) hairypuppy
Reply #5 Posted on: April 19, 2014, 06:22:16 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
hi man, thanks for making the time to help, means a lot. but done the changes which are here

in graphics_bridge.cpp //ive commented what was put in
Code: [Select]
#include "../General/glxew.h"
#include "Platforms/General/PFwindow.h" //this is an addition
#include "Platforms/Cocoa/CocoaMain.h"
#include "Graphics_Systems/graphics_mandatory.h"

in CocoaWindow.cpp //again, commented
Code: [Select]
#include <Universal_System/roomsystem.h>
#include <Universal_System/CallbackArrays.h>
#include "Platforms/General/PFwindow.h" //this is an addition


but this was the message that spat out, a build error. though did see that there still is an CocoaWindow.h file, its just based in the iphone folder, of which graphics_bridge.cpp is not pointed to. this is the last part of the run script window, cant post over 20000 characters ;)
Code: [Select]
std::string
/Applications/code/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:189:65: note: 'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from Platforms/Cocoa/CocoaWindow.cpp:27:
./Platforms/General/PFwindow.h:129:25: error: unknown type name 'string'; did you mean 'std::string'?
void clipboard_set_text(string text);
                        ^~~~~~
                        std::string
/Applications/code/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:189:65: note: 'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
Platforms/Cocoa/CocoaWindow.cpp:80:7: error: functions that differ only in their return type cannot be overloaded
  int window_set_caption(string caption)
      ^
./Platforms/General/PFwindow.h:94:6: note: previous declaration is here
void window_set_caption(string caption);
     ^
Platforms/Cocoa/CocoaWindow.cpp:133:5: error: functions that differ only in their return type cannot be overloaded
int window_set_size(unsigned int w,unsigned int h)
    ^
./Platforms/General/PFwindow.h:102:6: note: previous declaration is here
void window_set_size(unsigned int width, unsigned int height);
     ^
Platforms/Cocoa/CocoaWindow.cpp:444:8: error: functions that differ only in their return type cannot be overloaded
  bool window_get_region_scale() {return 1;}
       ^
./Platforms/General/PFwindow.h:100:8: note: previous declaration is here
double window_get_region_scale();
       ^
7 errors generated.
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/Platforms/Cocoa/CocoaMain.o Platforms/Cocoa/CocoaMain.cpp
clang: warning: argument unused during compilation: '-s'
Platforms/Cocoa/CocoaMain.cpp:44:20: error: no member named 'sleep' in the global namespace; did you mean simply 'sleep'?
    if (ms > 1000) ::sleep(ms/1000);
                   ^~~~~~~
                   sleep
Platforms/Cocoa/CocoaMain.cpp:43:8: note: 'sleep' declared here
  void sleep(int ms) {
       ^
Platforms/Cocoa/CocoaMain.cpp:45:5: error: use of undeclared identifier 'usleep'; did you mean 'sleep'?
    usleep((ms % 1000) *1000);
    ^~~~~~
    sleep
Platforms/Cocoa/CocoaMain.cpp:43:8: note: 'sleep' declared here
  void sleep(int ms) {
       ^
2 errors generated.
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/Platforms/Cocoa/CocoaFunctions.o Platforms/Cocoa/CocoaFunctions.cpp
clang: warning: argument unused during compilation: '-s'
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/Platforms/Cocoa/CocoaDialog.o Platforms/Cocoa/CocoaDialog.cpp
clang: warning: argument unused during compilation: '-s'
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/libEGMstd.o libEGMstd.cpp
clang: warning: argument unused during compilation: '-s'
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/SHELLmain.o SHELLmain.cpp
clang: warning: argument unused during compilation: '-s'
SHELLmain.cpp:44:10: fatal error: 'Preprocessor_Environment_Editable/LIBINCLUDE.h' file not found
#include "Preprocessor_Environment_Editable/LIBINCLUDE.h"
         ^
1 error generated.
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/Bridges/Cocoa-OpenGL1/graphics_bridge.o Bridges/Cocoa-OpenGL1/graphics_bridge.cpp
clang: warning: argument unused during compilation: '-s'
In file included from Bridges/Cocoa-OpenGL1/graphics_bridge.cpp:19:
./Platforms/General/PFwindow.h:94:25: error: unknown type name 'string'
void window_set_caption(string caption);
                        ^
./Platforms/General/PFwindow.h:95:1: error: unknown type name 'string'
string window_get_caption();
^
./Platforms/General/PFwindow.h:128:1: error: unknown type name 'string'
string clipboard_get_text();
^
./Platforms/General/PFwindow.h:129:25: error: unknown type name 'string'
void clipboard_set_text(string text);
                        ^
Bridges/Cocoa-OpenGL1/graphics_bridge.cpp:32:10: fatal error: 'Platforms/Cocoa/CocoaWindow.h' file not found
#include "Platforms/Cocoa/CocoaWindow.h" // window_set_caption
         ^
5 errors generated.
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/SHELLmain.o SHELLmain.cpp
clang: warning: argument unused during compilation: '-s'
SHELLmain.cpp:44:10: fatal error: 'Preprocessor_Environment_Editable/LIBINCLUDE.h' file not found
#include "Preprocessor_Environment_Editable/LIBINCLUDE.h"
         ^
1 error generated.
make: *** [Game] Error 2

Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Unknown gender) hairypuppy
Reply #6 Posted on: April 19, 2014, 06:23:57 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
but really if this could be sorted by whomever on the enigma team, id be more than happy, and more than sure other users would be too.

again, thanks for your help. would be great to make game maker games
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Josh @ Dreamland
Reply #7 Posted on: April 19, 2014, 06:39:06 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
Near the top of CocoaWindow.cpp, under the #includes, ideally, using std::string;.
Then elsewhere in that file, please replace int window_set_caption with void window_set_caption, int window_set_size with void window_set_size and bool window_get_region_scale with double window_get_region_scale.

In ENIGMAsystem/SHELL/Platforms/Cocoa/CocoaMain.cpp, we need this under the includes:
Code: (C++) [Select]
#include <unistd.h>
using std::string;

Finally, the file ENIGMAsystem/SHELL/Bridges/Cocoa-OpenGL1/graphics_bridge.cpp is still #include'ing the old CocoaWindow header; just remove or comment that line (#include "Platforms/Cocoa/CocoaWindow.h" // window_set_caption).

I'd patch this myself, but without being sure whether this fixes anything, I might blindly make things worse. It's okay if you want to give up on it for now; it'll probably get fixed next time a contributor has a Mac to play around with.

In fact, I'm seeing a hint that this might not fix an issue: it seems the build system isn't finding where ENIGMA generated the code output. Someone moved ENIGMA's output folder a while back and didn't bother to make sure all the platforms are configured to correctly add the new destination to the search path. When you next run it, could you dump either the command line part of the output, or just the entire output, either here or on pastebin? That'll help us figure out what's missing.
« Last Edit: April 19, 2014, 06:41:09 PM by Josh @ Dreamland » 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
Offline (Unknown gender) hairypuppy
Reply #8 Posted on: April 19, 2014, 06:47:30 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
done all those changes, started back up lateralgm and ran a blank/no project page, and it came up with this
im happy to stay on and get this done really. ive been at it for ages onow, dont see the point in stopping when it feels close ;)

Code: [Select]
Building for mode (0)
Cleaning up from previous executions
 - Cleared parsed objects
 - Cleared room entries
 - Cleared shared locals list
 - Cleared event info
Loading shared locals from extensions list
Location in memory of structure: 0x7fe81bdc1ad0
Copying resources:
Copying sprite names [0]
Copying sound names [0]
Copying background names [0]
Copying path names [0]
Copying script names [0]
Copying shader names [0]
Copying font names [1]
Copying timeline names [kidding, these are totally not implemented :P] [0]
Copying object names [0]
Copying room names [0]
SYNTAX CHECKING AND PRIMARY PARSING:
0 Scripts:
"Linking" scripts
`Linking' 0 scripts in 0 passes...
Completing script "Link"
Done.
0 Objects:
Creating room creation code scope and parsing
"Linking" scripts into the objects...
"Link" complete.
Tabulating maximum argument passes to each script
Finished
Writing executable information and resources.
Writing modes and settings
Writing object switch
Writing resource names and maxima
Writing events
Linking globals
Running Secondary Parse Passes
Writing object data
Writing local accessors
Writing font data
Writing room data
Writing shader data
Running make from `make'
Full command line: make Game WORKDIR="./ENIGMA/" GMODE=Run GRAPHICS=OpenGL1 AUDIO=OpenAL COLLISION=Precise WIDGETS=None NETWORKING=None PLATFORM=Cocoa CXX=g++ CXXFLAGS="-I/opt/X11/include/" COMPILEPATH="MacOSX/MacOSX" EXTENSIONS=" Universal_System/Extensions/Alarms Universal_System/Extensions/Timelines Universal_System/Extensions/Paths Universal_System/Extensions/MotionPlanning Universal_System/Extensions/DateTime Universal_System/Extensions/ParticleSystems Universal_System/Extensions/DataStructures" OUTPUTNAME="/Users/lepton/Developer/enigma/./MacOS/build/Release/EnigmaXcode.app/Contents/MacOS/EnigmaXcode" eTCpath=""
/Applications/code/Xcode.app/Contents/Developer/usr/bin/make -C ENIGMAsystem/SHELL
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/Bridges/Cocoa-OpenGL1/graphics_bridge.o Bridges/Cocoa-OpenGL1/graphics_bridge.cpp
clang: warning: argument unused during compilation: '-s'
In file included from Bridges/Cocoa-OpenGL1/graphics_bridge.cpp:19:
./Platforms/General/PFwindow.h:94:25: error: unknown type name 'string'
void window_set_caption(string caption);
                        ^
./Platforms/General/PFwindow.h:95:1: error: unknown type name 'string'
string window_get_caption();
^
./Platforms/General/PFwindow.h:128:1: error: unknown type name 'string'
string clipboard_get_text();
^
./Platforms/General/PFwindow.h:129:25: error: unknown type name 'string'
void clipboard_set_text(string text);
                        ^
4 errors generated.
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/Platforms/Cocoa/CocoaWindow.o Platforms/Cocoa/CocoaWindow.cpp
clang: warning: argument unused during compilation: '-s'
In file included from Platforms/Cocoa/CocoaWindow.cpp:27:
./Platforms/General/PFwindow.h:94:25: error: unknown type name 'string'; did you mean 'std::string'?
void window_set_caption(string caption);
                        ^~~~~~
                        std::string
/Applications/code/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:189:65: note: 'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from Platforms/Cocoa/CocoaWindow.cpp:27:
./Platforms/General/PFwindow.h:95:1: error: unknown type name 'string'; did you mean 'std::string'?
string window_get_caption();
^~~~~~
std::string
/Applications/code/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:189:65: note: 'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from Platforms/Cocoa/CocoaWindow.cpp:27:
./Platforms/General/PFwindow.h:128:1: error: unknown type name 'string'; did you mean 'std::string'?
string clipboard_get_text();
^~~~~~
std::string
/Applications/code/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:189:65: note: 'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from Platforms/Cocoa/CocoaWindow.cpp:27:
./Platforms/General/PFwindow.h:129:25: error: unknown type name 'string'; did you mean 'std::string'?
void clipboard_set_text(string text);
                        ^~~~~~
                        std::string
/Applications/code/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:189:65: note: 'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
Platforms/Cocoa/CocoaWindow.cpp:83:2: error: void function 'window_set_caption' should not return a value [-Wreturn-type]
        return 0; // TODO, this function should be void in all files
        ^      ~
Platforms/Cocoa/CocoaWindow.cpp:136:2: error: void function 'window_set_size' should not return a value [-Wreturn-type]
        return 0; // TODO, this function should be void in all files
        ^      ~
6 errors generated.
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/Platforms/Cocoa/CocoaMain.o Platforms/Cocoa/CocoaMain.cpp
clang: warning: argument unused during compilation: '-s'
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/SHELLmain.o SHELLmain.cpp
clang: warning: argument unused during compilation: '-s'
SHELLmain.cpp:44:10: fatal error: 'Preprocessor_Environment_Editable/LIBINCLUDE.h' file not found
#include "Preprocessor_Environment_Editable/LIBINCLUDE.h"
         ^
1 error generated.
g++ -I/opt/X11/include/ -IPlatforms/Cocoa/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I./ENIGMA/ -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o ./ENIGMA/.eobjs/MacOSX/MacOSX/Run/SHELLmain.o SHELLmain.cpp
clang: warning: argument unused during compilation: '-s'
SHELLmain.cpp:44:10: fatal error: 'Preprocessor_Environment_Editable/LIBINCLUDE.h' file not found
#include "Preprocessor_Environment_Editable/LIBINCLUDE.h"
         ^
1 error generated.
make: *** [Game] Error 2
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Unknown gender) hairypuppy
Reply #9 Posted on: April 19, 2014, 07:04:25 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
sorry here is the command line stuff

http://pastebin.com/X3zcHPVZ
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Unknown gender) hairypuppy
Reply #10 Posted on: April 19, 2014, 07:13:13 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
right. i think i will go to sleep actually. on looking at my clock ive been at for about 13 hours for different platforms ;)
but will be back to hopefully resolve this
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Josh @ Dreamland
Reply #11 Posted on: April 19, 2014, 07:21:42 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
That problem I'm worried about is still present, but the majority of the remaining errors should go away if you put this under the other includes in ./Platforms/General/PFwindow.h:
Code: (C++) [Select]
#include <string>
using std::string;

I'm honestly not sure why that code isn't in there, because it should be in any header working with std::string, but oh well. I fear we'll need to wait for another contributor to figure out why LGM is not passing correct output path information to make, anyway. Sleep well.
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
Offline (Unknown gender) hairypuppy
Reply #12 Posted on: April 20, 2014, 04:51:05 AM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
alright man, done that quick edit, still a failed compile, but was quicker

http://pastebin.com/GsWQs37W
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Josh @ Dreamland
Reply #13 Posted on: April 20, 2014, 07:50:53 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
Was that the terminal dump? The compiler output isn't mirrored in 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
Offline (Unknown gender) hairypuppy
Reply #14 Posted on: April 20, 2014, 08:18:54 AM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
that last pastebin one was from my terminal. ill do another for y'all
Logged
lewis lepton
------
composer | sound designer | tinkerer
Pages: 1 2 3 4 »
  Print