No rule to install taget windows stop.
That came up when i tried compiling, any ideas?
Also, i edited the Makefile in the Smart folder, but, unless i read wrong, it then says to edit another makefile? where is the second one?
Thanks!
No rule to install taget windows stop.
That came up when i tried compiling, any ideas?
Also, i edited the Makefile in the Smart folder, but, unless i read wrong, it then says to edit another makefile? where is the second one?
Thanks!
You're not "installing" anything. If anything, that error should be more like "No Rule To Make Windows".. BUT there is a rule to make windows.
I just tried it just now. If you need help setting up a compiler, I can probably teamviewer you some time.
I am Ggzz..
Hackintosher
Mate i;ll pm you now in regards to teamviewer, i cannot get SMART to work for the life of me!
I'm missing the remote folder in my unzipped SMART folder. I only have src and test-apps in mine. This is causing me to be unable to compile it. Can anyone help please?
Uhh Download: https://github.com/BenLand100/SMART/archive/master.zip
And just run make windows on it.
If it doesn't work, you can try the make file that I wrote.. Just edit the "JavacPath" and it'll work. Why do you guys still need to compile Smart though? I thought it worked out of the box now :S
MAKE Code:WinGPP = g++
LinGPP = g++
Javac = javac
JavacPath = "C:/Program Files (x86)/Java/jdk1.6.0_41/bin"
BinDIR = bin
ObjDIR = obj
SrcDIR = src
BitFLG = -m32
JavaOUT = smart.jar
RemoteOUT = libsmartremote$(subst -m,,$(BitFLG))
JniOUT = libsmartjni$(subst -m,,$(BitFLG))
WinDEP = -static -static-libgcc -static-libstdc++ -shared -s -o
LinDEP = -static -static-libgcc -static-libstdc++ -shared -s -o
WinARGS = -std=c++11 -O3 -DWINDOWS -s -c $(BitFLG)
LinARGS = -FPIC -std=c++11 -O3 -DLINUX -s -c $(BitFLG)
REMOUT = NONE
GPP = NONE
ARGS = NONE
DEPS = NONE
JNI = NONE
OBJ = NONE
LINKER = NONE
CppFiles = \
$(SrcDIR)/SmartRemote.cpp
ObjFiles = \
$(patsubst $(SrcDIR)/%.cpp,$(OBJ)/%.o,$(CppFiles))
JniFiles = \
$(SrcDIR)/SmartJNI.cpp
JniObjFiles = \
$(patsubst $(SrcDIR)/%.cpp,$(OBJ)/%.o,$(JniFiles))
JavaFiles = \
$(wildcard $(SrcDIR)/*.java)
JavaObjs = \
$(wildcard $(OBJ)/*.class)
all:
@echo
@echo " Instructions For Making Smart:"
@echo
@echo " For Windows: make windows"
@echo " For Linux: make linux"
@echo " For Both: make both"
@echo " For x64 Builds: make windows BitFLG=-m64"
@echo " make linux BitFLG=-m64"
@echo " To Clean Files: make clean"
everything: linux windows
linux:
GPP = $(LinGPP)
ARGS = $(LinARGS)
DEPS = $(LinDEP)
OBJ = $(ObjDIR)/Linux$(subst -m,,$(BitFLG))
REMOUT = $(RemoteOUT).so
JNI = $(JniOUT).so
LINKER =
linux : $(BinDIR)/Java $(BinDIR)/$(OUT) $(BinDIR)/$(JNI)
@echo
@echo "Finished Building Smart Linux Distribution."
windows:
GPP = $(WinGPP)
ARGS = $(WinARGS)
DEPS = $(WinDEP)
OBJ = $(ObjDIR)/Windows$(subst -m,,$(BitFLG))
REMOUT = $(RemoteOUT).dll
JNI = $(JniOUT).dll
LINKER = -lws2_32
windows : $(BinDIR)/Java $(BinDIR)/$(REMOUT) $(BinDIR)/$(JNI)
@echo
@echo "Finished Building Smart Windows Distribution."
clean:
@echo " Cleaning Build Files."
@rm -rf $(ObjFiles) $(BinDIR) $(OBJ)
$(BinDIR)/$(REMOUT): $(ObjFiles)
@echo
@echo "Linking Remote Object Files.."
@mkdir -p $(BinDIR)
@$(GPP) -Wl,$(SrcDIR)/libsmartremote.def $(DEPS) $(BinDIR)/$(REMOUT) $(ObjFiles) $(BitFLG) $(LINKER)
$(BinDIR)/$(JNI): $(JniObjFiles)
@echo
@echo "Compiling JNI Object FIles.."
@mkdir -p $(BinDIR)
@$(GPP) $(DEPS) $(BinDIR)/$(JNI) $(JniObjFiles) $(BitFLG) $(LINKER)
$(OBJ)/%.o: $(SrcDIR)/%.cpp
@echo " Compiling: " $<
@mkdir -p $(OBJ)
@$(GPP) $(ARGS) -o $@ $< $(LINKER)
$(BinDIR)/Java:
@echo "Compiling Java Files.."
@mkdir -p $(OBJ)
@$(JavacPath)/$(Javac) -d $(OBJ) $(JavaFiles) -sourcepath $(SrcDIR) -classpath $(OBJ)
@mkdir -p $(BinDIR)
@$(JavacPath)/jar cfe $(BinDIR)/$(JavaOUT) smart.Main -C $(OBJ) .
Last edited by Brandon; 03-28-2013 at 07:46 AM.
I am Ggzz..
Hackintosher
So i'm still wondering why I don't have the same three files as you do in the screnshot:
smert.PNG
I know i've re-edited this same post multiple times, thinking that i've fixed it or not. I'm missing something for sure, because I couldn't find two Makefiles, I could only find the one.
Last edited by kwp4peter; 04-01-2013 at 01:54 PM.
cant get it to work does anyone want to do help me trough teamviewer?
What jdk version is needed to compile smart 8.3 ? I compiled mine with the newest one 1.7.0_45, but my smart.jar doesn't work properly, throws:
I see Brandon's link pointing to jdk1.6.0_33. Might it be the reason?Code:SMART: Failed to pair - No client by that ID SMART: Failed to pair - No client by that ID SMART: Failed to pair - No client by that ID
Tuts: Run script from another script || [Lape] Exceeding limits of VariantInvoke()
Plugins: Fast multi-layer objects finding || Multithreading in tabs || Optimised motion detection || ETL - paint on any window||Magic Keyboard (Simba's DirectX input + input in background to any normal window)
Snippets: [RS] Ultimate Loot Grabber || ShowPalette() || APPA JS Interface
thanks
hmm is it normal when copiling SMART?
So my problem is that SMART compiled by me throws this issue:Code:Compiling Java Classes... src\Canvas.java:30: warning: CanvasPeer is internal proprietary API and may be r emoved in a future release import java.awt.peer.CanvasPeer; ^ src\Canvas.java:85: warning: CanvasPeer is internal proprietary API and may be r emoved in a future release CanvasPeer peer = (CanvasPeer)getPeer(); ^ src\Canvas.java:85: warning: CanvasPeer is internal proprietary API and may be r emoved in a future release CanvasPeer peer = (CanvasPeer)getPeer(); ^ src\Main.java:40: warning: AppletClassLoader is internal proprietary API and may be removed in a future release * native method definitions and interaction with the remote controller. ^ src\Client.java:665: warning: AppletClassLoader is internal proprietary API and may be removed in a future release thisLoader = AppletClassLoader.newInstance(new URL[] { clientConnection. getJarFileURL() }); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 5 warnings
But when I only replace .jar file with official binary it works. So problem is with my .jar. However it's odd, because looking into the code, pairing part is inside .dll... https://github.com/BenLand100/SMART/...emote.cpp#L287Code:SMART: Located 0 clients
Last edited by bg5; 12-16-2013 at 04:01 AM.
Tuts: Run script from another script || [Lape] Exceeding limits of VariantInvoke()
Plugins: Fast multi-layer objects finding || Multithreading in tabs || Optimised motion detection || ETL - paint on any window||Magic Keyboard (Simba's DirectX input + input in background to any normal window)
Snippets: [RS] Ultimate Loot Grabber || ShowPalette() || APPA JS Interface
Anyone gotten this to work lately? Trying this on a brand new virtual machine and not having much luck. This is fresh install of Windows 8.1 Pro x64. Nothing has been installed on this machine except Jdk 1.6.0_45 (32-bit), MinGw, and windows updates. Attempting to compile SMART 8.3 located in C:\SMART.
Path settings:Makefile:Code:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jdk1.6.0\bin;C:\MinGW\binAnd finally the result:Code:#these compilers work with crossdev on gentoo WIN_GPP=g++ WIN64_GPP=g++ LIN_GPP=g++ LIN64_GPP=g++ JAVAC=javac JAR=jarCode:$ make windows Compiling Java Classes... src\Canvas.java:30: warning: java.awt.peer.CanvasPeer is Sun proprietary API and may be removed in a future release import java.awt.peer.CanvasPeer; ^ src\Client.java:34: warning: sun.applet.AppletClassLoader is Sun proprietary API and may be removed in a future release import sun.applet.AppletClassLoader; ^ src\Canvas.java:85: warning: java.awt.peer.CanvasPeer is Sun proprietary API and may be removed in a future release CanvasPeer peer = (CanvasPeer)getPeer(); ^ src\Canvas.java:85: warning: java.awt.peer.CanvasPeer is Sun proprietary API and may be removed in a future release CanvasPeer peer = (CanvasPeer)getPeer(); ^ src\Canvas.java:87: cannot find symbol symbol : method getAppropriateGraphicsConfiguration(java.awt.GraphicsConfigurat ion) location: interface java.awt.peer.CanvasPeer gc = peer.getAppropriateGraphicsConfiguration(gc); ^ src\Canvas.java:89: cannot find symbol symbol : method setGraphicsConfiguration(java.awt.GraphicsConfiguration) location: class java.awt.Component super.setGraphicsConfiguration(gc); ^ src\Canvas.java:82: method does not override or implement a method from a supert ype @Override ^ src\Client.java:665: warning: sun.applet.AppletClassLoader is Sun proprietary AP I and may be removed in a future release thisLoader = AppletClassLoader.newInstance(new URL[] { clientConnection. getJarFileURL() }); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 3 errors 5 warnings make: *** [build/java/java/awt/Canvas.class] Error 1
Last edited by Bixby Sayz; 03-31-2014 at 02:22 PM.
Never ever approach a computer saying or even thinking "I will just do this quickly".
Java 7 is required to compile AND run the new Smart. It cannot be compiled with anything lower.. It cannot be ran with anything lower. Updated the OP.
I will update this tutorial later with the latest Mingw-x32_x64. For now, it should still work with the Mingw you have and Java 7.
Last edited by Brandon; 03-31-2014 at 03:09 PM.
I am Ggzz..
Hackintosher
I knew I was missing something simple. Just didn't know what.
Edit: Got further with Jdk 7. It created the .jar file but balked compiling the dlls.Code:$ make windows Compiling Java Classes... src\Canvas.java:30: warning: CanvasPeer is internal proprietary API and may be r emoved in a future release import java.awt.peer.CanvasPeer; ^ src\Canvas.java:85: warning: CanvasPeer is internal proprietary API and may be r emoved in a future release CanvasPeer peer = (CanvasPeer)getPeer(); ^ src\Canvas.java:85: warning: CanvasPeer is internal proprietary API and may be r emoved in a future release CanvasPeer peer = (CanvasPeer)getPeer(); ^ src\Main.java:40: warning: AppletClassLoader is internal proprietary API and may be removed in a future release * native method definitions and interaction with the remote controller. ^ src\Client.java:665: warning: AppletClassLoader is internal proprietary API and may be removed in a future release thisLoader = AppletClassLoader.newInstance(new URL[] { clientConnection. getJarFileURL() }); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 5 warnings Creating JAR Archive... Compiling SmartRemote.cpp In file included from src/SmartRemote.cpp:20:0: src/SmartRemote.h:149:71: error: declaration of C function 'bool DllMain(HINSTAN CE, int, void*)' conflicts with extern "C" bool DllMain(HINSTANCE, int, void*) __attribute__((stdcall)); ^ In file included from c:\mingw\include\windows.h:62:0, from src/SmartRemote.h:55, from src/SmartRemote.cpp:20: c:\mingw\include\winbase.h:1051:13: error: previous declaration 'BOOL DllMain(HI NSTANCE, DWORD, LPVOID)' here BOOL WINAPI DllMain(HINSTANCE, DWORD, LPVOID); ^ make: *** [build/windows32/SmartRemote.o] Error 1
Last edited by Bixby Sayz; 03-31-2014 at 03:40 PM.
Never ever approach a computer saying or even thinking "I will just do this quickly".
Open and make the following changes in the corresponding files:
C++ Code:/**SmartRemote.cpp (line 1381):**/
extern "C" BOOL __stdcall DllMain(HINSTANCE instance, DWORD reason, LPVOID checks)
/**SmartRemote.h (line 149):**/
extern "C" BOOL __stdcall DllMain(HINSTANCE, DWORD, LPVOID)
It should fix any errors you're having. The newer compilers don't seem to be playing as nicely with Smart's source as before.. On windows at least. I'll probably push a commit to fix it and see if Ben accepts it.
Might be something with your compiler though. I just compiled it fine using Java 8 and Mingw-Builds 4.8.1 sjlj
I'm going to update this tutorial now.
Last edited by Brandon; 03-31-2014 at 04:38 PM.
I am Ggzz..
Hackintosher
That got me further (on to another error), although the line numbers do differ quite a bit between whatever you are compiling and what I downloaded from the repository. We appear to be working with 2 different sets of source code. Haven't the time to dive into it too deeply atm. I'll give it another go later.
Never ever approach a computer saying or even thinking "I will just do this quickly".
Those newer instructions did the trick. Wrong Java and wrong MinGW from old tutorial. I didn't stand a chance lol.
Never ever approach a computer saying or even thinking "I will just do this quickly".
I compiled SMART http://puu.sh/b5LU2/b2a1b7b090.png
gotten these files http://puu.sh/b5N7I/808ab8cc72.png
but i get a compiling error in simba http://puu.sh/b5MA7/d76a0a08fa.png
any idea?
EDIT:
downloaded the latest mingGW build from http://sourceforge.net/projects/ming...d?source=files
and JDK 8 and it works now!
Last edited by riwu; 08-24-2014 at 01:22 PM.
thx so much for this
There are currently 1 users browsing this thread. (0 members and 1 guests)