Page 1 of 5 123 ... LastLast
Results 1 to 25 of 121

Thread: How To Compile Smart.

  1. #1
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default How To Compile Smart.

    Compiling Smart Tutorial

    Background:

    1. This tutorial will teach you how to compile Smart from its source.
    2. This will be useful if you decide to make your own changes to Smart or simply want to build it yourself.
    3. Building it yourself can solve many problems specific to your situation. One such problem is the socket not pairing. Compiling it yourself seems to be a work around for such a problem.



    Requirements:

    1. Mingw-x32_x64 SJLJ
    2. MSYS Command-Line
    3. Java JDK 7 OR Java JDK 8
    4. Smart's Source


    What you downloaded:
    1. Cross platform x32 and x64 compiler. If you use SEH instead of SJLJ, you will NOT be able to compile x32 code. SEH is better for x64 builds by a lot. However, since Simba uses x32 modules, we need SJLJ.
    2. Msys command-line is a shell that allows us to run unix/linux like commands on Windows.. grep, bash, make, etc..
    3. Java JDK is of course needed to compile Smart's java classes. JDK 6 is deprecated and JDK7 or JDK8+ must be used to compile the latest Smart.
    4. Smart's source is what we will be compiling using the above tools and environments.



    Installing Mingw:
    1. Unzip the downloaded .7z file to the C drive.
    2. Rename the folder to mingw64.


    Once done, it should look like the following:
    ShowImages









    Installing MSYS:
    1. Run the MSYS Installer and press yes on the Setup prompt.
    2. Click Next and then YES to the agreement.
    3. Click Next.
    4. Leave the path as: C:\msys\1.0 and click Next.
    5. Put a checkmark in the Don't create any icons check-box and click Next.
    6. Press install.
    7. After a second or two a command-line interface pops up and asks you: Do you wish to continue with the post install? [yn ]
    8. Type y and press Enter.
    9. It will now ask you: Do you have MinGW installed? [yn ].
    10. Type y and press Enter.
    11. Finally, it asks: Where is your MinGW installation?
    12. You will type: C:/Mingw64 and press Enter.
    13. Finally, press any key to continue...
    14. Uncheck the two boxes on the end of the screen and Finish the installation.


    Lost or Confused?
    See the following Image tutorial for the above steps:
    ShowImages

























    Modifying the PATH environment variable:

    Adding entries to the PATH is normally harmless. However, if you delete any existing entries, you may mess up your PATH, and you could compromise the functioning of your computer. Please be careful.

    This part of the tutorial is ONLY if your Java installation is NOT configured properly. Follow along and check if it is. If it isn't you will need to make some changes as shown.

    1. Right-click Computer and click properties. Otherwise navigate to: Control Panel\System and Security\System
    2. Click Advanced system settings
    3. Click Environment Variables...
    4. Scroll down the System Variables panel, select the PATH variable and click Edit.
    5. Press Ctrl+A to select all and Copy paste it into a text editor.
    6. Check to see if 'Java' and 'Mingw' is in it by pressing Ctrl + F and typing Java and Ctrl + F and typing Mingw.

      ---Modifications (Does NOT delete anything)---
    7. If Java or Mingw is missing, we will add them to the end of the path. Each path is separated by a semi-colon as shown below:
      PATH Code:
      ...OtherPaths...;C:\Mingw64\bin;C:\Program Files\Java\jdk1.8.0\bin
    8. If you are unsure, please see the images in the image tutorial below! You do NOT want to mess this up.
    9. When finished modifying the PATH, copy paste it from your text editor back into your environment variable.
      ---Modification finished.---
    10. If all is well, click OK 3 times to exit all the interfaces and save any changes.


    Lost or Confused?
    See the following Image tutorial for the above steps:
    ShowImages









    (DO NOT add split them into new lines like the below! It is just an illustration)








    Compiling Smart:

    1. Navigate to the folder containing SMART's source.
    2. Open the Makefile using a text editor.
    3. Change WIN_GPP to g++ and WIN64_GPP to g++ (This step may be confusing, if so see the images tutorial below or copy this makefile).
    4. Save your changes.
    5. Navigate to C:\msys\1.0
    6. Run msys.bat
    7. Change directory to Smart's source using the CD command. (cd "LocationOfSmart's source here" with quotes.)
    8. Run the make command. (make clean windows)


    Lost or Confused?
    See the following Image tutorial for the above steps:
    ShowImages












    Makefile I used: http://pastebin.com/raw.php?i=6uX3N8Eb
    ShowMake

    make Code:
    #   Copyright 2006-2013 by Benjamin J. Land (a.k.a. BenLand100)
    #
    #   This file is part of the SMART Minimizing Autoing Resource Thing (SMART)
    #
    #   SMART is free software: you can redistribute it and/or modify
    #   it under the terms of the GNU General Public License as published by
    #   the Free Software Foundation, either version 3 of the License, or
    #   (at your option) any later version.
    #
    #   SMART is distributed in the hope that it will be useful,
    #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    #   GNU General Public License for more details.
    #
    #   You should have received a copy of the GNU General Public License
    #   along with SMART. If not, see <http://www.gnu.org/licenses/>.

    #these compilers work with crossdev on gentoo
    WIN_GPP=g++
    WIN64_GPP=g++
    LIN_GPP=i686-pc-linux-gnu-g++
    LIN64_GPP=x86_64-pc-linux-gnu-g++
    JAVAC=javac
    JAR=jar

    DIST=dist
    BUILD=build
    WIN_NAME=libsmartremote32.dll
    WIN64_NAME=libsmartremote64.dll
    LIN_NAME=libsmartremote32.so
    LIN64_NAME=libsmartremote64.so

    JNI_WIN_NAME=libsmartjni32.dll
    JNI_WIN64_NAME=libsmartjni64.dll
    JNI_LIN_NAME=libsmartjni32.so
    JNI_LIN64_NAME=libsmartjni64.so

    JAVA_NAME=smart.jar

    WIN_COMPILE_ARGS=-DWINDOWS -O3 -s -m32 -c
    WIN64_COMPILE_ARGS=-DWINDOWS -O3 -s -m64 -c
    LIN_COMPILE_ARGS=-fPIC -DLINUX -O3 -s -c
    LIN64_COMPILE_ARGS=-fPIC -DLINUX -O3 -s -c

    SRC_DIR=src
    LIN_BUILD_DIR=$(BUILD)/linux32
    LIN64_BUILD_DIR=$(BUILD)/linux64
    WIN_BUILD_DIR=$(BUILD)/windows32
    WIN64_BUILD_DIR=$(BUILD)/windows64
    JAVA_BUILD_DIR=$(BUILD)/java

    CPPSOURCEFILES= \
        $(SRC_DIR)/SmartRemote.cpp
       
    JNI_CPPSOURCEFILES= \
        $(SRC_DIR)/SmartJNI.cpp
       
    CPPHEADERFILES= \
        $(SRC_DIR)/SmartRemote.h \
        $(SRC_DIR)/libsmartremote.def

    JNI_CPPHEADERFILES= \
        $(SRC_DIR)/jni.h \
       
    WINOBJFILES= \
        $(WIN_BUILD_DIR)/SmartRemote.o
         
    JNI_WINOBJFILES= \
        $(WIN_BUILD_DIR)/SmartJNI.o
       
    WIN64OBJFILES= \
        $(WIN64_BUILD_DIR)/SmartRemote.o
       
    JNI_WIN64OBJFILES= \
        $(WIN64_BUILD_DIR)/SmartJNI.o
       
    LINOBJFILES= \
        $(LIN_BUILD_DIR)/SmartRemote.o
       
    JNI_LINOBJFILES= \
        $(LIN_BUILD_DIR)/SmartJNI.o
       
    LIN64OBJFILES= \
        $(LIN64_BUILD_DIR)/SmartRemote.o
       
    JNI_LIN64OBJFILES= \
        $(LIN64_BUILD_DIR)/SmartJNI.o
       
    JAVASOURCES= \
        $(SRC_DIR)/Canvas.java \
        $(SRC_DIR)/Main.java \
        $(SRC_DIR)/BlockingEventQueue.java \
        $(SRC_DIR)/Client.java \
        $(SRC_DIR)/ClientStub.java \
        $(SRC_DIR)/EventNazi.java \
        $(SRC_DIR)/EventRedirect.java \
        $(SRC_DIR)/UnblockedEvent.java
       
    JAVACLASSES= \
        $(JAVA_BUILD_DIR)/java/awt/Canvas.class \
        $(JAVA_BUILD_DIR)/smart/Main.class \
        $(JAVA_BUILD_DIR)/smart/BlockingEventQueue.class \
        $(JAVA_BUILD_DIR)/smart/Client.class \
        $(JAVA_BUILD_DIR)/smart/ClientStub.class \
        $(JAVA_BUILD_DIR)/smart/EventNazi.class \
        $(JAVA_BUILD_DIR)/smart/EventRedirect.class \
        $(JAVA_BUILD_DIR)/smart/UnblockedEvent.class

    all:
        @echo "Syntax for the SMART makefile:"
        @echo "    For Windows distributions: make windows windows64"
        @echo "    For Linux distributions: make linux linux64"
        @echo "    For All distributions: make everything"
        @echo "    For test apps: make test-python test-linux test-linux64 test-windows test-windows64"
        @echo "    For all test apps: make test-all"
        @echo "    To clean build files: make clean"
       
    everything: linux linux64 windows windows64

    test-all: test-python test-windows test-windows64 test-linux test-linux64

    linux: $(JAVACLASSES) $(DIST)/$(LIN_NAME) $(DIST)/$(JNI_LIN_NAME)
        @echo "Finished Building the Linux 32bit SMART distribution"
       
    linux64: $(JAVACLASSES) $(DIST)/$(LIN64_NAME) $(DIST)/$(JNI_LIN64_NAME)
        @echo "Finished Building the Linux 64bit SMART distribution"

    windows: $(JAVACLASSES) $(DIST)/$(WIN_NAME) $(DIST)/$(JNI_WIN_NAME)
        @echo "Finished Building the Windows 32bit SMART distribution"

    windows64: $(JAVACLASSES) $(DIST)/$(WIN64_NAME) $(DIST)/$(JNI_WIN64_NAME)
        @echo "Finished Building the Windows 64bit SMART distribution"
       
    test-linux:
        @mkdir -p $(DIST)
        @$(LIN_GPP) -I $(SRC_DIR) -fPIC -shared -s -o $(DIST)/example-plugin32.so test-apps/example-plugin.cpp
        @$(LIN_GPP) -ldl -o $(DIST)/test-plugin-load32 test-apps/test-plugin-load.cpp
        @$(LIN_GPP) -ldl -o $(DIST)/test-spawn32 test-apps/test-spawn.cpp
        @$(LIN_GPP) -ldl -o $(DIST)/test-eios32 test-apps/test-eios.cpp
        @$(LIN_GPP) -ldl -o $(DIST)/test-exports32 test-apps/test-exports.cpp
        @echo "Finished building Linux 32bit test files"
       
    test-linux64:
        @mkdir -p $(DIST)
        @$(LIN64_GPP) -I $(SRC_DIR) -fPIC -shared -s -o $(DIST)/example-plugin64.so test-apps/example-plugin.cpp
        @$(LIN64_GPP) -ldl -o $(DIST)/test-plugin-load64 test-apps/test-plugin-load.cpp
        @$(LIN64_GPP) -ldl -o $(DIST)/test-spawn64 test-apps/test-spawn.cpp
        @$(LIN64_GPP) -ldl -o $(DIST)/test-eios64 test-apps/test-eios.cpp
        @$(LIN64_GPP) -ldl -o $(DIST)/test-exports64 test-apps/test-exports.cpp
        @echo "Finished building Linux 64bit test files"
       
    test-windows:
        @mkdir -p $(DIST)
        @$(WIN_GPP) -I $(SRC_DIR) -shared -static-libgcc -static-libstdc++ -s -o $(DIST)/example-plugin32.dll test-apps/example-plugin.cpp
        @$(WIN_GPP) -static-libgcc -static-libstdc++ -o $(DIST)/test-plugin-load32.exe test-apps/test-plugin-load.cpp
        @$(WIN_GPP) -static-libgcc -static-libstdc++ -o $(DIST)/test-spawn32.exe test-apps/test-spawn.cpp
        @$(WIN_GPP) -static-libgcc -static-libstdc++ -o $(DIST)/test-eios32.exe test-apps/test-eios.cpp
        @$(WIN_GPP) -static-libgcc -static-libstdc++ -o $(DIST)/test-exports32.exe test-apps/test-exports.cpp
        @echo "Finished building Windows 32bit test files"
       
    test-windows64:
        @mkdir -p $(DIST)
        @$(WIN64_GPP) -I $(SRC_DIR) -shared -static-libgcc -static-libstdc++ -s -o $(DIST)/example-plugin64.dll test-apps/example-plugin.cpp
        @$(WIN64_GPP) -static -static-libgcc -static-libstdc++ -o $(DIST)/test-plugin-load64.exe test-apps/test-plugin-load.cpp
        @$(WIN64_GPP) -static -static-libgcc -static-libstdc++ -o $(DIST)/test-spawn64.exe test-apps/test-spawn.cpp
        @$(WIN64_GPP) -static -static-libgcc -static-libstdc++ -o $(DIST)/test-eios64.exe test-apps/test-eios.cpp
        @$(WIN64_GPP) -static -static-libgcc -static-libstdc++ -o $(DIST)/test-exports64.exe test-apps/test-exports.cpp
        @echo "Finished building Windows 64bit test files"
       
    test-python:
        @mkdir -p $(DIST)
        @cp test-apps/test-python.py $(DIST)/test-python
        @echo "Finished building Python test files"
       
    clean:
        @echo "Cleaning build files..."
        @rm -rf $(BUILD) $(DIST)  
       
    #### LINUX BUILDING DIRECTIVES ####

    $(DIST)/$(LIN_NAME): $(LINOBJFILES)
        @echo "Linking Linux Remote object files..."
        @mkdir -p $(DIST)
        @$(LIN_GPP) -fPIC -shared -s -o $(DIST)/$(LIN_NAME) $(LINOBJFILES)
       
    $(DIST)/$(JNI_LIN_NAME): $(JNI_LINOBJFILES)
        @echo "Linking Linux JNI object files..."
        @mkdir -p $(DIST)
        @$(LIN_GPP) -fPIC -shared -s -o $(DIST)/$(JNI_LIN_NAME) $(JNI_LINOBJFILES)

    $(LIN_BUILD_DIR)/SmartRemote.o: $(SRC_DIR)/SmartRemote.cpp $(CPPHEADERFILES)
        @echo "Compiling SmartRemote.cpp"
        @mkdir -p $(LIN_BUILD_DIR)
        @$(LIN_GPP) $(LIN_COMPILE_ARGS) -o $(LIN_BUILD_DIR)/SmartRemote.o $(SRC_DIR)/SmartRemote.cpp
       
    $(LIN_BUILD_DIR)/SmartJNI.o: $(SRC_DIR)/SmartJNI.cpp $(JNI_CPPHEADERFILES)
        @echo "Compiling SmartJNI.cpp"
        @mkdir -p $(LIN_BUILD_DIR)
        @$(LIN_GPP) $(LIN_COMPILE_ARGS) -o $(LIN_BUILD_DIR)/SmartJNI.o $(SRC_DIR)/SmartJNI.cpp

       
    #### LINUX64 BUILDING DIRECTIVES ####

    $(DIST)/$(LIN64_NAME): $(LIN64OBJFILES)
        @echo "Linking Linux64 Remote object files..."
        @mkdir -p $(DIST)
        @$(LIN64_GPP) -fPIC -shared -s -o $(DIST)/$(LIN64_NAME) $(LIN64OBJFILES)
       
    $(DIST)/$(JNI_LIN64_NAME): $(JNI_LIN64OBJFILES)
        @echo "Linking Linux64 JNI object files..."
        @mkdir -p $(DIST)
        @$(LIN64_GPP) -fPIC -shared -s -o $(DIST)/$(JNI_LIN64_NAME) $(JNI_LIN64OBJFILES)

    $(LIN64_BUILD_DIR)/SmartRemote.o: $(SRC_DIR)/SmartRemote.cpp $(CPPHEADERFILES)
        @echo "Compiling SmartRemote.cpp"
        @mkdir -p $(LIN64_BUILD_DIR)
        @$(LIN64_GPP) $(LIN64_COMPILE_ARGS) -o $(LIN64_BUILD_DIR)/SmartRemote.o $(SRC_DIR)/SmartRemote.cpp
       
    $(LIN64_BUILD_DIR)/SmartJNI.o: $(SRC_DIR)/SmartJNI.cpp $(JNI_CPPHEADERFILES)
        @echo "Compiling SmartJNI.cpp"
        @mkdir -p $(LIN64_BUILD_DIR)
        @$(LIN64_GPP) $(LIN64_COMPILE_ARGS) -o $(LIN64_BUILD_DIR)/SmartJNI.o $(SRC_DIR)/SmartJNI.cpp


    #### WINDOWS BUILDING DIRECTIVES ####

    $(DIST)/$(WIN_NAME): $(WINOBJFILES)
        @echo "Linking Windows Remote object files..."
        @mkdir -p $(DIST)
        @$(WIN_GPP) -Wl,$(SRC_DIR)/libsmartremote.def -static -static-libgcc -static-libstdc++ -mwindows -shared -s -m32 -o $(DIST)/$(WIN_NAME) $(WINOBJFILES) -lws2_32
       
    $(DIST)/$(JNI_WIN_NAME): $(JNI_WINOBJFILES)
        @echo "Linking Windows JNI object files..."
        @mkdir -p $(DIST)
        @$(WIN_GPP) -Wl,$(SRC_DIR)/libsmartjni.def -static -static-libgcc -static-libstdc++ -mwindows -shared -s -m32 -o $(DIST)/$(JNI_WIN_NAME) $(JNI_WINOBJFILES)

    $(WIN_BUILD_DIR)/SmartRemote.o: $(SRC_DIR)/SmartRemote.cpp $(CPPHEADERFILES)
        @echo "Compiling SmartRemote.cpp"
        @mkdir -p $(WIN_BUILD_DIR)
        @$(WIN_GPP) $(WIN_COMPILE_ARGS) -o $(WIN_BUILD_DIR)/SmartRemote.o $(SRC_DIR)/SmartRemote.cpp -lws2_32
       
    $(WIN_BUILD_DIR)/SmartJNI.o: $(SRC_DIR)/SmartJNI.cpp $(JNI_CPPHEADERFILES)
        @echo "Compiling SmartJNI.cpp"
        @mkdir -p $(WIN_BUILD_DIR)
        @$(WIN_GPP) $(WIN_COMPILE_ARGS) -o $(WIN_BUILD_DIR)/SmartJNI.o $(SRC_DIR)/SmartJNI.cpp

    #### WINDOWS64 BUILDING DIRECTIVES ####

    $(DIST)/$(WIN64_NAME): $(WIN64OBJFILES)
        @echo "Linking Windows64 Remote object files..."
        @mkdir -p $(DIST)
        @$(WIN64_GPP) -Wl,$(SRC_DIR)/libsmartremote.def -static -static-libgcc -static-libstdc++ -mwindows -shared -s -m64 -o $(DIST)/$(WIN64_NAME) $(WIN64OBJFILES) -lws2_32

    $(DIST)/$(JNI_WIN64_NAME): $(JNI_WIN64OBJFILES)
        @echo "Linking Windows64 JNI object files..."
        @mkdir -p $(DIST)
        @$(WIN64_GPP) -Wl,$(SRC_DIR)/libsmartjni.def -static -static-libgcc -static-libstdc++ -mwindows -shared -s -m64 -o $(DIST)/$(JNI_WIN64_NAME) $(JNI_WIN64OBJFILES)

    $(WIN64_BUILD_DIR)/SmartRemote.o: $(SRC_DIR)/SmartRemote.cpp $(CPPHEADERFILES)
        @echo "Compiling SmartRemote.cpp"
        @mkdir -p $(WIN64_BUILD_DIR)
        @$(WIN64_GPP) $(WIN64_COMPILE_ARGS) -o $(WIN64_BUILD_DIR)/SmartRemote.o $(SRC_DIR)/SmartRemote.cpp -lws2_32
       
    $(WIN64_BUILD_DIR)/SmartJNI.o: $(SRC_DIR)/SmartJNI.cpp $(JNI_CPPHEADERFILES)
        @echo "Compiling SmartJNI.cpp"
        @mkdir -p $(WIN64_BUILD_DIR)
        @$(WIN64_GPP) $(WIN64_COMPILE_ARGS) -o $(WIN64_BUILD_DIR)/SmartJNI.o $(SRC_DIR)/SmartJNI.cpp


    #### JAVA BUILDING DIRECTIVES ####

     $(JAVACLASSES): $(JAVASOURCES)
        @echo "Compiling Java Classes..."
        @mkdir -p $(JAVA_BUILD_DIR)
        @$(JAVAC) -classpath $(JAVA_BUILD_DIR) -sourcepath $(SRC_DIR) -d $(JAVA_BUILD_DIR) $(JAVASOURCES)
        @echo "Creating JAR Archive..."
        @mkdir -p $(DIST)
        @$(JAR) cfe $(DIST)/$(JAVA_NAME) smart.Main -C $(JAVA_BUILD_DIR) .



    Your plugins and jar file should now be in the dist folder. Copy paste them to your C:/Simba/Plugins folder and enjoy.
    Last edited by Brandon; 03-31-2014 at 06:44 PM.
    I am Ggzz..
    Hackintosher

  2. #2
    Join Date
    Mar 2012
    Posts
    426
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Thank you very much. For those who are going to compile the plugins them self, which I suggest to help learn, make sure you right click and run msys.bat as administrator. When I ran it regular it would not let me use the CD command.

    Quote Originally Posted by Brandon View Post
    Add the end of your path, make sure it has a semi colon and then add:

    Code:
    ;C:\Program Files (x86)\Java\jdk1.6.0_33\bin;C:\MinGw\bin
    Also, for me the jdk1.6.0_33 is in regular Program Files not (x86) so if yours is the same way then use this instead:

    Code:
    ;C:\Program Files\Java\jdk1.6.0_33\bin;C:\MinGw\bin
    Edit - I also heard you are a big fan of Pretty Little Liars
    Last edited by iBlank; 07-16-2012 at 12:35 AM.
    - My Scripts (Beginning to Update to SRL 6) -

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by alevere4 View Post
    Thank you very much. For those who are going to compile the plugins them self, which I suggest to help learn, make sure you right click and run msys.bat as administrator. When I ran it regular it would not let me use the CD command.

    Edit - I also heard you are a big fan of Pretty Little Liars

    LOL! That was an accident! I was teamviewering a girl's computer and I tried fixing her flashplayer for Firefox 13 on windows 8.. Copied the link for testing rather than the media fire link :c
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by alevere4 View Post
    Edit - I also heard you are a big fan of Pretty Little Liars
    one for the Sig i guess

  5. #5
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    Hmm, I feel like I'm missing something really easy here... so I apologize in advance, but how do you edit the make file?
    METAL HEAD FOR LIFE!!!

  6. #6
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by gerauchert View Post
    Hmm, I feel like I'm missing something really easy here... so I apologize in advance, but how do you edit the make file?
    I used notepad++ but if you don't have it just use WordPad. Right click then press open. Choose a program from list. Choose Wordpad. Uncheck always open with.
    I am Ggzz..
    Hackintosher

  7. #7
    Join Date
    Dec 2011
    Posts
    100
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by gerauchert View Post
    Hmm, I feel like I'm missing something really easy here... so I apologize in advance, but how do you edit the make file?
    Open with Simba.

    Edit what you need to then save.

  8. #8
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default

    It works for me. Although I have to open simba first and then open the script. Cant run as admin otherwise. Tested it with an easy bonfire script, login works, but some functions does not, like InPin.

  9. #9
    Join Date
    May 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default


    http://imgur.com/rR7QC

    i get 1 error and 2 warning
    error -build/java/java/awt/canvas.class
    Last edited by rewopelet; 07-16-2012 at 11:32 AM.

  10. #10
    Join Date
    May 2012
    Location
    Somewhere in, PA
    Posts
    1,810
    Mentioned
    9 Post(s)
    Quoted
    226 Post(s)

    Default

    Detailed guide with good pics, thanks!
    Last edited by Austin; 07-16-2012 at 04:16 PM.
    My First Build!, Selling Downloadable Games
    -------------------------------------

  11. #11
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    @Brandon/Iinversion

    Thank you very much its all working now
    METAL HEAD FOR LIFE!!!

  12. #12
    Join Date
    May 2012
    Location
    Somewhere in, PA
    Posts
    1,810
    Mentioned
    9 Post(s)
    Quoted
    226 Post(s)

    Default

    One problem, after i do everything and open the command prompt though. I changed the directory then did "make windows" then it only compiles Main.cpp and Color.cpp, then while trying to compile Java Classes it comes up with:

    make: javac: Command not found
    make: *** [build/java/java/awt/Canvas.class] Error 127

    So basically the same thing as rewopelet. What should we do?
    My First Build!, Selling Downloadable Games
    -------------------------------------

  13. #13
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by AustnW View Post
    One problem, after i do everything and open the command prompt though. I changed the directory then did "make windows" then it only compiles Main.cpp and Color.cpp, then while trying to compile Java Classes it comes up with:

    make: javac: Command not found
    make: *** [build/java/java/awt/Canvas.class] Error 127

    So basically the same thing as rewopelet. What should we do?
    You guys never installed Java JDK OR you didn't set your class path like in the pictures.
    I am Ggzz..
    Hackintosher

  14. #14
    Join Date
    May 2012
    Location
    Somewhere in, PA
    Posts
    1,810
    Mentioned
    9 Post(s)
    Quoted
    226 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    You guys never installed Java JDK OR you didn't set your class path like in the pictures.
    Hmm I was positive I installed it. Let me check then, I'll get back to you later
    My First Build!, Selling Downloadable Games
    -------------------------------------

  15. #15
    Join Date
    Mar 2012
    Posts
    426
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by AustnW View Post
    Hmm I was positive I installed it. Let me check then, I'll get back to you later
    Check if your JDK is in Program Files or Program Files (x86) then use the correct path.
    - My Scripts (Beginning to Update to SRL 6) -

  16. #16
    Join Date
    Jul 2007
    Location
    Finland
    Posts
    304
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    And this is how you do it in linux:
    cd SMART
    make linux

  17. #17
    Join Date
    May 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    after make windows it only added libsmart32.dll to the dist folder
    i686-pc-ming32-g++ not found
    what did i do wrong

  18. #18
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by rewopelet View Post
    after make windows it only added libsmart32.dll to the dist folder
    i686-pc-ming32-g++ not found
    what did i do wrong
    The instructions say to change it to g++ not mingw32-g++... You have to edit the two makefiles.
    I am Ggzz..
    Hackintosher

  19. #19
    Join Date
    May 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    it works now thanks!

  20. #20
    Join Date
    May 2012
    Location
    Somewhere in, PA
    Posts
    1,810
    Mentioned
    9 Post(s)
    Quoted
    226 Post(s)

    Default

    Thanks! I got it running The problem for me was a stupid mistake (probably like it is for most people) I copied your path you had as Program Files (x86), and the Java SDK was just in Program Files. Like i said stupid mistake lol, but it's working for me now, i'll post back if there's any problems or if I find anything else.
    My First Build!, Selling Downloadable Games
    -------------------------------------

  21. #21
    Join Date
    Oct 2011
    Location
    Chicago
    Posts
    3,352
    Mentioned
    21 Post(s)
    Quoted
    437 Post(s)

    Default

    Ah man the lazy bum files have been deleted!
    Haha




    Anti-Leech Movement Prevent Leeching Spread the word
    Insanity 60 Days (Killer workout)
    XoL Blog (Workouts/RS/Misc)

  22. #22
    Join Date
    May 2012
    Posts
    78
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    after i have completed all these steps, then i tried to run a script in simba, and i still get this text:

    *** Smart Cannot Spawn Clients ***

    :/

  23. #23
    Join Date
    May 2012
    Location
    Somewhere in, PA
    Posts
    1,810
    Mentioned
    9 Post(s)
    Quoted
    226 Post(s)

    Default

    Quote Originally Posted by iraqownz View Post
    after i have completed all these steps, then i tried to run a script in simba, and i still get this text:

    *** Smart Cannot Spawn Clients ***

    :/
    Then you musn't of done something right
    Last edited by Austin; 07-19-2012 at 01:54 PM.
    My First Build!, Selling Downloadable Games
    -------------------------------------

  24. #24
    Join Date
    May 2012
    Posts
    78
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    well.. the compiler, complied without any errors, and created those smart files... i just cant get smart to run, when i save a script.. :/

  25. #25
    Join Date
    Mar 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So after doing this I can run scripts without running simba as administrator? I tried and when I try to directly open a script.simba and run, Smart wont run but if I first open simba.exe and open my script, smart will run. Am I doing anything wrong?

Page 1 of 5 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •