LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2004, 04:50 PM   #1
EternalChampion
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Porting to Windows


I downloaded a VST plugin called LegaSynth (Linux), and I use Windows. What do I need to change in the source to make it run?
 
Old 09-09-2004, 08:55 AM   #2
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 276

Rep: Reputation: 31
You would have to change all the OS dependant functions, of course. Effort depends
on which type of funtionality you're using. A lot of *NIX API can be found in Win32
too (MS has, of course, not stolen them. They've been inspired by *NIX), for
example both Linux and Windows are using Berkeley sockets, so you'll find recv and
the like under both OSses.
Threading APIs show some basic similarities (Windows:_beginthread(void*, unsigned long, void*), Linux: int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
void *(*start_routine)(void*), void *arg), while Process APIs are totally different.
And there are no similarities if it comes to GUI or graphics programming (although there
are some libs under *NIX which somehow resemble DirectX APIs, like SDL).
You probably won't get far if you don't understand what the code is doing. You can't
port with search and replace text editing.
In other words: If you aren't experienced in porting from one OS to another, and if you don't have plenty of time (weeks, months, maybe years) to get into it, or plenty of
money to buy someone else to do it, leave it. If you really can't live without this
software, get yourself a second machine with windows on it instead.
 
Old 09-09-2004, 06:18 PM   #3
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
You should take a look at Cygwin. It gives you a Linux-like environment under Windows, and has most of the standard tools and libraries you would find in Linux. It can make porting Linux apps to Windows a lot easier...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux to windows porting Atrocity Linux - Software 5 02-19-2013 08:36 AM
porting windows drivers to linux? bizx Linux - Hardware 7 07-08-2004 04:30 PM
Porting C++ code from windows to Linux ashwinipahuja Programming 9 06-03-2004 02:09 AM
Porting C++ code from windows to Linux ashwinipahuja Linux - General 1 03-22-2004 02:57 AM
Porting C++ Project from Windows to Linux?? ashwinipahuja Programming 0 03-20-2004 01:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration