MadTracker.org
Forum - MT3 to unoficially come out soon for Linux...
Register Register Log in Log in Profile Profile Search Memberlist Usergroups FAQ FAQ
 Forum
MadTracker 3
 MT3 to unoficially come out soon for Linux...
Reply to topic Post new topic  
Goto page 1, 2, 3, 4, 5  Next
AmEv
Registered User


Joined: 16 Apr 2011
Location: Looking for MT3 devs! Wanna join?
PostPosted: Tue Sep 27 2011 02:37    
MT3 to unoficially come out soon for Linux...
Reply with quote

I have decided to, in my spare time, see if I could get MadTracker 3 to compile in Linux, using the code at SourceForge.

Step 1: Figure out the Include headache. Complete.
Step 2: Figure out the Conflicts headache. Ack. WIP.
Step 3: ????
Step 4: Profit (For Yannick, of course!)


I'd do it for Windows, but I don't have a working Win machine right now, and I don't have a Intel Mac, period. PPC Mac? 1: All of mine are dead, 2: Not sure if the code would support it.
 Back to top
View user's journal Send private message
SX001
Registered User


Joined: 22 Sep 2006
PostPosted: Thu Sep 29 2011 13:15    
Re: MT3 to unoficially come out soon for Linux...
Reply with quote

AmEv wrote:
I have decided to, in my spare time, see if I could get MadTracker 3 to compile in Linux, using the code at SourceForge.

Step 1: Figure out the Include headache. Complete.
Step 2: Figure out the Conflicts headache. Ack. WIP.
Step 3: ????
Step 4: Profit (For Yannick, of course!)


I'd do it for Windows, but I don't have a working Win machine right now, and I don't have a Intel Mac, period. PPC Mac? 1: All of mine are dead, 2: Not sure if the code would support it.


did you got it in working situation in some degree?

so far when I checked in last summer then the code in source forge missed many critical files in order to compile it together for whatever platform.
 Back to top
View user's journal Send private message
AmEv
Registered User


Joined: 16 Apr 2011
Location: Looking for MT3 devs! Wanna join?
PostPosted: Sun Oct 02 2011 05:54    
Reply with quote

I fixed the missing files problem. Got all internal and external "include" files.

The current problem, from NetBeans (which I am using):

Quote:

g++ -g -c -I/usr/include/ -o GNU-i386-Linux/MTLocalFile.o MTLocalFile.cpp
In file included from MTXGUI.h:86:0,
from MTSystem1.h:132,
from MTKernel.h:59,
from MTFile.h:41,
from MTLocalFile.h:20,
from MTLocalFile.cpp:18:
MTXSystem.h:180:0: warning: "mtnew" redefined
MTSystem1.h:98:0: note: this is the location of the previous definition
MTXSystem.h:190:0: warning: "MTTRY" redefined
MTSystem1.h:113:0: note: this is the location of the previous definition
MTXSystem.h:191:0: warning: "MTCATCH" redefined
MTSystem1.h:114:0: note: this is the location of the previous definition
MTXSystem.h:194:0: warning: "MTEND" redefined
MTSystem1.h:115:0: note: this is the location of the previous definition
MTXSystem.h:54:6: error: multiple definition of ‘enum MTProcessType’
MTKernel.h:24:6: error: previous definition here
MTXSystem.h:55:19: error: conflicting declaration ‘MTP_LOADMODULE’
MTKernel.h:25:19: error: ‘MTP_LOADMODULE’ has a previous declaration as ‘MTProcessType MTP_LOADMODULE’
MTXSystem.h:56:2: error: conflicting declaration ‘MTP_SAVEMODULE’
MTKernel.h:26:2: error: ‘MTP_SAVEMODULE’ has a previous declaration as ‘MTProcessType MTP_SAVEMODULE’
MTXSystem.h:57:2: error: conflicting declaration ‘MTP_LOADINSTRUMENT’
MTKernel.h:27:2: error: ‘MTP_LOADINSTRUMENT’ has a previous declaration as ‘MTProcessType MTP_LOADINSTRUMENT’
MTXSystem.h:58:2: error: conflicting declaration ‘MTP_SAVEINSTRUMENT’
MTKernel.h:28:2: error: ‘MTP_SAVEINSTRUMENT’ has a previous declaration as ‘MTProcessType MTP_SAVEINSTRUMENT’
MTXSystem.h:59:2: error: conflicting declaration ‘MTP_LOADSAMPLE’
MTKernel.h:29:2: error: ‘MTP_LOADSAMPLE’ has a previous declaration as ‘MTProcessType MTP_LOADSAMPLE’
MTXSystem.h:60:2: error: conflicting declaration ‘MTP_SAVESAMPLE’
MTKernel.h:30:2: error: ‘MTP_SAVESAMPLE’ has a previous declaration as ‘MTProcessType MTP_SAVESAMPLE’
MTXSystem.h:61:19: error: conflicting declaration ‘MTP_BUILDPEAKS’
MTKernel.h:31:19: error: ‘MTP_BUILDPEAKS’ has a previous declaration as ‘MTProcessType MTP_BUILDPEAKS’
MTXSystem.h:62:16: error: conflicting declaration ‘MTP_NETWORK’
MTKernel.h:32:16: error: ‘MTP_NETWORK’ has a previous declaration as ‘MTProcessType MTP_NETWORK’
MTXSystem.h:63:15: error: conflicting declaration ‘MTP_EXPORT’
MTKernel.h:33:15: error: ‘MTP_EXPORT’ has a previous declaration as ‘MTProcessType MTP_EXPORT’
MTXSystem.h:64:17: error: conflicting declaration ‘MTP_INTERNET’
MTKernel.h:34:17: error: ‘MTP_INTERNET’ has a previous declaration as ‘MTProcessType MTP_INTERNET’
MTXSystem.h:119:6: error: multiple definition of ‘enum MTConfigType’
MTConfig.h:16:6: error: previous definition here
MTXSystem.h:120:16: error: conflicting declaration ‘MTCT_CONFIG’
MTConfig.h:17:16: error: ‘MTCT_CONFIG’ has a previous declaration as ‘MTConfigType MTCT_CONFIG’
MTXSystem.h:121:2: error: conflicting declaration ‘MTCT_SINTEGER’
MTConfig.h:18:2: error: ‘MTCT_SINTEGER’ has a previous declaration as ‘MTConfigType MTCT_SINTEGER’
MTXSystem.h:122:2: error: conflicting declaration ‘MTCT_UINTEGER’
MTConfig.h:19:2: error: ‘MTCT_UINTEGER’ has a previous declaration as ‘MTConfigType MTCT_UINTEGER’
MTXSystem.h:123:2: error: conflicting declaration ‘MTCT_FLOAT’
MTConfig.h:20:2: error: ‘MTCT_FLOAT’ has a previous declaration as ‘MTConfigType MTCT_FLOAT’
MTXSystem.h:124:2: error: conflicting declaration ‘MTCT_BOOLEAN’
MTConfig.h:21:2: error: ‘MTCT_BOOLEAN’ has a previous declaration as ‘MTConfigType MTCT_BOOLEAN’
MTXSystem.h:125:2: error: conflicting declaration ‘MTCT_STRING’
MTConfig.h:22:2: error: ‘MTCT_STRING’ has a previous declaration as ‘MTConfigType MTCT_STRING’
MTXSystem.h:126:2: error: conflicting declaration ‘MTCT_BINARY’
MTConfig.h:23:2: error: ‘MTCT_BINARY’ has a previous declaration as ‘MTConfigType MTCT_BINARY’
MTXSystem.h:318:7: error: redefinition of ‘class MTArray’
MTStructures.h:23:14: error: previous definition of ‘class MTArray’
MTXSystem.h:343:7: error: redefinition of ‘class MTHash’
MTStructures.h:63:13: error: previous definition of ‘class MTHash’
MTXSystem.h:380:7: error: redefinition of ‘class MTConfigFile’
MTConfig.h:32:19: error: previous definition of ‘class MTConfigFile’
In file included from MTSystem1.h:148:0,
from MTKernel.h:59,
from MTFile.h:41,
from MTLocalFile.h:20,
from MTLocalFile.cpp:18:
MTResources.h:30:7: error: redefinition of ‘class MTResources’
MTXSystem.h:363:18: error: previous definition of ‘class MTResources’
In file included from MTKernel.h:59:0,
from MTFile.h:41,
from MTLocalFile.h:20,
from MTLocalFile.cpp:18:
MTSystem1.h:157:18: error: redefinition of ‘const int systemtype’
MTXSystem.h:23:18: error: ‘const int systemtype’ previously defined here
In file included from MTFile.h:41:0,
from MTLocalFile.h:20,
from MTLocalFile.cpp:18:
MTKernel.h:68:7: error: redefinition of ‘class MTLock’
MTXSystem.h:200:13: error: previous definition of ‘class MTLock’
MTKernel.h:94:7: error: redefinition of ‘class MTEvent’
MTXSystem.h:207:14: error: previous definition of ‘class MTEvent’
MTKernel.h:119:7: error: redefinition of ‘class MTThread’
MTXSystem.h:227:32: error: previous definition of ‘class MTThread’
MTKernel.h:153:7: error: redefinition of ‘class MTProcess’
MTXSystem.h:252:34: error: previous definition of ‘class MTProcess’
MTKernel.h:170:7: error: redefinition of ‘class MTTimer’
MTXSystem.h:310:14: error: previous definition of ‘class MTTimer’
MTKernel.h:199:7: error: redefinition of ‘class MTCPUMonitor’
MTXSystem.h:415:19: error: previous definition of ‘class MTCPUMonitor’
In file included from MTLocalFile.h:20:0,
from MTLocalFile.cpp:18:
MTFile.h:43:7: error: redefinition of ‘class MTFileHook’
MTXSystem.h:268:17: error: previous definition of ‘class MTFileHook’
MTFile.h:53:7: error: redefinition of ‘class MTFile’
MTXSystem.h:278:13: error: previous definition of ‘class MTFile’
MTFile.h:75:7: error: redefinition of ‘class MTFolder’
MTXSystem.h:299:15: error: previous definition of ‘class MTFolder’
MTLocalFile.cpp: In member function ‘virtual bool MTLocalHook::filecopy(char*, char*)’:
MTLocalFile.cpp:52:12: error: ‘close’ was not declared in this scope
MTLocalFile.cpp:55:32: error: ‘read’ was not declared in this scope
MTLocalFile.cpp:56:22: error: ‘write’ was not declared in this scope
MTLocalFile.cpp:57:13: error: ‘close’ was not declared in this scope
MTLocalFile.cpp: In member function ‘virtual bool MTLocalHook::filedelete(char*)’:
MTLocalFile.cpp:80:21: error: ‘unlink’ was not declared in this scope
MTLocalFile.cpp: In constructor ‘MTLocalFile::MTLocalFile(char*, int)’:
MTLocalFile.cpp:150:20: warning: deprecated conversion from string constant to ‘char*’
MTLocalFile.cpp:153:15: warning: deprecated conversion from string constant to ‘char*’
MTLocalFile.cpp:157:15: warning: deprecated conversion from string constant to ‘char*’
MTLocalFile.cpp:160:15: warning: deprecated conversion from string constant to ‘char*’
MTLocalFile.cpp:187:12: error: ‘errno’ was not declared in this scope
MTLocalFile.cpp:188:9: error: ‘ENODEV’ was not declared in this scope
MTLocalFile.cpp:189:9: error: ‘ENOENT’ was not declared in this scope
MTLocalFile.cpp:192:9: error: ‘EACCES’ was not declared in this scope
MTLocalFile.cpp: In constructor ‘MTLocalFile::MTLocalFile(MTFile*, int, int, int)’:
MTLocalFile.cpp:239:19: warning: deprecated conversion from string constant to ‘char*’
MTLocalFile.cpp:242:14: warning: deprecated conversion from string constant to ‘char*’
MTLocalFile.cpp:246:14: warning: deprecated conversion from string constant to ‘char*’
MTLocalFile.cpp:249:14: warning: deprecated conversion from string constant to ‘char*’
MTLocalFile.cpp:252:53: error: ‘dup’ was not declared in this scope
MTLocalFile.cpp: In member function ‘virtual void* MTLocalFile::getpointer(int, int)’:
MTLocalFile.cpp:483:47: error: ‘getpagesize’ was not declared in this scope
MTLocalFile.cpp: In member function ‘virtual bool MTLocalFile::seteof()’:
MTLocalFile.cpp:533:41: error: ‘ftruncate’ was not declared in this scope
make: *** [GNU-i386-Linux/MTLocalFile.o] Error 1

BUILD FAILED (exit value 2, total time: 1s)



I have the makefile to set mt3.cpp as the main file, and there are NO "file or directory not found"s.

I REALLY had to mess with /usr/include to get this far.


What I had to do was plop all the mt3 source into one folder, and when a mt3 source wasn't found, I removed the directory redirection.

Yannick, if you're watching, MT3 will soon have life.
 Back to top
View user's journal Send private message
Deepsleeper
Registered User


Joined: 03 Jul 2007
PostPosted: Sun Oct 02 2011 23:03    
Reply with quote

Goody goody goody goody Very Happy
 Back to top
View user's journal Send private message
AmEv
Registered User


Joined: 16 Apr 2011
Location: Looking for MT3 devs! Wanna join?
PostPosted: Sun Oct 02 2011 23:41    
Reply with quote

Source code that I am working on can be found here.

If anyone wants to chip in, feel free!

So we can release Mac and Windows clients!

I'll keep on working on the Linux client, as I figured out the Include headache.

The .zip file found in the link will be automatically updated; I will just bump the thread when fixes (and/or the client itself!) is released.
I'd post the code on SF, but I don't have necessary permissions.



*Well, I got the "Redefinition of X/Previously redefined here" figured out. Hopefully.

This is a great way to learn C++, IMO.
 Back to top
View user's journal Send private message
AmEv
Registered User


Joined: 16 Apr 2011
Location: Looking for MT3 devs! Wanna join?
PostPosted: Fri Oct 14 2011 05:37    
Reply with quote

Good news:


I applied to be a dev for MT3 on SF.


Yannick himself accepted my request.





He is not dead!
LONG LIVE MADTRACKER!
 Back to top
View user's journal Send private message
CHICAGO¤lollie
Registered User


Joined: 05 May 2003
PostPosted: Sat Oct 15 2011 17:14    
Reply with quote

Daaaamnn, I definitely wasn't expecting this. Even with the hacky work-arounds you've had to implement to get this far, this is really interesting news.

Good luck to you, man!


 Back to top
View user's journal Send private message Visit poster's website
AmEv
Registered User


Joined: 16 Apr 2011
Location: Looking for MT3 devs! Wanna join?
PostPosted: Mon Oct 17 2011 02:39    
Reply with quote

Well, the laptop I was working on the code had an HDD crash Sad
(that's EXACTLY why you back up!)

Thankfully, I had not worked on the code since. *phew*

TBH, what I had to do was install libgtk-3.0, and do an extraneous amount of linking to folders.

Another thing I had to do, was dump all MT3 files into one folder so it would "include" local files properly.

Then I had to create a makefile. Thankfully, NetBeans includes a generator.

Once again, if anyone wants to help develop (and possibly test), I'm recommending NetBeans IDE C/C++ edition. The .zip source file can be found 3 posts up.
 Back to top
View user's journal Send private message
Factor
Registered User


Joined: 16 Jul 2003
PostPosted: Tue Oct 18 2011 20:56    
Reply with quote

Awesome! Cool

Keep up the good work!
 Back to top
View user's journal Send private message Send e-mail MSN Messenger
Martin
Registered User


Joined: 05 May 2003
Location: Norway
PostPosted: Tue Oct 18 2011 22:00    
Reply with quote

WOW! Dancing


~ http://martin.madtracker.net ~
 Back to top
View user's journal Send private message Visit poster's website
AmEv
Registered User


Joined: 16 Apr 2011
Location: Looking for MT3 devs! Wanna join?
PostPosted: Tue Oct 18 2011 23:49    
Re: MT3 to unoficially come out soon for Linux...
Reply with quote

Now, if we could get Yannick to look at this thread Laughing
 Back to top
View user's journal Send private message
AmEv
Registered User


Joined: 16 Apr 2011
Location: Looking for MT3 devs! Wanna join?
PostPosted: Wed Oct 19 2011 15:47    
Reply with quote

Just realized:

I am the only non-registered posting in this thread.
 Back to top
View user's journal Send private message
AmEv
Registered User


Joined: 16 Apr 2011
Location: Looking for MT3 devs! Wanna join?
PostPosted: Sat Oct 22 2011 04:13    
Reply with quote

Well, not strictly related, but I found out that there is a C++ compiler for Android!


MadTrackin' on your phone, baby!
 Back to top
View user's journal Send private message
Factor
Registered User


Joined: 16 Jul 2003
PostPosted: Sat Oct 22 2011 19:38    
Reply with quote

Although I will not use such an app, this is starting to look better and better.

Thank you very much for your efforts in reviving MT3!

Realy appreciate it.

Cool
 Back to top
View user's journal Send private message Send e-mail MSN Messenger
D Vibe
Registered User


Joined: 04 May 2003
Location: Sweden
PostPosted: Sat Oct 22 2011 22:30    
Reply with quote

AmEv wrote:
Well, not strictly related, but I found out that there is a C++ compiler for Android!


MadTrackin' on your phone, baby!


Hehe! Very Happy


http://www.dvibe.se
 Back to top
View user's journal Send private message Send e-mail Visit poster's website
Reply to topic Post new topic  
Display posts from previous:   
Page 1 of 5 All times are GMT + 1 Hour
Goto page 1, 2, 3, 4, 5  Next


Powered by phpBB © phpBB Group

Copyright © 1998-2005 Yannick Delwiche
All rights reserved